"modOrder" : "006",
"strings" : {
"ce8ae9da5b7cd6c3df2929543a9af92d" : "Email",
+ "231bc72756b5e6de492aaaa1577f61b1" : "Remarks",
"86f16ddf147752b95ffe69e2dfa769a1" : "Authorized By",
"ec53a8c4f07baed5d8825072c89799be" : "Status",
+ "b80bb7740288fda1f201890375a60c8f" : "id",
"7dce122004969d56ae2e0245cb754d35" : "Edit",
+ "fc6f97505d89fe9277965c126744647a" : "No Companies found",
"11e8622b4aa4b1924aee81a9ec54c555" : "Create Date",
"a12a3079e14ced46e69ba52b8a90b21a" : "IP",
+ "694e249c3a9503141fa5ce3fb71d5477" : "<i class=\"fa fa-edit\"></i> Edit",
+ "155ca6a755e25c15ad7ce45e2f638f10" : "Displaying Companies{0} - {1} of {2}",
"5a787141d53b573ec9b86e900bfe0d79" : "Expire Date",
+ "fd5293a712d172f5c556a83c62d44bd6" : "<i class=\"fa fa-plus\"></i> Add",
+ "ed807858fcb68abdd180481f1fcba5c5" : "<i class=\"fa fa-trash\"></i> Delete",
"f2a6c498fb90ee345d997f888fce3b18" : "Delete",
- "e3030abfa75de4573fb37032affa11e7" : "IP Access"
+ "f78e208016407d8756c29673558ac14d" : "Company List",
+ "a1fa27779242b4902f7ae3bdd5c6d508" : "Type",
+ "9c9745a343efeacc9efe9b7222b27afb" : "Ref#",
+ "49ee3087348e8d44e1feda1917443987" : "Name",
+ "2e006b735fbd916d8ab26978ae6714d4" : "Tel",
+ "dd7bf230fde8d4836917806aff6a6b27" : "Address",
+ "e3030abfa75de4573fb37032affa11e7" : "IP Access",
+ "9810aa2b9f44401be4bf73188ef2b67d" : "Fax"
},
"items" : [
{
]
}
]
+ },
+ {
+ "xtype" : "Border",
+ "$ xns" : "Roo.bootstrap.layout",
+ "* prop" : "layout",
+ "items" : [
+ {
+ "String tabPosition" : "top",
+ "xtype" : "Region",
+ "$ xns" : "Roo.bootstrap.layout",
+ "* prop" : "center"
+ },
+ {
+ "listeners" : {
+ "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}"
+ },
+ "xtype" : "Grid",
+ "Boolean fitToFrame" : true,
+ "$ xns" : "Roo.bootstrap.panel",
+ "String region" : "center",
+ "String title" : "Company List",
+ "Boolean closable" : false,
+ "items" : [
+ {
+ "xtype" : "NavSimplebar",
+ "$ xns" : "Roo.bootstrap",
+ "* prop" : "toolbar",
+ "items" : [
+ {
+ "xtype" : "NavGroup",
+ "$ xns" : "Roo.bootstrap",
+ "items" : [
+ {
+ "xtype" : "NavItem",
+ "$ xns" : "Roo.bootstrap",
+ "items" : [
+ {
+ "xtype" : "Element",
+ "$ xns" : "Roo.bootstrap",
+ "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 (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 hover" : true,
+ "boolean striped" : false,
+ "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}",
+ "load" : "function (_self, records, options)\n{\n _this.delete_btn.hide();\n _this.edit_btn.hide();\n}"
+ },
+ "boolean hover" : true,
+ "boolean striped" : true,
+ "xtype" : "Store",
+ "Boolean rowSelection" : true,
+ "$ xns" : "Roo.data",
+ "Boolean loadMask" : true,
+ "* prop" : "store",
+ "items" : [
+ {
+ "xtype" : "JsonReader",
+ "String root" : "data",
+ "$ xns" : "Roo.data",
+ "String id" : "id",
+ "* prop" : "reader",
+ "String totalProperty" : "total"
+ },
+ {
+ "listeners" : {
+ "load" : "function (This, o, arg)\n{\n _this.table.footer.onClick('first');\n}"
+ },
+ "xtype" : "HttpProxy",
+ "$ xns" : "Roo.data",
+ "String method" : "GET",
+ "* prop" : "proxy",
+ "$ String url" : "baseURL + '/Roo/core_company'"
+ }
+ ]
+ },
+ {
+ "String header" : "Type",
+ "String cursor" : "pointer",
+ "String dataIndex" : "comptype",
+ "Number md" : 1,
+ "xtype" : "ColumnModel",
+ "Number xs" : 1,
+ "$ xns" : "Roo.grid",
+ "$ renderer" : "function (v,x ,r) {\n //return Pman.Dialog.Companies.comptypeListToString(r.data.isOwner ? 'OWNER' : v);\n return v;\n}",
+ "Boolean sortable" : true,
+ "* prop" : "cm[]",
+ "Number sm" : 1
+ },
+ {
+ "String header" : "Ref#",
+ "String cursor" : "pointer",
+ "String dataIndex" : "code",
+ "xtype" : "ColumnModel",
+ "$ xns" : "Roo.grid",
+ "$ renderer" : "function(v) { return String.format('{0}', v); }",
+ "Boolean sortable" : true,
+ "* prop" : "cm[]",
+ "Boolean hidden" : true
+ },
+ {
+ "String header" : "Name",
+ "String cursor" : "pointer",
+ "String dataIndex" : "name",
+ "Number md" : 2,
+ "xtype" : "ColumnModel",
+ "Number xs" : 2,
+ "$ xns" : "Roo.grid",
+ "$ renderer" : "function(v,x,r) {\n return String.format(r.data.comptype == 'OWNER' ? '<B>{0}</B>' : '{0}',v); \n}",
+ "Boolean sortable" : true,
+ "* prop" : "cm[]",
+ "Number sm" : 2
+ },
+ {
+ "String header" : "Tel",
+ "String cursor" : "pointer",
+ "String dataIndex" : "tel",
+ "Number md" : 1,
+ "xtype" : "ColumnModel",
+ "Number xs" : 1,
+ "$ xns" : "Roo.grid",
+ "$ renderer" : "function(v) { return String.format('{0}', v); }",
+ "* prop" : "cm[]",
+ "Number sm" : 1
+ },
+ {
+ "String header" : "Fax",
+ "String cursor" : "pointer",
+ "String dataIndex" : "fax",
+ "Number md" : 1,
+ "xtype" : "ColumnModel",
+ "Number xs" : 1,
+ "$ xns" : "Roo.grid",
+ "$ renderer" : "function(v) { return String.format('{0}', v); }",
+ "* prop" : "cm[]",
+ "Number sm" : 1
+ },
+ {
+ "String header" : "Email",
+ "String cursor" : "pointer",
+ "String dataIndex" : "email",
+ "Number md" : 2,
+ "xtype" : "ColumnModel",
+ "Number xs" : 2,
+ "$ xns" : "Roo.grid",
+ "$ renderer" : "function (v) {\n return (v.length && v.indexOf('@') > 0 ) ? \n String.format('<a href=\"mailto:{0}\">{0}</a>',v) : v;\n \n }",
+ "Boolean sortable" : true,
+ "* prop" : "cm[]",
+ "Number sm" : 2
+ },
+ {
+ "String header" : "Address",
+ "String cursor" : "pointer",
+ "String dataIndex" : "address",
+ "Number md" : 5,
+ "xtype" : "ColumnModel",
+ "Number xs" : 5,
+ "$ xns" : "Roo.grid",
+ "$ renderer" : "function(v) { return String.format('{0}', v); }",
+ "Boolean sortable" : true,
+ "* prop" : "cm[]",
+ "Number sm" : 5
+ },
+ {
+ "String header" : "Remarks",
+ "String cursor" : "pointer",
+ "String dataIndex" : "remarks",
+ "Number width" : 200,
+ "xtype" : "ColumnModel",
+ "$ xns" : "Roo.grid",
+ "$ renderer" : "function(v) { return String.format('{0}', v); }",
+ "* prop" : "cm[]",
+ "Boolean hidden" : true
+ },
+ {
+ "String header" : "id",
+ "String cursor" : "pointer",
+ "String dataIndex" : "id",
+ "Number width" : 50,
+ "xtype" : "ColumnModel",
+ "$ xns" : "Roo.grid",
+ "$ renderer" : "function(v) { return String.format('{0}', v); }",
+ "Boolean sortable" : true,
+ "* prop" : "cm[]",
+ "Boolean hidden" : true
+ },
+ {
+ "listeners" : {
+ "render" : "function (_self)\n{\n _this.footer = _self;\n}"
+ },
+ "Number pageSize" : 25,
+ "Boolean displayInfo" : false,
+ "String displayMsg" : "Displaying Companies{0} - {1} of {2}",
+ "xtype" : "PagingToolbar",
+ "String emptyMsg" : "No Companies found",
+ "$ xns" : "Roo.bootstrap",
+ "* prop" : "footer",
+ "string name" : "footer"
+ }
+ ]
+ }
+ ]
+ }
+ ]
}
]
}
_strings : {
'ce8ae9da5b7cd6c3df2929543a9af92d' :"Email",
+ '231bc72756b5e6de492aaaa1577f61b1' :"Remarks",
'86f16ddf147752b95ffe69e2dfa769a1' :"Authorized By",
'ec53a8c4f07baed5d8825072c89799be' :"Status",
+ 'b80bb7740288fda1f201890375a60c8f' :"id",
'7dce122004969d56ae2e0245cb754d35' :"Edit",
+ 'fc6f97505d89fe9277965c126744647a' :"No Companies found",
'11e8622b4aa4b1924aee81a9ec54c555' :"Create Date",
'a12a3079e14ced46e69ba52b8a90b21a' :"IP",
+ '694e249c3a9503141fa5ce3fb71d5477' :"<i class=\"fa fa-edit\"></i> Edit",
+ '155ca6a755e25c15ad7ce45e2f638f10' :"Displaying Companies{0} - {1} of {2}",
'5a787141d53b573ec9b86e900bfe0d79' :"Expire Date",
+ 'fd5293a712d172f5c556a83c62d44bd6' :"<i class=\"fa fa-plus\"></i> Add",
+ 'ed807858fcb68abdd180481f1fcba5c5' :"<i class=\"fa fa-trash\"></i> Delete",
'f2a6c498fb90ee345d997f888fce3b18' :"Delete",
- 'e3030abfa75de4573fb37032affa11e7' :"IP Access"
+ 'f78e208016407d8756c29673558ac14d' :"Company List",
+ 'a1fa27779242b4902f7ae3bdd5c6d508' :"Type",
+ '9c9745a343efeacc9efe9b7222b27afb' :"Ref#",
+ '49ee3087348e8d44e1feda1917443987' :"Name",
+ '2e006b735fbd916d8ab26978ae6714d4' :"Tel",
+ 'dd7bf230fde8d4836917806aff6a6b27' :"Address",
+ 'e3030abfa75de4573fb37032affa11e7' :"IP Access",
+ '9810aa2b9f44401be4bf73188ef2b67d' :"Fax"
},
part : ["BAdmin", "IPAccess" ],
'|xns' : 'Roo.bootstrap.layout',
center : {
xtype : 'Region',
- hideTabs : true,
tabPosition : 'top',
xns : Roo.bootstrap.layout,
'|xns' : 'Roo.bootstrap.layout'
items : [
{
xtype : 'Grid',
- background : false,
- fitContainer : true,
+ closable : false,
fitToFrame : true,
region : 'center',
- title : _this._strings['e3030abfa75de4573fb37032affa11e7'] /* IP Access */,
+ title : _this._strings['f78e208016407d8756c29673558ac14d'] /* Company List */,
listeners : {
activate : function (_self)
{
_this.edit_btn.hide();
_this.delete_btn.hide();
- if (_this.grid) {
- _this.grid.footer.onClick('first');
+ if (_this.table) {
+ _this.table.footer.onClick('first');
}
},
render : function (_self)
{
- _this.panel = this;
+ _this.grid = _self;
}
},
xns : Roo.bootstrap.panel,
{
xtype : 'Button',
cls : 'roo-toolbar-button',
- glyphicon : 'edit',
- html : _this._strings['7dce122004969d56ae2e0245cb754d35'] /* Edit */,
+ html : _this._strings['fd5293a712d172f5c556a83c62d44bd6'] /* <i class="fa fa-plus"></i> Add */,
weight : 'default',
listeners : {
click : function (_self, e)
{
- var sel = _this.option_grid.getSelectionModel().getSelected();
-
- if(!sel || sel.data.id * 1 < 1){
- Roo.bootstrap.MessageBox.alert('Error', 'Please select a option');
+ Pman.Dialog.BAdminCompany.show({}, function() {
+ if (_this.table) {
+ _this.table.footer.onClick('first');
+ }
+ });
+ }
+ },
+ xns : Roo.bootstrap,
+ '|xns' : 'Roo.bootstrap'
+ },
+ {
+ xtype : 'Button',
+ cls : 'roo-toolbar-button',
+ html : _this._strings['694e249c3a9503141fa5ce3fb71d5477'] /* <i class="fa fa-edit"></i> Edit */,
+ weight : 'default',
+ listeners : {
+ click : function (_self, e)
+ {
+ var s = _this.table.getSelectionModel().getSelected();
+
+ if (!s || s.data.id * 1 < 1) {
+ Roo.bootstrap.MessageBox.alert("Error", 'Please select a company');
return;
}
-
- Pman.Dialog.BAdminCoreEnum.show({
- id : sel.data.id
- }, function(res) {
- _this.option_grid.store.load({});
+
+ Pman.Dialog.BAdminCompany.show({
+ id : s.data.id
+ }, function() {
+ if (_this.table) {
+ _this.table.footer.onClick('refresh');
+ }
});
-
+
+
},
render : function (_self)
{
{
xtype : 'Button',
cls : 'roo-toolbar-button',
- glyphicon : 'trash',
- html : _this._strings['f2a6c498fb90ee345d997f888fce3b18'] /* Delete */,
+ html : _this._strings['ed807858fcb68abdd180481f1fcba5c5'] /* <i class="fa fa-trash"></i> Delete */,
weight : 'primary',
listeners : {
click : function (_self, e)
{
- Pman.genericDelete(_this.panel, 'core_ip_access');
-
+ Pman.genericDelete(_this.grid, 'core_company');
},
render : function (_self)
{
},
grid : {
xtype : 'Table',
- cellSelection : true,
cls : 'table-fixed',
- footerShow : false,
hover : true,
loadMask : true,
responsive : true,
rowSelection : true,
- striped : true,
+ striped : false,
listeners : {
render : function (_self)
{
- _this.grid = this;
+ _this.table = this;
+ },
+ rowclick : function (_self, el, rowIndex, e)
+ {
+ (function(){
+
+ _this.edit_btn.hide();
+ _this.delete_btn.hide();
+
+ var s = _this.table.getSelectionModel().getSelected();
+
+ if (!s || s.data.id * 1 < 1) {
+ return;
+ }
+
+ _this.edit_btn.show();
+ _this.delete_btn.show();
+
+ }).defer(100);
+
},
rowdblclick : function (_self, el, rowIndex, e)
{
- var sel = _this.option_grid.store.getAt(rowIndex);
+ var s = _this.table.store.getAt(rowIndex);
- if(!sel || sel.data.id * 1 < 1){
+ if(!s || s.data.id * 1 < 1){
return;
}
- Pman.Dialog.BAdminCoreEnum.show({
- id : sel.data.id
- }, function(res) {
- _this.option_grid.store.load({});
+ Pman.Dialog.BAdminCompany.show({
+ id : s.data.id
+ }, function() {
+ if (_this.table) {
+ _this.table.footer.onClick('refresh');
+ }
});
-
}
},
xns : Roo.bootstrap,
footer : {
xtype : 'PagingToolbar',
displayInfo : false,
+ displayMsg : _this._strings['155ca6a755e25c15ad7ce45e2f638f10'] /* Displaying Companies{0} - {1} of {2} */,
+ emptyMsg : _this._strings['fc6f97505d89fe9277965c126744647a'] /* No Companies found */,
name : 'footer',
pageSize : 25,
+ listeners : {
+ render : function (_self)
+ {
+ _this.footer = _self;
+ }
+ },
xns : Roo.bootstrap,
'|xns' : 'Roo.bootstrap'
},
store : {
xtype : 'Store',
- remoteSort : true,
- sortinfo : { field : 'display_name', direction: 'ASC' },
+ hover : true,
+ loadMask : true,
+ rowSelection : true,
+ striped : true,
listeners : {
- beforeload : function (_self, o)
+ beforeload : function (_self, options)
{
- o.params = o.params || {};
-
-
+ options.params = options.params || {};
},
load : function (_self, records, options)
{
- _this.edit_btn.hide();
_this.delete_btn.hide();
+ _this.edit_btn.hide();
}
},
xns : Roo.data,
proxy : {
xtype : 'HttpProxy',
method : 'GET',
- url : baseURL + '/Roo/Core_ip_access.php',
+ url : baseURL + '/Roo/core_company',
+ listeners : {
+ load : function (This, o, arg)
+ {
+ _this.table.footer.onClick('first');
+ }
+ },
xns : Roo.data,
'|xns' : 'Roo.data'
},
reader : {
xtype : 'JsonReader',
- fields : [
- {
- 'name': 'id',
- 'type': 'int'
- },
- {
- 'name': 'created_dt',
- 'type': 'date',
- 'formatDate' : 'Y-m-d'
- },
- {
- 'name': 'status',
- 'type': 'int'
- },
- {
- 'name': 'authorized_by',
- 'type': 'int'
- },
- {
- 'name': 'authorized_by_name',
- 'type': 'string'
- },
- {
- 'name': 'authorized_by_email',
- 'type': 'string'
- },
- {
- 'name': 'authorized_key',
- 'type': 'string'
- },
- {
- 'name': 'email',
- 'type': 'string'
- },
- {
- 'name': 'expire_dt',
- 'type': 'date',
- 'formatDate' : 'Y-m-d'
- },
- {
- 'name': 'user_agent',
- 'type': 'string'
- },
- {
- 'name': 'updated_by',
- 'type': 'int'
- },
- {
- 'name': 'updated_by_name',
- 'type': 'string'
- },
- {
- 'name': 'updated_by_email',
- 'type': 'string'
- }
-
- ],
id : 'id',
root : 'data',
totalProperty : 'total',
sm : {
xtype : 'RowSelectionModel',
singleSelect : true,
- listeners : {
- selectionchange : function (_self)
- {
- _this.edit_btn.hide();
- _this.delete_btn.hide();
-
- if (!this.getSelected()) {
- return;
- }
-
- _this.edit_btn.show();
- _this.delete_btn.show();
-
- }
- },
xns : Roo.bootstrap.Table,
'|xns' : 'Roo.bootstrap.Table'
},
{
xtype : 'ColumnModel',
cursor : 'pointer',
- dataIndex : 'created_dt',
- header : _this._strings['11e8622b4aa4b1924aee81a9ec54c555'] /* Create Date */,
- renderer : function(v,x,r) {
- return String.format('{0}', v ? v.format('Y-m-d') : '');
+ dataIndex : 'comptype',
+ header : _this._strings['a1fa27779242b4902f7ae3bdd5c6d508'] /* Type */,
+ md : 1,
+ renderer : function (v,x ,r) {
+ //return Pman.Dialog.Companies.comptypeListToString(r.data.isOwner ? 'OWNER' : v);
+ return v;
},
+ sm : 1,
sortable : true,
- xs : 2,
+ xs : 1,
xns : Roo.grid,
'|xns' : 'Roo.grid'
},
{
xtype : 'ColumnModel',
cursor : 'pointer',
- dataIndex : 'ip',
- header : _this._strings['a12a3079e14ced46e69ba52b8a90b21a'] /* IP */,
- renderer : function(v,x,r) {
- return String.format('{0}', v ? v : '');
+ dataIndex : 'code',
+ header : _this._strings['9c9745a343efeacc9efe9b7222b27afb'] /* Ref# */,
+ hidden : true,
+ renderer : function(v) { return String.format('{0}', v); },
+ sortable : true,
+ xns : Roo.grid,
+ '|xns' : 'Roo.grid'
+ },
+ {
+ xtype : 'ColumnModel',
+ cursor : 'pointer',
+ dataIndex : 'name',
+ header : _this._strings['49ee3087348e8d44e1feda1917443987'] /* Name */,
+ md : 2,
+ renderer : function(v,x,r) {
+ return String.format(r.data.comptype == 'OWNER' ? '<B>{0}</B>' : '{0}',v);
},
+ sm : 2,
sortable : true,
xs : 2,
xns : Roo.grid,
'|xns' : 'Roo.grid'
},
+ {
+ xtype : 'ColumnModel',
+ cursor : 'pointer',
+ dataIndex : 'tel',
+ header : _this._strings['2e006b735fbd916d8ab26978ae6714d4'] /* Tel */,
+ md : 1,
+ renderer : function(v) { return String.format('{0}', v); },
+ sm : 1,
+ xs : 1,
+ xns : Roo.grid,
+ '|xns' : 'Roo.grid'
+ },
+ {
+ xtype : 'ColumnModel',
+ cursor : 'pointer',
+ dataIndex : 'fax',
+ header : _this._strings['9810aa2b9f44401be4bf73188ef2b67d'] /* Fax */,
+ md : 1,
+ renderer : function(v) { return String.format('{0}', v); },
+ sm : 1,
+ xs : 1,
+ xns : Roo.grid,
+ '|xns' : 'Roo.grid'
+ },
{
xtype : 'ColumnModel',
cursor : 'pointer',
dataIndex : 'email',
header : _this._strings['ce8ae9da5b7cd6c3df2929543a9af92d'] /* Email */,
- renderer : function(v,x,r)
- {
- return String.format('<a href="mailto:{0}">{0}</a>', v ? v : '')
- },
+ md : 2,
+ renderer : function (v) {
+ return (v.length && v.indexOf('@') > 0 ) ?
+ String.format('<a href="mailto:{0}">{0}</a>',v) : v;
+
+ },
+ sm : 2,
sortable : true,
xs : 2,
xns : Roo.grid,
{
xtype : 'ColumnModel',
cursor : 'pointer',
- dataIndex : 'authorized_by',
- header : _this._strings['86f16ddf147752b95ffe69e2dfa769a1'] /* Authorized By */,
- renderer : function(v,x,r)
- {
- if(v * 1 == 0){
- return '';
- }
-
- return String.format('{0}', r.data.authorized_by_name);
- },
+ dataIndex : 'address',
+ header : _this._strings['dd7bf230fde8d4836917806aff6a6b27'] /* Address */,
+ md : 5,
+ renderer : function(v) { return String.format('{0}', v); },
+ sm : 5,
sortable : true,
- xs : 2,
+ xs : 5,
xns : Roo.grid,
'|xns' : 'Roo.grid'
},
{
xtype : 'ColumnModel',
cursor : 'pointer',
- dataIndex : 'status',
- header : _this._strings['ec53a8c4f07baed5d8825072c89799be'] /* Status */,
- renderer : function(v,x,r)
- {
- v = v * 1;
-
- var status = 'Pending';
-
- switch (v) {
- case 1 :
- status = 'Approve';
- break;
- case -1 :
- status = 'Reject';
- break;
- case -2 :
- status = 'Temporary';
- break;
- default :
- break;
- }
-
- return String.format('{0}', status);
-
- },
- sortable : true,
- xs : 2,
+ dataIndex : 'remarks',
+ header : _this._strings['231bc72756b5e6de492aaaa1577f61b1'] /* Remarks */,
+ hidden : true,
+ renderer : function(v) { return String.format('{0}', v); },
+ width : 200,
xns : Roo.grid,
'|xns' : 'Roo.grid'
},
{
xtype : 'ColumnModel',
cursor : 'pointer',
- dataIndex : 'expire_dt',
- header : _this._strings['5a787141d53b573ec9b86e900bfe0d79'] /* Expire Date */,
- renderer : function(v,x,r) {
-
- if(r.data.status * 1 != -2){
- return '';
- }
-
- return String.format('{0}', v ? v.format('Y-m-d') : '');
- },
+ dataIndex : 'id',
+ header : _this._strings['b80bb7740288fda1f201890375a60c8f'] /* id */,
+ hidden : true,
+ renderer : function(v) { return String.format('{0}', v); },
sortable : true,
- xs : 2,
+ width : 50,
xns : Roo.grid,
'|xns' : 'Roo.grid'
}