2 "name" : "Pman.Tab.BAdminCompany",
3 "parent" : "Pman.Tab.BAdmin",
5 "path" : "/home/johns/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 "$ 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 if (!_this.dialog) {\n return;\n }\n\n _this.dialog.show({}, function() {\n if (_this.table) {\n _this.table.footer.onClick('first');\n }\n }); \n}"
75 "String weight" : "primary",
77 "$ xns" : "Roo.bootstrap",
78 "String html" : "Add",
79 "String style" : "margin: 10px;"
83 "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}"
85 "String weight" : "primary",
87 "$ xns" : "Roo.bootstrap",
88 "String html" : "Edit",
89 "String style" : "margin: 10px;"
93 "click" : "function (_self, e)\n{\n Pman.genericDelete(_this.grid, 'core_company'); \n}"
95 "String weight" : "primary",
97 "$ xns" : "Roo.bootstrap",
98 "String html" : "Delete",
99 "String style" : "margin: 10px;"
109 "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}",
110 "render" : "function (_self)\n{\n _this.table = _self;\n}"
112 "String cls" : "table-fixed",
113 "boolean striped" : false,
114 "boolean hover" : true,
116 "boolean responsive" : true,
117 "Boolean rowSelection" : true,
118 "$ xns" : "Roo.bootstrap",
119 "Boolean loadMask" : true,
123 "boolean hover" : true,
124 "boolean striped" : true,
126 "Boolean rowSelection" : true,
127 "$ xns" : "Roo.data",
128 "Boolean loadMask" : true,
132 "xtype" : "JsonReader",
133 "String root" : "data",
134 "$ xns" : "Roo.data",
137 "String totalProperty" : "total"
141 "load" : "function (This, o, arg)\n{\n _this.table.footer.onClick('first');\n}"
143 "xtype" : "HttpProxy",
144 "$ xns" : "Roo.data",
145 "String method" : "GET",
147 "$ String url" : "baseURL + '/Roo/core_company'"
152 "String header" : "Type",
153 "String dataIndex" : "comptype",
155 "xtype" : "ColumnModel",
156 "$ xns" : "Roo.grid",
157 "$ renderer" : "function (v,x ,r) {\n //return Pman.Dialog.Companies.comptypeListToString(r.data.isOwner ? 'OWNER' : v);\n return v;\n}",
158 "Boolean sortable" : true,
162 "String header" : "Ref#",
163 "String dataIndex" : "code",
165 "xtype" : "ColumnModel",
166 "$ xns" : "Roo.grid",
167 "$ renderer" : "function(v) { return String.format('{0}', v); }",
168 "Boolean sortable" : true,
170 "Boolean hidden" : true
173 "String header" : "Name",
174 "String dataIndex" : "name",
175 "Number width" : 200,
176 "xtype" : "ColumnModel",
177 "$ xns" : "Roo.grid",
178 "$ renderer" : "function(v,x,r) {\n return String.format(r.data.comptype == 'OWNER' ? '<B>{0}</B>' : '{0}',v); \n}",
179 "Boolean sortable" : true,
183 "String header" : "Tel",
184 "String dataIndex" : "tel",
185 "Number width" : 100,
186 "xtype" : "ColumnModel",
187 "$ xns" : "Roo.grid",
188 "$ renderer" : "function(v) { return String.format('{0}', v); }",
192 "String header" : "Fax",
193 "String dataIndex" : "fax",
194 "Number width" : 100,
195 "xtype" : "ColumnModel",
196 "$ xns" : "Roo.grid",
197 "$ renderer" : "function(v) { return String.format('{0}', v); }",
201 "String header" : "Email",
202 "String dataIndex" : "email",
203 "Number width" : 200,
204 "xtype" : "ColumnModel",
205 "$ xns" : "Roo.grid",
206 "$ 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 }",
207 "Boolean sortable" : true,
211 "String header" : "Address",
212 "String dataIndex" : "address",
213 "Number width" : 250,
214 "xtype" : "ColumnModel",
215 "$ xns" : "Roo.grid",
216 "$ renderer" : "function(v) { return String.format('{0}', v); }",
217 "Boolean sortable" : true,
221 "String header" : "Remarks",
222 "String dataIndex" : "remarks",
223 "Number width" : 200,
224 "xtype" : "ColumnModel",
225 "$ xns" : "Roo.grid",
226 "$ renderer" : "function(v) { return String.format('{0}', v); }",
228 "Boolean hidden" : true
231 "String header" : "id",
232 "String dataIndex" : "id",
234 "xtype" : "ColumnModel",
235 "$ xns" : "Roo.grid",
236 "$ renderer" : "function(v) { return String.format('{0}', v); }",
237 "Boolean sortable" : true,
239 "Boolean hidden" : true
243 "render" : "function (_self)\n{\n _this.footer = _self;\n}"
245 "Number pageSize" : 25,
246 "String displayMsg" : "Displaying Companies{0} - {1} of {2}",
247 "Boolean displayInfo" : false,
248 "xtype" : "PagingToolbar",
249 "String emptyMsg" : "No Companies found",
250 "$ xns" : "Roo.bootstrap",
252 "string name" : "footer"