2 "name" : "Pman.Tab.BAdminCompany",
5 "path" : "/home/khlau/gitlive/Pman.BAdmin/Pman.Tab.BAdminCompany.bjs",
9 "ce8ae9da5b7cd6c3df2929543a9af92d" : "Email",
10 "231bc72756b5e6de492aaaa1577f61b1" : "Remarks",
11 "ec211f7c20af43e742bf2570c3cb84f9" : "Add",
12 "edefbda3a2bdd979e42d8944b7325b79" : "Companies",
13 "b80bb7740288fda1f201890375a60c8f" : "id",
14 "7dce122004969d56ae2e0245cb754d35" : "Edit",
15 "fc6f97505d89fe9277965c126744647a" : "No Companies found",
16 "155ca6a755e25c15ad7ce45e2f638f10" : "Displaying Companies{0} - {1} of {2}",
17 "f78e208016407d8756c29673558ac14d" : "Company List",
18 "f2a6c498fb90ee345d997f888fce3b18" : "Delete",
19 "a1fa27779242b4902f7ae3bdd5c6d508" : "Type",
20 "9c9745a343efeacc9efe9b7222b27afb" : "Ref#",
21 "49ee3087348e8d44e1feda1917443987" : "Name",
22 "2e006b735fbd916d8ab26978ae6714d4" : "Tel",
23 "dd7bf230fde8d4836917806aff6a6b27" : "Address",
24 "9810aa2b9f44401be4bf73188ef2b67d" : "Fax"
29 "String region" : "center",
30 "$ xns" : "Roo.bootstrap.panel",
31 "String title" : "Companies",
35 "$ xns" : "Roo.bootstrap.layout",
40 "$ xns" : "Roo.bootstrap.layout",
45 "activate" : "function (_self)\n{\n \n if (_this.table) {\n _this.table.store.load({});\n _this.dialog = Pman.Dialog.BAdminCompany;\n }\n}",
46 "render" : "function (_self)\n{\n _this.grid = _self;\n}"
49 "Boolean fitToFrame" : true,
50 "$ xns" : "Roo.bootstrap.panel",
51 "String region" : "center",
52 "String title" : "Company List",
53 "Boolean closable" : false,
56 "xtype" : "NavSimplebar",
57 "$ xns" : "Roo.bootstrap",
62 "$ xns" : "Roo.bootstrap",
66 "$ xns" : "Roo.bootstrap",
67 "String style" : "float: left",
71 "click" : "function (_self, e)\n{\n if (!_this.dialog) {\n return;\n }\n\n _this.dialog.show({}, function() {\n if (_this.table) {\n _this.table.store.load({});\n }\n }); \n _this.dialog.modal.setTitle('Add Company');\n _this.dialog.form.reset();\n\n}"
73 "String weight" : "primary",
75 "$ xns" : "Roo.bootstrap",
76 "String html" : "Add",
77 "String style" : "margin: 10px;"
81 "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.store.load({});\n }\n }); \n \n}"
83 "String weight" : "primary",
85 "$ xns" : "Roo.bootstrap",
86 "String html" : "Edit",
87 "String style" : "margin: 10px;"
91 "click" : "function (_self, e)\n{\n Pman.genericDelete(_this.grid, 'core_company'); \n}"
93 "String weight" : "primary",
95 "$ xns" : "Roo.bootstrap",
96 "String html" : "Delete",
97 "String style" : "margin: 10px;"
107 "rowdblclick" : "function (_self, el, rowIndex, 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.store.load({});\n }\n }); \n}",
108 "render" : "function (_self)\n{\n _this.table = _self;\n \n \n if(_this.table.active) {\n this.footer.onClick('first');\n }\n}"
110 "String cls" : "table-fixed",
111 "boolean hover" : true,
112 "boolean striped" : false,
114 "boolean responsive" : true,
115 "Boolean rowSelection" : true,
116 "$ xns" : "Roo.bootstrap",
117 "Boolean loadMask" : true,
121 "boolean hover" : true,
122 "boolean striped" : true,
124 "Boolean rowSelection" : true,
125 "$ xns" : "Roo.data",
126 "Boolean loadMask" : true,
130 "xtype" : "JsonReader",
131 "String root" : "data",
132 "$ xns" : "Roo.data",
135 "String totalProperty" : "total"
139 "load" : "function (This, o, arg)\n{\n _this.table.footer.onClick('first');\n}"
141 "xtype" : "HttpProxy",
142 "$ xns" : "Roo.data",
143 "String method" : "GET",
145 "$ String url" : "baseURL + '/Roo/core_company'"
150 "String header" : "Type",
151 "String dataIndex" : "comptype",
153 "xtype" : "ColumnModel",
154 "$ xns" : "Roo.grid",
155 "$ renderer" : "function (v,x ,r) {\n //return Pman.Dialog.Companies.comptypeListToString(r.data.isOwner ? 'OWNER' : v);\n return v;\n}",
156 "Boolean sortable" : true,
160 "String header" : "Ref#",
161 "String dataIndex" : "code",
163 "xtype" : "ColumnModel",
164 "$ xns" : "Roo.grid",
165 "$ renderer" : "function(v) { return String.format('{0}', v); }",
166 "Boolean sortable" : true,
170 "String header" : "Name",
171 "String dataIndex" : "name",
172 "Number width" : 200,
173 "xtype" : "ColumnModel",
174 "$ xns" : "Roo.grid",
175 "$ renderer" : "function(v,x,r) {\n return String.format(r.data.comptype == 'OWNER' ? '<B>{0}</B>' : '{0}',v); \n}",
176 "Boolean sortable" : true,
180 "String header" : "Tel",
181 "String dataIndex" : "tel",
182 "Number width" : 100,
183 "xtype" : "ColumnModel",
184 "$ xns" : "Roo.grid",
185 "$ renderer" : "function(v) { return String.format('{0}', v); }",
189 "String header" : "Fax",
190 "String dataIndex" : "fax",
191 "Number width" : 100,
192 "xtype" : "ColumnModel",
193 "$ xns" : "Roo.grid",
194 "$ renderer" : "function(v) { return String.format('{0}', v); }",
198 "String header" : "Email",
199 "String dataIndex" : "email",
200 "Number width" : 200,
201 "xtype" : "ColumnModel",
202 "$ xns" : "Roo.grid",
203 "$ renderer" : "function (v) {\n console.log('render:' + v);\n return (v.length && v.indexOf('@') > 0 ) ? \n String.format('<a href=\"mailto:{0}\">{0}</a>',v) : v;\n \n }",
204 "Boolean sortable" : true,
208 "String header" : "Address",
209 "String dataIndex" : "address",
210 "Number width" : 250,
211 "xtype" : "ColumnModel",
212 "$ xns" : "Roo.grid",
213 "$ renderer" : "function(v) { return String.format('{0}', v); }",
214 "Boolean sortable" : true,
218 "String header" : "Remarks",
219 "String dataIndex" : "remarks",
220 "Number width" : 200,
221 "xtype" : "ColumnModel",
222 "$ xns" : "Roo.grid",
223 "$ renderer" : "function(v) { return String.format('{0}', v); }",
225 "Boolean hidden" : true
228 "String header" : "id",
229 "String dataIndex" : "id",
231 "xtype" : "ColumnModel",
232 "$ xns" : "Roo.grid",
233 "$ renderer" : "function(v) { return String.format('{0}', v); }",
234 "Boolean sortable" : true,
236 "Boolean hidden" : true
240 "render" : "function (_self)\n{\n _this.footer = _self;\n}"
242 "Number pageSize" : 25,
243 "Boolean displayInfo" : true,
244 "String displayMsg" : "Displaying Companies{0} - {1} of {2}",
245 "xtype" : "PagingToolbar",
246 "String emptyMsg" : "No Companies found",
247 "$ xns" : "Roo.bootstrap",
249 "string name" : "footer"