From 0b7e17516532308fa78924dc37e536ca01922b1d Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 22 Jun 2018 14:20:57 +0800 Subject: [PATCH] Pman.Tab.AdminCompanies.bjs Pman.Tab.AdminCompanies.js --- Pman.Tab.AdminCompanies.bjs | 16 ++++++++-------- Pman.Tab.AdminCompanies.js | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Pman.Tab.AdminCompanies.bjs b/Pman.Tab.AdminCompanies.bjs index 73b5b8f..c13d5c5 100644 --- a/Pman.Tab.AdminCompanies.bjs +++ b/Pman.Tab.AdminCompanies.bjs @@ -2,7 +2,7 @@ "name" : "Pman.Tab.AdminCompanies", "parent" : "Pman.Tab.Admin", "title" : "Pman.Tab.AdminCompanies", - "path" : "/home/johns/gitlive/web.coba/Pman/Admin/Pman.Admin/Pman.Admin/Pman.Admin/Pman.Tab.AdminCompanies.bjs", + "path" : "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminCompanies.bjs", "permname" : "Admin.Companies", "modOrder" : "030", "strings" : { @@ -25,8 +25,8 @@ "items" : [ { "region" : "center", - "xtype" : "NestedLayoutPanel", "title" : "Companies", + "xtype" : "NestedLayoutPanel", "$ xns" : "Roo", "items" : [ { @@ -52,9 +52,9 @@ "listeners" : { "|activate" : "function() {\n _this.panel = this;\n if (_this.grid) {\n _this.grid.footer.onClick('first');\n }\n}" }, + "background" : true, "region" : "center", "fitToframe" : true, - "background" : true, "title" : "Companies", "xtype" : "GridPanel", "fitContainer" : true, @@ -75,7 +75,7 @@ "items" : [ { "listeners" : { - "beforeload" : "function (_self, o)\n{\n o.params = o.params || {};\n try {\n o.params['query[name]'] = _this.searchBox.getValue();\n } catch(e) { return false; }\n}", + "beforeload" : "function (_self, o)\n{\n o.params = o.params || {};\n try {\n o.params['search[name]'] = _this.searchBox.getValue();\n } catch(e) { return false; }\n}", "load" : "function (_self, records, options)\n{\n try {\n Pman.Tab.AdminOffice.grid.footer.onClick('refresh');\n } catch (e) {}\n}" }, "xtype" : "Store", @@ -89,8 +89,8 @@ "load" : "function (This, o, arg)\n{\n \n}" }, "$ url" : "baseURL + '/Roo/core_company'", - "xtype" : "HttpProxy", "method" : "GET", + "xtype" : "HttpProxy", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -228,8 +228,8 @@ }, { "xtype" : "ColumnModel", - "header" : "Tel", "width" : 100, + "header" : "Tel", "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", @@ -237,8 +237,8 @@ }, { "xtype" : "ColumnModel", - "header" : "Fax", "width" : 100, + "header" : "Fax", "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", @@ -266,8 +266,8 @@ }, { "xtype" : "ColumnModel", - "width" : 200, "header" : "Remarks", + "width" : 200, "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", diff --git a/Pman.Tab.AdminCompanies.js b/Pman.Tab.AdminCompanies.js index 9731eeb..0feb97c 100644 --- a/Pman.Tab.AdminCompanies.js +++ b/Pman.Tab.AdminCompanies.js @@ -274,7 +274,7 @@ Pman.Tab.AdminCompanies = new Roo.XComponent({ { o.params = o.params || {}; try { - o.params['query[name]'] = _this.searchBox.getValue(); + o.params['search[name]'] = _this.searchBox.getValue(); } catch(e) { return false; } }, load : function (_self, records, options) -- 2.39.2