2 "name" : "Pman.Dialog.MTrackBulkChange",
5 "path" : "/home/alan/gitlive/Pman.MTrack/Pman.Dialog.MTrackBulkChange.bjs",
9 "672caf27f5363dc833bda5099775e891" : "Developer",
10 "9e727fdd3aec8274f46685441900280d" : "Project",
11 "6c768695a8efb18436d5b7b4374cdb45" : "Select core_enum",
12 "ec53a8c4f07baed5d8825072c89799be" : "Status",
13 "1243daf593fa297e07ab03bf06d925af" : "Searching...",
14 "ea4788705e6873b424c65e91c2846b19" : "Cancel",
15 "b18d852fa0d2465fe38b05b96dd5b736" : "Bulk Update",
16 "502996d9790340c5fd7b86a5b93b1c9f" : "Priority",
17 "3cc5fe396ec583c6d9f38f80a06674a4" : "Select prioirty",
18 "24f27bda5dd2c488aa9bc7700ba98c34" : "Select Projects",
19 "340c2ee497b85d5954b01c64de7f44f6" : "Select Person",
20 "9aadb017cc5b335be77ba090d5029259" : "Select status",
21 "06933067aafd48425d67bcb01bba5cb6" : "Update"
26 "collapsible" : false,
27 "title" : "Bulk Update",
28 "xtype" : "LayoutDialog",
36 "xtype" : "LayoutRegion",
42 "xtype" : "ContentPanel",
47 "|actioncomplete" : "function(_self,action)\n{\n if (action.type == 'setdata') {\n \n _this.form.setValues(_this.data);\n \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 \n return;\n }\n if (action.type =='submit') {\n return;\n // not used here..\n \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",
48 "|rendered" : "function (form)\n{\n _this.form= form;\n}\n"
50 "$ url" : "baseURL + '/Roo/mtrack_ticket.php'",
53 "style" : "margin:10px;",
58 "triggerAction" : "all",
59 "forceSelection" : true,
60 "selectOnFocus" : true,
61 "fieldLabel" : "Project",
64 "emptyText" : "Select Projects",
67 "displayField" : "name",
68 "hiddenName" : "project_id",
74 "qtip" : "Select Projects",
75 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
76 "queryParam" : "query[name]",
77 "name" : "project_id_name",
78 "loadingText" : "Searching...",
82 "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
86 "$ sortInfo" : "{ direction : 'ASC', field: 'name' }",
91 "$ url" : "baseURL + '/Roo/Projects.php'",
93 "xtype" : "HttpProxy",
100 "xtype" : "JsonReader",
101 "$ xns" : "Roo.data",
102 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]",
104 "totalProperty" : "total"
112 "triggerAction" : "all",
113 "fieldLabel" : "Priority",
114 "forceSelection" : true,
115 "selectOnFocus" : true,
117 "displayField" : "display_name",
118 "emptyText" : "Select prioirty",
119 "hiddenName" : "priority_id",
122 "xtype" : "ComboBox",
123 "allowBlank" : false,
127 "$ xns" : "Roo.form",
128 "name" : "priority_id_display_name",
129 "qtip" : "Select core_enum",
130 "queryParam" : "query[etype]",
131 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b> </div>",
132 "loadingText" : "Searching...",
136 "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n // set more here\n o.params.etype = 'priority';\n}\n"
140 "$ sortInfo" : "{ direction : 'ASC', field: 'seqid' }",
141 "$ xns" : "Roo.data",
145 "$ url" : "baseURL + '/Roo/core_enum.php'",
147 "xtype" : "HttpProxy",
148 "$ xns" : "Roo.data",
154 "xtype" : "JsonReader",
155 "$ xns" : "Roo.data",
156 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"etype\",\"type\":\"string\"}]",
158 "totalProperty" : "total"
165 "alwaysQuery" : true,
167 "triggerAction" : "all",
168 "fieldLabel" : "Status",
169 "forceSelection" : true,
170 "selectOnFocus" : true,
172 "displayField" : "display_name",
173 "emptyText" : "Status",
174 "hiddenName" : "status",
177 "xtype" : "ComboBox",
178 "allowBlank" : false,
182 "$ xns" : "Roo.form",
183 "name" : "status_display_name",
184 "qtip" : "Select status",
185 "queryParam" : "query[etype]",
186 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b> </div>",
187 "loadingText" : "Searching...",
191 "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n // set more here\n \n o.params['query[ticket_change]'] = _this.data.ids;\n\n}\n"
195 "$ sortInfo" : "{ direction : 'ASC', field: 'id' }",
196 "$ xns" : "Roo.data",
200 "$ url" : "baseURL + '/Roo/core_enum.php'",
202 "xtype" : "HttpProxy",
203 "$ xns" : "Roo.data",
209 "xtype" : "JsonReader",
210 "$ xns" : "Roo.data",
211 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"etype\",\"type\":\"string\"}]",
213 "totalProperty" : "total"
221 "triggerAction" : "all",
222 "fieldLabel" : "Developer",
223 "forceSelection" : true,
224 "selectOnFocus" : true,
226 "displayField" : "name",
227 "emptyText" : "Select Person",
228 "hiddenName" : "developer_id",
231 "xtype" : "ComboBox",
232 "allowBlank" : false,
236 "$ xns" : "Roo.form",
237 "name" : "developer_id_name",
238 "qtip" : "Select Person",
239 "queryParam" : "query[name]",
240 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> {email} </div>",
241 "loadingText" : "Searching...",
245 "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n // set more here\n o.params['query[project_id]'] = _this.data.project_id;\n o.params['query[role]'] = 'DEVELOPER';\n}\n"
249 "$ sortInfo" : "{ direction : 'ASC', field: 'name' }",
250 "$ xns" : "Roo.data",
254 "$ url" : "baseURL + '/Roo/Person.php'",
256 "xtype" : "HttpProxy",
257 "$ xns" : "Roo.data",
263 "xtype" : "JsonReader",
264 "$ xns" : "Roo.data",
265 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]",
267 "totalProperty" : "total"
279 "click" : "function (_self, e)\n{\n _this.dialog.hide();\n}"
284 "* prop" : "buttons[]"
288 "click" : "function (_self, e)\n{\n // do some checks?\n var params = _this.form.getValues();\n params._bulk_update = _this.data.ids;\n \n Pman.Request({\n url : baseURL + '/Roo/mtrack_ticket',\n method : 'POST',\n params : params,\n mask: 'updating',\n success : function(res) {\n _this.dialog.hide();\n _this.callback(res);\n }\n });\n\n \n //_this.form.doAction(\"submit\");\n\n}"
293 "* prop" : "buttons[]"