Pman.Dialog.MTrackMilestone.bjs
[Pman.MTrack] / Pman.Dialog.MTrackMilestone.bjs
1 {
2     "id": "roo-file-127",
3     "name": "Pman.Dialog.MTrackMilestone",
4     "parent": "",
5     "title": "",
6     "path": "/home/alan/gitlive/Pman.MTrack/Pman.Dialog.MTrackMilestone.bjs",
7     "items": [
8         {
9             "closable": false,
10             "collapsible": false,
11             "height": 390,
12             "resizable": false,
13             "title": "Edit / Create mtrack_milestone",
14             "width": 400,
15             "xtype": "LayoutDialog",
16             "|xns": "Roo",
17             "items": [
18                 {
19                     "|xns": "Roo",
20                     "xtype": "LayoutRegion",
21                     "*prop": "center"
22                 },
23                 {
24                     "region": "center",
25                     "xtype": "ContentPanel",
26                     "|xns": "Roo",
27                     "items": [
28                         {
29                             "|xns": "Roo.form",
30                             "xtype": "Form",
31                             "listeners": {
32                                 "|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",
33                                 "|rendered": "function (form)\n{\n    _this.form= form;\n}\n"
34                             },
35                             "method": "POST",
36                             "style": "margin:10px;",
37                             "|url": "baseURL + '/Roo/mtrack_milestone.php'",
38                             "items": [
39                                 {
40                                     "fieldLabel": "Name",
41                                     "name": "name",
42                                     "width": 200,
43                                     "|xns": "Roo.form",
44                                     "xtype": "TextField"
45                                 },
46                                 {
47                                     "fieldLabel": "Description",
48                                     "name": "description",
49                                     "width": 200,
50                                     "|xns": "Roo.form",
51                                     "xtype": "TextArea",
52                                     "height": 100
53                                 },
54                                 {
55                                     "fieldLabel": "Startdate",
56                                     "name": "startdate",
57                                     "width": 75,
58                                     "|xns": "Roo.form",
59                                     "xtype": "DateField"
60                                 },
61                                 {
62                                     "fieldLabel": "Duedate",
63                                     "name": "duedate",
64                                     "width": 75,
65                                     "|xns": "Roo.form",
66                                     "xtype": "DateField"
67                                 },
68                                 {
69                                     "fieldLabel": "Completed",
70                                     "name": "completed",
71                                     "width": 75,
72                                     "|xns": "Roo.form",
73                                     "xtype": "DateField"
74                                 },
75                                 {
76                                     "|xns": "Roo.form",
77                                     "xtype": "ComboBox",
78                                     "allowBlank": "false",
79                                     "editable": "false",
80                                     "emptyText": "Select mtrack_change",
81                                     "forceSelection": true,
82                                     "listWidth": 400,
83                                     "loadingText": "Searching...",
84                                     "minChars": 2,
85                                     "pageSize": 20,
86                                     "qtip": "Select mtrack_change",
87                                     "selectOnFocus": true,
88                                     "triggerAction": "all",
89                                     "typeAhead": true,
90                                     "width": 300,
91                                     "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{ontable}</b> </div>",
92                                     "queryParam": "query[ontable]",
93                                     "fieldLabel": "Deleted",
94                                     "valueField": "id",
95                                     "displayField": "ontable",
96                                     "hiddenName": "deleted",
97                                     "name": "deleted_ontable",
98                                     "items": [
99                                         {
100                                             "*prop": "store",
101                                             "xtype": "Store",
102                                             "|xns": "Roo.data",
103                                             "remoteSort": true,
104                                             "|sortInfo": "{ direction : 'ASC', field: 'id' }",
105                                             "listeners": {
106                                                 "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n}\n"
107                                             },
108                                             "items": [
109                                                 {
110                                                     "*prop": "proxy",
111                                                     "xtype": "HttpProxy",
112                                                     "method": "GET",
113                                                     "|xns": "Roo.data",
114                                                     "|url": "baseURL + '/Roo/mtrack_change.php'"
115                                                 },
116                                                 {
117                                                     "*prop": "reader",
118                                                     "xtype": "JsonReader",
119                                                     "|xns": "Roo.data",
120                                                     "id": "id",
121                                                     "root": "data",
122                                                     "totalProperty": "total",
123                                                     "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"ontable\",\"type\":\"string\"}]"
124                                                 }
125                                             ]
126                                         }
127                                     ]
128                                 },
129                                 {
130                                     "|xns": "Roo.form",
131                                     "xtype": "ComboBox",
132                                     "allowBlank": "false",
133                                     "editable": "false",
134                                     "emptyText": "Select mtrack_change",
135                                     "forceSelection": true,
136                                     "listWidth": 400,
137                                     "loadingText": "Searching...",
138                                     "minChars": 2,
139                                     "pageSize": 20,
140                                     "qtip": "Select mtrack_change",
141                                     "selectOnFocus": true,
142                                     "triggerAction": "all",
143                                     "typeAhead": true,
144                                     "width": 300,
145                                     "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{ontable}</b> </div>",
146                                     "queryParam": "query[ontable]",
147                                     "fieldLabel": "Created",
148                                     "valueField": "id",
149                                     "displayField": "ontable",
150                                     "hiddenName": "created",
151                                     "name": "created_ontable",
152                                     "items": [
153                                         {
154                                             "*prop": "store",
155                                             "xtype": "Store",
156                                             "|xns": "Roo.data",
157                                             "remoteSort": true,
158                                             "|sortInfo": "{ direction : 'ASC', field: 'id' }",
159                                             "listeners": {
160                                                 "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n}\n"
161                                             },
162                                             "items": [
163                                                 {
164                                                     "*prop": "proxy",
165                                                     "xtype": "HttpProxy",
166                                                     "method": "GET",
167                                                     "|xns": "Roo.data",
168                                                     "|url": "baseURL + '/Roo/mtrack_change.php'"
169                                                 },
170                                                 {
171                                                     "*prop": "reader",
172                                                     "xtype": "JsonReader",
173                                                     "|xns": "Roo.data",
174                                                     "id": "id",
175                                                     "root": "data",
176                                                     "totalProperty": "total",
177                                                     "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"ontable\",\"type\":\"string\"}]"
178                                                 }
179                                             ]
180                                         }
181                                     ]
182                                 },
183                                 {
184                                     "|xns": "Roo.form",
185                                     "xtype": "ComboBox",
186                                     "allowBlank": "false",
187                                     "editable": "false",
188                                     "emptyText": "Select mtrack_change",
189                                     "forceSelection": true,
190                                     "listWidth": 400,
191                                     "loadingText": "Searching...",
192                                     "minChars": 2,
193                                     "pageSize": 20,
194                                     "qtip": "Select mtrack_change",
195                                     "selectOnFocus": true,
196                                     "triggerAction": "all",
197                                     "typeAhead": true,
198                                     "width": 300,
199                                     "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{ontable}</b> </div>",
200                                     "queryParam": "query[ontable]",
201                                     "fieldLabel": "Updated",
202                                     "valueField": "id",
203                                     "displayField": "ontable",
204                                     "hiddenName": "updated",
205                                     "name": "updated_ontable",
206                                     "items": [
207                                         {
208                                             "*prop": "store",
209                                             "xtype": "Store",
210                                             "|xns": "Roo.data",
211                                             "remoteSort": true,
212                                             "|sortInfo": "{ direction : 'ASC', field: 'id' }",
213                                             "listeners": {
214                                                 "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n}\n"
215                                             },
216                                             "items": [
217                                                 {
218                                                     "*prop": "proxy",
219                                                     "xtype": "HttpProxy",
220                                                     "method": "GET",
221                                                     "|xns": "Roo.data",
222                                                     "|url": "baseURL + '/Roo/mtrack_change.php'"
223                                                 },
224                                                 {
225                                                     "*prop": "reader",
226                                                     "xtype": "JsonReader",
227                                                     "|xns": "Roo.data",
228                                                     "id": "id",
229                                                     "root": "data",
230                                                     "totalProperty": "total",
231                                                     "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"ontable\",\"type\":\"string\"}]"
232                                                 }
233                                             ]
234                                         }
235                                     ]
236                                 },
237                                 {
238                                     "fieldLabel": "Project",
239                                     "name": "project_id",
240                                     "width": 75,
241                                     "|xns": "Roo.form",
242                                     "xtype": "TextField"
243                                 },
244                                 {
245                                     "name": "id",
246                                     "|xns": "Roo.form",
247                                     "xtype": "Hidden"
248                                 }
249                             ]
250                         }
251                     ]
252                 },
253                 {
254                     "listeners": {
255                         "click": "function (_self, e)\n{\n    _this.dialog.hide();\n}"
256                     },
257                     "*prop": "buttons[]",
258                     "text": "Cancel",
259                     "xtype": "Button",
260                     "|xns": "Roo"
261                 },
262                 {
263                     "listeners": {
264                         "click": "function (_self, e)\n{\n    // do some checks?\n     \n    \n    _this.dialog.el.mask(\"Saving\");\n    _this.form.doAction(\"submit\");\n\n}"
265                     },
266                     "*prop": "buttons[]",
267                     "text": "Save",
268                     "xtype": "Button",
269                     "|xns": "Roo"
270                 }
271             ]
272         }
273     ],
274     "permname": "",
275     "modOrder": "001"
276 }