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