Pman.Dialog.XtupleJournalEntry.bjs
[Pman.Xtuple] / Pman.Dialog.XtupleJournalEntry.bjs
1 {
2     "id": "roo-file-528",
3     "name": "Pman.Dialog.XtupleJournalEntry",
4     "parent": "",
5     "title": "",
6     "path": "/home/alan/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtupleJournalEntry.bjs",
7     "items": [
8         {
9             "closable": false,
10             "collapsible": false,
11             "height": 910,
12             "modal": true,
13             "resizable": false,
14             "title": "Edit / Create gltrans",
15             "width": 800,
16             "xtype": "LayoutDialog",
17             "|xns": "Roo",
18             "items": [
19                 {
20                     "*prop": "north",
21                     "xtype": "LayoutRegion",
22                     "|xns": "Roo"
23                 },
24                 {
25                     "|xns": "Roo",
26                     "xtype": "LayoutRegion",
27                     "*prop": "center"
28                 },
29                 {
30                     "region": "center",
31                     "xtype": "ContentPanel",
32                     "|xns": "Roo",
33                     "items": [
34                         {
35                             "listeners": {
36                                 "|actioncomplete": "function(_self,action)\n{\n    if (action.type == 'setdata') {\n       //_this.dialog.el.mask(\"Loading\");\n       //this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n       return;\n    }\n    if (action.type == 'load') {\n        _this.dialog.el.unmask();\n        return;\n    }\n    if (action.type =='submit') {\n    \n        _this.dialog.el.unmask();\n        _this.dialog.hide();\n    \n         if (_this.callback) {\n            _this.callback.call(_this, _this.form.getValues());\n         }\n         _this.form.reset();\n         return;\n    }\n}\n",
37                                 "|rendered": "function (form)\n{\n    _this.form= form;\n}\n"
38                             },
39                             "labelAlign": "right",
40                             "method": "POST",
41                             "style": "margin:10px;",
42                             "xtype": "Form",
43                             "|url": "baseURL + '/Roo/gltrans.php'",
44                             "|xns": "Roo.form",
45                             "items": [
46                                 {
47                                     "labelAlign": "right",
48                                     "xtype": "Row",
49                                     "|xns": "Roo.form",
50                                     "items": [
51                                         {
52                                             "fieldLabel": "Sequence",
53                                             "name": "gltrans_sequence",
54                                             "width": 100,
55                                             "xtype": "TextField",
56                                             "|xns": "Roo.form"
57                                         },
58                                         {
59                                             "fieldLabel": "Journal No.",
60                                             "name": "gltrans_journalnumber",
61                                             "width": 75,
62                                             "xtype": "TextField",
63                                             "|xns": "Roo.form"
64                                         },
65                                         {
66                                             "fieldLabel": "Created By",
67                                             "name": "gltrans_username",
68                                             "width": 200,
69                                             "xtype": "TextField",
70                                             "|xns": "Roo.form"
71                                         }
72                                     ]
73                                 },
74                                 {
75                                     "labelAlign": "right",
76                                     "xtype": "Row",
77                                     "|xns": "Roo.form",
78                                     "items": [
79                                         {
80                                             "fieldLabel": "Date",
81                                             "format": "d/M/Y",
82                                             "name": "gltrans_date",
83                                             "useIso": true,
84                                             "width": 100,
85                                             "xtype": "DateField",
86                                             "|xns": "Roo.form"
87                                         },
88                                         {
89                                             "fieldLabel": "Entered",
90                                             "name": "gltrans_entered",
91                                             "width": 150,
92                                             "xtype": "TextField",
93                                             "|xns": "Roo.form"
94                                         }
95                                     ]
96                                 },
97                                 {
98                                     "|xns": "Roo.form",
99                                     "xtype": "Row",
100                                     "items": [
101                                         {
102                                             "boxLabel": "Posted",
103                                             "fieldLabel": "Status",
104                                             "name": "Posted",
105                                             "width": 75,
106                                             "xtype": "Checkbox",
107                                             "|xns": "Roo.form"
108                                         },
109                                         {
110                                             "hideLabels": true,
111                                             "xtype": "Row",
112                                             "|xns": "Roo.form",
113                                             "items": [
114                                                 {
115                                                     "boxLabel": "Recorded in Bank Reconcile",
116                                                     "fieldLabel": " ",
117                                                     "name": "gltrans_rec",
118                                                     "width": 200,
119                                                     "xtype": "Checkbox",
120                                                     "|xns": "Roo.form"
121                                                 },
122                                                 {
123                                                     "boxLabel": "Deleted",
124                                                     "fieldLabel": "Deleted",
125                                                     "name": "gltrans_deleted",
126                                                     "width": 75,
127                                                     "xtype": "Checkbox",
128                                                     "|xns": "Roo.form"
129                                                 }
130                                             ]
131                                         }
132                                     ]
133                                 },
134                                 {
135                                     "|xns": "Roo.form",
136                                     "xtype": "Row",
137                                     "items": [
138                                         {
139                                             "fieldLabel": "Source",
140                                             "name": "gltrans_source",
141                                             "width": 100,
142                                             "xtype": "TextField",
143                                             "|xns": "Roo.form"
144                                         },
145                                         {
146                                             "fieldLabel": "Doc Type",
147                                             "name": "gltrans_doctype",
148                                             "width": 100,
149                                             "xtype": "TextField",
150                                             "|xns": "Roo.form"
151                                         },
152                                         {
153                                             "fieldLabel": "References",
154                                             "name": "gltrans_misc_id",
155                                             "width": 75,
156                                             "xtype": "TextField",
157                                             "|xns": "Roo.form"
158                                         }
159                                     ]
160                                 },
161                                 {
162                                     "fieldLabel": "Doc No.",
163                                     "name": "gltrans_docnumber",
164                                     "width": 400,
165                                     "xtype": "TextField",
166                                     "|xns": "Roo.form"
167                                 }
168                             ]
169                         }
170                     ]
171                 },
172                 {
173                     "listeners": {
174                         "click": "function (_self, e)\n{\n    _this.dialog.hide();\n}"
175                     },
176                     "*prop": "buttons[]",
177                     "text": "Cancel",
178                     "xtype": "Button",
179                     "|xns": "Roo"
180                 },
181                 {
182                     "listeners": {
183                         "click": "function (_self, e)\n{\n    // do some checks?\n     \n    \n    _this.dialog.el.mask(\"Saving\");\n    _this.form.doAction(\"submit\");\n\n}"
184                     },
185                     "*prop": "buttons[]",
186                     "text": "Save",
187                     "xtype": "Button",
188                     "|xns": "Roo"
189                 }
190             ]
191         }
192     ],
193     "permname": "",
194     "modOrder": "001"
195 }