{ "name" : "Pman.Dialog.MTrackBulkChange", "parent" : "", "title" : "", "path" : "/home/alan/gitlive/Pman.MTrack/Pman.Dialog.MTrackBulkChange.bjs", "permname" : "", "modOrder" : "001", "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", "developer_id_name_loadingText" : "1243daf593fa297e07ab03bf06d925af", "project_id_name_emptyText" : "24f27bda5dd2c488aa9bc7700ba98c34", "priority_id_display_name_qtip" : "6c768695a8efb18436d5b7b4374cdb45", "status_display_name_qtip" : "9aadb017cc5b335be77ba090d5029259", "priority_id_display_name_emptyText" : "3cc5fe396ec583c6d9f38f80a06674a4", "developer_id_name_emptyText" : "340c2ee497b85d5954b01c64de7f44f6", "project_id_name_loadingText" : "1243daf593fa297e07ab03bf06d925af", "priority_id_display_name_fieldLabel" : "502996d9790340c5fd7b86a5b93b1c9f", "project_id_name_qtip" : "24f27bda5dd2c488aa9bc7700ba98c34", "status_display_name_loadingText" : "1243daf593fa297e07ab03bf06d925af", "developer_id_name_qtip" : "340c2ee497b85d5954b01c64de7f44f6", "project_id_name_fieldLabel" : "9e727fdd3aec8274f46685441900280d", "status_display_name_fieldLabel" : "ec53a8c4f07baed5d8825072c89799be", "priority_id_display_name_loadingText" : "1243daf593fa297e07ab03bf06d925af", "developer_id_name_fieldLabel" : "672caf27f5363dc833bda5099775e891" }, "items" : [ { "modal" : true, "collapsible" : false, "title" : "Bulk Update", "xtype" : "LayoutDialog", "width" : 500, "$ xns" : "Roo", "closable" : false, "resizable" : false, "height" : 300, "items" : [ { "xtype" : "LayoutRegion", "$ xns" : "Roo", "* prop" : "center" }, { "region" : "center", "xtype" : "ContentPanel", "$ xns" : "Roo", "items" : [ { "listeners" : { "|actioncomplete" : "function(_self,action)\n{\n if (action.type == 'setdata') {\n \n _this.form.setValues(_this.data);\n \n //_this.dialog.el.mask(\"Loading\");\n //this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n return;\n }\n if (action.type == 'load') {\n \n return;\n }\n if (action.type =='submit') {\n return;\n // not used here..\n \n _this.dialog.hide();\n \n if (_this.callback) {\n _this.callback.call(_this, _this.form.getValues());\n }\n _this.form.reset();\n return;\n }\n}\n", "|rendered" : "function (form)\n{\n _this.form= form;\n}\n" }, "$ url" : "baseURL + '/Roo/mtrack_ticket.php'", "method" : "POST", "xtype" : "Form", "style" : "margin:10px;", "$ xns" : "Roo.form", "items" : [ { "listWidth" : 400, "triggerAction" : "all", "forceSelection" : true, "selectOnFocus" : true, "fieldLabel" : "Project", "pageSize" : 20, "xtype" : "ComboBox", "emptyText" : "Select Projects", "minChars" : 2, "valueField" : "id", "displayField" : "name", "hiddenName" : "project_id", "allowBlank" : false, "typeAhead" : true, "editable" : false, "$ xns" : "Roo.form", "width" : 300, "qtip" : "Select Projects", "tpl" : "
{name}
", "queryParam" : "query[name]", "name" : "project_id_name", "loadingText" : "Searching...", "items" : [ { "listeners" : { "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n" }, "xtype" : "Store", "remoteSort" : true, "$ sortInfo" : "{ direction : 'ASC', field: 'name' }", "$ xns" : "Roo.data", "* prop" : "store", "items" : [ { "$ url" : "baseURL + '/Roo/Projects.php'", "xtype" : "HttpProxy", "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, { "id" : "id", "root" : "data", "xtype" : "JsonReader", "$ xns" : "Roo.data", "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]", "* prop" : "reader", "totalProperty" : "total" } ] } ] }, { "listWidth" : 400, "triggerAction" : "all", "fieldLabel" : "Priority", "forceSelection" : true, "selectOnFocus" : true, "pageSize" : 20, "displayField" : "display_name", "emptyText" : "Select prioirty", "hiddenName" : "priority_id", "minChars" : 2, "valueField" : "id", "xtype" : "ComboBox", "allowBlank" : false, "typeAhead" : true, "editable" : false, "width" : 300, "$ xns" : "Roo.form", "name" : "priority_id_display_name", "qtip" : "Select core_enum", "queryParam" : "query[etype]", "tpl" : "
{display_name}
", "loadingText" : "Searching...", "items" : [ { "listeners" : { "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n // set more here\n o.params.etype = 'priority';\n}\n" }, "xtype" : "Store", "remoteSort" : true, "$ sortInfo" : "{ direction : 'ASC', field: 'seqid' }", "$ xns" : "Roo.data", "* prop" : "store", "items" : [ { "$ url" : "baseURL + '/Roo/core_enum.php'", "xtype" : "HttpProxy", "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, { "id" : "id", "root" : "data", "xtype" : "JsonReader", "$ xns" : "Roo.data", "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"etype\",\"type\":\"string\"}]", "* prop" : "reader", "totalProperty" : "total" } ] } ] }, { "alwaysQuery" : true, "listWidth" : 400, "triggerAction" : "all", "fieldLabel" : "Status", "forceSelection" : true, "selectOnFocus" : true, "pageSize" : 20, "displayField" : "display_name", "emptyText" : "Status", "hiddenName" : "status", "minChars" : 2, "valueField" : "id", "xtype" : "ComboBox", "allowBlank" : false, "typeAhead" : true, "editable" : false, "width" : 300, "$ xns" : "Roo.form", "name" : "status_display_name", "qtip" : "Select status", "queryParam" : "query[etype]", "tpl" : "
{display_name}
", "loadingText" : "Searching...", "items" : [ { "listeners" : { "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n // set more here\n \n // o.params['query[ticket_change]'] = _this.data.ids;\n o.params['etype[0]'] = 'ticketstate';\n o.params['etype[0]'] = 'resolution'; \n \n}\n" }, "xtype" : "Store", "remoteSort" : true, "$ sortInfo" : "{ direction : 'ASC', field: 'seqid' }", "$ xns" : "Roo.data", "* prop" : "store", "items" : [ { "$ url" : "baseURL + '/Roo/core_enum.php'", "xtype" : "HttpProxy", "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, { "id" : "id", "root" : "data", "xtype" : "JsonReader", "$ xns" : "Roo.data", "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"etype\",\"type\":\"string\"}]", "* prop" : "reader", "totalProperty" : "total" } ] } ] }, { "listWidth" : 400, "triggerAction" : "all", "fieldLabel" : "Developer", "forceSelection" : true, "selectOnFocus" : true, "pageSize" : 20, "displayField" : "name", "emptyText" : "Select Person", "hiddenName" : "developer_id", "minChars" : 2, "valueField" : "id", "xtype" : "ComboBox", "allowBlank" : false, "typeAhead" : true, "editable" : false, "width" : 300, "$ xns" : "Roo.form", "name" : "developer_id_name", "qtip" : "Select Person", "queryParam" : "query[name]", "tpl" : "
{name} {email}
", "loadingText" : "Searching...", "items" : [ { "listeners" : { "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n // set more here\n o.params['query[project_id]'] = _this.data.project_id;\n o.params['query[role]'] = 'DEVELOPER';\n}\n" }, "xtype" : "Store", "remoteSort" : true, "$ sortInfo" : "{ direction : 'ASC', field: 'name' }", "$ xns" : "Roo.data", "* prop" : "store", "items" : [ { "$ url" : "baseURL + '/Roo/Person.php'", "xtype" : "HttpProxy", "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, { "id" : "id", "root" : "data", "xtype" : "JsonReader", "$ xns" : "Roo.data", "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]", "* prop" : "reader", "totalProperty" : "total" } ] } ] } ] } ] }, { "listeners" : { "click" : "function (_self, e)\n{\n _this.dialog.hide();\n}" }, "text" : "Cancel", "xtype" : "Button", "$ xns" : "Roo", "* prop" : "buttons[]" }, { "listeners" : { "click" : "function (_self, e)\n{\n // do some checks?\n var params = _this.form.getValues();\n params._bulk_update = _this.data.ids;\n \n Pman.Request({\n url : baseURL + '/Roo/mtrack_ticket',\n method : 'POST',\n params : params,\n mask: 'updating',\n success : function(res) {\n _this.dialog.hide();\n _this.callback(res);\n }\n });\n\n \n //_this.form.doAction(\"submit\");\n\n}" }, "text" : "Update", "xtype" : "Button", "$ xns" : "Roo", "* prop" : "buttons[]" } ] } ] }