Pman.Dialog.MTrackTime.bjs
[Pman.MTrack] / Pman.Dialog.MTrackTime.bjs
1 {
2     "id": "roo-file-194",
3     "name": "Pman.Dialog.MTrackTime",
4     "parent": "",
5     "title": "",
6     "path": "/home/alan/gitlive/Pman.MTrack/Pman.Dialog.MTrackTime.bjs",
7     "items": [
8         {
9             "height": 700,
10             "title": "Time Manager",
11             "width": 1000,
12             "xtype": "LayoutDialog",
13             "|xns": "Roo",
14             "items": [
15                 {
16                     "*prop": "center",
17                     "tabPosition": "top",
18                     "xtype": "LayoutRegion",
19                     "|xns": "Roo"
20                 },
21                 {
22                     "region": "center",
23                     "title": "Log Time",
24                     "xtype": "NestedLayoutPanel",
25                     "|xns": "Roo",
26                     "items": [
27                         {
28                             "|xns": "Roo",
29                             "xtype": "BorderLayout",
30                             "*prop": "layout",
31                             "items": [
32                                 {
33                                     "*prop": "center",
34                                     "title": "Active / Logged Time",
35                                     "xtype": "LayoutRegion",
36                                     "|xns": "Roo"
37                                 },
38                                 {
39                                     "listeners": {
40                                         "|activate": "function() {\n    _this.timepanel = this;\n    if (_this.timegrid) {\n       // _this.grid.footer.onClick('first');\n    }\n}"
41                                     },
42                                     "background": true,
43                                     "fitContainer": true,
44                                     "fitToframe": true,
45                                     "region": "center",
46                                     "tableName": "cash_invoice_entry",
47                                     "title": "cash_invoice_entry",
48                                     "xtype": "GridPanel",
49                                     "|xns": "Roo",
50                                     "items": [
51                                         {
52                                             "listeners": {
53                                                 "|render": "function() \n{\n    _this.timegrid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.timepanel.active) {\n      // this.footer.onClick('first');\n    }\n}",
54                                                 "|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"
55                                             },
56                                             "*prop": "grid",
57                                             "autoExpandColumn": "activity_ref",
58                                             "loadMask": true,
59                                             "xtype": "Grid",
60                                             "|xns": "Roo.grid",
61                                             "items": [
62                                                 {
63                                                     "|xns": "Roo",
64                                                     "xtype": "Toolbar",
65                                                     "*prop": "toolbar",
66                                                     "items": [
67                                                         {
68                                                             "|xns": "Roo.form",
69                                                             "xtype": "ComboBox",
70                                                             "allowBlank": "false",
71                                                             "editable": "false",
72                                                             "emptyText": "Select Person",
73                                                             "forceSelection": true,
74                                                             "listWidth": 400,
75                                                             "loadingText": "Searching...",
76                                                             "minChars": 2,
77                                                             "pageSize": 20,
78                                                             "qtip": "Select Person",
79                                                             "selectOnFocus": true,
80                                                             "triggerAction": "all",
81                                                             "typeAhead": true,
82                                                             "width": 300,
83                                                             "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
84                                                             "queryParam": "",
85                                                             "fieldLabel": "Person",
86                                                             "valueField": "id",
87                                                             "displayField": "",
88                                                             "hiddenName": "",
89                                                             "name": "",
90                                                             "items": [
91                                                                 {
92                                                                     "*prop": "store",
93                                                                     "xtype": "Store",
94                                                                     "|xns": "Roo.data",
95                                                                     "remoteSort": true,
96                                                                     "|sortInfo": "{ direction : 'ASC', field: 'id' }",
97                                                                     "listeners": {
98                                                                         "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n}\n"
99                                                                     },
100                                                                     "items": [
101                                                                         {
102                                                                             "*prop": "proxy",
103                                                                             "xtype": "HttpProxy",
104                                                                             "method": "GET",
105                                                                             "|xns": "Roo.data",
106                                                                             "|url": "baseURL + '/Roo/Person.php'"
107                                                                         },
108                                                                         {
109                                                                             "*prop": "reader",
110                                                                             "xtype": "JsonReader",
111                                                                             "|xns": "Roo.data",
112                                                                             "id": "id",
113                                                                             "root": "data",
114                                                                             "totalProperty": "total",
115                                                                             "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
116                                                                         }
117                                                                     ]
118                                                                 }
119                                                             ]
120                                                         }
121                                                     ]
122                                                 },
123                                                 {
124                                                     "*prop": "dataSource",
125                                                     "xtype": "Store",
126                                                     "remoteSort": true,
127                                                     "|sortInfo": "{ field : 'description', direction: 'ASC' }",
128                                                     "|xns": "Roo.data",
129                                                     "items": [
130                                                         {
131                                                             "*prop": "proxy",
132                                                             "xtype": "HttpProxy",
133                                                             "method": "GET",
134                                                             "|url": "baseURL + '/Roo/cash_invoice_entry.php'",
135                                                             "|xns": "Roo.data"
136                                                         },
137                                                         {
138                                                             "|xns": "Roo.data",
139                                                             "xtype": "JsonReader",
140                                                             "totalProperty": "total",
141                                                             "root": "data",
142                                                             "*prop": "reader",
143                                                             "id": "id",
144                                                             "|fields": "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'entry_dt',\n        'type': 'date',\n        'dateFormat': 'Y-m-d'\n    },\n    {\n        'name': 'entered_dt',\n        'type': 'date',\n        'dateFormat': 'Y-m-d'\n    },\n    {\n        'name': 'description',\n        'type': 'string'\n    },\n    {\n        'name': 'action',\n        'type': 'string'\n    },\n    {\n        'name': 'qty',\n        'type': 'string'\n    },\n    {\n        'name': 'invoice_id',\n        'type': 'int'\n    },\n    {\n        'name': 'pricevalue',\n        'type': 'float'\n    },\n    {\n        'name': 'qtyvalue',\n        'type': 'float'\n    },\n    {\n        'name': 'to_account_id',\n        'type': 'int'\n    },\n    {\n        'name': 'discount',\n        'type': 'float'\n    },\n    {\n        'name': 'action_dt',\n        'type': 'date',\n        'dateFormat': 'Y-m-d'\n    },\n    {\n        'name': 'staff_id',\n        'type': 'int'\n    },\n    {\n        'name': 'invoice_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'invoice_id_idtxt',\n        'type': 'string'\n    },\n    {\n        'name': 'invoice_id_project_id',\n        'type': 'int'\n    },\n    {\n        'name': 'invoice_id_opened_dt',\n        'type': 'date'\n    },\n    {\n        'name': 'invoice_id_posted',\n        'type': 'date'\n    },\n    {\n        'name': 'invoice_id_post_transaction_id',\n        'type': 'int'\n    },\n    {\n        'name': 'invoice_id_post_account_id',\n        'type': 'int'\n    },\n    {\n        'name': 'invoice_id_paid',\n        'type': 'float'\n    },\n    {\n        'name': 'invoice_id_total',\n        'type': 'float'\n    },\n    {\n        'name': 'invoice_id_duedate',\n        'type': 'date'\n    },\n    {\n        'name': 'to_account_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'to_account_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'to_account_id_type',\n        'type': 'string'\n    },\n    {\n        'name': 'to_account_id_commodity',\n        'type': 'string'\n    },\n    {\n        'name': 'to_account_id_scu',\n        'type': 'string'\n    },\n    {\n        'name': 'to_account_id_description',\n        'type': 'string'\n    },\n    {\n        'name': 'to_account_id_parent',\n        'type': 'int'\n    },\n    {\n        'name': 'to_account_id_fullname',\n        'type': 'string'\n    },\n    {\n        'name': 'staff_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'staff_id_office_id',\n        'type': 'int'\n    },\n    {\n        'name': 'staff_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'staff_id_phone',\n        'type': 'string'\n    },\n    {\n        'name': 'staff_id_fax',\n        'type': 'string'\n    },\n    {\n        'name': 'staff_id_email',\n        'type': 'string'\n    },\n    {\n        'name': 'staff_id_company_id',\n        'type': 'int'\n    },\n    {\n        'name': 'staff_id_role',\n        'type': 'string'\n    },\n    {\n        'name': 'staff_id_active',\n        'type': 'int'\n    },\n    {\n        'name': 'staff_id_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'staff_id_passwd',\n        'type': 'string'\n    },\n    {\n        'name': 'staff_id_owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'staff_id_lang',\n        'type': 'string'\n    },\n    {\n        'name': 'staff_id_no_reset_sent',\n        'type': 'int'\n    },\n    {\n        'name': 'staff_id_action_type',\n        'type': 'string'\n    },\n    {\n        'name': 'staff_id_project_id',\n        'type': 'int'\n    },\n    {\n        'name': 'staff_id_deleted_by',\n        'type': 'int'\n    },\n    {\n        'name': 'staff_id_deleted_dt',\n        'type': 'date'\n    }\n]"
145                                                         }
146                                                     ]
147                                                 },
148                                                 {
149                                                     "*prop": "colModel[]",
150                                                     "dataIndex": "hour",
151                                                     "header": "Hour",
152                                                     "width": 50,
153                                                     "xtype": "ColumnModel",
154                                                     "|renderer": "function(v) { return String.format('{0}', v); }",
155                                                     "|xns": "Roo.grid"
156                                                 },
157                                                 {
158                                                     "*prop": "colModel[]",
159                                                     "dataIndex": "activity_ref",
160                                                     "header": "Activity",
161                                                     "width": 300,
162                                                     "xtype": "ColumnModel",
163                                                     "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
164                                                     "|xns": "Roo.grid"
165                                                 },
166                                                 {
167                                                     "*prop": "colModel[]",
168                                                     "dataIndex": "entered_dt",
169                                                     "header": "Timesheet",
170                                                     "width": 300,
171                                                     "xtype": "ColumnModel",
172                                                     "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
173                                                     "|xns": "Roo.grid"
174                                                 }
175                                             ]
176                                         }
177                                     ]
178                                 },
179                                 {
180                                     "*prop": "east",
181                                     "width": 350,
182                                     "xtype": "LayoutRegion",
183                                     "|xns": "Roo"
184                                 },
185                                 {
186                                     "region": "east",
187                                     "xtype": "NestedLayoutPanel",
188                                     "|xns": "Roo",
189                                     "items": [
190                                         {
191                                             "|xns": "Roo",
192                                             "xtype": "BorderLayout",
193                                             "*prop": "layout",
194                                             "items": [
195                                                 {
196                                                     "*prop": "north",
197                                                     "height": 200,
198                                                     "title": "Details",
199                                                     "xtype": "LayoutRegion",
200                                                     "|xns": "Roo"
201                                                 },
202                                                 {
203                                                     "*prop": "center",
204                                                     "title": "Task Queue",
205                                                     "xtype": "LayoutRegion",
206                                                     "|xns": "Roo"
207                                                 },
208                                                 {
209                                                     "listeners": {
210                                                         "|activate": "function() {\n    _this.queuepanel = this;\n    if (_this.queuegrid) {\n        //_this.queuegrid.footer.onClick('first');\n    }\n}"
211                                                     },
212                                                     "background": true,
213                                                     "fitContainer": true,
214                                                     "fitToframe": true,
215                                                     "region": "center",
216                                                     "tableName": "mtrack_ticket",
217                                                     "title": "mtrack_ticket",
218                                                     "xtype": "GridPanel",
219                                                     "|xns": "Roo",
220                                                     "items": [
221                                                         {
222                                                             "listeners": {
223                                                                 "|render": "function() \n{\n    _this.queuegrid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.queuepanel.active) {\n       //this.footer.onClick('first');\n    }\n}",
224                                                                 "|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"
225                                                             },
226                                                             "*prop": "grid",
227                                                             "autoExpandColumn": "summary",
228                                                             "loadMask": true,
229                                                             "xtype": "Grid",
230                                                             "|xns": "Roo.grid",
231                                                             "items": [
232                                                                 {
233                                                                     "*prop": "dataSource",
234                                                                     "xtype": "Store",
235                                                                     "remoteSort": true,
236                                                                     "|sortInfo": "{ field : 'summary', direction: 'ASC' }",
237                                                                     "|xns": "Roo.data",
238                                                                     "items": [
239                                                                         {
240                                                                             "*prop": "proxy",
241                                                                             "xtype": "HttpProxy",
242                                                                             "method": "GET",
243                                                                             "|url": "baseURL + '/Roo/mtrack_ticket.php'",
244                                                                             "|xns": "Roo.data"
245                                                                         },
246                                                                         {
247                                                                             "|xns": "Roo.data",
248                                                                             "xtype": "JsonReader",
249                                                                             "totalProperty": "total",
250                                                                             "root": "data",
251                                                                             "*prop": "reader",
252                                                                             "id": "id",
253                                                                             "|fields": "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id',\n        'type': 'int'\n    },\n    {\n        'name': 'summary',\n        'type': 'string'\n    },\n    {\n        'name': 'description',\n        'type': 'string'\n    },\n    {\n        'name': 'changelog',\n        'type': 'string'\n    },\n    {\n        'name': 'created',\n        'type': 'int'\n    },\n    {\n        'name': 'updated',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'priority_id',\n        'type': 'int'\n    },\n    {\n        'name': 'severity_id',\n        'type': 'int'\n    },\n    {\n        'name': 'classification_id',\n        'type': 'int'\n    },\n    {\n        'name': 'resolution_id',\n        'type': 'int'\n    },\n    {\n        'name': 'cc',\n        'type': 'string'\n    },\n    {\n        'name': 'status',\n        'type': 'int'\n    },\n    {\n        'name': 'estimated',\n        'type': 'float'\n    },\n    {\n        'name': 'spent',\n        'type': 'float'\n    },\n    {\n        'name': 'x_fieldname',\n        'type': 'string'\n    },\n    {\n        'name': 'developer_id',\n        'type': 'int'\n    },\n    {\n        'name': 'milestone_id',\n        'type': 'int'\n    },\n    {\n        'name': 'updated_id',\n        'type': 'int'\n    },\n    {\n        'name': 'updated_person_id',\n        'type': 'int'\n    },\n    {\n        'name': 'updated_ontable',\n        'type': 'string'\n    },\n    {\n        'name': 'updated_onid',\n        'type': 'int'\n    },\n    {\n        'name': 'updated_changedate',\n        'type': 'date'\n    },\n    {\n        'name': 'updated_reason',\n        'type': 'string'\n    },\n    {\n        'name': 'created_id',\n        'type': 'int'\n    },\n    {\n        'name': 'created_person_id',\n        'type': 'int'\n    },\n    {\n        'name': 'created_ontable',\n        'type': 'string'\n    },\n    {\n        'name': 'created_onid',\n        'type': 'int'\n    },\n    {\n        'name': 'created_changedate',\n        'type': 'date'\n    },\n    {\n        'name': 'created_reason',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_office_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_phone',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_fax',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_email',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_company_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_role',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_active',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_passwd',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_lang',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_no_reset_sent',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_action_type',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_project_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_deleted_by',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_deleted_dt',\n        'type': 'date'\n    },\n    {\n        'name': 'developer_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'developer_id_office_id',\n        'type': 'int'\n    },\n    {\n        'name': 'developer_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'developer_id_phone',\n        'type': 'string'\n    },\n    {\n        'name': 'developer_id_fax',\n        'type': 'string'\n    },\n    {\n        'name': 'developer_id_email',\n        'type': 'string'\n    },\n    {\n        'name': 'developer_id_company_id',\n        'type': 'int'\n    },\n    {\n        'name': 'developer_id_role',\n        'type': 'string'\n    },\n    {\n        'name': 'developer_id_active',\n        'type': 'int'\n    },\n    {\n        'name': 'developer_id_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'developer_id_passwd',\n        'type': 'string'\n    },\n    {\n        'name': 'developer_id_owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'developer_id_lang',\n        'type': 'string'\n    },\n    {\n        'name': 'developer_id_no_reset_sent',\n        'type': 'int'\n    },\n    {\n        'name': 'developer_id_action_type',\n        'type': 'string'\n    },\n    {\n        'name': 'developer_id_project_id',\n        'type': 'int'\n    },\n    {\n        'name': 'developer_id_deleted_by',\n        'type': 'int'\n    },\n    {\n        'name': 'developer_id_deleted_dt',\n        'type': 'date'\n    },\n    {\n        'name': 'priority_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'priority_id_etype',\n        'type': 'string'\n    },\n    {\n        'name': 'priority_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'priority_id_active',\n        'type': 'int'\n    },\n    {\n        'name': 'priority_id_seqid',\n        'type': 'int'\n    },\n    {\n        'name': 'severity_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'severity_id_etype',\n        'type': 'string'\n    },\n    {\n        'name': 'severity_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'severity_id_active',\n        'type': 'int'\n    },\n    {\n        'name': 'severity_id_seqid',\n        'type': 'int'\n    },\n    {\n        'name': 'classification_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'classification_id_etype',\n        'type': 'string'\n    },\n    {\n        'name': 'classification_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'classification_id_active',\n        'type': 'int'\n    },\n    {\n        'name': 'classification_id_seqid',\n        'type': 'int'\n    },\n    {\n        'name': 'resolution_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'resolution_id_etype',\n        'type': 'string'\n    },\n    {\n        'name': 'resolution_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'resolution_id_active',\n        'type': 'int'\n    },\n    {\n        'name': 'resolution_id_seqid',\n        'type': 'int'\n    },\n    {\n        'name': 'status_id',\n        'type': 'int'\n    },\n    {\n        'name': 'status_etype',\n        'type': 'string'\n    },\n    {\n        'name': 'status_name',\n        'type': 'string'\n    },\n    {\n        'name': 'status_active',\n        'type': 'int'\n    },\n    {\n        'name': 'status_seqid',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_code',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_active',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_type',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_client_id',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_team_id',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_file_location',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_open_date',\n        'type': 'date'\n    },\n    {\n        'name': 'project_id_open_by',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_close_date',\n        'type': 'date'\n    },\n    {\n        'name': 'project_id_countries',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_languages',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_agency_id',\n        'type': 'int'\n    },\n    {\n        'name': 'milestone_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'milestone_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'milestone_id_description',\n        'type': 'string'\n    },\n    {\n        'name': 'milestone_id_startdate',\n        'type': 'date'\n    },\n    {\n        'name': 'milestone_id_duedate',\n        'type': 'date'\n    },\n    {\n        'name': 'milestone_id_completed',\n        'type': 'date'\n    },\n    {\n        'name': 'milestone_id_deleted',\n        'type': 'int'\n    },\n    {\n        'name': 'milestone_id_created',\n        'type': 'int'\n    },\n    {\n        'name': 'milestone_id_updated',\n        'type': 'int'\n    },\n    {\n        'name': 'milestone_id_project_id',\n        'type': 'int'\n    }\n]"
254                                                                         }
255                                                                     ]
256                                                                 },
257                                                                 {
258                                                                     "xtype": "ColumnModel",
259                                                                     "header": "Summary",
260                                                                     "width": 200,
261                                                                     "dataIndex": "summary",
262                                                                     "|renderer": "function(v) { return String.format('{0}', v); }",
263                                                                     "|xns": "Roo.grid",
264                                                                     "*prop": "colModel[]"
265                                                                 }
266                                                             ]
267                                                         }
268                                                     ]
269                                                 },
270                                                 {
271                                                     "region": "north",
272                                                     "xtype": "ContentPanel",
273                                                     "|xns": "Roo",
274                                                     "items": [
275                                                         {
276                                                             "listeners": {
277                                                                 "|actioncomplete": "function(_self,action)\n{\n    \n \n    Roo.log('action complete');\n    Roo .log(action);\n    if (action.type == 'setdata') {\n\n        _this.isClose = false; // force flag..\n        \n        if (this.activeRecord) {\n             this.saveActive( this.activeRecord);\n        }\n        \n        \n         \n        // show form..\n        if (!action.data || !action.data.action) {\n            _this.form.el.mask('select something'); \n            this.activeRecord  = false;\n            _this.form.reset(); \n            return;\n        }\n        _this.form.el.unmask();   \n        \n        this.activeRecord = action.rec;\n         \n        \n\n            \n        \n        // should save here if we are 'dirty!';\n        _this.form.reset();\n        _this.form.setValues(action.data);\n        // set the dates so they are correct..\n         _this.form.setValues( { \n \n                action_dt : action.data.action_dt.format('Y-m-d H:i:s'),\n                entry_dt: action.data.action_dt.format('Y-m-d'),\n                qtyvalue2 : action.data.qtyvalue\n            });\n        // set the default values..\n        // for dirty test...\n        _this.form.items.each(function(f) {\n            f.originalValue = f.getValue();\n        });\n        \n        \n        \n        \n        // form is set to an event.\n        \n                \n        \n       return;\n    }\n    \n    \n    if (action.type == 'load') {\n \n        return;\n    }\n    if (action.type =='submit') {\n        // set this on the close button..\n         if (_this.isClose) {\n            _this.dialog.hide();\n         }\n        \n         if (_this.callback) {\n            _this.callback.call(_this, _this.form.getValues());\n         }\n\n         return;\n    }\n}\n",
278                                                                 "|rendered": "function (form)\n{\n    _this.form= form;\n}\n"
279                                                             },
280                                                             "activeData": false,
281                                                             "method": "POST",
282                                                             "style": "margin-left:10px;",
283                                                             "xtype": "Form",
284                                                             "|saveActive": "function(rec, effort) {\n    \n     effort = effort || 0;\n    \n\n    if (!rec) {\n        Roo.log(\"ERROR: saveActive: record not set \");\n        return;\n    }\n\n     var d = Roo.apply({}, rec.data); // copy it so changes do not affect crap...\n     \n     var upd = (new Date()).format('Y-m-d H:i:s');\n     \n \n     \n     \n     //Roo.log(\"SAVE IT: \" + Roo.encode(d) );\n     \n     //     return;\n     var at = typeof(d.action_dt) == 'string' ? Date.parseDate(d.action_dt, 'Y-m-d H:i:s') : d.action_dt\n     \n     new Pman.Request({\n        url : baseURL + '/Roo/Cash_invoice_entry.php',\n        method : 'POST',\n        params : {\n            id : d.id,\n            entry_dt: at.format('Y-m-d'),  // this should not change for posted entries really...\n            entered_dt: upd,            \n            action_dt : at.format('Y-m-d H:i:s'),\n            qtyvalue : d.qtyvalue,\n            action: 'Hours',\n            description: d.description,\n            pricevalue: d.pricevalue,  \n            project_id : d.project_id,\n            staff_id : d.staff_id * 1 ? d.staff_id : Pman.Login.authUser.id,\n            ticket_id : d.ticket_id ? d.ticket_id : 0\n            \n        },\n        success : function(res)\n        {\n            // everythings fine..\n            \n            // we have to update the view object... now...\n            // we can not reload as that may blank out data..\n            if (!rec.data.id) {\n                Roo.log(\"Setting data id to \" + res.data.id);\n                rec.set('id', res.data.id);\n\n            }\n\n            \n        },\n        failure : function()\n        {\n            effort++;\n            if (effort > 3) {\n                Roo.MessageBox.alert(\"Error\", \"Saving timesheet failed\");\n                return;\n            }\n            _this.form.saveActive(rec, effort);\n        }\n        \n     });\n}\n",
285                                                             "|url": "baseURL + '/Roo/cash_invoice_entry.php'",
286                                                             "|xns": "Roo.form",
287                                                             "items": [
288                                                                 {
289                                                                     "listeners": {
290                                                                         "render": "function (_self)\n{\n    _this.projectSel = _self;\n}",
291                                                                         "beforeselect": "function (combo, record, index)\n{\n\n    Roo.log('save it');\n    var sel = _this.grid.ds.selectedBar();\n \n    if (!sel) {\n        Roo.log(\"nothing selected?\");\n        return;\n    }\n     \n    // active record should be the same thing.\n    sel.set('project_id', record.data.id);\n    sel.set('project_id_code',     record.data.code);\n    sel.set('project_id_name',   record.data.name);\n    \n    \n    _this.grid.ds.updateBar(sel);\n    \n      \n     \n}"
292                                                                     },
293                                                                     "allowBlank": "false",
294                                                                     "displayField": "name",
295                                                                     "editable": "false",
296                                                                     "emptyText": "Select Project",
297                                                                     "fieldLabel": "Project",
298                                                                     "forceSelection": true,
299                                                                     "hiddenName": "project_id",
300                                                                     "listWidth": 400,
301                                                                     "loadingText": "Searching...",
302                                                                     "minChars": 2,
303                                                                     "name": "project_id_name",
304                                                                     "pageSize": 20,
305                                                                     "qtip": "Select Projects",
306                                                                     "queryParam": "query[name]",
307                                                                     "selectOnFocus": true,
308                                                                     "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{code}</b> - {name}</div>",
309                                                                     "triggerAction": "all",
310                                                                     "typeAhead": true,
311                                                                     "valueField": "id",
312                                                                     "width": 200,
313                                                                     "xtype": "ComboBox",
314                                                                     "|xns": "Roo.form",
315                                                                     "items": [
316                                                                         {
317                                                                             "listeners": {
318                                                                                 "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    o.params['query[project_filter]'] = 'P,N,U'; // actually this is the default.\n    \n    // set more here\n}\n"
319                                                                             },
320                                                                             "*prop": "store",
321                                                                             "remoteSort": true,
322                                                                             "xtype": "Store",
323                                                                             "|sortInfo": "{ field: 'code', direction: 'ASC' }",
324                                                                             "|xns": "Roo.data",
325                                                                             "items": [
326                                                                                 {
327                                                                                     "*prop": "proxy",
328                                                                                     "xtype": "HttpProxy",
329                                                                                     "method": "GET",
330                                                                                     "|xns": "Roo.data",
331                                                                                     "|url": "baseURL + '/Roo/Projects.php'"
332                                                                                 },
333                                                                                 {
334                                                                                     "*prop": "reader",
335                                                                                     "xtype": "JsonReader",
336                                                                                     "|xns": "Roo.data",
337                                                                                     "id": "id",
338                                                                                     "root": "data",
339                                                                                     "totalProperty": "total",
340                                                                                     "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
341                                                                                 }
342                                                                             ]
343                                                                         }
344                                                                     ]
345                                                                 },
346                                                                 {
347                                                                     "labelAlign": "top",
348                                                                     "width": 300,
349                                                                     "xtype": "Column",
350                                                                     "|xns": "Roo.form",
351                                                                     "items": [
352                                                                         {
353                                                                             "listeners": {
354                                                                                 "keyup": "function (_self, e)\n{\n    _this.selectedRec.set('description',   this.getValue());\n    _this.grid.dataSource.updateBar(_this.selectedRec);\n \n}"
355                                                                             },
356                                                                             "fieldLabel": "Description",
357                                                                             "height": 120,
358                                                                             "name": "description",
359                                                                             "width": 300,
360                                                                             "xtype": "TextArea",
361                                                                             "|xns": "Roo.form"
362                                                                         }
363                                                                     ]
364                                                                 },
365                                                                 {
366                                                                     "name": "action",
367                                                                     "xtype": "Hidden",
368                                                                     "|xns": "Roo.form"
369                                                                 },
370                                                                 {
371                                                                     "name": "staff_id",
372                                                                     "xtype": "Hidden",
373                                                                     "|xns": "Roo.form"
374                                                                 },
375                                                                 {
376                                                                     "name": "qtyvalue",
377                                                                     "xtype": "Hidden",
378                                                                     "|xns": "Roo.form"
379                                                                 },
380                                                                 {
381                                                                     "name": "qtyvalue2",
382                                                                     "xtype": "Hidden",
383                                                                     "|xns": "Roo.form"
384                                                                 },
385                                                                 {
386                                                                     "name": "entry_dt",
387                                                                     "xtype": "Hidden",
388                                                                     "|xns": "Roo.form"
389                                                                 },
390                                                                 {
391                                                                     "name": "action_dt",
392                                                                     "xtype": "Hidden",
393                                                                     "|xns": "Roo.form"
394                                                                 },
395                                                                 {
396                                                                     "name": "id",
397                                                                     "|xns": "Roo.form",
398                                                                     "xtype": "Hidden"
399                                                                 }
400                                                             ]
401                                                         }
402                                                     ]
403                                                 }
404                                             ]
405                                         }
406                                     ]
407                                 }
408                             ]
409                         }
410                     ]
411                 },
412                 {
413                     "region": "center",
414                     "title": "Plan Time",
415                     "xtype": "NestedLayoutPanel",
416                     "|xns": "Roo",
417                     "items": [
418                         {
419                             "|xns": "Roo",
420                             "xtype": "BorderLayout",
421                             "*prop": "layout",
422                             "items": [
423                                 {
424                                     "*prop": "west",
425                                     "title": "Open Tasks (Unassigned) / Select Project",
426                                     "width": 450,
427                                     "xtype": "LayoutRegion",
428                                     "|xns": "Roo"
429                                 },
430                                 {
431                                     "*prop": "center",
432                                     "title": "Assigned to  / Prioritized (all projects)",
433                                     "xtype": "LayoutRegion",
434                                     "|xns": "Roo"
435                                 },
436                                 {
437                                     "listeners": {
438                                         "|activate": "function() {\n    _this.openpanel = this;\n    if (_this.opengrid) {\n   //    _this.opengrid.footer.onClick('first');\n    }\n}"
439                                     },
440                                     "background": false,
441                                     "fitContainer": true,
442                                     "fitToframe": true,
443                                     "region": "west",
444                                     "tableName": "mtrack_ticket",
445                                     "title": "mtrack_ticket",
446                                     "xtype": "GridPanel",
447                                     "|xns": "Roo",
448                                     "items": [
449                                         {
450                                             "listeners": {
451                                                 "|render": "function() \n{\n    _this.opengrid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.openpanel.active) {\n       //this.footer.onClick('first');\n    }\n}",
452                                                 "|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"
453                                             },
454                                             "*prop": "grid",
455                                             "autoExpandColumn": "summary",
456                                             "loadMask": true,
457                                             "xtype": "Grid",
458                                             "|xns": "Roo.grid",
459                                             "items": [
460                                                 {
461                                                     "|xns": "Roo",
462                                                     "xtype": "Toolbar",
463                                                     "*prop": "toolbar",
464                                                     "items": [
465                                                         {
466                                                             "allowBlank": "false",
467                                                             "displayField": "",
468                                                             "editable": "false",
469                                                             "emptyText": "Select Project",
470                                                             "fieldLabel": "mtrack_ticket",
471                                                             "forceSelection": true,
472                                                             "hiddenName": "",
473                                                             "listWidth": 400,
474                                                             "loadingText": "Searching...",
475                                                             "minChars": 2,
476                                                             "name": "",
477                                                             "pageSize": 20,
478                                                             "qtip": "Select mtrack_ticket",
479                                                             "queryParam": "",
480                                                             "selectOnFocus": true,
481                                                             "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
482                                                             "triggerAction": "all",
483                                                             "typeAhead": true,
484                                                             "valueField": "id",
485                                                             "width": 300,
486                                                             "xtype": "ComboBox",
487                                                             "|xns": "Roo.form",
488                                                             "items": [
489                                                                 {
490                                                                     "*prop": "store",
491                                                                     "xtype": "Store",
492                                                                     "|xns": "Roo.data",
493                                                                     "remoteSort": true,
494                                                                     "|sortInfo": "{ direction : 'ASC', field: 'id' }",
495                                                                     "listeners": {
496                                                                         "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    // set more here\n}\n"
497                                                                     },
498                                                                     "items": [
499                                                                         {
500                                                                             "*prop": "proxy",
501                                                                             "xtype": "HttpProxy",
502                                                                             "method": "GET",
503                                                                             "|xns": "Roo.data",
504                                                                             "|url": "baseURL + '/Roo/mtrack_ticket.php'"
505                                                                         },
506                                                                         {
507                                                                             "*prop": "reader",
508                                                                             "xtype": "JsonReader",
509                                                                             "|xns": "Roo.data",
510                                                                             "id": "id",
511                                                                             "root": "data",
512                                                                             "totalProperty": "total",
513                                                                             "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"summary\",\"type\":\"string\"}]"
514                                                                         }
515                                                                     ]
516                                                                 }
517                                                             ]
518                                                         }
519                                                     ]
520                                                 },
521                                                 {
522                                                     "*prop": "dataSource",
523                                                     "xtype": "Store",
524                                                     "remoteSort": true,
525                                                     "|sortInfo": "{ field : 'summary', direction: 'ASC' }",
526                                                     "|xns": "Roo.data",
527                                                     "items": [
528                                                         {
529                                                             "*prop": "proxy",
530                                                             "xtype": "HttpProxy",
531                                                             "method": "GET",
532                                                             "|url": "baseURL + '/Roo/mtrack_ticket.php'",
533                                                             "|xns": "Roo.data"
534                                                         },
535                                                         {
536                                                             "|xns": "Roo.data",
537                                                             "xtype": "JsonReader",
538                                                             "totalProperty": "total",
539                                                             "root": "data",
540                                                             "*prop": "reader",
541                                                             "id": "id",
542                                                             "|fields": "[\n    {\n        'name': 'id',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id',\n        'type': 'int'\n    },\n    {\n        'name': 'summary',\n        'type': 'string'\n    },\n    {\n        'name': 'description',\n        'type': 'string'\n    },\n    {\n        'name': 'changelog',\n        'type': 'string'\n    },\n    {\n        'name': 'created',\n        'type': 'int'\n    },\n    {\n        'name': 'updated',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'priority_id',\n        'type': 'int'\n    },\n    {\n        'name': 'severity_id',\n        'type': 'int'\n    },\n    {\n        'name': 'classification_id',\n        'type': 'int'\n    },\n    {\n        'name': 'resolution_id',\n        'type': 'int'\n    },\n    {\n        'name': 'cc',\n        'type': 'string'\n    },\n    {\n        'name': 'status',\n        'type': 'int'\n    },\n    {\n        'name': 'estimated',\n        'type': 'float'\n    },\n    {\n        'name': 'spent',\n        'type': 'float'\n    },\n    {\n        'name': 'x_fieldname',\n        'type': 'string'\n    },\n    {\n        'name': 'developer_id',\n        'type': 'int'\n    },\n    {\n        'name': 'milestone_id',\n        'type': 'int'\n    },\n    {\n        'name': 'updated_id',\n        'type': 'int'\n    },\n    {\n        'name': 'updated_person_id',\n        'type': 'int'\n    },\n    {\n        'name': 'updated_ontable',\n        'type': 'string'\n    },\n    {\n        'name': 'updated_onid',\n        'type': 'int'\n    },\n    {\n        'name': 'updated_changedate',\n        'type': 'date'\n    },\n    {\n        'name': 'updated_reason',\n        'type': 'string'\n    },\n    {\n        'name': 'created_id',\n        'type': 'int'\n    },\n    {\n        'name': 'created_person_id',\n        'type': 'int'\n    },\n    {\n        'name': 'created_ontable',\n        'type': 'string'\n    },\n    {\n        'name': 'created_onid',\n        'type': 'int'\n    },\n    {\n        'name': 'created_changedate',\n        'type': 'date'\n    },\n    {\n        'name': 'created_reason',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_office_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_phone',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_fax',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_email',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_company_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_role',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_active',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_passwd',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_lang',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_no_reset_sent',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_action_type',\n        'type': 'string'\n    },\n    {\n        'name': 'owner_id_project_id',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_deleted_by',\n        'type': 'int'\n    },\n    {\n        'name': 'owner_id_deleted_dt',\n        'type': 'date'\n    },\n    {\n        'name': 'developer_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'developer_id_office_id',\n        'type': 'int'\n    },\n    {\n        'name': 'developer_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'developer_id_phone',\n        'type': 'string'\n    },\n    {\n        'name': 'developer_id_fax',\n        'type': 'string'\n    },\n    {\n        'name': 'developer_id_email',\n        'type': 'string'\n    },\n    {\n        'name': 'developer_id_company_id',\n        'type': 'int'\n    },\n    {\n        'name': 'developer_id_role',\n        'type': 'string'\n    },\n    {\n        'name': 'developer_id_active',\n        'type': 'int'\n    },\n    {\n        'name': 'developer_id_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'developer_id_passwd',\n        'type': 'string'\n    },\n    {\n        'name': 'developer_id_owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'developer_id_lang',\n        'type': 'string'\n    },\n    {\n        'name': 'developer_id_no_reset_sent',\n        'type': 'int'\n    },\n    {\n        'name': 'developer_id_action_type',\n        'type': 'string'\n    },\n    {\n        'name': 'developer_id_project_id',\n        'type': 'int'\n    },\n    {\n        'name': 'developer_id_deleted_by',\n        'type': 'int'\n    },\n    {\n        'name': 'developer_id_deleted_dt',\n        'type': 'date'\n    },\n    {\n        'name': 'priority_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'priority_id_etype',\n        'type': 'string'\n    },\n    {\n        'name': 'priority_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'priority_id_active',\n        'type': 'int'\n    },\n    {\n        'name': 'priority_id_seqid',\n        'type': 'int'\n    },\n    {\n        'name': 'severity_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'severity_id_etype',\n        'type': 'string'\n    },\n    {\n        'name': 'severity_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'severity_id_active',\n        'type': 'int'\n    },\n    {\n        'name': 'severity_id_seqid',\n        'type': 'int'\n    },\n    {\n        'name': 'classification_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'classification_id_etype',\n        'type': 'string'\n    },\n    {\n        'name': 'classification_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'classification_id_active',\n        'type': 'int'\n    },\n    {\n        'name': 'classification_id_seqid',\n        'type': 'int'\n    },\n    {\n        'name': 'resolution_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'resolution_id_etype',\n        'type': 'string'\n    },\n    {\n        'name': 'resolution_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'resolution_id_active',\n        'type': 'int'\n    },\n    {\n        'name': 'resolution_id_seqid',\n        'type': 'int'\n    },\n    {\n        'name': 'status_id',\n        'type': 'int'\n    },\n    {\n        'name': 'status_etype',\n        'type': 'string'\n    },\n    {\n        'name': 'status_name',\n        'type': 'string'\n    },\n    {\n        'name': 'status_active',\n        'type': 'int'\n    },\n    {\n        'name': 'status_seqid',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_remarks',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_owner_id',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_code',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_active',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_type',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_client_id',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_team_id',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_file_location',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_open_date',\n        'type': 'date'\n    },\n    {\n        'name': 'project_id_open_by',\n        'type': 'int'\n    },\n    {\n        'name': 'project_id_close_date',\n        'type': 'date'\n    },\n    {\n        'name': 'project_id_countries',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_languages',\n        'type': 'string'\n    },\n    {\n        'name': 'project_id_agency_id',\n        'type': 'int'\n    },\n    {\n        'name': 'milestone_id_id',\n        'type': 'int'\n    },\n    {\n        'name': 'milestone_id_name',\n        'type': 'string'\n    },\n    {\n        'name': 'milestone_id_description',\n        'type': 'string'\n    },\n    {\n        'name': 'milestone_id_startdate',\n        'type': 'date'\n    },\n    {\n        'name': 'milestone_id_duedate',\n        'type': 'date'\n    },\n    {\n        'name': 'milestone_id_completed',\n        'type': 'date'\n    },\n    {\n        'name': 'milestone_id_deleted',\n        'type': 'int'\n    },\n    {\n        'name': 'milestone_id_created',\n        'type': 'int'\n    },\n    {\n        'name': 'milestone_id_updated',\n        'type': 'int'\n    },\n    {\n        'name': 'milestone_id_project_id',\n        'type': 'int'\n    }\n]"
543                                                         }
544                                                     ]
545                                                 },
546                                                 {
547                                                     "xtype": "ColumnModel",
548                                                     "header": "Summary",
549                                                     "width": 200,
550                                                     "dataIndex": "summary",
551                                                     "|renderer": "function(v) { return String.format('{0}', v); }",
552                                                     "|xns": "Roo.grid",
553                                                     "*prop": "colModel[]"
554                                                 },
555                                                 {
556                                                     "xtype": "ColumnModel",
557                                                     "header": "Changelog",
558                                                     "width": 200,
559                                                     "dataIndex": "changelog",
560                                                     "|renderer": "function(v) { return String.format('{0}', v); }",
561                                                     "|xns": "Roo.grid",
562                                                     "*prop": "colModel[]"
563                                                 },
564                                                 {
565                                                     "xtype": "ColumnModel",
566                                                     "header": "Created",
567                                                     "width": 75,
568                                                     "dataIndex": "created",
569                                                     "|renderer": "function(v) { return String.format('{0}', v); }",
570                                                     "|xns": "Roo.grid",
571                                                     "*prop": "colModel[]"
572                                                 },
573                                                 {
574                                                     "xtype": "ColumnModel",
575                                                     "header": "Updated",
576                                                     "width": 75,
577                                                     "dataIndex": "updated",
578                                                     "|renderer": "function(v) { return String.format('{0}', v); }",
579                                                     "|xns": "Roo.grid",
580                                                     "*prop": "colModel[]"
581                                                 },
582                                                 {
583                                                     "xtype": "ColumnModel",
584                                                     "header": "Owner",
585                                                     "width": 75,
586                                                     "dataIndex": "owner_id",
587                                                     "|renderer": "function(v) { return String.format('{0}', v); }",
588                                                     "|xns": "Roo.grid",
589                                                     "*prop": "colModel[]"
590                                                 },
591                                                 {
592                                                     "xtype": "ColumnModel",
593                                                     "header": "Priority",
594                                                     "width": 75,
595                                                     "dataIndex": "priority_id",
596                                                     "|renderer": "function(v) { return String.format('{0}', v); }",
597                                                     "|xns": "Roo.grid",
598                                                     "*prop": "colModel[]"
599                                                 },
600                                                 {
601                                                     "xtype": "ColumnModel",
602                                                     "header": "Severity",
603                                                     "width": 75,
604                                                     "dataIndex": "severity_id",
605                                                     "|renderer": "function(v) { return String.format('{0}', v); }",
606                                                     "|xns": "Roo.grid",
607                                                     "*prop": "colModel[]"
608                                                 },
609                                                 {
610                                                     "xtype": "ColumnModel",
611                                                     "header": "Classification",
612                                                     "width": 75,
613                                                     "dataIndex": "classification_id",
614                                                     "|renderer": "function(v) { return String.format('{0}', v); }",
615                                                     "|xns": "Roo.grid",
616                                                     "*prop": "colModel[]"
617                                                 },
618                                                 {
619                                                     "xtype": "ColumnModel",
620                                                     "header": "Resolution",
621                                                     "width": 75,
622                                                     "dataIndex": "resolution_id",
623                                                     "|renderer": "function(v) { return String.format('{0}', v); }",
624                                                     "|xns": "Roo.grid",
625                                                     "*prop": "colModel[]"
626                                                 },
627                                                 {
628                                                     "xtype": "ColumnModel",
629                                                     "header": "Cc",
630                                                     "width": 200,
631                                                     "dataIndex": "cc",
632                                                     "|renderer": "function(v) { return String.format('{0}', v); }",
633                                                     "|xns": "Roo.grid",
634                                                     "*prop": "colModel[]"
635                                                 },
636                                                 {
637                                                     "xtype": "ColumnModel",
638                                                     "header": "Status",
639                                                     "width": 75,
640                                                     "dataIndex": "status",
641                                                     "|renderer": "function(v) { return String.format('{0}', v); }",
642                                                     "|xns": "Roo.grid",
643                                                     "*prop": "colModel[]"
644                                                 },
645                                                 {
646                                                     "xtype": "ColumnModel",
647                                                     "header": "Estimated",
648                                                     "width": 75,
649                                                     "dataIndex": "estimated",
650                                                     "|renderer": "function(v) { return String.format('{0}', v); }",
651                                                     "|xns": "Roo.grid",
652                                                     "*prop": "colModel[]"
653                                                 },
654                                                 {
655                                                     "xtype": "ColumnModel",
656                                                     "header": "Spent",
657                                                     "width": 75,
658                                                     "dataIndex": "spent",
659                                                     "|renderer": "function(v) { return String.format('{0}', v); }",
660                                                     "|xns": "Roo.grid",
661                                                     "*prop": "colModel[]"
662                                                 },
663                                                 {
664                                                     "xtype": "ColumnModel",
665                                                     "header": "X fieldname",
666                                                     "width": 200,
667                                                     "dataIndex": "x_fieldname",
668                                                     "|renderer": "function(v) { return String.format('{0}', v); }",
669                                                     "|xns": "Roo.grid",
670                                                     "*prop": "colModel[]"
671                                                 },
672                                                 {
673                                                     "xtype": "ColumnModel",
674                                                     "header": "Developer",
675                                                     "width": 75,
676                                                     "dataIndex": "developer_id",
677                                                     "|renderer": "function(v) { return String.format('{0}', v); }",
678                                                     "|xns": "Roo.grid",
679                                                     "*prop": "colModel[]"
680                                                 },
681                                                 {
682                                                     "xtype": "ColumnModel",
683                                                     "header": "Milestone",
684                                                     "width": 75,
685                                                     "dataIndex": "milestone_id",
686                                                     "|renderer": "function(v) { return String.format('{0}', v); }",
687                                                     "|xns": "Roo.grid",
688                                                     "*prop": "colModel[]"
689                                                 }
690                                             ]
691                                         }
692                                     ]
693                                 }
694                             ]
695                         }
696                     ]
697                 }
698             ]
699         }
700     ],
701     "permname": "",
702     "modOrder": "001"
703 }