3 "name": "Pman.Dialog.MTrackBulkChange",
6 "path": "/home/alan/gitlive/Pman.MTrack/Pman.Dialog.MTrackBulkChange.bjs",
13 "title": "Bulk Update",
15 "xtype": "LayoutDialog",
20 "xtype": "LayoutRegion",
25 "xtype": "ContentPanel",
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"
36 "style": "margin:10px;",
37 "|url": "baseURL + '/Roo/mtrack_ticket.php'",
42 "allowBlank": "false",
44 "emptyText": "Select Projects",
45 "forceSelection": true,
47 "loadingText": "Searching...",
50 "qtip": "Select Projects",
51 "selectOnFocus": true,
52 "triggerAction": "all",
55 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
56 "queryParam": "query[name]",
57 "fieldLabel": "Project",
59 "displayField": "name",
60 "hiddenName": "project_id",
61 "name": "project_id_name",
65 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
70 "|sortInfo": "{ direction : 'ASC', field: 'name' }",
78 "|url": "baseURL + '/Roo/Projects.php'"
82 "xtype": "JsonReader",
86 "totalProperty": "total",
87 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
96 "allowBlank": "false",
98 "emptyText": "Select core_enum",
99 "forceSelection": true,
101 "loadingText": "Searching...",
104 "qtip": "Select core_enum",
105 "selectOnFocus": true,
106 "triggerAction": "all",
109 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{etype}</b> </div>",
110 "queryParam": "query[etype]",
111 "fieldLabel": "Priority",
113 "displayField": "etype",
114 "hiddenName": "priority_id",
115 "name": "priority_id_etype",
119 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n o.etype = 'priority';\n}\n"
124 "|sortInfo": "{ direction : 'ASC', field: 'seqid' }",
129 "xtype": "HttpProxy",
132 "|url": "baseURL + '/Roo/core_enum.php'"
136 "xtype": "JsonReader",
140 "totalProperty": "total",
141 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"etype\",\"type\":\"string\"}]"
148 "allowBlank": "false",
149 "displayField": "display_name",
151 "emptyText": "Status",
152 "fieldLabel": "Status",
153 "forceSelection": true,
154 "hiddenName": "select status",
156 "loadingText": "Searching...",
158 "name": "status_display_name",
160 "qtip": "Select status",
161 "queryParam": "query[etype]",
162 "selectOnFocus": true,
163 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b> </div>",
164 "triggerAction": "all",
173 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n \n o.params['query[ticket_change]'] = _this.ids;\n\n}\n"
178 "|sortInfo": "{ direction : 'ASC', field: 'id' }",
183 "xtype": "HttpProxy",
186 "|url": "baseURL + '/Roo/core_enum.php'"
190 "xtype": "JsonReader",
194 "totalProperty": "total",
195 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"etype\",\"type\":\"string\"}]"
204 "allowBlank": "false",
206 "emptyText": "Select Person",
207 "forceSelection": true,
209 "loadingText": "Searching...",
212 "qtip": "Select Person",
213 "selectOnFocus": true,
214 "triggerAction": "all",
217 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
218 "queryParam": "query[name]",
219 "fieldLabel": "Developer",
221 "displayField": "name",
222 "hiddenName": "developer_id",
223 "name": "developer_id_name",
230 "|sortInfo": "{ direction : 'ASC', field: 'id' }",
232 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
237 "xtype": "HttpProxy",
240 "|url": "baseURL + '/Roo/Person.php'"
244 "xtype": "JsonReader",
248 "totalProperty": "total",
249 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
266 "click": "function (_self, e)\n{\n _this.dialog.hide();\n}"
268 "*prop": "buttons[]",
275 "click": "function (_self, e)\n{\n // do some checks?\n var params = _this.form.getValues();\n params._bulk_update = _this.form.ids;\n Roo.log(params);\n \n Pman.Request({\n url : baseURL + '/Roo/mtrack_ticket',\n method : 'POST',\n params : params,\n success : function() {\n _this.dialog.hide();\n }\n });\n \n \n //_this.form.doAction(\"submit\");\n\n}"
277 "*prop": "buttons[]",