"name" : "Pman.Tab.BAdminIPAccess",
"parent" : "Pman.Tab.BAdmin",
"title" : "",
- "path" : "/home/edward/gitlive/Pman.BAdmin/Pman.Tab.BAdminIPAccess.bjs",
+ "path" : "/home/alan/gitlive/Pman.BAdmin/Pman.Tab.BAdminIPAccess.bjs",
"permname" : "",
"modOrder" : "006",
"strings" : {
"86f16ddf147752b95ffe69e2dfa769a1" : "Authorized By",
"ec53a8c4f07baed5d8825072c89799be" : "Status",
"7dce122004969d56ae2e0245cb754d35" : "Edit",
+ "fc6f97505d89fe9277965c126744647a" : "No Companies found",
"11e8622b4aa4b1924aee81a9ec54c555" : "Create Date",
"a12a3079e14ced46e69ba52b8a90b21a" : "IP",
- "dae8ace18bdcbcc6ae5aece263e14fe8" : "Options",
+ "155ca6a755e25c15ad7ce45e2f638f10" : "Displaying Companies{0} - {1} of {2}",
"5a787141d53b573ec9b86e900bfe0d79" : "Expire Date",
"f2a6c498fb90ee345d997f888fce3b18" : "Delete",
"e3030abfa75de4573fb37032affa11e7" : "IP Access"
},
+ "named_strings" : {
+ "footer_displayMsg" : "155ca6a755e25c15ad7ce45e2f638f10",
+ "footer_emptyMsg" : "fc6f97505d89fe9277965c126744647a"
+ },
"items" : [
{
"xtype" : "Nest",
},
{
"listeners" : {
- "activate" : "function (_self)\n{\n _this.edit_btn.hide();\n _this.delete_btn.hide();\n \n if (_this.grid) {\n _this.grid.store.load({});\n }\n}",
- "render" : "function (_self)\n{\n _this.panel = _self;\n}"
+ "activate" : "function (_self)\n{\n _this.edit_btn.hide();\n _this.delete_btn.hide();\n \n if (_this.table) {\n _this.table.footer.onClick('first');\n }\n}",
+ "render" : "function (_self)\n{\n _this.grid = _self;\n}"
},
- "Boolean fitContainer" : true,
"xtype" : "Grid",
"Boolean fitToFrame" : true,
- "String region" : "center",
"$ xns" : "Roo.bootstrap.panel",
- "String title" : "Options",
- "Boolean background" : false,
+ "String region" : "center",
+ "String title" : "IP Access",
+ "Boolean closable" : false,
"items" : [
{
"xtype" : "NavSimplebar",
"$ xns" : "Roo.bootstrap",
"items" : [
{
- "Number md" : 12,
+ "Number md" : 3,
+ "xtype" : "Column",
+ "$ xns" : "Roo.bootstrap",
+ "items" : [
+ {
+ "listeners" : {
+ "render" : "function (_self)\n{\n _this.status = this;\n \n this.setValue(0);\n}",
+ "select" : "function (combo, record, index)\n{\n _this.table.footer.onClick('first'); \n}"
+ },
+ "Boolean allowBlank" : false,
+ "String name" : "status_name",
+ "String mode" : "local",
+ "String valueField" : "code",
+ "Boolean editable" : false,
+ "xtype" : "ComboBox",
+ "String triggerAction" : "all",
+ "$ xns" : "Roo.bootstrap",
+ "String/Roo.Template tpl" : "<div class=\"roo-select2-result\"><b>{value}</b></div>",
+ "String hiddenName" : "status",
+ "String displayField" : "value",
+ "items" : [
+ {
+ "$ string data" : "[\n ['0', 'Pending'],\n ['1', 'Approve'],\n ['-2', 'Temporary'],\n ['-1', 'Reject']\n] ",
+ "xtype" : "SimpleStore",
+ "$ xns" : "Roo.data",
+ "$ fields" : "[ 'code', 'value' ]",
+ "* prop" : "store"
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "Number md" : 9,
"xtype" : "Column",
"$ xns" : "Roo.bootstrap",
+ "String style" : "text-align: right;",
"items" : [
{
"listeners" : {
"render" : "function (_self)\n{\n _this.edit_btn = this;\n \n this.hide();\n}",
- "click" : "function (_self, e)\n{\n var sel = _this.option_grid.getSelectionModel().getSelected();\n \n if(!sel || sel.data.id * 1 < 1){\n Roo.bootstrap.MessageBox.alert('Error', 'Please select a option');\n return;\n }\n\n Pman.Dialog.BAdminCoreEnum.show({ \n id : sel.data.id\n }, function(res) {\n _this.option_grid.store.load({});\n });\n\n}"
+ "click" : "function (_self, e)\n{\n var sel = _this.table.getSelectionModel().getSelected();\n \n if(!sel || sel.data.id * 1 < 1){\n Roo.bootstrap.MessageBox.alert('Error', 'Please select a row');\n return;\n }\n\n Pman.Dialog.BAdminIPAccess.show({ \n id : sel.data.id\n }, function(res) {\n _this.table.store.load({});\n });\n\n}"
},
"String cls" : "roo-toolbar-button",
"String weight" : "default",
{
"listeners" : {
"render" : "function (_self)\n{\n _this.delete_btn = this;\n \n this.hide();\n}",
- "click" : "function (_self, e)\n{\n Pman.genericDelete(_this.panel, 'core_ip_access'); \n\n}"
+ "click" : "function (_self, e)\n{\n Pman.genericDelete(_this.grid, 'core_ip_access'); \n\n}"
},
"String cls" : "roo-toolbar-button",
"String weight" : "primary",
},
{
"listeners" : {
- "rowdblclick" : "function (_self, el, rowIndex, e)\n{\n var sel = _this.option_grid.store.getAt(rowIndex);\n \n if(!sel || sel.data.id * 1 < 1){\n return;\n }\n \n Pman.Dialog.BAdminCoreEnum.show({ \n id : sel.data.id\n }, function(res) {\n _this.option_grid.store.load({});\n });\n \n}",
- "render" : "function (_self)\n{\n _this.grid = _self; \n\n}"
+ "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.BAdminIPAccess.show({ \n id : s.data.id\n }, function(res) {\n _this.table.footer.onClick('first');\n });\n}",
+ "render" : "function (_self)\n{\n _this.table = this;\n}"
},
- "Boolean cellSelection" : true,
"String cls" : "table-fixed",
- "Boolean footerShow" : false,
"boolean hover" : true,
- "boolean striped" : true,
+ "boolean striped" : false,
"xtype" : "Table",
- "boolean responsive" : true,
"Boolean rowSelection" : true,
"$ xns" : "Roo.bootstrap",
"Boolean loadMask" : true,
},
{
"listeners" : {
- "beforeload" : "function (_self, o)\n{\n o.params = o.params || {};\n \n \n}",
+ "beforeload" : "function (_self, o)\n{\n if (!Pman.buildCompleted) {\n return false;\n }\n\n o.params = o.params || {};\n \n var status = _this.status.getValue() * 1;\n \n o.params.status = status;\n \n}",
"load" : "function (_self, records, options)\n{\n _this.edit_btn.hide();\n _this.delete_btn.hide();\n}"
},
"xtype" : "Store",
"boolean remoteSort" : true,
"$ xns" : "Roo.data",
- "$ sortinfo" : "{ field : 'display_name', direction: 'ASC' }",
+ "$ sortInfo" : "{ field : 'display_name', direction: 'ASC' }",
"* prop" : "store",
"items" : [
{
"$ renderer" : "function(v,x,r) { \n \n if(r.data.status * 1 != -2){\n return '';\n }\n \n return String.format('{0}', v ? v.format('Y-m-d') : '');\n}",
"Boolean sortable" : true,
"* prop" : "cm[]"
+ },
+ {
+ "Number pageSize" : 25,
+ "String displayMsg" : "Displaying Companies{0} - {1} of {2}",
+ "Boolean displayInfo" : false,
+ "xtype" : "PagingToolbar",
+ "String emptyMsg" : "No Companies found",
+ "$ xns" : "Roo.bootstrap",
+ "* prop" : "footer",
+ "string name" : "footer"
}
]
}