"name" : "Pman.Tab.BAdminCompany",
"parent" : "Pman.Tab.BAdmin",
"title" : "",
- "path" : "/home/edward/gitlive/Pman.BAdmin/Pman.Tab.BAdminCompany.bjs",
+ "path" : "/home/alan/gitlive/Pman.BAdmin/Pman.Tab.BAdminCompany.bjs",
"permname" : "",
"modOrder" : "002",
"strings" : {
"edefbda3a2bdd979e42d8944b7325b79" : "Companies",
"b80bb7740288fda1f201890375a60c8f" : "id",
"fc6f97505d89fe9277965c126744647a" : "No Companies found",
+ "694e249c3a9503141fa5ce3fb71d5477" : "<i class=\"fa fa-edit\"></i> Edit",
"155ca6a755e25c15ad7ce45e2f638f10" : "Displaying Companies{0} - {1} of {2}",
"fd5293a712d172f5c556a83c62d44bd6" : "<i class=\"fa fa-plus\"></i> Add",
"ed807858fcb68abdd180481f1fcba5c5" : "<i class=\"fa fa-trash\"></i> Delete",
"f78e208016407d8756c29673558ac14d" : "Company List",
- "cd141800fe342ad87f3ed93fbb267ab5" : "<i class=\"fa fa-pencil\"></i> Edit",
"a1fa27779242b4902f7ae3bdd5c6d508" : "Type",
"9c9745a343efeacc9efe9b7222b27afb" : "Ref#",
"49ee3087348e8d44e1feda1917443987" : "Name",
"dd7bf230fde8d4836917806aff6a6b27" : "Address",
"9810aa2b9f44401be4bf73188ef2b67d" : "Fax"
},
+ "named_strings" : {
+ "footer_displayMsg" : "155ca6a755e25c15ad7ce45e2f638f10",
+ "footer_emptyMsg" : "fc6f97505d89fe9277965c126744647a"
+ },
"items" : [
{
"xtype" : "Nest",
{
"xtype" : "NavItem",
"$ xns" : "Roo.bootstrap",
- "String style" : "float: left",
"items" : [
{
- "listeners" : {
- "click" : "function (_self, e)\n{\n Pman.Dialog.BAdminCompany.show({}, function() {\n if (_this.table) {\n _this.table.footer.onClick('first');\n }\n }); \n}"
- },
- "String weight" : "default",
- "xtype" : "Button",
- "$ xns" : "Roo.bootstrap",
- "String html" : "<i class=\"fa fa-plus\"></i> Add",
- "String style" : "margin: 10px;"
- },
- {
- "listeners" : {
- "render" : "function (_self)\n{\n _this.edit_btn = this;\n \n this.hide();\n}",
- "click" : "function (_self, e)\n{\n var s = _this.grid.grid.selModel.getSelections();\n if (!s.length || (s.length > 1)) {\n Roo.bootstrap.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 if (_this.table) {\n _this.table.footer.onClick('first');\n }\n }); \n \n}"
- },
- "String weight" : "default",
- "xtype" : "Button",
+ "xtype" : "Element",
"$ xns" : "Roo.bootstrap",
- "String html" : "<i class=\"fa fa-pencil\"></i> Edit",
- "String style" : "margin: 10px;"
- },
- {
- "listeners" : {
- "render" : "function (_self)\n{\n _this.delete_btn = this;\n \n this.hide();\n}",
- "click" : "function (_self, e)\n{\n Pman.genericDelete(_this.grid, 'core_company'); \n}"
- },
- "String weight" : "primary",
- "xtype" : "Button",
- "$ xns" : "Roo.bootstrap",
- "String html" : "<i class=\"fa fa-trash\"></i> Delete",
- "String style" : "margin: 10px;"
+ "items" : [
+ {
+ "String cls" : "roo-toolbar",
+ "xtype" : "Row",
+ "$ xns" : "Roo.bootstrap",
+ "items" : [
+ {
+ "Number md" : 12,
+ "xtype" : "Column",
+ "$ xns" : "Roo.bootstrap",
+ "items" : [
+ {
+ "listeners" : {
+ "click" : "function (_self, e)\n{\n Pman.Dialog.BAdminCompany.show({}, function() {\n if (_this.table) {\n _this.table.footer.onClick('first');\n }\n }); \n}"
+ },
+ "String cls" : "roo-toolbar-button",
+ "String weight" : "default",
+ "xtype" : "Button",
+ "$ xns" : "Roo.bootstrap",
+ "String html" : "<i class=\"fa fa-plus\"></i> Add"
+ },
+ {
+ "listeners" : {
+ "render" : "function (_self)\n{\n _this.edit_btn = this;\n \n this.hide();\n}",
+ "click" : "function (_self, e)\n{\n var s = _this.table.getSelectionModel().getSelected();\n \n if (!s || s.data.id * 1 < 1) {\n Roo.bootstrap.MessageBox.alert(\"Error\", 'Please select a company');\n return;\n }\n \n Pman.Dialog.BAdminCompany.show({\n id : s.data.id\n }, function() {\n if (_this.table) {\n _this.table.footer.onClick('refresh');\n }\n });\n \n \n}"
+ },
+ "String cls" : "roo-toolbar-button",
+ "String weight" : "default",
+ "xtype" : "Button",
+ "$ xns" : "Roo.bootstrap",
+ "String html" : "<i class=\"fa fa-edit\"></i> Edit"
+ },
+ {
+ "listeners" : {
+ "render" : "function (_self)\n{\n _this.delete_btn = this;\n \n this.hide();\n}",
+ "click" : "function (_self, e)\n{\n Pman.genericDelete(_this.grid, 'core_company'); \n}"
+ },
+ "String cls" : "roo-toolbar-button",
+ "String weight" : "primary",
+ "xtype" : "Button",
+ "$ xns" : "Roo.bootstrap",
+ "String html" : "<i class=\"fa fa-trash\"></i> Delete"
+ }
+ ]
+ }
+ ]
+ }
+ ]
}
]
}
"listeners" : {
"rowdblclick" : "function (_self, el, rowIndex, e)\n{\n var s = _this.table.store.getAt(rowIndex);\n \n if(!s || s.data.id * 1 < 1){\n return;\n }\n \n Pman.Dialog.BAdminCompany.show({\n id : s.data.id\n }, function() {\n if (_this.table) {\n _this.table.footer.onClick('refresh');\n }\n });\n}",
"render" : "function (_self)\n{\n _this.table = this;\n}",
- "rowclick" : "function (_self, el, rowIndex, e)\n{\n\n}"
+ "rowclick" : "function (_self, el, rowIndex, e)\n{\n (function(){\n \n _this.edit_btn.hide();\n _this.delete_btn.hide();\n \n var s = _this.table.getSelectionModel().getSelected();\n \n if (!s || s.data.id * 1 < 1) {\n return;\n }\n \n _this.edit_btn.show();\n _this.delete_btn.show();\n \n }).defer(100);\n \n}"
},
"String cls" : "table-fixed",
"boolean striped" : false,
"boolean hover" : true,
"xtype" : "Table",
- "boolean responsive" : true,
"Boolean rowSelection" : true,
"$ xns" : "Roo.bootstrap",
"Boolean loadMask" : true,
"* prop" : "grid",
"items" : [
+ {
+ "Boolean singleSelect" : true,
+ "xtype" : "RowSelectionModel",
+ "$ xns" : "Roo.bootstrap.Table",
+ "* prop" : "sm"
+ },
{
"listeners" : {
- "beforeload" : "function (_self, options)\n{\n options.params = options.params || {};\n}"
+ "beforeload" : "function (_self, options)\n{\n if (!Pman.buildCompleted) {\n return false;\n }\n \n options.params = options.params || {};\n}",
+ "load" : "function (_self, records, options)\n{\n _this.delete_btn.hide();\n _this.edit_btn.hide();\n}"
},
"boolean hover" : true,
"boolean striped" : true,