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