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