"name" : "Pman.Tab.AdminCompanies",
"parent" : "Pman.Tab.Admin",
"title" : "Pman.Tab.AdminCompanies",
- "path" : "/home/edward/gitlive/Pman.Admin/Pman.Tab.AdminCompanies.bjs",
+ "path" : "/home/alan/gitlive/Pman.Admin/Pman.Tab.AdminCompanies.bjs",
"permname" : "Admin.Companies",
"modOrder" : "030",
"strings" : {
"ec211f7c20af43e742bf2570c3cb84f9" : "Add",
"fc6f97505d89fe9277965c126744647a" : "No Companies found",
"7dce122004969d56ae2e0245cb754d35" : "Edit",
+ "68be4837f6c739877233e527a996dd00" : "Merge",
"155ca6a755e25c15ad7ce45e2f638f10" : "Displaying Companies{0} - {1} of {2}",
"f2a6c498fb90ee345d997f888fce3b18" : "Delete",
"a1fa27779242b4902f7ae3bdd5c6d508" : "Type",
"items" : [
{
"region" : "center",
- "title" : "Companies",
"xtype" : "NestedLayoutPanel",
+ "title" : "Companies",
"$ xns" : "Roo",
"items" : [
{
+ "Object listeners" : "",
"xtype" : "BorderLayout",
"$ xns" : "Roo",
"* prop" : "layout",
"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,
"items" : [
{
"listeners" : {
- "|rowdblclick" : "function (_self, rowIndex, e)\n{\n if (!_this.dialog) return;\n _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {\n _this.grid.footer.onClick('first');\n }); \n \n \n}\n",
+ "|rowdblclick" : "function (_self, rowIndex, e)\n{\n if (!_this.dialog) {\n return;\n }\n _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {\n _this.grid.footer.onClick('first');\n }); \n \n \n}\n",
"|render" : "function() \n{\n _this.grid = this; \n _this.dialog = Pman.Dialog.Companies;\n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}",
"rowclick" : "function (_self, rowIndex, e)\n{\n try { Pman.Tab.AdminOffice.grid.footer.onClick('refresh'); } catch(e) {}\n}"
},
"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",
"listeners" : {
"load" : "function (This, o, arg)\n{\n \n}"
},
- "$ url" : "baseURL + '/Roo/Companies.php'",
- "method" : "GET",
+ "$ url" : "baseURL + '/Roo/core_company'",
"xtype" : "HttpProxy",
+ "method" : "GET",
"$ xns" : "Roo.data",
"* prop" : "proxy"
},
},
{
"listeners" : {
- "|click" : "function()\n{\n if (!_this.dialog) return;\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
+ "|click" : "function()\n{\n var s = _this.grid.getSelectionModel().getSelections();\n \n if (!s.length || (s.length > 1)) {\n Roo.MessageBox.alert(\"Error\", s.length ? \"Select only one Row\" : \"Select a Row\");\n return;\n }\n \n Pman.Dialog.AdminCompanyMerge.show(s[0].data, function() {\n _this.grid.footer.onClick('first');\n }); \n \n}\n"
+ },
+ "text" : "Merge",
+ "xtype" : "Button",
+ "cls" : "x-btn-text-icon",
+ "$ icon" : "Roo.rootURL + 'images/default/tree/leaf.gif'",
+ "$ xns" : "Roo.Toolbar"
+ },
+ {
+ "xtype" : "Separator",
+ "$ xns" : "Roo.Toolbar"
+ },
+ {
+ "listeners" : {
+ "|click" : "function()\n{\n if (!_this.dialog) {\n return;\n }\n _this.dialog.show( { id : 0 } , function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
},
"text" : "Add",
"xtype" : "Button",
},
{
"listeners" : {
- "|click" : "function()\n{\n var s = _this.grid.getSelectionModel().getSelections();\n if (!s.length || (s.length > 1)) {\n Roo.MessageBox.alert(\"Error\", s.length ? \"Select only one Row\" : \"Select a Row\");\n return;\n }\n if (!_this.dialog) return;\n _this.dialog.show(s[0].data, function() {\n _this.grid.footer.onClick('first');\n }); \n \n}\n"
+ "|click" : "function()\n{\n var s = _this.grid.getSelectionModel().getSelections();\n if (!s.length || (s.length > 1)) {\n Roo.MessageBox.alert(\"Error\", s.length ? \"Select only one Row\" : \"Select a Row\");\n return;\n }\n if (!_this.dialog) {\n return;\n }\n _this.dialog.show(s[0].data, function() {\n _this.grid.footer.onClick('first');\n }); \n \n}\n"
},
"text" : "Edit",
"xtype" : "Button",
},
{
"listeners" : {
- "|click" : "function()\n{\n Pman.genericDelete(_this, 'Companies'); \n}\n "
+ "|click" : "function()\n{\n Pman.genericDelete(_this, 'core_company'); \n}\n "
},
"text" : "Delete",
"xtype" : "Button",
"$ renderer" : "function (v,x ,r) {\n //return Pman.Dialog.Companies.comptypeListToString(r.data.isOwner ? 'OWNER' : v);\n return v;\n}",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",
- "dataIndex" : "comptype"
+ "dataIndex" : "comptype_id_display_name"
},
{
"xtype" : "ColumnModel",
},
{
"xtype" : "ColumnModel",
- "width" : 100,
"header" : "Tel",
+ "width" : 100,
"$ renderer" : "function(v) { return String.format('{0}', v); }",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",
},
{
"xtype" : "ColumnModel",
- "width" : 100,
"header" : "Fax",
+ "width" : 100,
"$ renderer" : "function(v) { return String.format('{0}', v); }",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",
},
{
"xtype" : "ColumnModel",
- "header" : "Remarks",
"width" : 200,
+ "header" : "Remarks",
"$ renderer" : "function(v) { return String.format('{0}', v); }",
"$ xns" : "Roo.grid",
"* prop" : "colModel[]",