// Auto generated file - created by app.Builder.js- do not edit directly (at present!)
+Roo.namespace('Pman.Dialog');
+
Pman.Dialog.MTrackBulkChange = {
- dialog : false,
- callback: false,
+ _strings : {
+ '672caf27f5363dc833bda5099775e891' :"Developer",
+ '9e727fdd3aec8274f46685441900280d' :"Project",
+ '6c768695a8efb18436d5b7b4374cdb45' :"Select core_enum",
+ 'ec53a8c4f07baed5d8825072c89799be' :"Status",
+ '1243daf593fa297e07ab03bf06d925af' :"Searching...",
+ 'ea4788705e6873b424c65e91c2846b19' :"Cancel",
+ 'b18d852fa0d2465fe38b05b96dd5b736' :"Bulk Update",
+ '502996d9790340c5fd7b86a5b93b1c9f' :"Priority",
+ '3cc5fe396ec583c6d9f38f80a06674a4' :"Select prioirty",
+ '24f27bda5dd2c488aa9bc7700ba98c34' :"Select Projects",
+ '340c2ee497b85d5954b01c64de7f44f6' :"Select Person",
+ '9aadb017cc5b335be77ba090d5029259' :"Select status",
+ '06933067aafd48425d67bcb01bba5cb6' :"Update"
+ },
+ _named_strings : {
+ 'status_display_name_emptyText' : 'ec53a8c4f07baed5d8825072c89799be' /* Status */ ,
+ 'developer_id_name_loadingText' : '1243daf593fa297e07ab03bf06d925af' /* Searching... */ ,
+ 'project_id_name_emptyText' : '24f27bda5dd2c488aa9bc7700ba98c34' /* Select Projects */ ,
+ 'priority_id_display_name_qtip' : '6c768695a8efb18436d5b7b4374cdb45' /* Select core_enum */ ,
+ 'status_display_name_qtip' : '9aadb017cc5b335be77ba090d5029259' /* Select status */ ,
+ 'priority_id_display_name_emptyText' : '3cc5fe396ec583c6d9f38f80a06674a4' /* Select prioirty */ ,
+ 'developer_id_name_emptyText' : '340c2ee497b85d5954b01c64de7f44f6' /* Select Person */ ,
+ 'project_id_name_loadingText' : '1243daf593fa297e07ab03bf06d925af' /* Searching... */ ,
+ 'priority_id_display_name_fieldLabel' : '502996d9790340c5fd7b86a5b93b1c9f' /* Priority */ ,
+ 'project_id_name_qtip' : '24f27bda5dd2c488aa9bc7700ba98c34' /* Select Projects */ ,
+ 'status_display_name_loadingText' : '1243daf593fa297e07ab03bf06d925af' /* Searching... */ ,
+ 'developer_id_name_qtip' : '340c2ee497b85d5954b01c64de7f44f6' /* Select Person */ ,
+ 'project_id_name_fieldLabel' : '9e727fdd3aec8274f46685441900280d' /* Project */ ,
+ 'status_display_name_fieldLabel' : 'ec53a8c4f07baed5d8825072c89799be' /* Status */ ,
+ 'priority_id_display_name_loadingText' : '1243daf593fa297e07ab03bf06d925af' /* Searching... */ ,
+ 'developer_id_name_fieldLabel' : '672caf27f5363dc833bda5099775e891' /* Developer */
+ },
- show : function(data, cb)
- {
- if (!this.dialog) {
- this.create();
- }
+ dialog : false,
+ callback: false,
- this.callback = cb;
- this.data = data;
- this.dialog.show(this.data._el);
- if (this.form) {
- this.form.reset();
- this.form.setValues(data);
- this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
- }
+ show : function(data, cb)
+ {
+ if (!this.dialog) {
+ this.create();
+ }
- },
+ this.callback = cb;
+ this.data = data;
+ this.dialog.show(this.data._el);
+ if (this.form) {
+ this.form.reset();
+ this.form.setValues(data);
+ this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
+ }
- create : function()
- {
- var _this = this;
- this.dialog = Roo.factory({
- xtype: 'LayoutDialog',
- xns: Roo,
- closable : false,
- collapsible : false,
- height : 300,
- modal : true,
- resizable : false,
- title : "Bulk Update",
- width : 500,
- items : [
- {
- xtype: 'ContentPanel',
- xns: Roo,
- region : 'center',
- items : [
- {
- xtype: 'Form',
- xns: Roo.form,
- listeners : {
- actioncomplete : function(_self,action)
- {
- if (action.type == 'setdata') {
-
- _this.form.setValues(_this.data);
-
- //_this.dialog.el.mask("Loading");
- //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
- return;
- }
- if (action.type == 'load') {
-
- return;
- }
- if (action.type =='submit') {
- return;
- // not used here..
-
- _this.dialog.hide();
-
- if (_this.callback) {
- _this.callback.call(_this, _this.form.getValues());
- }
- _this.form.reset();
- return;
- }
- },
- rendered : function (form)
- {
- _this.form= form;
- }
- },
- method : 'POST',
- style : 'margin:10px;',
- url : baseURL + '/Roo/mtrack_ticket.php',
- items : [
- {
- xtype: 'ComboBox',
- xns: Roo.form,
- allowBlank : 'false',
- editable : 'false',
- emptyText : "Select Projects",
- forceSelection : true,
- listWidth : 400,
- loadingText : "Searching...",
- minChars : 2,
- pageSize : 20,
- qtip : "Select Projects",
- selectOnFocus : true,
- triggerAction : 'all',
- typeAhead : true,
- width : 300,
- tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
- queryParam : 'query[name]',
- fieldLabel : 'Project',
- valueField : 'id',
- displayField : 'name',
- hiddenName : 'project_id',
- name : 'project_id_name',
- store : {
- xtype: 'Store',
- xns: Roo.data,
- listeners : {
- beforeload : function (_self, o){
- o.params = o.params || {};
- // set more here
- }
- },
- remoteSort : true,
- sortInfo : { direction : 'ASC', field: 'name' },
- proxy : {
- xtype: 'HttpProxy',
- xns: Roo.data,
- method : 'GET',
- url : baseURL + '/Roo/Projects.php'
- },
- reader : {
- xtype: 'JsonReader',
- xns: Roo.data,
- id : 'id',
- root : 'data',
- totalProperty : 'total',
- fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
- }
- }
- },
- {
- xtype: 'ComboBox',
- xns: Roo.form,
- allowBlank : 'false',
- displayField : 'display_name',
- editable : 'false',
- emptyText : "Select prioirty",
- fieldLabel : 'Priority',
- forceSelection : true,
- hiddenName : 'priority_id',
- listWidth : 400,
- loadingText : "Searching...",
- minChars : 2,
- name : 'priority_id_display_name',
- pageSize : 20,
- qtip : "Select core_enum",
- queryParam : 'query[etype]',
- selectOnFocus : true,
- tpl : '<div class="x-grid-cell-text x-btn button"><b>{display_name}</b> </div>',
- triggerAction : 'all',
- typeAhead : true,
- valueField : 'id',
- width : 300,
- store : {
- xtype: 'Store',
- xns: Roo.data,
- listeners : {
- beforeload : function (_self, o){
- o.params = o.params || {};
- // set more here
- o.params.etype = 'priority';
- }
- },
- remoteSort : true,
- sortInfo : { direction : 'ASC', field: 'seqid' },
- proxy : {
- xtype: 'HttpProxy',
- xns: Roo.data,
- method : 'GET',
- url : baseURL + '/Roo/core_enum.php'
- },
- reader : {
- xtype: 'JsonReader',
- xns: Roo.data,
- id : 'id',
- root : 'data',
- totalProperty : 'total',
- fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
- }
- }
- },
- {
- xtype: 'ComboBox',
- xns: Roo.form,
- allowBlank : 'false',
- displayField : 'display_name',
- editable : 'false',
- emptyText : "Status",
- fieldLabel : 'Status',
- forceSelection : true,
- hiddenName : 'select status',
- listWidth : 400,
- loadingText : "Searching...",
- minChars : 2,
- name : 'status_display_name',
- pageSize : 20,
- qtip : "Select status",
- queryParam : 'query[etype]',
- selectOnFocus : true,
- tpl : '<div class="x-grid-cell-text x-btn button"><b>{display_name}</b> </div>',
- triggerAction : 'all',
- typeAhead : true,
- valueField : 'id',
- width : 300,
- store : {
- xtype: 'Store',
- xns: Roo.data,
- listeners : {
- beforeload : function (_self, o){
- o.params = o.params || {};
- // set more here
-
- o.params['query[ticket_change]'] = _this.ids;
-
- }
- },
- remoteSort : true,
- sortInfo : { direction : 'ASC', field: 'id' },
- proxy : {
- xtype: 'HttpProxy',
- xns: Roo.data,
- method : 'GET',
- url : baseURL + '/Roo/core_enum.php'
- },
- reader : {
- xtype: 'JsonReader',
- xns: Roo.data,
- id : 'id',
- root : 'data',
- totalProperty : 'total',
- fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
- }
- }
- },
- {
- xtype: 'ComboBox',
- xns: Roo.form,
- allowBlank : 'false',
- editable : 'false',
- emptyText : "Select Person",
- forceSelection : true,
- listWidth : 400,
- loadingText : "Searching...",
- minChars : 2,
- pageSize : 20,
- qtip : "Select Person",
- selectOnFocus : true,
- triggerAction : 'all',
- typeAhead : true,
- width : 300,
- tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
- queryParam : 'query[name]',
- fieldLabel : 'Developer',
- valueField : 'id',
- displayField : 'name',
- hiddenName : 'developer_id',
- name : 'developer_id_name',
- store : {
- xtype: 'Store',
- xns: Roo.data,
- listeners : {
- beforeload : function (_self, o){
- o.params = o.params || {};
- // set more here
- o.params['query[project_id]'] = _this.project_id
- o.params['query[role]'] = 'DEVELOPER';
- }
- },
- remoteSort : true,
- sortInfo : { direction : 'ASC', field: 'id' },
- proxy : {
- xtype: 'HttpProxy',
- xns: Roo.data,
- method : 'GET',
- url : baseURL + '/Roo/Person.php'
- },
- reader : {
- xtype: 'JsonReader',
- xns: Roo.data,
- id : 'id',
- root : 'data',
- totalProperty : 'total',
- fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
- }
- }
- },
- {
- xtype: 'Hidden',
- xns: Roo.form,
- name : 'id'
- }
- ]
- }
- ]
- }
- ],
- center : {
- xtype: 'LayoutRegion',
- xns: Roo
- },
- buttons : [
- {
- xtype: 'Button',
- xns: Roo,
- listeners : {
- click : function (_self, e)
- {
- _this.dialog.hide();
- }
- },
- text : "Cancel"
- },
- {
- xtype: 'Button',
- xns: Roo,
- listeners : {
- click : function (_self, e)
- {
- // do some checks?
- var params = _this.form.getValues();
- params._bulk_update = _this.form.ids;
- Roo.log(params);
- return;
- Pman.Request({
- url : baseURL + '/Roo/mtrack_ticket',
- method : 'POST',
- params : params,
- success : function() {
- _this.dialog.hide();
- }
- });
-
-
- //_this.form.doAction("submit");
-
- }
- },
- text : "Update"
+ },
+
+ create : function()
+ {
+ var _this = this;
+ this.dialog = Roo.factory({
+ xtype : 'LayoutDialog',
+ closable : false,
+ collapsible : false,
+ height : 300,
+ modal : true,
+ resizable : false,
+ title : _this._strings['b18d852fa0d2465fe38b05b96dd5b736'] /* Bulk Update */,
+ width : 500,
+ xns : Roo,
+ '|xns' : 'Roo',
+ center : {
+ xtype : 'LayoutRegion',
+ xns : Roo,
+ '|xns' : 'Roo'
+ },
+ buttons : [
+ {
+ xtype : 'Button',
+ text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
+ listeners : {
+ click : function (_self, e)
+ {
+ _this.dialog.hide();
+ }
+ },
+ xns : Roo,
+ '|xns' : 'Roo'
+ },
+ {
+ xtype : 'Button',
+ text : _this._strings['06933067aafd48425d67bcb01bba5cb6'] /* Update */,
+ listeners : {
+ click : function (_self, e)
+ {
+ // do some checks?
+ var params = _this.form.getValues();
+ params._bulk_update = _this.data.ids;
+
+ Pman.Request({
+ url : baseURL + '/Roo/mtrack_ticket',
+ method : 'POST',
+ params : params,
+ mask: 'updating',
+ success : function(res) {
+ _this.dialog.hide();
+ _this.callback(res);
}
- ]
- });
- }
+ });
+
+
+ //_this.form.doAction("submit");
+
+ }
+ },
+ xns : Roo,
+ '|xns' : 'Roo'
+ }
+ ],
+ items : [
+ {
+ xtype : 'ContentPanel',
+ region : 'center',
+ xns : Roo,
+ '|xns' : 'Roo',
+ items : [
+ {
+ xtype : 'Form',
+ method : 'POST',
+ style : 'margin:10px;',
+ url : baseURL + '/Roo/mtrack_ticket.php',
+ listeners : {
+ actioncomplete : function(_self,action)
+ {
+ if (action.type == 'setdata') {
+
+ _this.form.setValues(_this.data);
+
+ //_this.dialog.el.mask("Loading");
+ //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
+ return;
+ }
+ if (action.type == 'load') {
+
+ return;
+ }
+ if (action.type =='submit') {
+ return;
+ // not used here..
+
+ _this.dialog.hide();
+
+ if (_this.callback) {
+ _this.callback.call(_this, _this.form.getValues());
+ }
+ _this.form.reset();
+ return;
+ }
+ },
+ rendered : function (form)
+ {
+ _this.form= form;
+ }
+ },
+ xns : Roo.form,
+ '|xns' : 'Roo.form',
+ items : [
+ {
+ xtype : 'ComboBox',
+ allowBlank : false,
+ displayField : 'name',
+ editable : false,
+ emptyText : _this._strings['24f27bda5dd2c488aa9bc7700ba98c34'] /* Select Projects */,
+ fieldLabel : _this._strings['9e727fdd3aec8274f46685441900280d'] /* Project */,
+ forceSelection : true,
+ hiddenName : 'project_id',
+ listWidth : 400,
+ loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
+ minChars : 2,
+ name : 'project_id_name',
+ pageSize : 20,
+ qtip : _this._strings['24f27bda5dd2c488aa9bc7700ba98c34'] /* Select Projects */,
+ queryParam : 'query[name]',
+ selectOnFocus : true,
+ tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>',
+ triggerAction : 'all',
+ typeAhead : true,
+ valueField : 'id',
+ width : 300,
+ xns : Roo.form,
+ '|xns' : 'Roo.form',
+ store : {
+ xtype : 'Store',
+ remoteSort : true,
+ sortInfo : { direction : 'ASC', field: 'name' },
+ listeners : {
+ beforeload : function (_self, o){
+ o.params = o.params || {};
+ // set more here
+ }
+ },
+ xns : Roo.data,
+ '|xns' : 'Roo.data',
+ proxy : {
+ xtype : 'HttpProxy',
+ method : 'GET',
+ url : baseURL + '/Roo/core_project',
+ xns : Roo.data,
+ '|xns' : 'Roo.data'
+ },
+ reader : {
+ xtype : 'JsonReader',
+ fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}],
+ id : 'id',
+ root : 'data',
+ totalProperty : 'total',
+ xns : Roo.data,
+ '|xns' : 'Roo.data'
+ }
+ }
+ },
+ {
+ xtype : 'ComboBox',
+ allowBlank : false,
+ displayField : 'display_name',
+ editable : false,
+ emptyText : _this._strings['3cc5fe396ec583c6d9f38f80a06674a4'] /* Select prioirty */,
+ fieldLabel : _this._strings['502996d9790340c5fd7b86a5b93b1c9f'] /* Priority */,
+ forceSelection : true,
+ hiddenName : 'priority_id',
+ listWidth : 400,
+ loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
+ minChars : 2,
+ name : 'priority_id_display_name',
+ pageSize : 20,
+ qtip : _this._strings['6c768695a8efb18436d5b7b4374cdb45'] /* Select core_enum */,
+ queryParam : 'query[etype]',
+ selectOnFocus : true,
+ tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b> </div>',
+ triggerAction : 'all',
+ typeAhead : true,
+ valueField : 'id',
+ width : 300,
+ xns : Roo.form,
+ '|xns' : 'Roo.form',
+ store : {
+ xtype : 'Store',
+ remoteSort : true,
+ sortInfo : { direction : 'ASC', field: 'seqid' },
+ listeners : {
+ beforeload : function (_self, o){
+ o.params = o.params || {};
+ // set more here
+ o.params.etype = 'priority';
+ }
+ },
+ xns : Roo.data,
+ '|xns' : 'Roo.data',
+ proxy : {
+ xtype : 'HttpProxy',
+ method : 'GET',
+ url : baseURL + '/Roo/core_enum.php',
+ xns : Roo.data,
+ '|xns' : 'Roo.data'
+ },
+ reader : {
+ xtype : 'JsonReader',
+ fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}],
+ id : 'id',
+ root : 'data',
+ totalProperty : 'total',
+ xns : Roo.data,
+ '|xns' : 'Roo.data'
+ }
+ }
+ },
+ {
+ xtype : 'ComboBox',
+ allowBlank : false,
+ alwaysQuery : true,
+ displayField : 'display_name',
+ editable : false,
+ emptyText : _this._strings['ec53a8c4f07baed5d8825072c89799be'] /* Status */,
+ fieldLabel : _this._strings['ec53a8c4f07baed5d8825072c89799be'] /* Status */,
+ forceSelection : true,
+ hiddenName : 'status',
+ listWidth : 400,
+ loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
+ minChars : 2,
+ name : 'status_display_name',
+ pageSize : 20,
+ qtip : _this._strings['9aadb017cc5b335be77ba090d5029259'] /* Select status */,
+ queryParam : 'query[etype]',
+ selectOnFocus : true,
+ tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b> </div>',
+ triggerAction : 'all',
+ typeAhead : true,
+ valueField : 'id',
+ width : 300,
+ xns : Roo.form,
+ '|xns' : 'Roo.form',
+ store : {
+ xtype : 'Store',
+ remoteSort : true,
+ sortInfo : { direction : 'ASC', field: 'seqid' },
+ listeners : {
+ beforeload : function (_self, o){
+ o.params = o.params || {};
+ // set more here
+
+ // o.params['query[ticket_change]'] = _this.data.ids;
+ o.params['etype[0]'] = 'ticketstate';
+ o.params['etype[0]'] = 'resolution';
+
+ }
+ },
+ xns : Roo.data,
+ '|xns' : 'Roo.data',
+ proxy : {
+ xtype : 'HttpProxy',
+ method : 'GET',
+ url : baseURL + '/Roo/core_enum.php',
+ xns : Roo.data,
+ '|xns' : 'Roo.data'
+ },
+ reader : {
+ xtype : 'JsonReader',
+ fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}],
+ id : 'id',
+ root : 'data',
+ totalProperty : 'total',
+ xns : Roo.data,
+ '|xns' : 'Roo.data'
+ }
+ }
+ },
+ {
+ xtype : 'ComboBox',
+ allowBlank : false,
+ displayField : 'name',
+ editable : false,
+ emptyText : _this._strings['340c2ee497b85d5954b01c64de7f44f6'] /* Select Person */,
+ fieldLabel : _this._strings['672caf27f5363dc833bda5099775e891'] /* Developer */,
+ forceSelection : true,
+ hiddenName : 'developer_id',
+ listWidth : 400,
+ loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
+ minChars : 2,
+ name : 'developer_id_name',
+ pageSize : 20,
+ qtip : _this._strings['340c2ee497b85d5954b01c64de7f44f6'] /* Select Person */,
+ queryParam : 'query[name]',
+ selectOnFocus : true,
+ tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> {email} </div>',
+ triggerAction : 'all',
+ typeAhead : true,
+ valueField : 'id',
+ width : 300,
+ xns : Roo.form,
+ '|xns' : 'Roo.form',
+ store : {
+ xtype : 'Store',
+ remoteSort : true,
+ sortInfo : { direction : 'ASC', field: 'name' },
+ listeners : {
+ beforeload : function (_self, o){
+ o.params = o.params || {};
+ // set more here
+ o.params['query[project_id]'] = _this.data.project_id;
+ o.params['query[role]'] = 'DEVELOPER';
+ }
+ },
+ xns : Roo.data,
+ '|xns' : 'Roo.data',
+ proxy : {
+ xtype : 'HttpProxy',
+ method : 'GET',
+ url : baseURL + '/Roo/Person.php',
+ xns : Roo.data,
+ '|xns' : 'Roo.data'
+ },
+ reader : {
+ xtype : 'JsonReader',
+ fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}],
+ id : 'id',
+ root : 'data',
+ totalProperty : 'total',
+ xns : Roo.data,
+ '|xns' : 'Roo.data'
+ }
+ }
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ });
+ }
};