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                                     "allowBlank": "false",
41                                     "displayField": "name",
42                                     "editable": "false",
43                                     "emptyText": "Select Project",
44                                     "fieldLabel": "Project",
45                                     "forceSelection": true,
46                                     "hiddenName": "project_id",
47                                     "listWidth": 400,
48                                     "loadingText": "Searching...",
49                                     "minChars": 2,
50                                     "name": "project_id_name",
51                                     "pageSize": 20,
52                                     "qtip": "Select Projects",
53                                     "queryParam": "query[name]",
54                                     "selectOnFocus": true,
55                                     "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
56                                     "triggerAction": "all",
57                                     "typeAhead": true,
58                                     "valueField": "id",
59                                     "width": 300,
60                                     "xtype": "ComboBox",
61                                     "|xns": "Roo.form",
62                                     "items": [
63                                         {
64                                             "*prop": "store",
65                                             "xtype": "Store",
66                                             "|xns": "Roo.data",
67                                             "remoteSort": true,
68                                             "|sortInfo": "{ direction : 'ASC', field: 'id' }",
69                                             "listeners": {
70                                                 "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n}\n"
71                                             },
72                                             "items": [
73                                                 {
74                                                     "*prop": "proxy",
75                                                     "xtype": "HttpProxy",
76                                                     "method": "GET",
77                                                     "|xns": "Roo.data",
78                                                     "|url": "baseURL + '/Roo/Projects.php'"
79                                                 },
80                                                 {
81                                                     "*prop": "reader",
82                                                     "xtype": "JsonReader",
83                                                     "|xns": "Roo.data",
84                                                     "id": "id",
85                                                     "root": "data",
86                                                     "totalProperty": "total",
87                                                     "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
88                                                 }
89                                             ]
90                                         }
91                                     ]
92                                 },
93                                 {
94                                     "fieldLabel": "Name",
95                                     "name": "name",
96                                     "width": 200,
97                                     "|xns": "Roo.form",
98                                     "xtype": "TextField"
99                                 },
100                                 {
101                                     "fieldLabel": "Description",
102                                     "name": "description",
103                                     "width": 200,
104                                     "|xns": "Roo.form",
105                                     "xtype": "TextArea",
106                                     "height": 100
107                                 },
108                                 {
109                                     "fieldLabel": "Startdate",
110                                     "name": "startdate",
111                                     "width": 75,
112                                     "|xns": "Roo.form",
113                                     "xtype": "DateField"
114                                 },
115                                 {
116                                     "fieldLabel": "Duedate",
117                                     "name": "duedate",
118                                     "width": 75,
119                                     "|xns": "Roo.form",
120                                     "xtype": "DateField"
121                                 },
122                                 {
123                                     "fieldLabel": "Completed",
124                                     "name": "completed",
125                                     "width": 75,
126                                     "|xns": "Roo.form",
127                                     "xtype": "DateField"
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                                     "name": "id",
239                                     "|xns": "Roo.form",
240                                     "xtype": "Hidden"
241                                 }
242                             ]
243                         }
244                     ]
245                 },
246                 {
247                     "listeners": {
248                         "click": "function (_self, e)\n{\n    _this.dialog.hide();\n}"
249                     },
250                     "*prop": "buttons[]",
251                     "text": "Cancel",
252                     "xtype": "Button",
253                     "|xns": "Roo"
254                 },
255                 {
256                     "listeners": {
257                         "click": "function (_self, e)\n{\n    // do some checks?\n     \n    \n    _this.dialog.el.mask(\"Saving\");\n    _this.form.doAction(\"submit\");\n\n}"
258                     },
259                     "*prop": "buttons[]",
260                     "text": "Save",
261                     "xtype": "Button",
262                     "|xns": "Roo"
263                 }
264             ]
265         }
266     ],
267     "permname": "",
268     "modOrder": "001"
269 }