},
"items": [
{
- "*prop": "grid",
- "xtype": "Grid",
- "autoExpandColumn": "code",
- "loadMask": true,
"listeners": {
"|render": "function() \n{\n _this.grid = this; \n //_this.dialog = Pman.Dialog.FILL_IN\n if (_this.panel.active) {\n this.footer.onClick('first');\n }\n}",
"|rowdblclick": "function (_self, rowIndex, e)\n{\n if (!_this.dialog) return;\n _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {\n _this.grid.footer.onClick('first');\n }); \n}\n"
},
+ "*prop": "grid",
+ "autoExpandColumn": "name",
+ "loadMask": true,
+ "xtype": "Grid",
"|xns": "Roo.grid",
"items": [
{
+ "listeners": {
+ "load": "function (_self, records, options)\n{\n try {\n Pman.Tab.Office.grid.footer.onClick('refresh');\n } catch (e) {}\n}"
+ },
"*prop": "dataSource",
- "xtype": "Store",
"remoteSort": true,
+ "xtype": "Store",
"|sortInfo": "{ field : 'code', direction: 'ASC' }",
"|xns": "Roo.data",
"items": [
]
},
{
+ "*prop": "colModel[]",
+ "dataIndex": "comptype",
+ "header": "Type",
+ "sortable": true,
+ "width": 90,
"xtype": "ColumnModel",
- "header": "Code",
- "width": 200,
+ "|renderer": "function (v,x ,r) {\n return Pman.Dialog.Companies.comptypeListToString(r.data.isOwner ? 'OWNER' : v);\n}",
+ "|xns": "Roo.grid"
+ },
+ {
+ "*prop": "colModel[]",
"dataIndex": "code",
+ "header": "Ref#",
+ "width": 50,
+ "xtype": "ColumnModel",
"|renderer": "function(v) { return String.format('{0}', v); }",
- "|xns": "Roo.grid",
- "*prop": "colModel[]"
+ "|xns": "Roo.grid"
},
{
- "xtype": "ColumnModel",
+ "*prop": "colModel[]",
+ "dataIndex": "name",
"header": "Name",
"width": 200,
- "dataIndex": "name",
+ "xtype": "ColumnModel",
+ "|renderer": "function(v,x,r) {\n return String.format(r.data.isOwner ? '<B>{0}</B>' : '{0}',v); \n}",
+ "|xns": "Roo.grid"
+ },
+ {
+ "*prop": "colModel[]",
+ "dataIndex": "tel",
+ "header": "Tel",
+ "width": 100,
+ "xtype": "ColumnModel",
+ "|renderer": "function(v) { return String.format('{0}', v); }",
+ "|xns": "Roo.grid"
+ },
+ {
+ "xtype": "ColumnModel",
+ "header": "Fax",
+ "width": 200,
+ "dataIndex": "fax",
"|renderer": "function(v) { return String.format('{0}', v); }",
"|xns": "Roo.grid",
"*prop": "colModel[]"