3 "name": "Pman.Dialog.MTrackTime",
6 "path": "/home/alan/gitlive/Pman.MTrack/Pman.Dialog.MTrackTime.bjs",
10 "title": "Time Manager",
12 "xtype": "LayoutDialog",
18 "xtype": "LayoutRegion",
24 "xtype": "NestedLayoutPanel",
29 "xtype": "BorderLayout",
35 "xtype": "LayoutRegion",
40 "title": "Active / Logged Time",
41 "xtype": "LayoutRegion",
48 "xtype": "LayoutRegion",
53 "|activate": "function() {\n _this.timepanel = this;\n if (_this.timegrid) {\n // _this.grid.footer.onClick('first');\n }\n}"
59 "tableName": "cash_invoice_entry",
60 "title": "cash_invoice_entry",
66 "|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}",
67 "|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"
70 "autoExpandColumn": "activity_ref",
83 "allowBlank": "false",
85 "emptyText": "Select Person",
86 "forceSelection": true,
88 "loadingText": "Searching...",
91 "qtip": "Select Person",
92 "selectOnFocus": true,
93 "triggerAction": "all",
96 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
98 "fieldLabel": "Person",
109 "|sortInfo": "{ direction : 'ASC', field: 'id' }",
111 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
116 "xtype": "HttpProxy",
119 "|url": "baseURL + '/Roo/Person.php'"
123 "xtype": "JsonReader",
127 "totalProperty": "total",
128 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
137 "*prop": "dataSource",
140 "|sortInfo": "{ field : 'description', direction: 'ASC' }",
145 "xtype": "HttpProxy",
147 "|url": "baseURL + '/Roo/cash_invoice_entry.php'",
152 "xtype": "JsonReader",
153 "totalProperty": "total",
157 "|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]"
162 "*prop": "colModel[]",
166 "xtype": "ColumnModel",
167 "|renderer": "function(v) { return String.format('{0}', v); }",
171 "*prop": "colModel[]",
172 "dataIndex": "activity_ref",
173 "header": "Activity",
175 "xtype": "ColumnModel",
176 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
180 "*prop": "colModel[]",
181 "dataIndex": "entered_dt",
182 "header": "Timesheet",
184 "xtype": "ColumnModel",
185 "|renderer": "function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); }",
194 "xtype": "NestedLayoutPanel",
199 "xtype": "BorderLayout",
206 "xtype": "LayoutRegion",
211 "title": "Task Queue",
212 "xtype": "LayoutRegion",
217 "|activate": "function() {\n _this.queuepanel = this;\n if (_this.queuegrid) {\n //_this.queuegrid.footer.onClick('first');\n }\n}"
220 "fitContainer": true,
223 "tableName": "mtrack_ticket",
224 "title": "mtrack_ticket",
225 "xtype": "GridPanel",
230 "|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}",
231 "|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"
234 "autoExpandColumn": "summary",
240 "*prop": "dataSource",
243 "|sortInfo": "{ field : 'summary', direction: 'ASC' }",
248 "xtype": "HttpProxy",
250 "|url": "baseURL + '/Roo/mtrack_ticket.php'",
255 "xtype": "JsonReader",
256 "totalProperty": "total",
260 "|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]"
265 "xtype": "ColumnModel",
268 "dataIndex": "summary",
269 "|renderer": "function(v) { return String.format('{0}', v); }",
271 "*prop": "colModel[]"
279 "xtype": "ContentPanel",
284 "|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",
285 "|rendered": "function (form)\n{\n _this.form= form;\n}\n"
289 "style": "margin-left:10px;",
291 "|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",
292 "|url": "baseURL + '/Roo/cash_invoice_entry.php'",
297 "render": "function (_self)\n{\n _this.projectSel = _self;\n}",
298 "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}"
300 "allowBlank": "false",
301 "displayField": "name",
303 "emptyText": "Select Project",
304 "fieldLabel": "Project",
305 "forceSelection": true,
306 "hiddenName": "project_id",
308 "loadingText": "Searching...",
310 "name": "project_id_name",
312 "qtip": "Select Projects",
313 "queryParam": "query[name]",
314 "selectOnFocus": true,
315 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{code}</b> - {name}</div>",
316 "triggerAction": "all",
325 "|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"
330 "|sortInfo": "{ field: 'code', direction: 'ASC' }",
335 "xtype": "HttpProxy",
338 "|url": "baseURL + '/Roo/Projects.php'"
342 "xtype": "JsonReader",
346 "totalProperty": "total",
347 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
361 "keyup": "function (_self, e)\n{\n _this.selectedRec.set('description', this.getValue());\n _this.grid.dataSource.updateBar(_this.selectedRec);\n \n}"
363 "fieldLabel": "Description",
365 "name": "description",
421 "title": "Plan Time",
422 "xtype": "NestedLayoutPanel",
427 "xtype": "BorderLayout",
432 "title": "Open Tasks (Unassigned) / Select Project",
434 "xtype": "LayoutRegion",
439 "title": "Assigned to / Prioritized (all projects)",
440 "xtype": "LayoutRegion",
445 "|activate": "function() {\n _this.openpanel = this;\n if (_this.opengrid) {\n // _this.opengrid.footer.onClick('first');\n }\n}"
448 "fitContainer": true,
451 "tableName": "mtrack_ticket",
452 "title": "mtrack_ticket",
453 "xtype": "GridPanel",
458 "|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}",
459 "|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"
462 "autoExpandColumn": "summary",
475 "emptyText": "Select Project",
476 "fieldLabel": "mtrack_ticket",
477 "forceSelection": true,
480 "loadingText": "Searching...",
484 "qtip": "Select mtrack_ticket",
486 "selectOnFocus": true,
487 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
488 "triggerAction": "all",
500 "|sortInfo": "{ direction : 'ASC', field: 'id' }",
502 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
507 "xtype": "HttpProxy",
510 "|url": "baseURL + '/Roo/mtrack_ticket.php'"
514 "xtype": "JsonReader",
518 "totalProperty": "total",
519 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"summary\",\"type\":\"string\"}]"
528 "*prop": "dataSource",
531 "|sortInfo": "{ field : 'summary', direction: 'ASC' }",
536 "xtype": "HttpProxy",
538 "|url": "baseURL + '/Roo/mtrack_ticket.php'",
543 "xtype": "JsonReader",
544 "totalProperty": "total",
548 "|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]"
553 "xtype": "ColumnModel",
556 "dataIndex": "summary",
557 "|renderer": "function(v) { return String.format('{0}', v); }",
559 "*prop": "colModel[]"
567 "|activate": "function() {\n _this.openpanel = this;\n if (_this.opengrid) {\n // _this.opengrid.footer.onClick('first');\n }\n}"
570 "fitContainer": true,
573 "tableName": "mtrack_ticket",
574 "title": "mtrack_ticket",
575 "xtype": "GridPanel",
580 "|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}",
581 "|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"
584 "autoExpandColumn": "summary",
597 "emptyText": "Select Person",
598 "fieldLabel": "mtrack_ticket",
599 "forceSelection": true,
602 "loadingText": "Searching...",
606 "qtip": "Select mtrack_ticket",
608 "selectOnFocus": true,
609 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
610 "triggerAction": "all",
622 "|sortInfo": "{ direction : 'ASC', field: 'id' }",
624 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
629 "xtype": "HttpProxy",
632 "|url": "baseURL + '/Roo/mtrack_ticket.php'"
636 "xtype": "JsonReader",
640 "totalProperty": "total",
641 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"summary\",\"type\":\"string\"}]"
650 "*prop": "dataSource",
653 "|sortInfo": "{ field : 'summary', direction: 'ASC' }",
658 "xtype": "HttpProxy",
660 "|url": "baseURL + '/Roo/mtrack_ticket.php'",
665 "xtype": "JsonReader",
666 "totalProperty": "total",
670 "|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]"
675 "xtype": "ColumnModel",
678 "dataIndex": "summary",
679 "|renderer": "function(v) { return String.format('{0}', v); }",
681 "*prop": "colModel[]"