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": "Source",
128                                             "name": "gltrans_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                                 },
142                                 {
143                                     "fieldLabel": "Doc No.",
144                                     "name": "gltrans_docnumber",
145                                     "width": 200,
146                                     "xtype": "TextField",
147                                     "|xns": "Roo.form"
148                                 },
149                                 {
150                                     "fieldLabel": "Doc No.",
151                                     "name": "gltrans_docnumber",
152                                     "width": 200,
153                                     "xtype": "TextField",
154                                     "|xns": "Roo.form"
155                                 },
156                                 {
157                                     "fieldLabel": "References",
158                                     "name": "gltrans_misc_id",
159                                     "width": 75,
160                                     "xtype": "TextField",
161                                     "|xns": "Roo.form"
162                                 },
163                                 {
164                                     "fieldLabel": "Doc Type",
165                                     "name": "gltrans_doctype",
166                                     "width": 100,
167                                     "xtype": "TextField",
168                                     "|xns": "Roo.form"
169                                 },
170                                 {
171                                     "boxLabel": "In Bank Reconcile",
172                                     "fieldLabel": "Recorded",
173                                     "name": "gltrans_rec",
174                                     "width": 200,
175                                     "xtype": "Checkbox",
176                                     "|xns": "Roo.form"
177                                 },
178                                 {
179                                     "fieldLabel": "Created By",
180                                     "height": 100,
181                                     "name": "gltrans_username",
182                                     "width": 200,
183                                     "xtype": "TextField",
184                                     "|xns": "Roo.form"
185                                 },
186                                 {
187                                     "fieldLabel": "Deleted",
188                                     "name": "gltrans_deleted",
189                                     "width": 75,
190                                     "xtype": "Checkbox",
191                                     "|xns": "Roo.form"
192                                 }
193                             ]
194                         }
195                     ]
196                 },
197                 {
198                     "listeners": {
199                         "click": "function (_self, e)\n{\n    _this.dialog.hide();\n}"
200                     },
201                     "*prop": "buttons[]",
202                     "text": "Cancel",
203                     "xtype": "Button",
204                     "|xns": "Roo"
205                 },
206                 {
207                     "listeners": {
208                         "click": "function (_self, e)\n{\n    // do some checks?\n     \n    \n    _this.dialog.el.mask(\"Saving\");\n    _this.form.doAction(\"submit\");\n\n}"
209                     },
210                     "*prop": "buttons[]",
211                     "text": "Save",
212                     "xtype": "Button",
213                     "|xns": "Roo"
214                 }
215             ]
216         }
217     ],
218     "permname": "",
219     "modOrder": "001"
220 }