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                     "|xns": "Roo",
21                     "xtype": "LayoutRegion",
22                     "*prop": "center"
23                 },
24                 {
25                     "region": "center",
26                     "xtype": "ContentPanel",
27                     "|xns": "Roo",
28                     "items": [
29                         {
30                             "listeners": {
31                                 "|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",
32                                 "|rendered": "function (form)\n{\n    _this.form= form;\n}\n"
33                             },
34                             "labelAlign": "right",
35                             "method": "POST",
36                             "style": "margin:10px;",
37                             "xtype": "Form",
38                             "|url": "baseURL + '/Roo/gltrans.php'",
39                             "|xns": "Roo.form",
40                             "items": [
41                                 {
42                                     "labelAlign": "right",
43                                     "xtype": "Row",
44                                     "|xns": "Roo.form",
45                                     "items": [
46                                         {
47                                             "fieldLabel": "Sequence",
48                                             "name": "gltrans_sequence",
49                                             "width": 100,
50                                             "xtype": "TextField",
51                                             "|xns": "Roo.form"
52                                         },
53                                         {
54                                             "fieldLabel": "Journal No.",
55                                             "name": "gltrans_journalnumber",
56                                             "width": 75,
57                                             "xtype": "TextField",
58                                             "|xns": "Roo.form"
59                                         }
60                                     ]
61                                 },
62                                 {
63                                     "labelAlign": "right",
64                                     "xtype": "Row",
65                                     "|xns": "Roo.form",
66                                     "items": [
67                                         {
68                                             "fieldLabel": "Date",
69                                             "format": "d/M/Y",
70                                             "name": "gltrans_date",
71                                             "useIso": true,
72                                             "width": 100,
73                                             "xtype": "DateField",
74                                             "|xns": "Roo.form"
75                                         },
76                                         {
77                                             "fieldLabel": "Entered",
78                                             "name": "gltrans_entered",
79                                             "width": 150,
80                                             "xtype": "TextField",
81                                             "|xns": "Roo.form"
82                                         }
83                                     ]
84                                 },
85                                 {
86                                     "|xns": "Roo.form",
87                                     "xtype": "Row",
88                                     "items": [
89                                         {
90                                             "boxLabel": "Posted",
91                                             "fieldLabel": "Status",
92                                             "name": "Posted",
93                                             "width": 75,
94                                             "xtype": "Checkbox",
95                                             "|xns": "Roo.form"
96                                         },
97                                         {
98                                             "hideLabels": true,
99                                             "xtype": "Row",
100                                             "|xns": "Roo.form",
101                                             "items": [
102                                                 {
103                                                     "boxLabel": "Recorded in Bank Reconcile",
104                                                     "fieldLabel": " ",
105                                                     "name": "gltrans_rec",
106                                                     "width": 200,
107                                                     "xtype": "Checkbox",
108                                                     "|xns": "Roo.form"
109                                                 },
110                                                 {
111                                                     "boxLabel": "Deleted",
112                                                     "fieldLabel": "Deleted",
113                                                     "name": "gltrans_deleted",
114                                                     "width": 75,
115                                                     "xtype": "Checkbox",
116                                                     "|xns": "Roo.form"
117                                                 }
118                                             ]
119                                         }
120                                     ]
121                                 },
122                                 {
123                                     "|xns": "Roo.form",
124                                     "xtype": "Row",
125                                     "items": [
126                                         {
127                                             "fieldLabel": "Gltrans source",
128                                             "name": "Source",
129                                             "width": 100,
130                                             "xtype": "TextField",
131                                             "|xns": "Roo.form"
132                                         },
133                                         {
134                                             "fieldLabel": "Doc Type",
135                                             "name": "gltrans_doctype",
136                                             "width": 100,
137                                             "xtype": "TextField",
138                                             "|xns": "Roo.form"
139                                         },
140                                         {
141                                             "fieldLabel": "Doc No.",
142                                             "name": "gltrans_docnumber",
143                                             "width": 200,
144                                             "xtype": "TextField",
145                                             "|xns": "Roo.form"
146                                         }
147                                     ]
148                                 },
149                                 {
150                                     "fieldLabel": "Gltrans source",
151                                     "name": "Source",
152                                     "width": 100,
153                                     "xtype": "TextField",
154                                     "|xns": "Roo.form"
155                                 },
156                                 {
157                                     "fieldLabel": "Doc No.",
158                                     "name": "gltrans_docnumber",
159                                     "width": 200,
160                                     "xtype": "TextField",
161                                     "|xns": "Roo.form"
162                                 },
163                                 {
164                                     "fieldLabel": "References",
165                                     "name": "gltrans_misc_id",
166                                     "width": 75,
167                                     "xtype": "TextField",
168                                     "|xns": "Roo.form"
169                                 },
170                                 {
171                                     "fieldLabel": "Doc Type",
172                                     "name": "gltrans_doctype",
173                                     "width": 100,
174                                     "xtype": "TextField",
175                                     "|xns": "Roo.form"
176                                 },
177                                 {
178                                     "boxLabel": "In Bank Reconcile",
179                                     "fieldLabel": "Recorded",
180                                     "name": "gltrans_rec",
181                                     "width": 200,
182                                     "xtype": "Checkbox",
183                                     "|xns": "Roo.form"
184                                 },
185                                 {
186                                     "fieldLabel": "Created By",
187                                     "height": 100,
188                                     "name": "gltrans_username",
189                                     "width": 200,
190                                     "xtype": "TextField",
191                                     "|xns": "Roo.form"
192                                 },
193                                 {
194                                     "fieldLabel": "Deleted",
195                                     "name": "gltrans_deleted",
196                                     "width": 75,
197                                     "xtype": "Checkbox",
198                                     "|xns": "Roo.form"
199                                 }
200                             ]
201                         }
202                     ]
203                 },
204                 {
205                     "listeners": {
206                         "click": "function (_self, e)\n{\n    _this.dialog.hide();\n}"
207                     },
208                     "*prop": "buttons[]",
209                     "text": "Cancel",
210                     "xtype": "Button",
211                     "|xns": "Roo"
212                 },
213                 {
214                     "listeners": {
215                         "click": "function (_self, e)\n{\n    // do some checks?\n     \n    \n    _this.dialog.el.mask(\"Saving\");\n    _this.form.doAction(\"submit\");\n\n}"
216                     },
217                     "*prop": "buttons[]",
218                     "text": "Save",
219                     "xtype": "Button",
220                     "|xns": "Roo"
221                 }
222             ]
223         }
224     ],
225     "permname": "",
226     "modOrder": "001"
227 }