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"
24 "status_display_name_emptyText" : "ec53a8c4f07baed5d8825072c89799be",
25 "developer_id_name_loadingText" : "1243daf593fa297e07ab03bf06d925af",
26 "project_id_name_emptyText" : "24f27bda5dd2c488aa9bc7700ba98c34",
27 "priority_id_display_name_qtip" : "6c768695a8efb18436d5b7b4374cdb45",
28 "status_display_name_qtip" : "9aadb017cc5b335be77ba090d5029259",
29 "priority_id_display_name_emptyText" : "3cc5fe396ec583c6d9f38f80a06674a4",
30 "developer_id_name_emptyText" : "340c2ee497b85d5954b01c64de7f44f6",
31 "project_id_name_loadingText" : "1243daf593fa297e07ab03bf06d925af",
32 "priority_id_display_name_fieldLabel" : "502996d9790340c5fd7b86a5b93b1c9f",
33 "project_id_name_qtip" : "24f27bda5dd2c488aa9bc7700ba98c34",
34 "status_display_name_loadingText" : "1243daf593fa297e07ab03bf06d925af",
35 "developer_id_name_qtip" : "340c2ee497b85d5954b01c64de7f44f6",
36 "project_id_name_fieldLabel" : "9e727fdd3aec8274f46685441900280d",
37 "status_display_name_fieldLabel" : "ec53a8c4f07baed5d8825072c89799be",
38 "priority_id_display_name_loadingText" : "1243daf593fa297e07ab03bf06d925af",
39 "developer_id_name_fieldLabel" : "672caf27f5363dc833bda5099775e891"
44 "collapsible" : false,
45 "title" : "Bulk Update",
46 "xtype" : "LayoutDialog",
54 "xtype" : "LayoutRegion",
60 "xtype" : "ContentPanel",
65 "|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",
66 "|rendered" : "function (form)\n{\n _this.form= form;\n}\n"
68 "$ url" : "baseURL + '/Roo/mtrack_ticket.php'",
71 "style" : "margin:10px;",
76 "triggerAction" : "all",
77 "forceSelection" : true,
78 "selectOnFocus" : true,
79 "fieldLabel" : "Project",
82 "emptyText" : "Select Projects",
85 "displayField" : "name",
86 "hiddenName" : "project_id",
92 "qtip" : "Select Projects",
93 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
94 "queryParam" : "query[name]",
95 "name" : "project_id_name",
96 "loadingText" : "Searching...",
100 "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
104 "$ sortInfo" : "{ direction : 'ASC', field: 'name' }",
105 "$ xns" : "Roo.data",
109 "$ url" : "baseURL + '/Roo/Projects.php'",
110 "xtype" : "HttpProxy",
112 "$ xns" : "Roo.data",
118 "xtype" : "JsonReader",
119 "$ xns" : "Roo.data",
120 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]",
122 "totalProperty" : "total"
130 "triggerAction" : "all",
131 "fieldLabel" : "Priority",
132 "forceSelection" : true,
133 "selectOnFocus" : true,
135 "displayField" : "display_name",
136 "emptyText" : "Select prioirty",
137 "hiddenName" : "priority_id",
140 "xtype" : "ComboBox",
141 "allowBlank" : false,
145 "$ xns" : "Roo.form",
146 "name" : "priority_id_display_name",
147 "qtip" : "Select core_enum",
148 "queryParam" : "query[etype]",
149 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b> </div>",
150 "loadingText" : "Searching...",
154 "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n // set more here\n o.params.etype = 'priority';\n}\n"
158 "$ sortInfo" : "{ direction : 'ASC', field: 'seqid' }",
159 "$ xns" : "Roo.data",
163 "$ url" : "baseURL + '/Roo/core_enum.php'",
164 "xtype" : "HttpProxy",
166 "$ xns" : "Roo.data",
172 "xtype" : "JsonReader",
173 "$ xns" : "Roo.data",
174 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"etype\",\"type\":\"string\"}]",
176 "totalProperty" : "total"
183 "alwaysQuery" : true,
185 "triggerAction" : "all",
186 "fieldLabel" : "Status",
187 "forceSelection" : true,
188 "selectOnFocus" : true,
190 "displayField" : "display_name",
191 "emptyText" : "Status",
192 "hiddenName" : "status",
195 "xtype" : "ComboBox",
196 "allowBlank" : false,
200 "$ xns" : "Roo.form",
201 "name" : "status_display_name",
202 "qtip" : "Select status",
203 "queryParam" : "query[etype]",
204 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b> </div>",
205 "loadingText" : "Searching...",
209 "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n // set more here\n \n // o.params['query[ticket_change]'] = _this.data.ids;\n o.params['etype[0]'] = 'ticketstate';\n o.params['etype[0]'] = 'resolution'; \n \n}\n"
213 "$ sortInfo" : "{ direction : 'ASC', field: 'seqid' }",
214 "$ xns" : "Roo.data",
218 "$ url" : "baseURL + '/Roo/core_enum.php'",
219 "xtype" : "HttpProxy",
221 "$ xns" : "Roo.data",
227 "xtype" : "JsonReader",
228 "$ xns" : "Roo.data",
229 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"etype\",\"type\":\"string\"}]",
231 "totalProperty" : "total"
239 "triggerAction" : "all",
240 "fieldLabel" : "Developer",
241 "forceSelection" : true,
242 "selectOnFocus" : true,
244 "displayField" : "name",
245 "emptyText" : "Select Person",
246 "hiddenName" : "developer_id",
249 "xtype" : "ComboBox",
250 "allowBlank" : false,
254 "$ xns" : "Roo.form",
255 "name" : "developer_id_name",
256 "qtip" : "Select Person",
257 "queryParam" : "query[name]",
258 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> {email} </div>",
259 "loadingText" : "Searching...",
263 "|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"
267 "$ sortInfo" : "{ direction : 'ASC', field: 'name' }",
268 "$ xns" : "Roo.data",
272 "$ url" : "baseURL + '/Roo/Person.php'",
273 "xtype" : "HttpProxy",
275 "$ xns" : "Roo.data",
281 "xtype" : "JsonReader",
282 "$ xns" : "Roo.data",
283 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]",
285 "totalProperty" : "total"
297 "click" : "function (_self, e)\n{\n _this.dialog.hide();\n}"
302 "* prop" : "buttons[]"
306 "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}"
311 "* prop" : "buttons[]"