2 "name" : "Pman.Tab.BAdminCompany",
3 "parent" : "Pman.Tab.BAdmin",
5 "path" : "/home/edward/gitlive/Pman.BAdmin/Pman.Tab.BAdminCompany.bjs",
9 "ce8ae9da5b7cd6c3df2929543a9af92d" : "Email",
10 "231bc72756b5e6de492aaaa1577f61b1" : "Remarks",
11 "edefbda3a2bdd979e42d8944b7325b79" : "Companies",
12 "b80bb7740288fda1f201890375a60c8f" : "id",
13 "fc6f97505d89fe9277965c126744647a" : "No Companies found",
14 "155ca6a755e25c15ad7ce45e2f638f10" : "Displaying Companies{0} - {1} of {2}",
15 "fd5293a712d172f5c556a83c62d44bd6" : "<i class=\"fa fa-plus\"></i> Add",
16 "ed807858fcb68abdd180481f1fcba5c5" : "<i class=\"fa fa-trash\"></i> Delete",
17 "f78e208016407d8756c29673558ac14d" : "Company List",
18 "cd141800fe342ad87f3ed93fbb267ab5" : "<i class=\"fa fa-pencil\"></i> Edit",
19 "a1fa27779242b4902f7ae3bdd5c6d508" : "Type",
20 "9c9745a343efeacc9efe9b7222b27afb" : "Ref#",
21 "49ee3087348e8d44e1feda1917443987" : "Name",
22 "2e006b735fbd916d8ab26978ae6714d4" : "Tel",
23 "dd7bf230fde8d4836917806aff6a6b27" : "Address",
24 "9810aa2b9f44401be4bf73188ef2b67d" : "Fax"
29 "$ xns" : "Roo.bootstrap.panel",
30 "String region" : "center",
31 "String title" : "Companies",
32 "Boolean background" : false,
36 "$ xns" : "Roo.bootstrap.layout",
40 "String tabPosition" : "top",
42 "$ xns" : "Roo.bootstrap.layout",
47 "activate" : "function (_self)\n{\n \n if (_this.table) {\n _this.table.footer.onClick('first');\n _this.dialog = Pman.Dialog.BAdminCompany;\n }\n}",
48 "render" : "function (_self)\n{\n _this.grid = _self;\n}"
51 "Boolean fitToFrame" : true,
52 "$ xns" : "Roo.bootstrap.panel",
53 "String region" : "center",
54 "String title" : "Company List",
55 "Boolean closable" : false,
58 "xtype" : "NavSimplebar",
59 "$ xns" : "Roo.bootstrap",
64 "$ xns" : "Roo.bootstrap",
68 "$ xns" : "Roo.bootstrap",
69 "String style" : "float: left",
73 "click" : "function (_self, e)\n{\n Pman.Dialog.BAdminCompany.show({}, function() {\n if (_this.table) {\n _this.table.footer.onClick('first');\n }\n }); \n}"
75 "String weight" : "default",
77 "$ xns" : "Roo.bootstrap",
78 "String html" : "<i class=\"fa fa-plus\"></i> Add",
79 "String style" : "margin: 10px;"
83 "render" : "function (_self)\n{\n _this.edit_btn = this;\n \n this.hide();\n}",
84 "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}"
86 "String weight" : "default",
88 "$ xns" : "Roo.bootstrap",
89 "String html" : "<i class=\"fa fa-pencil\"></i> Edit",
90 "String style" : "margin: 10px;"
94 "click" : "function (_self, e)\n{\n Pman.genericDelete(_this.grid, 'core_company'); \n}"
96 "String weight" : "primary",
98 "$ xns" : "Roo.bootstrap",
99 "String html" : "<i class=\"fa fa-trash\"></i> Delete",
100 "String style" : "margin: 10px;"
110 "rowdblclick" : "function (_self, el, rowIndex, e)\n{\n if (!_this.dialog) {\n return;\n }\n _this.dialog.show(_this.grid.grid.store.getAt(rowIndex).data, function() {\n if (_this.table) {\n _this.table.footer.onClick('first');\n }\n });\n}",
111 "render" : "function (_self)\n{\n _this.table = _self;\n}"
113 "String cls" : "table-fixed",
114 "boolean striped" : false,
115 "boolean hover" : true,
117 "boolean responsive" : true,
118 "Boolean rowSelection" : true,
119 "$ xns" : "Roo.bootstrap",
120 "Boolean loadMask" : true,
124 "boolean hover" : true,
125 "boolean striped" : true,
127 "Boolean rowSelection" : true,
128 "$ xns" : "Roo.data",
129 "Boolean loadMask" : true,
133 "xtype" : "JsonReader",
134 "String root" : "data",
135 "$ xns" : "Roo.data",
138 "String totalProperty" : "total"
142 "load" : "function (This, o, arg)\n{\n _this.table.footer.onClick('first');\n}"
144 "xtype" : "HttpProxy",
145 "$ xns" : "Roo.data",
146 "String method" : "GET",
148 "$ String url" : "baseURL + '/Roo/core_company'"
153 "String header" : "Type",
154 "String cursor" : "pointer",
155 "String dataIndex" : "comptype",
157 "xtype" : "ColumnModel",
159 "$ xns" : "Roo.grid",
160 "$ renderer" : "function (v,x ,r) {\n //return Pman.Dialog.Companies.comptypeListToString(r.data.isOwner ? 'OWNER' : v);\n return v;\n}",
161 "Boolean sortable" : true,
166 "String header" : "Ref#",
167 "String cursor" : "pointer",
168 "String dataIndex" : "code",
169 "xtype" : "ColumnModel",
170 "$ xns" : "Roo.grid",
171 "$ renderer" : "function(v) { return String.format('{0}', v); }",
172 "Boolean sortable" : true,
174 "Boolean hidden" : true
177 "String header" : "Name",
178 "String cursor" : "pointer",
179 "String dataIndex" : "name",
181 "xtype" : "ColumnModel",
183 "$ xns" : "Roo.grid",
184 "$ renderer" : "function(v,x,r) {\n return String.format(r.data.comptype == 'OWNER' ? '<B>{0}</B>' : '{0}',v); \n}",
185 "Boolean sortable" : true,
190 "String header" : "Tel",
191 "String cursor" : "pointer",
192 "String dataIndex" : "tel",
194 "xtype" : "ColumnModel",
196 "$ xns" : "Roo.grid",
197 "$ renderer" : "function(v) { return String.format('{0}', v); }",
202 "String header" : "Fax",
203 "String cursor" : "pointer",
204 "String dataIndex" : "fax",
206 "xtype" : "ColumnModel",
208 "$ xns" : "Roo.grid",
209 "$ renderer" : "function(v) { return String.format('{0}', v); }",
214 "String header" : "Email",
215 "String cursor" : "pointer",
216 "String dataIndex" : "email",
218 "xtype" : "ColumnModel",
220 "$ xns" : "Roo.grid",
221 "$ renderer" : "function (v) {\n return (v.length && v.indexOf('@') > 0 ) ? \n String.format('<a href=\"mailto:{0}\">{0}</a>',v) : v;\n \n }",
222 "Boolean sortable" : true,
227 "String header" : "Address",
228 "String cursor" : "pointer",
229 "String dataIndex" : "address",
231 "xtype" : "ColumnModel",
233 "$ xns" : "Roo.grid",
234 "$ renderer" : "function(v) { return String.format('{0}', v); }",
235 "Boolean sortable" : true,
240 "String header" : "Remarks",
241 "String cursor" : "pointer",
242 "String dataIndex" : "remarks",
243 "Number width" : 200,
244 "xtype" : "ColumnModel",
245 "$ xns" : "Roo.grid",
246 "$ renderer" : "function(v) { return String.format('{0}', v); }",
248 "Boolean hidden" : true
251 "String header" : "id",
252 "String cursor" : "pointer",
253 "String dataIndex" : "id",
255 "xtype" : "ColumnModel",
256 "$ xns" : "Roo.grid",
257 "$ renderer" : "function(v) { return String.format('{0}', v); }",
258 "Boolean sortable" : true,
260 "Boolean hidden" : true
264 "render" : "function (_self)\n{\n _this.footer = _self;\n}"
266 "Number pageSize" : 25,
267 "String displayMsg" : "Displaying Companies{0} - {1} of {2}",
268 "Boolean displayInfo" : false,
269 "xtype" : "PagingToolbar",
270 "String emptyMsg" : "No Companies found",
271 "$ xns" : "Roo.bootstrap",
273 "string name" : "footer"