1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Roo.namespace('Pman.Dialog');
7 Pman.Dialog.MTrackBulkChange = {
10 '672caf27f5363dc833bda5099775e891' :"Developer",
11 '9e727fdd3aec8274f46685441900280d' :"Project",
12 '6c768695a8efb18436d5b7b4374cdb45' :"Select core_enum",
13 'ec53a8c4f07baed5d8825072c89799be' :"Status",
14 '1243daf593fa297e07ab03bf06d925af' :"Searching...",
15 'ea4788705e6873b424c65e91c2846b19' :"Cancel",
16 'b18d852fa0d2465fe38b05b96dd5b736' :"Bulk Update",
17 '502996d9790340c5fd7b86a5b93b1c9f' :"Priority",
18 '3cc5fe396ec583c6d9f38f80a06674a4' :"Select prioirty",
19 '24f27bda5dd2c488aa9bc7700ba98c34' :"Select Projects",
20 '340c2ee497b85d5954b01c64de7f44f6' :"Select Person",
21 '9aadb017cc5b335be77ba090d5029259' :"Select status",
22 '06933067aafd48425d67bcb01bba5cb6' :"Update"
25 'status_display_name_emptyText' : 'ec53a8c4f07baed5d8825072c89799be' /* Status */ ,
26 'developer_id_name_loadingText' : '1243daf593fa297e07ab03bf06d925af' /* Searching... */ ,
27 'project_id_name_emptyText' : '24f27bda5dd2c488aa9bc7700ba98c34' /* Select Projects */ ,
28 'priority_id_display_name_qtip' : '6c768695a8efb18436d5b7b4374cdb45' /* Select core_enum */ ,
29 'status_display_name_qtip' : '9aadb017cc5b335be77ba090d5029259' /* Select status */ ,
30 'priority_id_display_name_emptyText' : '3cc5fe396ec583c6d9f38f80a06674a4' /* Select prioirty */ ,
31 'developer_id_name_emptyText' : '340c2ee497b85d5954b01c64de7f44f6' /* Select Person */ ,
32 'project_id_name_loadingText' : '1243daf593fa297e07ab03bf06d925af' /* Searching... */ ,
33 'priority_id_display_name_fieldLabel' : '502996d9790340c5fd7b86a5b93b1c9f' /* Priority */ ,
34 'project_id_name_qtip' : '24f27bda5dd2c488aa9bc7700ba98c34' /* Select Projects */ ,
35 'status_display_name_loadingText' : '1243daf593fa297e07ab03bf06d925af' /* Searching... */ ,
36 'developer_id_name_qtip' : '340c2ee497b85d5954b01c64de7f44f6' /* Select Person */ ,
37 'project_id_name_fieldLabel' : '9e727fdd3aec8274f46685441900280d' /* Project */ ,
38 'status_display_name_fieldLabel' : 'ec53a8c4f07baed5d8825072c89799be' /* Status */ ,
39 'priority_id_display_name_loadingText' : '1243daf593fa297e07ab03bf06d925af' /* Searching... */ ,
40 'developer_id_name_fieldLabel' : '672caf27f5363dc833bda5099775e891' /* Developer */
46 show : function(data, cb)
54 this.dialog.show(this.data._el);
57 this.form.setValues(data);
58 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
66 this.dialog = Roo.factory({
67 xtype : 'LayoutDialog',
73 title : _this._strings['b18d852fa0d2465fe38b05b96dd5b736'] /* Bulk Update */,
78 xtype : 'LayoutRegion',
85 text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
87 click : function (_self, e)
97 text : _this._strings['06933067aafd48425d67bcb01bba5cb6'] /* Update */,
99 click : function (_self, e)
102 var params = _this.form.getValues();
103 params._bulk_update = _this.data.ids;
106 url : baseURL + '/Roo/mtrack_ticket',
110 success : function(res) {
117 //_this.form.doAction("submit");
127 xtype : 'ContentPanel',
135 style : 'margin:10px;',
136 url : baseURL + '/Roo/mtrack_ticket.php',
138 actioncomplete : function(_self,action)
140 if (action.type == 'setdata') {
142 _this.form.setValues(_this.data);
144 //_this.dialog.el.mask("Loading");
145 //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
148 if (action.type == 'load') {
152 if (action.type =='submit') {
158 if (_this.callback) {
159 _this.callback.call(_this, _this.form.getValues());
165 rendered : function (form)
176 displayField : 'name',
178 emptyText : _this._strings['24f27bda5dd2c488aa9bc7700ba98c34'] /* Select Projects */,
179 fieldLabel : _this._strings['9e727fdd3aec8274f46685441900280d'] /* Project */,
180 forceSelection : true,
181 hiddenName : 'project_id',
183 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
185 name : 'project_id_name',
187 qtip : _this._strings['24f27bda5dd2c488aa9bc7700ba98c34'] /* Select Projects */,
188 queryParam : 'query[name]',
189 selectOnFocus : true,
190 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>',
191 triggerAction : 'all',
200 sortInfo : { direction : 'ASC', field: 'name' },
202 beforeload : function (_self, o){
203 o.params = o.params || {};
212 url : baseURL + '/Roo/Projects.php',
217 xtype : 'JsonReader',
218 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}],
221 totalProperty : 'total',
230 displayField : 'display_name',
232 emptyText : _this._strings['3cc5fe396ec583c6d9f38f80a06674a4'] /* Select prioirty */,
233 fieldLabel : _this._strings['502996d9790340c5fd7b86a5b93b1c9f'] /* Priority */,
234 forceSelection : true,
235 hiddenName : 'priority_id',
237 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
239 name : 'priority_id_display_name',
241 qtip : _this._strings['6c768695a8efb18436d5b7b4374cdb45'] /* Select core_enum */,
242 queryParam : 'query[etype]',
243 selectOnFocus : true,
244 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b> </div>',
245 triggerAction : 'all',
254 sortInfo : { direction : 'ASC', field: 'seqid' },
256 beforeload : function (_self, o){
257 o.params = o.params || {};
259 o.params.etype = 'priority';
267 url : baseURL + '/Roo/core_enum.php',
272 xtype : 'JsonReader',
273 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}],
276 totalProperty : 'total',
286 displayField : 'display_name',
288 emptyText : _this._strings['ec53a8c4f07baed5d8825072c89799be'] /* Status */,
289 fieldLabel : _this._strings['ec53a8c4f07baed5d8825072c89799be'] /* Status */,
290 forceSelection : true,
291 hiddenName : 'status',
293 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
295 name : 'status_display_name',
297 qtip : _this._strings['9aadb017cc5b335be77ba090d5029259'] /* Select status */,
298 queryParam : 'query[etype]',
299 selectOnFocus : true,
300 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b> </div>',
301 triggerAction : 'all',
310 sortInfo : { direction : 'ASC', field: 'seqid' },
312 beforeload : function (_self, o){
313 o.params = o.params || {};
316 // o.params['query[ticket_change]'] = _this.data.ids;
317 o.params['etype[0]'] = 'ticketstate';
318 o.params['etype[0]'] = 'resolution';
327 url : baseURL + '/Roo/core_enum.php',
332 xtype : 'JsonReader',
333 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}],
336 totalProperty : 'total',
345 displayField : 'name',
347 emptyText : _this._strings['340c2ee497b85d5954b01c64de7f44f6'] /* Select Person */,
348 fieldLabel : _this._strings['672caf27f5363dc833bda5099775e891'] /* Developer */,
349 forceSelection : true,
350 hiddenName : 'developer_id',
352 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
354 name : 'developer_id_name',
356 qtip : _this._strings['340c2ee497b85d5954b01c64de7f44f6'] /* Select Person */,
357 queryParam : 'query[name]',
358 selectOnFocus : true,
359 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> {email} </div>',
360 triggerAction : 'all',
369 sortInfo : { direction : 'ASC', field: 'name' },
371 beforeload : function (_self, o){
372 o.params = o.params || {};
374 o.params['query[project_id]'] = _this.data.project_id;
375 o.params['query[role]'] = 'DEVELOPER';
383 url : baseURL + '/Roo/Person.php',
388 xtype : 'JsonReader',
389 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}],
392 totalProperty : 'total',