1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.MTrackBulkChange = {
10 show : function(data, cb)
18 this.dialog.show(this.data._el);
21 this.form.setValues(data);
22 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
30 this.dialog = Roo.factory({
31 xtype: 'LayoutDialog',
38 title : "Bulk Update",
42 xtype: 'ContentPanel',
50 actioncomplete : function(_self,action)
52 if (action.type == 'setdata') {
54 _this.form.setValues(_this.data);
56 //_this.dialog.el.mask("Loading");
57 //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
60 if (action.type == 'load') {
64 if (action.type =='submit') {
71 _this.callback.call(_this, _this.form.getValues());
77 rendered : function (form)
83 style : 'margin:10px;',
84 url : baseURL + '/Roo/mtrack_ticket.php',
91 emptyText : "Select Projects",
92 forceSelection : true,
94 loadingText : "Searching...",
97 qtip : "Select Projects",
99 triggerAction : 'all',
102 tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
103 queryParam : 'query[name]',
104 fieldLabel : 'Project',
106 displayField : 'name',
107 hiddenName : 'project_id',
108 name : 'project_id_name',
113 beforeload : function (_self, o){
114 o.params = o.params || {};
119 sortInfo : { direction : 'ASC', field: 'name' },
124 url : baseURL + '/Roo/Projects.php'
131 totalProperty : 'total',
132 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
139 allowBlank : 'false',
140 displayField : 'display_name',
142 emptyText : "Select prioirty",
143 fieldLabel : 'Priority',
144 forceSelection : true,
145 hiddenName : 'priority_id',
147 loadingText : "Searching...",
149 name : 'priority_id_display_name',
151 qtip : "Select core_enum",
152 queryParam : 'query[etype]',
153 selectOnFocus : true,
154 tpl : '<div class="x-grid-cell-text x-btn button"><b>{display_name}</b> </div>',
155 triggerAction : 'all',
163 beforeload : function (_self, o){
164 o.params = o.params || {};
166 o.params.etype = 'priority';
170 sortInfo : { direction : 'ASC', field: 'seqid' },
175 url : baseURL + '/Roo/core_enum.php'
182 totalProperty : 'total',
183 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
190 allowBlank : 'false',
192 displayField : 'display_name',
194 emptyText : "Status",
195 fieldLabel : 'Status',
196 forceSelection : true,
197 hiddenName : 'select status',
199 loadingText : "Searching...",
201 name : 'status_display_name',
203 qtip : "Select status",
204 queryParam : 'query[etype]',
205 selectOnFocus : true,
206 tpl : '<div class="x-grid-cell-text x-btn button"><b>{display_name}</b> </div>',
207 triggerAction : 'all',
215 beforeload : function (_self, o){
216 o.params = o.params || {};
219 o.params['query[ticket_change]'] = _this.data.ids;
224 sortInfo : { direction : 'ASC', field: 'id' },
229 url : baseURL + '/Roo/core_enum.php'
236 totalProperty : 'total',
237 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
244 allowBlank : 'false',
245 displayField : 'name',
247 emptyText : "Select Person",
248 fieldLabel : 'Developer',
249 forceSelection : true,
250 hiddenName : 'developer_id',
252 loadingText : "Searching...",
254 name : 'developer_id_name',
256 qtip : "Select Person",
257 queryParam : 'query[name]',
258 selectOnFocus : true,
259 tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> {email} </div>',
260 triggerAction : 'all',
268 beforeload : function (_self, o){
269 o.params = o.params || {};
271 o.params['query[project_id]'] = _this.data.project_id
272 o.params['query[role]'] = 'DEVELOPER';
276 sortInfo : { direction : 'ASC', field: 'name' },
281 url : baseURL + '/Roo/Person.php'
288 totalProperty : 'total',
289 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
299 xtype: 'LayoutRegion',
307 click : function (_self, e)
318 click : function (_self, e)
321 var params = _this.form.getValues();
322 params._bulk_update = _this.data.ids;
325 url : baseURL + '/Roo/mtrack_ticket',
329 success : function() {
335 //_this.form.doAction("submit");