"name" : "Pman.Dialog.AdminCompanyMerge",
"parent" : "",
"title" : "",
- "path" : "/home/edward/gitlive/Pman.Admin/Pman.Dialog.AdminCompanyMerge.bjs",
+ "path" : "/home/benny/gitlive/web.hhyc_membership_system/Pman.Admin/Pman.Dialog.AdminCompanyMerge.bjs",
"permname" : "",
"modOrder" : "001",
"strings" : {
"items" : [
{
"listeners" : {
- "show" : "function (_self)\n{\n if (_this.isBuilder) {\n _this.data = { id : 2, comptype : 'SUPPLIER' }\n }\n}"
+ "show" : "function (_self)\n{\n \n}"
},
"modal" : true,
"collapsible" : false,
{
"listeners" : {
"actionfailed" : "function (_self, action)\n{\n \n Pman.standardActionFailed(_self, action);\n}\n",
- "actioncomplete" : "function (_self, action)\n{\n\n if (action.type =='submit') {\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 if (action.type == 'setdata') {\n \n var title = _this.data.title || _this.data.etype;\n _this.dialog.setTitle(\"Delete selected \" + title + \" and merge data with\");\n \n return;\n }\n \n}\n",
- "rendered" : "function (form)\n{\n _this.form = form;\n}"
+ "rendered" : "function (form)\n{\n _this.form = form;\n}",
+ "actioncomplete" : "function (_self, action)\n{\n\n if (action.type =='submit') {\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 if (action.type == 'setdata') {\n \n _this.dialog.setTitle(\"Delete selected \" + _this.data.name + \" and merge data with\");\n \n return;\n }\n \n}\n"
},
- "$ url" : "baseURL + '/Roo/Core_enum.php'",
- "method" : "POST",
+ "$ url" : "baseURL + '/Roo/Core_company.php'",
"xtype" : "Form",
+ "method" : "POST",
"style" : "margin: 10px;",
"$ xns" : "Roo.form",
"items" : [
"fieldLabel" : "Merge with",
"forceSelection" : true,
"selectOnFocus" : true,
- "pageSize" : 20,
+ "pageSize" : 25,
"displayField" : "name",
"emptyText" : "Select Item to Merge With",
"hiddenName" : "_merge_id",
"$ xns" : "Roo.form",
"name" : "_merge_id_name",
"qtip" : "Select Item to Merge With",
- "queryParam" : "query[search_begins]",
- "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b> {name}</div>",
+ "queryParam" : "search[name]",
+ "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b></div>",
"loadingText" : "Searching...",
"items" : [
{
"listeners" : {
- "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n \n o.params['etype'] = _this.data.etype;\n \n o.params['!id'] = _this.form.findField('id').getValue();\n // set more here\n}\n"
+ "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n \n o.params['!id'] = _this.form.findField('id').getValue();\n}\n"
},
"xtype" : "Store",
"remoteSort" : true,
"* prop" : "store",
"items" : [
{
- "$ url" : "baseURL + '/Roo/Core_enum'",
- "xtype" : "HttpProxy",
+ "$ url" : "baseURL + '/Roo/Core_company'",
"method" : "GET",
+ "xtype" : "HttpProxy",
"$ xns" : "Roo.data",
"* prop" : "proxy"
},
"id" : "id",
"root" : "data",
"xtype" : "JsonReader",
- "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]",
+ "$ fields" : "[\n {\n \"name\":\"id\",\n \"type\":\"int\"\n },\n {\n \"name\":\"name\",\n \"type\":\"string\"\n }\n]",
"$ xns" : "Roo.data",
"* prop" : "reader",
"totalProperty" : "total"
}
]
},
- {
- "xtype" : "Hidden",
- "$ xns" : "Roo.form",
- "name" : "etype"
- },
{
"xtype" : "Hidden",
"$ xns" : "Roo.form",