From 1f75655d275c35f47943637c50fb14966d5df0ed Mon Sep 17 00:00:00 2001 From: benny Date: Thu, 12 Jul 2018 16:13:51 +0800 Subject: [PATCH] Pman.Tab.AdminContacts.bjs Pman.Tab.AdminContacts.js --- Pman.Tab.AdminContacts.bjs | 18 +++++++++--------- Pman.Tab.AdminContacts.js | 5 +++++ 2 files changed, 14 insertions(+), 9 deletions(-) diff --git a/Pman.Tab.AdminContacts.bjs b/Pman.Tab.AdminContacts.bjs index 5a8e7a5..cff126d 100644 --- a/Pman.Tab.AdminContacts.bjs +++ b/Pman.Tab.AdminContacts.bjs @@ -2,7 +2,7 @@ "name" : "Pman.Tab.AdminContacts", "parent" : "Pman.Tab.AdminContactsManager", "title" : "Pman.Tab.AdminContacts", - "path" : "/home/khlau/gitlive/web.coba/Pman.Admin/Pman.Tab.AdminContacts.bjs", + "path" : "/home/benny/gitlive/Pman.Admin/Pman.Tab.AdminContacts.bjs", "permname" : "Core.Person", "modOrder" : "001", "strings" : { @@ -49,8 +49,8 @@ { "listeners" : { "|rowdblclick" : "function (_self, rowIndex, e)\n{\n if (!_this.dialog) {\n return;\n }\n _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {\n _this.grid.footer.onClick('first');\n }); \n}\n", - "cellclick" : "function (_self, rowIndex, columnIndex, e)\n{\n\n var di = this.colModel.getDataIndex(columnIndex);\n if (di != 'active') {\n return;\n }\n \n var rec = _this.grid.ds.getAt(rowIndex);\n \n rec.set('active', rec.data.active ? 0 : 1);\n rec.commit();\n \n \n}", - "|render" : "function() \n{\n _this.grid = this; \n if (!_this.dialog) {\n _this.dialog = Pman.Dialog.PersonEdit;\n \n }\n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}" + "|render" : "function() \n{\n _this.grid = this; \n if (!_this.dialog) {\n _this.dialog = Pman.Dialog.PersonEdit;\n \n }\n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}", + "cellclick" : "function (_self, rowIndex, columnIndex, e)\n{\n\n var di = this.colModel.getDataIndex(columnIndex);\n if (di != 'active') {\n return;\n }\n \n var rec = _this.grid.ds.getAt(rowIndex);\n \n rec.set('active', rec.data.active ? 0 : 1);\n rec.commit();\n \n \n}" }, "autoExpandColumn" : "name", "xtype" : "Grid", @@ -73,8 +73,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/Person.php'", - "method" : "GET", "xtype" : "HttpProxy", + "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -161,8 +161,8 @@ "items" : [ { "$ url" : "baseURL + '/Roo/core_company'", - "method" : "GET", "xtype" : "HttpProxy", + "method" : "GET", "$ xns" : "Roo.data", "* prop" : "proxy" }, @@ -314,8 +314,8 @@ }, { "xtype" : "ColumnModel", - "header" : "Role", "width" : 100, + "header" : "Role", "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", @@ -323,8 +323,8 @@ }, { "xtype" : "ColumnModel", - "header" : "Phone", "width" : 100, + "header" : "Phone", "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", @@ -332,8 +332,8 @@ }, { "xtype" : "ColumnModel", - "header" : "Fax", "width" : 100, + "header" : "Fax", "$ renderer" : "function(v) { return String.format('{0}', v); }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", @@ -351,8 +351,8 @@ }, { "xtype" : "ColumnModel", - "header" : "Active", "width" : 75, + "header" : "Active", "$ renderer" : "function(v) { \n var state = v> 0 ? '-checked' : '';\n\n return '';\n \n }", "$ xns" : "Roo.grid", "* prop" : "colModel[]", diff --git a/Pman.Tab.AdminContacts.js b/Pman.Tab.AdminContacts.js index 078b8eb..43c4032 100644 --- a/Pman.Tab.AdminContacts.js +++ b/Pman.Tab.AdminContacts.js @@ -32,6 +32,11 @@ Pman.Tab.AdminContacts = new Roo.XComponent({ 'd4d25ad0a12e8d30e9d8d35230f6d1d3' :"Show Removed", '9810aa2b9f44401be4bf73188ef2b67d' :"Fax" }, + _named_strings : { + 'company_name_emptyText' : '99b344c8ae43e3e7213862b8f35c4e51' /* Select Company */ , + 'company_name_qtip' : '9675747b5ab12d05f18518761e68a533' /* Select Companies */ , + 'company_name_loadingText' : '1243daf593fa297e07ab03bf06d925af' /* Searching... */ + }, part : ["Admin", "Contacts" ], order : '001-Pman.Tab.AdminContacts', -- 2.39.2