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') {
61 _this.dialog.el.unmask();
64 if (action.type =='submit') {
66 _this.dialog.el.unmask();
70 _this.callback.call(_this, _this.form.getValues());
76 rendered : function (form)
82 style : 'margin:10px;',
83 url : baseURL + '/Roo/mtrack_ticket.php',
90 emptyText : "Select Projects",
91 forceSelection : true,
93 loadingText : "Searching...",
96 qtip : "Select Projects",
98 triggerAction : 'all',
101 tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
102 queryParam : 'query[name]',
103 fieldLabel : 'Project',
105 displayField : 'name',
106 hiddenName : 'project_id',
107 name : 'project_id_name',
112 beforeload : function (_self, o){
113 o.params = o.params || {};
118 sortInfo : { direction : 'ASC', field: 'name' },
123 url : baseURL + '/Roo/Projects.php'
130 totalProperty : 'total',
131 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
138 allowBlank : 'false',
140 emptyText : "Select core_enum",
141 forceSelection : true,
143 loadingText : "Searching...",
146 qtip : "Select core_enum",
147 selectOnFocus : true,
148 triggerAction : 'all',
151 tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
152 queryParam : 'query[etype]',
153 fieldLabel : 'Priority',
155 displayField : 'etype',
156 hiddenName : 'priority_id',
157 name : 'priority_id_etype',
162 beforeload : function (_self, o){
163 o.params = o.params || {};
165 o.params.etype = 'priority';
169 sortInfo : { direction : 'ASC', field: 'seqid' },
174 url : baseURL + '/Roo/core_enum.php'
181 totalProperty : 'total',
182 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
189 allowBlank : 'false',
190 displayField : 'display_name',
192 emptyText : "Status",
193 fieldLabel : 'Status',
194 forceSelection : true,
195 hiddenName : 'select status',
197 loadingText : "Searching...",
199 name : 'status_display_name',
201 qtip : "Select status",
202 queryParam : 'query[etype]',
203 selectOnFocus : true,
204 tpl : '<div class="x-grid-cell-text x-btn button"><b>{display_name}</b> </div>',
205 triggerAction : 'all',
213 beforeload : function (_self, o){
214 o.params = o.params || {};
217 o.params['query[ticket_change]'] = _this.ids;
222 sortInfo : { direction : 'ASC', field: 'id' },
227 url : baseURL + '/Roo/core_enum.php'
234 totalProperty : 'total',
235 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
242 allowBlank : 'false',
244 emptyText : "Select Person",
245 forceSelection : true,
247 loadingText : "Searching...",
250 qtip : "Select Person",
251 selectOnFocus : true,
252 triggerAction : 'all',
255 tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
256 queryParam : 'query[name]',
257 fieldLabel : 'Developer',
259 displayField : 'name',
260 hiddenName : 'developer_id',
261 name : 'developer_id_name',
266 beforeload : function (_self, o){
267 o.params = o.params || {};
269 o.params['query[project_id]'] = _this.project_id
270 o.params['query[role]'] = 'DEVELOPER';
274 sortInfo : { direction : 'ASC', field: 'id' },
279 url : baseURL + '/Roo/Person.php'
286 totalProperty : 'total',
287 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
302 xtype: 'LayoutRegion',
310 click : function (_self, e)
321 click : function (_self, e)
324 var params = _this.form.getValues();
325 params._bulk_update = _this.form.ids;
329 url : baseURL + '/Roo/mtrack_ticket',
332 success : function() {
338 //_this.form.doAction("submit");