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',
191 displayField : 'display_name',
193 emptyText : "Status",
194 fieldLabel : 'Status',
195 forceSelection : true,
196 hiddenName : 'select status',
198 loadingText : "Searching...",
200 name : 'status_display_name',
202 qtip : "Select status",
203 queryParam : 'query[etype]',
204 selectOnFocus : true,
205 tpl : '<div class="x-grid-cell-text x-btn button"><b>{display_name}</b> </div>',
206 triggerAction : 'all',
214 beforeload : function (_self, o){
215 o.params = o.params || {};
218 o.params['query[ticket_change]'] = _this.data.ids;
223 sortInfo : { direction : 'ASC', field: 'id' },
228 url : baseURL + '/Roo/core_enum.php'
235 totalProperty : 'total',
236 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
243 allowBlank : 'false',
245 emptyText : "Select Person",
246 forceSelection : true,
248 loadingText : "Searching...",
251 qtip : "Select Person",
252 selectOnFocus : true,
253 triggerAction : 'all',
256 tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
257 queryParam : 'query[name]',
258 fieldLabel : 'Developer',
260 displayField : 'name',
261 hiddenName : 'developer_id',
262 name : 'developer_id_name',
267 beforeload : function (_self, o){
268 o.params = o.params || {};
270 o.params['query[project_id]'] = _this.project_id
271 o.params['query[role]'] = 'DEVELOPER';
275 sortInfo : { direction : 'ASC', field: 'id' },
280 url : baseURL + '/Roo/Person.php'
287 totalProperty : 'total',
288 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
303 xtype: 'LayoutRegion',
311 click : function (_self, e)
322 click : function (_self, e)
325 var params = _this.form.getValues();
326 params._bulk_update = _this.form.ids;
330 url : baseURL + '/Roo/mtrack_ticket',
333 success : function() {
339 //_this.form.doAction("submit");