typo in SQL
[Pman.MTrack] / Pman.Dialog.MTrackTime.js
1 //<script type="text/javascript">
2
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
4
5 Roo.namespace('Pman.Dialog');
6
7 Pman.Dialog.MTrackTime = {
8
9  _strings : {
10   '9a221c25cceeb0d108ff6cb635dc8b8b' :"Open Tasks (Unassigned) / Select Project",
11   '9e727fdd3aec8274f46685441900280d' :"Project",
12   '6a58f977f2b623b695a340766f2a6843' :"Select Project",
13   '74cf22d20dea80f7bd8800a6da89a722' :"Select mtrack_ticket",
14   'c751439d0db3883ac1c8e816327adcab' :"Ticket",
15   '290612199861c31d1036b185b4e69b75' :"Summary",
16   '1fa1f1ccb57b2486b4c05122d64868d4' :"Not on Project work",
17   '6cca3734b44a6ae61b40c9a915d122f4' :"Task Queue",
18   'ed7b9312345d291c1ccf68096e65ca54' :"Ticket Details",
19   '1243daf593fa297e07ab03bf06d925af' :"Searching...",
20   '645fcdd1616f8c7dbb207f6802786431' :"Time Manager",
21   '329a87b3fae81c1c17a185c78d2e0e63' :"cash_invoice_entry",
22   '9deec6a3dfda06500b808d70875f0a8f' :"Log Time",
23   '40bed7cf9b3d4bb3a3d7a7e3eb18c5eb' :"Person",
24   '340c2ee497b85d5954b01c64de7f44f6' :"Select Person",
25   'f4c6f851b00d5518bf888815de279aba' :"Notes",
26   '24f27bda5dd2c488aa9bc7700ba98c34' :"Select Projects",
27   '07ca5050e697392c9ed47e6453f1453f' :"Completed",
28   'a76d4ef5f3f6a672bbfab2865563e530' :"Time",
29   'b5a7adde1af5c87d7fd797b6245c2a39' :"Description",
30   '642f8356fcf65868f037f92e0e10c3cd' :"Plan Time",
31   '9e51cf61fbb08a10c12619611dc818ad' :"Active / Logged Time",
32   '3efbc55730fd4af147b96183d8afbd3b' :"mtrack_ticket",
33   'b2439dea1dd89e6f694df484214e57cf' :"Working on this",
34   'f49f927095bb01b44c96d29c8c09f3a3' :"Assigned to  / Prioritized (all projects)"
35  },
36
37  dialog : false,
38  callback:  false,
39
40  show : function(data, cb)
41  {
42   if (!this.dialog) {
43    this.create();
44   }
45
46   this.callback = cb;
47   this.data = data;
48   this.dialog.show(this.data._el);
49   if (this.form) {
50    this.form.reset();
51    this.form.setValues(data);
52    this.form.fireEvent('actioncomplete', this.form,  { type: 'setdata', data: data });
53   }
54
55  },
56
57  create : function()
58  {
59    var _this = this;
60    this.dialog = Roo.factory({
61     height : 700,
62     title : _this._strings['645fcdd1616f8c7dbb207f6802786431'] /* Time Manager */,
63     width : 1000,
64     xns : Roo,
65     '|xns' : 'Roo',
66     xtype : 'LayoutDialog',
67     center : {
68      tabPosition : 'top',
69      xns : Roo,
70      '|xns' : 'Roo',
71      xtype : 'LayoutRegion'
72     },
73     items  : [
74      {
75       region : 'center',
76       title : _this._strings['9deec6a3dfda06500b808d70875f0a8f'] /* Log Time */,
77       xns : Roo,
78       '|xns' : 'Roo',
79       xtype : 'NestedLayoutPanel',
80       layout : {
81        xns : Roo,
82        '|xns' : 'Roo',
83        xtype : 'BorderLayout',
84        center : {
85         title : _this._strings['9e51cf61fbb08a10c12619611dc818ad'] /* Active / Logged Time */,
86         xns : Roo,
87         '|xns' : 'Roo',
88         xtype : 'LayoutRegion'
89        },
90        east : {
91         collapsed : true,
92         collapsedTitle : 'Ticket Details',
93         collapsible : true,
94         split : true,
95         title : _this._strings['ed7b9312345d291c1ccf68096e65ca54'] /* Ticket Details */,
96         width : 350,
97         xns : Roo,
98         '|xns' : 'Roo',
99         xtype : 'LayoutRegion'
100        },
101        west : {
102         split : true,
103         width : 600,
104         xns : Roo,
105         '|xns' : 'Roo',
106         xtype : 'LayoutRegion'
107        },
108        items  : [
109         {
110          background : true,
111          fitContainer : true,
112          fitToframe : true,
113          region : 'west',
114          tableName : 'cash_invoice_entry',
115          title : _this._strings['329a87b3fae81c1c17a185c78d2e0e63'] /* cash_invoice_entry */,
116          xns : Roo,
117          '|xns' : 'Roo',
118          xtype : 'GridPanel',
119          listeners : {
120           activate : function() {
121                _this.timepanel = this;
122                if (_this.timegrid) {
123                   // _this.grid.footer.onClick('first');
124                }
125            }
126          },
127          grid : {
128           autoExpandColumn : 'activity_ref',
129           loadMask : true,
130           xns : Roo.grid,
131           '|xns' : 'Roo.grid',
132           xtype : 'Grid',
133           listeners : {
134            render : function() 
135             {
136                 _this.timegrid = this; 
137                 //_this.dialog = Pman.Dialog.FILL_IN
138                 if (_this.timepanel.active) {
139                   // this.footer.onClick('first');
140                 }
141             },
142            rowdblclick : function (_self, rowIndex, e)
143             {
144                 if (!_this.dialog) return;
145                 _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
146                     _this.grid.footer.onClick('first');
147                 }); 
148             }
149           },
150           toolbar : {
151            xns : Roo,
152            '|xns' : 'Roo',
153            xtype : 'Toolbar',
154            items  : [
155             {
156              allowBlank : false,
157              displayField : 'name',
158              editable : false,
159              emptyText : _this._strings['340c2ee497b85d5954b01c64de7f44f6'] /* Select Person */,
160              fieldLabel : _this._strings['40bed7cf9b3d4bb3a3d7a7e3eb18c5eb'] /* Person */,
161              forceSelection : true,
162              hiddenName : '',
163              listWidth : 400,
164              loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
165              minChars : 2,
166              name : '',
167              pageSize : 20,
168              qtip : _this._strings['340c2ee497b85d5954b01c64de7f44f6'] /* Select Person */,
169              queryParam : '',
170              selectOnFocus : true,
171              tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> {email} </div>',
172              triggerAction : 'all',
173              typeAhead : true,
174              valueField : 'id',
175              width : 300,
176              xns : Roo.form,
177              '|xns' : 'Roo.form',
178              xtype : 'ComboBox',
179              listeners : {
180               render : function (_self)
181                {
182                        _this.personSelect = _self;
183                }
184              },
185              store : {
186               remoteSort : true,
187               sortInfo : { direction : 'ASC', field: 'id' },
188               xns : Roo.data,
189               '|xns' : 'Roo.data',
190               xtype : 'Store',
191               listeners : {
192                beforeload : function (_self, o){
193                     o.params = o.params || {};
194                     // set more here
195                     o.params.company_id_comptype = 'OWNER';
196                 }
197               },
198               proxy : {
199                method : 'GET',
200                url : baseURL + '/Roo/Person.php',
201                xns : Roo.data,
202                '|xns' : 'Roo.data',
203                xtype : 'HttpProxy'
204               },
205               reader : {
206                fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}],
207                id : 'id',
208                root : 'data',
209                totalProperty : 'total',
210                xns : Roo.data,
211                '|xns' : 'Roo.data',
212                xtype : 'JsonReader'
213               }
214              }
215             }
216            ]
217           },
218           dataSource : {
219            remoteSort : true,
220            sortInfo : { field : 'action_dt', direction: 'DESC' },
221            xns : Roo.data,
222            '|xns' : 'Roo.data',
223            xtype : 'Store',
224            proxy : {
225             method : 'GET',
226             url : baseURL + '/Roo/cash_invoice_entry.php',
227             xns : Roo.data,
228             '|xns' : 'Roo.data',
229             xtype : 'HttpProxy',
230             listeners : {
231              beforeload : function (This, params)
232               {
233                  if (_this.personSelect.getValue()) {
234                       params.person_id = _this.personSelect.getValue();
235                   } else {
236                       params.person_id = Pman.Login.authUser.id;
237                   }
238                   
239                   
240               }
241             }
242            },
243            reader : {
244             fields : [
245                 {
246                     'name': 'id',
247                     'type': 'int'
248                 },
249                 {
250                     'name': 'entry_dt',
251                     'type': 'date',
252                     'dateFormat': 'Y-m-d'
253                 },
254                 {
255                     'name': 'entered_dt',
256                     'type': 'date',
257                     'dateFormat': 'Y-m-d'
258                 },
259                 {
260                     'name': 'description',
261                     'type': 'string'
262                 },
263                 {
264                     'name': 'action',
265                     'type': 'string'
266                 },
267                 {
268                     'name': 'qty',
269                     'type': 'string'
270                 },
271                 {
272                     'name': 'invoice_id',
273                     'type': 'int'
274                 },
275                 {
276                     'name': 'pricevalue',
277                     'type': 'float'
278                 },
279                 {
280                     'name': 'qtyvalue',
281                     'type': 'float'
282                 },
283                 {
284                     'name': 'to_account_id',
285                     'type': 'int'
286                 },
287                 {
288                     'name': 'discount',
289                     'type': 'float'
290                 },
291                 {
292                     'name': 'action_dt',
293                     'type': 'date',
294                     'dateFormat': 'Y-m-d'
295                 },
296                 {
297                     'name': 'staff_id',
298                     'type': 'int'
299                 },
300                 {
301                     'name': 'invoice_id_id',
302                     'type': 'int'
303                 },
304                 {
305                     'name': 'invoice_id_idtxt',
306                     'type': 'string'
307                 },
308                 {
309                     'name': 'invoice_id_project_id',
310                     'type': 'int'
311                 },
312                 {
313                     'name': 'invoice_id_opened_dt',
314                     'type': 'date'
315                 },
316                 {
317                     'name': 'invoice_id_posted',
318                     'type': 'date'
319                 },
320                 {
321                     'name': 'invoice_id_post_transaction_id',
322                     'type': 'int'
323                 },
324                 {
325                     'name': 'invoice_id_post_account_id',
326                     'type': 'int'
327                 },
328                 {
329                     'name': 'invoice_id_paid',
330                     'type': 'float'
331                 },
332                 {
333                     'name': 'invoice_id_total',
334                     'type': 'float'
335                 },
336                 {
337                     'name': 'invoice_id_duedate',
338                     'type': 'date'
339                 },
340                 {
341                     'name': 'to_account_id_id',
342                     'type': 'int'
343                 },
344                 {
345                     'name': 'to_account_id_name',
346                     'type': 'string'
347                 },
348                 {
349                     'name': 'to_account_id_type',
350                     'type': 'string'
351                 },
352                 {
353                     'name': 'to_account_id_commodity',
354                     'type': 'string'
355                 },
356                 {
357                     'name': 'to_account_id_scu',
358                     'type': 'string'
359                 },
360                 {
361                     'name': 'to_account_id_description',
362                     'type': 'string'
363                 },
364                 {
365                     'name': 'to_account_id_parent',
366                     'type': 'int'
367                 },
368                 {
369                     'name': 'to_account_id_fullname',
370                     'type': 'string'
371                 },
372                 {
373                     'name': 'staff_id_id',
374                     'type': 'int'
375                 },
376                 {
377                     'name': 'staff_id_office_id',
378                     'type': 'int'
379                 },
380                 {
381                     'name': 'staff_id_name',
382                     'type': 'string'
383                 },
384                 {
385                     'name': 'staff_id_phone',
386                     'type': 'string'
387                 },
388                 {
389                     'name': 'staff_id_fax',
390                     'type': 'string'
391                 },
392                 {
393                     'name': 'staff_id_email',
394                     'type': 'string'
395                 },
396                 {
397                     'name': 'staff_id_company_id',
398                     'type': 'int'
399                 },
400                 {
401                     'name': 'staff_id_role',
402                     'type': 'string'
403                 },
404                 {
405                     'name': 'staff_id_active',
406                     'type': 'int'
407                 },
408                 {
409                     'name': 'staff_id_remarks',
410                     'type': 'string'
411                 },
412                 {
413                     'name': 'staff_id_passwd',
414                     'type': 'string'
415                 },
416                 {
417                     'name': 'staff_id_owner_id',
418                     'type': 'int'
419                 },
420                 {
421                     'name': 'staff_id_lang',
422                     'type': 'string'
423                 },
424                 {
425                     'name': 'staff_id_no_reset_sent',
426                     'type': 'int'
427                 },
428                 {
429                     'name': 'staff_id_action_type',
430                     'type': 'string'
431                 },
432                 {
433                     'name': 'staff_id_project_id',
434                     'type': 'int'
435                 },
436                 {
437                     'name': 'staff_id_deleted_by',
438                     'type': 'int'
439                 },
440                 {
441                     'name': 'staff_id_deleted_dt',
442                     'type': 'date'
443                 }
444             ],
445             id : 'id',
446             root : 'data',
447             totalProperty : 'total',
448             xns : Roo.data,
449             '|xns' : 'Roo.data',
450             xtype : 'JsonReader'
451            }
452           },
453           colModel : [
454            {
455             dataIndex : 'action_dt',
456             header : _this._strings['a76d4ef5f3f6a672bbfab2865563e530'] /* Time */,
457             renderer : function(v,x,r) { 
458                 var s = r.data.qtyvalue;
459                 var end = v.add(Date.HOUR, s);
460                 return String.format('{0} {1}-{2}',
461                      v.format('D'), v.format('H:i'), end.format('H:i') );
462             },
463             width : 100,
464             xns : Roo.grid,
465             '|xns' : 'Roo.grid',
466             xtype : 'ColumnModel'
467            },
468            {
469             dataIndex : 'ticket_id_summary',
470             header : _this._strings['c751439d0db3883ac1c8e816327adcab'] /* Ticket */,
471             renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); },
472             width : 200,
473             xns : Roo.grid,
474             '|xns' : 'Roo.grid',
475             xtype : 'ColumnModel'
476            },
477            {
478             dataIndex : 'notes',
479             header : _this._strings['f4c6f851b00d5518bf888815de279aba'] /* Notes */,
480             renderer : function(v) { return String.format('{0}', v ? v.format('d/M/Y') : ''); },
481             width : 300,
482             xns : Roo.grid,
483             '|xns' : 'Roo.grid',
484             xtype : 'ColumnModel'
485            }
486           ]
487          }
488         },
489         {
490          region : 'center',
491          xns : Roo,
492          '|xns' : 'Roo',
493          xtype : 'NestedLayoutPanel',
494          layout : {
495           xns : Roo,
496           '|xns' : 'Roo',
497           xtype : 'BorderLayout',
498           center : {
499            title : _this._strings['6cca3734b44a6ae61b40c9a915d122f4'] /* Task Queue */,
500            xns : Roo,
501            '|xns' : 'Roo',
502            xtype : 'LayoutRegion'
503           },
504           north : {
505            height : 200,
506            xns : Roo,
507            '|xns' : 'Roo',
508            xtype : 'LayoutRegion'
509           },
510           items  : [
511            {
512             background : true,
513             fitContainer : true,
514             fitToframe : true,
515             region : 'center',
516             tableName : 'mtrack_ticket',
517             title : _this._strings['3efbc55730fd4af147b96183d8afbd3b'] /* mtrack_ticket */,
518             xns : Roo,
519             '|xns' : 'Roo',
520             xtype : 'GridPanel',
521             listeners : {
522              activate : function() {
523                   _this.queuepanel = this;
524                   if (_this.queuegrid) {
525                       //_this.queuegrid.footer.onClick('first');
526                   }
527               }
528             },
529             grid : {
530              autoExpandColumn : 'summary',
531              loadMask : true,
532              xns : Roo.grid,
533              '|xns' : 'Roo.grid',
534              xtype : 'Grid',
535              listeners : {
536               render : function() 
537                {
538                    _this.queuegrid = this; 
539                    //_this.dialog = Pman.Dialog.FILL_IN
540                    if (_this.queuepanel.active) {
541                       //this.footer.onClick('first');
542                    }
543                },
544               rowdblclick : function (_self, rowIndex, e)
545                {
546                    if (!_this.dialog) return;
547                    _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
548                        _this.grid.footer.onClick('first');
549                    }); 
550                }
551              },
552              toolbar : {
553               xns : Roo,
554               '|xns' : 'Roo',
555               xtype : 'Toolbar',
556               items  : [
557                {
558                 allowBlank : false,
559                 displayField : 'name',
560                 editable : false,
561                 emptyText : _this._strings['6a58f977f2b623b695a340766f2a6843'] /* Select Project */,
562                 fieldLabel : _this._strings['9e727fdd3aec8274f46685441900280d'] /* Project */,
563                 forceSelection : true,
564                 hiddenName : 'project_id',
565                 listWidth : 400,
566                 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
567                 minChars : 2,
568                 name : 'project_id_name',
569                 pageSize : 20,
570                 qtip : _this._strings['24f27bda5dd2c488aa9bc7700ba98c34'] /* Select Projects */,
571                 queryParam : 'query[name]',
572                 selectOnFocus : true,
573                 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{code}</b> - {name}</div>',
574                 triggerAction : 'all',
575                 typeAhead : true,
576                 valueField : 'id',
577                 width : 200,
578                 xns : Roo.form,
579                 '|xns' : 'Roo.form',
580                 xtype : 'ComboBox',
581                 listeners : {
582                  beforeselect : function (combo, record, index)
583                   {
584                   
585                        
586                       _this.queuegrid.ds.load({});
587                       
588                         
589                        
590                   },
591                  render : function (_self)
592                   {
593                       _this.projectSel = _self;
594                   }
595                 },
596                 store : {
597                  remoteSort : true,
598                  sortInfo : { field: 'code', direction: 'ASC' },
599                  xns : Roo.data,
600                  '|xns' : 'Roo.data',
601                  xtype : 'Store',
602                  listeners : {
603                   beforeload : function (_self, o){
604                        o.params = o.params || {};
605                        o.params['query[project_filter]'] = 'P,N,U'; // actually this is the default.
606                        
607                        // set more here
608                    }
609                  },
610                  proxy : {
611                   method : 'GET',
612                   url : baseURL + '/Roo/Projects.php',
613                   xns : Roo.data,
614                   '|xns' : 'Roo.data',
615                   xtype : 'HttpProxy'
616                  },
617                  reader : {
618                   fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}],
619                   id : 'id',
620                   root : 'data',
621                   totalProperty : 'total',
622                   xns : Roo.data,
623                   '|xns' : 'Roo.data',
624                   xtype : 'JsonReader'
625                  }
626                 }
627                }
628               ]
629              },
630              dataSource : {
631               remoteSort : true,
632               sortInfo : { field : 'summary', direction: 'ASC' },
633               xns : Roo.data,
634               '|xns' : 'Roo.data',
635               xtype : 'Store',
636               proxy : {
637                method : 'GET',
638                url : baseURL + '/Roo/mtrack_ticket.php',
639                xns : Roo.data,
640                '|xns' : 'Roo.data',
641                xtype : 'HttpProxy'
642               },
643               reader : {
644                fields : [
645                    {
646                        'name': 'id',
647                        'type': 'int'
648                    } /*,
649                    {
650                        'name': 'project_id',
651                        'type': 'int'
652                    },
653                    {
654                        'name': 'summary',
655                        'type': 'string'
656                    },
657                    {
658                        'name': 'description',
659                        'type': 'string'
660                    },
661                    {
662                        'name': 'changelog',
663                        'type': 'string'
664                    },
665                    {
666                        'name': 'created',
667                        'type': 'int'
668                    },
669                    {
670                        'name': 'updated',
671                        'type': 'int'
672                    },
673                    {
674                        'name': 'owner_id',
675                        'type': 'int'
676                    },
677                    {
678                        'name': 'priority_id',
679                        'type': 'int'
680                    },
681                    {
682                        'name': 'severity_id',
683                        'type': 'int'
684                    },
685                    {
686                        'name': 'classification_id',
687                        'type': 'int'
688                    },
689                    {
690                        'name': 'resolution_id',
691                        'type': 'int'
692                    },
693                    {
694                        'name': 'cc',
695                        'type': 'string'
696                    },
697                    {
698                        'name': 'status',
699                        'type': 'int'
700                    },
701                    {
702                        'name': 'estimated',
703                        'type': 'float'
704                    },
705                    {
706                        'name': 'spent',
707                        'type': 'float'
708                    },
709                    {
710                        'name': 'x_fieldname',
711                        'type': 'string'
712                    },
713                    {
714                        'name': 'developer_id',
715                        'type': 'int'
716                    },
717                    {
718                        'name': 'milestone_id',
719                        'type': 'int'
720                    },
721                    {
722                        'name': 'updated_id',
723                        'type': 'int'
724                    },
725                    {
726                        'name': 'updated_person_id',
727                        'type': 'int'
728                    },
729                    {
730                        'name': 'updated_ontable',
731                        'type': 'string'
732                    },
733                    {
734                        'name': 'updated_onid',
735                        'type': 'int'
736                    },
737                    {
738                        'name': 'updated_changedate',
739                        'type': 'date'
740                    },
741                    {
742                        'name': 'updated_reason',
743                        'type': 'string'
744                    },
745                    {
746                        'name': 'created_id',
747                        'type': 'int'
748                    },
749                    {
750                        'name': 'created_person_id',
751                        'type': 'int'
752                    },
753                    {
754                        'name': 'created_ontable',
755                        'type': 'string'
756                    },
757                    {
758                        'name': 'created_onid',
759                        'type': 'int'
760                    },
761                    {
762                        'name': 'created_changedate',
763                        'type': 'date'
764                    },
765                    {
766                        'name': 'created_reason',
767                        'type': 'string'
768                    },
769                    {
770                        'name': 'owner_id_id',
771                        'type': 'int'
772                    },
773                    {
774                        'name': 'owner_id_office_id',
775                        'type': 'int'
776                    },
777                    {
778                        'name': 'owner_id_name',
779                        'type': 'string'
780                    },
781                    {
782                        'name': 'owner_id_phone',
783                        'type': 'string'
784                    },
785                    {
786                        'name': 'owner_id_fax',
787                        'type': 'string'
788                    },
789                    {
790                        'name': 'owner_id_email',
791                        'type': 'string'
792                    },
793                    {
794                        'name': 'owner_id_company_id',
795                        'type': 'int'
796                    },
797                    {
798                        'name': 'owner_id_role',
799                        'type': 'string'
800                    },
801                    {
802                        'name': 'owner_id_active',
803                        'type': 'int'
804                    },
805                    {
806                        'name': 'owner_id_remarks',
807                        'type': 'string'
808                    },
809                    {
810                        'name': 'owner_id_passwd',
811                        'type': 'string'
812                    },
813                    {
814                        'name': 'owner_id_owner_id',
815                        'type': 'int'
816                    },
817                    {
818                        'name': 'owner_id_lang',
819                        'type': 'string'
820                    },
821                    {
822                        'name': 'owner_id_no_reset_sent',
823                        'type': 'int'
824                    },
825                    {
826                        'name': 'owner_id_action_type',
827                        'type': 'string'
828                    },
829                    {
830                        'name': 'owner_id_project_id',
831                        'type': 'int'
832                    },
833                    {
834                        'name': 'owner_id_deleted_by',
835                        'type': 'int'
836                    },
837                    {
838                        'name': 'owner_id_deleted_dt',
839                        'type': 'date'
840                    },
841                    {
842                        'name': 'developer_id_id',
843                        'type': 'int'
844                    },
845                    {
846                        'name': 'developer_id_office_id',
847                        'type': 'int'
848                    },
849                    {
850                        'name': 'developer_id_name',
851                        'type': 'string'
852                    },
853                    {
854                        'name': 'developer_id_phone',
855                        'type': 'string'
856                    },
857                    {
858                        'name': 'developer_id_fax',
859                        'type': 'string'
860                    },
861                    {
862                        'name': 'developer_id_email',
863                        'type': 'string'
864                    },
865                    {
866                        'name': 'developer_id_company_id',
867                        'type': 'int'
868                    },
869                    {
870                        'name': 'developer_id_role',
871                        'type': 'string'
872                    },
873                    {
874                        'name': 'developer_id_active',
875                        'type': 'int'
876                    },
877                    {
878                        'name': 'developer_id_remarks',
879                        'type': 'string'
880                    },
881                    {
882                        'name': 'developer_id_passwd',
883                        'type': 'string'
884                    },
885                    {
886                        'name': 'developer_id_owner_id',
887                        'type': 'int'
888                    },
889                    {
890                        'name': 'developer_id_lang',
891                        'type': 'string'
892                    },
893                    {
894                        'name': 'developer_id_no_reset_sent',
895                        'type': 'int'
896                    },
897                    {
898                        'name': 'developer_id_action_type',
899                        'type': 'string'
900                    },
901                    {
902                        'name': 'developer_id_project_id',
903                        'type': 'int'
904                    },
905                    {
906                        'name': 'developer_id_deleted_by',
907                        'type': 'int'
908                    },
909                    {
910                        'name': 'developer_id_deleted_dt',
911                        'type': 'date'
912                    },
913                    {
914                        'name': 'priority_id_id',
915                        'type': 'int'
916                    },
917                    {
918                        'name': 'priority_id_etype',
919                        'type': 'string'
920                    },
921                    {
922                        'name': 'priority_id_name',
923                        'type': 'string'
924                    },
925                    {
926                        'name': 'priority_id_active',
927                        'type': 'int'
928                    },
929                    {
930                        'name': 'priority_id_seqid',
931                        'type': 'int'
932                    },
933                    {
934                        'name': 'severity_id_id',
935                        'type': 'int'
936                    },
937                    {
938                        'name': 'severity_id_etype',
939                        'type': 'string'
940                    },
941                    {
942                        'name': 'severity_id_name',
943                        'type': 'string'
944                    },
945                    {
946                        'name': 'severity_id_active',
947                        'type': 'int'
948                    },
949                    {
950                        'name': 'severity_id_seqid',
951                        'type': 'int'
952                    },
953                    {
954                        'name': 'classification_id_id',
955                        'type': 'int'
956                    },
957                    {
958                        'name': 'classification_id_etype',
959                        'type': 'string'
960                    },
961                    {
962                        'name': 'classification_id_name',
963                        'type': 'string'
964                    },
965                    {
966                        'name': 'classification_id_active',
967                        'type': 'int'
968                    },
969                    {
970                        'name': 'classification_id_seqid',
971                        'type': 'int'
972                    },
973                    {
974                        'name': 'resolution_id_id',
975                        'type': 'int'
976                    },
977                    {
978                        'name': 'resolution_id_etype',
979                        'type': 'string'
980                    },
981                    {
982                        'name': 'resolution_id_name',
983                        'type': 'string'
984                    },
985                    {
986                        'name': 'resolution_id_active',
987                        'type': 'int'
988                    },
989                    {
990                        'name': 'resolution_id_seqid',
991                        'type': 'int'
992                    },
993                    {
994                        'name': 'status_id',
995                        'type': 'int'
996                    },
997                    {
998                        'name': 'status_etype',
999                        'type': 'string'
1000                    },
1001                    {
1002                        'name': 'status_name',
1003                        'type': 'string'
1004                    },
1005                    {
1006                        'name': 'status_active',
1007                        'type': 'int'
1008                    },
1009                    {
1010                        'name': 'status_seqid',
1011                        'type': 'int'
1012                    },
1013                    {
1014                        'name': 'project_id_id',
1015                        'type': 'int'
1016                    },
1017                    {
1018                        'name': 'project_id_name',
1019                        'type': 'string'
1020                    },
1021                    {
1022                        'name': 'project_id_remarks',
1023                        'type': 'string'
1024                    },
1025                    {
1026                        'name': 'project_id_owner_id',
1027                        'type': 'int'
1028                    },
1029                    {
1030                        'name': 'project_id_code',
1031                        'type': 'string'
1032                    },
1033                    {
1034                        'name': 'project_id_active',
1035                        'type': 'int'
1036                    },
1037                    {
1038                        'name': 'project_id_type',
1039                        'type': 'string'
1040                    },
1041                    {
1042                        'name': 'project_id_client_id',
1043                        'type': 'int'
1044                    },
1045                    {
1046                        'name': 'project_id_team_id',
1047                        'type': 'int'
1048                    },
1049                    {
1050                        'name': 'project_id_file_location',
1051                        'type': 'string'
1052                    },
1053                    {
1054                        'name': 'project_id_open_date',
1055                        'type': 'date'
1056                    },
1057                    {
1058                        'name': 'project_id_open_by',
1059                        'type': 'int'
1060                    },
1061                    {
1062                        'name': 'project_id_close_date',
1063                        'type': 'date'
1064                    },
1065                    {
1066                        'name': 'project_id_countries',
1067                        'type': 'string'
1068                    },
1069                    {
1070                        'name': 'project_id_languages',
1071                        'type': 'string'
1072                    },
1073                    {
1074                        'name': 'project_id_agency_id',
1075                        'type': 'int'
1076                    },
1077                    {
1078                        'name': 'milestone_id_id',
1079                        'type': 'int'
1080                    },
1081                    {
1082                        'name': 'milestone_id_name',
1083                        'type': 'string'
1084                    },
1085                    {
1086                        'name': 'milestone_id_description',
1087                        'type': 'string'
1088                    },
1089                    {
1090                        'name': 'milestone_id_startdate',
1091                        'type': 'date'
1092                    },
1093                    {
1094                        'name': 'milestone_id_duedate',
1095                        'type': 'date'
1096                    },
1097                    {
1098                        'name': 'milestone_id_completed',
1099                        'type': 'date'
1100                    },
1101                    {
1102                        'name': 'milestone_id_deleted',
1103                        'type': 'int'
1104                    },
1105                    {
1106                        'name': 'milestone_id_created',
1107                        'type': 'int'
1108                    },
1109                    {
1110                        'name': 'milestone_id_updated',
1111                        'type': 'int'
1112                    },
1113                    {
1114                        'name': 'milestone_id_project_id',
1115                        'type': 'int'
1116                    } */
1117                ],
1118                id : 'id',
1119                root : 'data',
1120                totalProperty : 'total',
1121                xns : Roo.data,
1122                '|xns' : 'Roo.data',
1123                xtype : 'JsonReader'
1124               }
1125              },
1126              colModel : [
1127               {
1128                dataIndex : 'summary',
1129                header : _this._strings['290612199861c31d1036b185b4e69b75'] /* Summary */,
1130                renderer : function(v) { return String.format('{0}', v); },
1131                width : 200,
1132                xns : Roo.grid,
1133                '|xns' : 'Roo.grid',
1134                xtype : 'ColumnModel'
1135               }
1136              ]
1137             }
1138            },
1139            {
1140             region : 'north',
1141             xns : Roo,
1142             '|xns' : 'Roo',
1143             xtype : 'ContentPanel',
1144             toolbar : {
1145              xns : Roo,
1146              '|xns' : 'Roo',
1147              xtype : 'Toolbar',
1148              items  : [
1149               {
1150                text : _this._strings['b2439dea1dd89e6f694df484214e57cf'] /* Working on this */,
1151                xns : Roo.Toolbar,
1152                '|xns' : 'Roo.Toolbar',
1153                xtype : 'Button'
1154               },
1155               {
1156                text : _this._strings['07ca5050e697392c9ed47e6453f1453f'] /* Completed */,
1157                xns : Roo.Toolbar,
1158                '|xns' : 'Roo.Toolbar',
1159                xtype : 'Button'
1160               },
1161               {
1162                text : _this._strings['1fa1f1ccb57b2486b4c05122d64868d4'] /* Not on Project work */,
1163                xns : Roo.Toolbar,
1164                '|xns' : 'Roo.Toolbar',
1165                xtype : 'Button'
1166               }
1167              ]
1168             },
1169             items  : [
1170              {
1171               activeData : false,
1172               method : 'POST',
1173               saveActive : function(rec, effort) {
1174                   
1175                    effort = effort || 0;
1176                   
1177               
1178                   if (!rec) {
1179                       Roo.log("ERROR: saveActive: record not set ");
1180                       return;
1181                   }
1182               
1183                    var d = Roo.apply({}, rec.data); // copy it so changes do not affect crap...
1184                    
1185                    var upd = (new Date()).format('Y-m-d H:i:s');
1186                    
1187                
1188                    
1189                    
1190                    //Roo.log("SAVE IT: " + Roo.encode(d) );
1191                    
1192                    //     return;
1193                    var at = typeof(d.action_dt) == 'string' ? Date.parseDate(d.action_dt, 'Y-m-d H:i:s') : d.action_dt;
1194                    
1195                    new Pman.Request({
1196                       url : baseURL + '/Roo/Cash_invoice_entry.php',
1197                       method : 'POST',
1198                       params : {
1199                           id : d.id,
1200                           entry_dt: at.format('Y-m-d'),  // this should not change for posted entries really...
1201                           entered_dt: upd,            
1202                           action_dt : at.format('Y-m-d H:i:s'),
1203                           qtyvalue : d.qtyvalue,
1204                           action: 'Hours',
1205                           description: d.description,
1206                           pricevalue: d.pricevalue,  
1207                           project_id : d.project_id,
1208                           staff_id : d.staff_id * 1 ? d.staff_id : Pman.Login.authUser.id,
1209                           ticket_id : d.ticket_id ? d.ticket_id : 0
1210                           
1211                       },
1212                       success : function(res)
1213                       {
1214                           // everythings fine..
1215                           
1216                           // we have to update the view object... now...
1217                           // we can not reload as that may blank out data..
1218                           if (!rec.data.id) {
1219                               Roo.log("Setting data id to " + res.data.id);
1220                               rec.set('id', res.data.id);
1221               
1222                           }
1223               
1224                           
1225                       },
1226                       failure : function()
1227                       {
1228                           effort++;
1229                           if (effort > 3) {
1230                               Roo.MessageBox.alert("Error", "Saving timesheet failed");
1231                               return;
1232                           }
1233                           _this.form.saveActive(rec, effort);
1234                       }
1235                       
1236                    });
1237               },
1238               style : 'margin-left:10px;',
1239               url : baseURL + '/Roo/cash_invoice_entry.php',
1240               xns : Roo.form,
1241               '|xns' : 'Roo.form',
1242               xtype : 'Form',
1243               listeners : {
1244                actioncomplete : function(_self,action)
1245                 {
1246                     
1247                  
1248                     Roo.log('action complete');
1249                     Roo.log(action);
1250                     if (action.type == 'setdata') {
1251                 
1252                         _this.isClose = false; // force flag..
1253                         
1254                         if (this.activeRecord) {
1255                              this.saveActive( this.activeRecord);
1256                         }
1257                         
1258                         
1259                          
1260                         // show form..
1261                         if (!action.data || !action.data.action) {
1262                             _this.form.el.mask('select something'); 
1263                             this.activeRecord  = false;
1264                             _this.form.reset(); 
1265                             return;
1266                         }
1267                         _this.form.el.unmask();   
1268                         
1269                         this.activeRecord = action.rec;
1270                          
1271                         
1272                 
1273                             
1274                         
1275                         // should save here if we are 'dirty!';
1276                         _this.form.reset();
1277                         _this.form.setValues(action.data);
1278                         // set the dates so they are correct..
1279                          _this.form.setValues( { 
1280                  
1281                                 action_dt : action.data.action_dt.format('Y-m-d H:i:s'),
1282                                 entry_dt: action.data.action_dt.format('Y-m-d'),
1283                                 qtyvalue2 : action.data.qtyvalue
1284                             });
1285                         // set the default values..
1286                         // for dirty test...
1287                         _this.form.items.each(function(f) {
1288                             f.originalValue = f.getValue();
1289                         });
1290                         
1291                         
1292                         
1293                         
1294                         // form is set to an event.
1295                         
1296                                 
1297                         
1298                        return;
1299                     }
1300                     
1301                     
1302                     if (action.type == 'load') {
1303                  
1304                         return;
1305                     }
1306                     if (action.type =='submit') {
1307                         // set this on the close button..
1308                          if (_this.isClose) {
1309                             _this.dialog.hide();
1310                          }
1311                         
1312                          if (_this.callback) {
1313                             _this.callback.call(_this, _this.form.getValues());
1314                          }
1315                 
1316                          return;
1317                     }
1318                 },
1319                rendered : function (form)
1320                 {
1321                     _this.form= form;
1322                 }
1323               },
1324               items  : [
1325                {
1326                 allowBlank : false,
1327                 displayField : 'name',
1328                 editable : false,
1329                 emptyText : _this._strings['6a58f977f2b623b695a340766f2a6843'] /* Select Project */,
1330                 fieldLabel : _this._strings['9e727fdd3aec8274f46685441900280d'] /* Project */,
1331                 forceSelection : true,
1332                 hiddenName : 'project_id',
1333                 listWidth : 400,
1334                 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
1335                 minChars : 2,
1336                 name : 'project_id_name',
1337                 pageSize : 20,
1338                 qtip : _this._strings['24f27bda5dd2c488aa9bc7700ba98c34'] /* Select Projects */,
1339                 queryParam : 'query[name]',
1340                 selectOnFocus : true,
1341                 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{code}</b> - {name}</div>',
1342                 triggerAction : 'all',
1343                 typeAhead : true,
1344                 valueField : 'id',
1345                 width : 200,
1346                 xns : Roo.form,
1347                 '|xns' : 'Roo.form',
1348                 xtype : 'ComboBox',
1349                 listeners : {
1350                  beforeselect : function (combo, record, index)
1351                   {
1352                   
1353                       Roo.log('save it');
1354                       var sel = _this.grid.ds.selectedBar();
1355                    
1356                       if (!sel) {
1357                           Roo.log("nothing selected?");
1358                           return;
1359                       }
1360                        
1361                       // active record should be the same thing.
1362                       sel.set('project_id', record.data.id);
1363                       sel.set('project_id_code',     record.data.code);
1364                       sel.set('project_id_name',   record.data.name);
1365                       
1366                       
1367                       _this.grid.ds.updateBar(sel);
1368                       
1369                         
1370                        
1371                   },
1372                  render : function (_self)
1373                   {
1374                       _this.projectSel = _self;
1375                   }
1376                 },
1377                 store : {
1378                  remoteSort : true,
1379                  sortInfo : { field: 'code', direction: 'ASC' },
1380                  xns : Roo.data,
1381                  '|xns' : 'Roo.data',
1382                  xtype : 'Store',
1383                  listeners : {
1384                   beforeload : function (_self, o){
1385                        o.params = o.params || {};
1386                        o.params['query[project_filter]'] = 'P,N,U'; // actually this is the default.
1387                        
1388                        // set more here
1389                    }
1390                  },
1391                  proxy : {
1392                   method : 'GET',
1393                   url : baseURL + '/Roo/Projects.php',
1394                   xns : Roo.data,
1395                   '|xns' : 'Roo.data',
1396                   xtype : 'HttpProxy'
1397                  },
1398                  reader : {
1399                   fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}],
1400                   id : 'id',
1401                   root : 'data',
1402                   totalProperty : 'total',
1403                   xns : Roo.data,
1404                   '|xns' : 'Roo.data',
1405                   xtype : 'JsonReader'
1406                  }
1407                 }
1408                },
1409                {
1410                 labelAlign : 'top',
1411                 width : 300,
1412                 xns : Roo.form,
1413                 '|xns' : 'Roo.form',
1414                 xtype : 'Column',
1415                 items  : [
1416                  {
1417                   fieldLabel : _this._strings['b5a7adde1af5c87d7fd797b6245c2a39'] /* Description */,
1418                   height : 120,
1419                   name : 'description',
1420                   width : 300,
1421                   xns : Roo.form,
1422                   '|xns' : 'Roo.form',
1423                   xtype : 'TextArea',
1424                   listeners : {
1425                    keyup : function (_self, e)
1426                     {
1427                         _this.selectedRec.set('description',   this.getValue());
1428                         _this.grid.dataSource.updateBar(_this.selectedRec);
1429                      
1430                     }
1431                   }
1432                  }
1433                 ]
1434                },
1435                {
1436                 name : 'action',
1437                 xns : Roo.form,
1438                 '|xns' : 'Roo.form',
1439                 xtype : 'Hidden'
1440                },
1441                {
1442                 name : 'staff_id',
1443                 xns : Roo.form,
1444                 '|xns' : 'Roo.form',
1445                 xtype : 'Hidden'
1446                },
1447                {
1448                 name : 'qtyvalue',
1449                 xns : Roo.form,
1450                 '|xns' : 'Roo.form',
1451                 xtype : 'Hidden'
1452                },
1453                {
1454                 name : 'qtyvalue2',
1455                 xns : Roo.form,
1456                 '|xns' : 'Roo.form',
1457                 xtype : 'Hidden'
1458                },
1459                {
1460                 name : 'entry_dt',
1461                 xns : Roo.form,
1462                 '|xns' : 'Roo.form',
1463                 xtype : 'Hidden'
1464                },
1465                {
1466                 name : 'action_dt',
1467                 xns : Roo.form,
1468                 '|xns' : 'Roo.form',
1469                 xtype : 'Hidden'
1470                },
1471                {
1472                 name : 'id',
1473                 xns : Roo.form,
1474                 '|xns' : 'Roo.form',
1475                 xtype : 'Hidden'
1476                }
1477               ]
1478              }
1479             ]
1480            }
1481           ]
1482          }
1483         }
1484        ]
1485       }
1486      },
1487      {
1488       region : 'center',
1489       title : _this._strings['642f8356fcf65868f037f92e0e10c3cd'] /* Plan Time */,
1490       xns : Roo,
1491       '|xns' : 'Roo',
1492       xtype : 'NestedLayoutPanel',
1493       layout : {
1494        xns : Roo,
1495        '|xns' : 'Roo',
1496        xtype : 'BorderLayout',
1497        center : {
1498         title : _this._strings['f49f927095bb01b44c96d29c8c09f3a3'] /* Assigned to  / Prioritized (all projects) */,
1499         xns : Roo,
1500         '|xns' : 'Roo',
1501         xtype : 'LayoutRegion'
1502        },
1503        west : {
1504         title : _this._strings['9a221c25cceeb0d108ff6cb635dc8b8b'] /* Open Tasks (Unassigned) / Select Project */,
1505         width : 450,
1506         xns : Roo,
1507         '|xns' : 'Roo',
1508         xtype : 'LayoutRegion'
1509        },
1510        items  : [
1511         {
1512          background : false,
1513          fitContainer : true,
1514          fitToframe : true,
1515          region : 'west',
1516          tableName : 'mtrack_ticket',
1517          title : _this._strings['3efbc55730fd4af147b96183d8afbd3b'] /* mtrack_ticket */,
1518          xns : Roo,
1519          '|xns' : 'Roo',
1520          xtype : 'GridPanel',
1521          listeners : {
1522           activate : function() {
1523                _this.openpanel = this;
1524                if (_this.opengrid) {
1525               //    _this.opengrid.footer.onClick('first');
1526                }
1527            }
1528          },
1529          grid : {
1530           autoExpandColumn : 'summary',
1531           loadMask : true,
1532           xns : Roo.grid,
1533           '|xns' : 'Roo.grid',
1534           xtype : 'Grid',
1535           listeners : {
1536            render : function() 
1537             {
1538                 _this.opengrid = this; 
1539                 //_this.dialog = Pman.Dialog.FILL_IN
1540                 if (_this.openpanel.active) {
1541                    //this.footer.onClick('first');
1542                 }
1543             },
1544            rowdblclick : function (_self, rowIndex, e)
1545             {
1546                 if (!_this.dialog) return;
1547                 _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
1548                     _this.grid.footer.onClick('first');
1549                 }); 
1550             }
1551           },
1552           toolbar : {
1553            xns : Roo,
1554            '|xns' : 'Roo',
1555            xtype : 'Toolbar',
1556            items  : [
1557             {
1558              displayField : '',
1559              editable : false,
1560              emptyText : _this._strings['6a58f977f2b623b695a340766f2a6843'] /* Select Project */,
1561              fieldLabel : _this._strings['3efbc55730fd4af147b96183d8afbd3b'] /* mtrack_ticket */,
1562              forceSelection : true,
1563              hiddenName : '',
1564              listWidth : 400,
1565              loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
1566              minChars : 2,
1567              name : '',
1568              pageSize : 20,
1569              qtip : _this._strings['74cf22d20dea80f7bd8800a6da89a722'] /* Select mtrack_ticket */,
1570              queryParam : '',
1571              selectOnFocus : true,
1572              tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>',
1573              triggerAction : 'all',
1574              typeAhead : true,
1575              valueField : 'id',
1576              width : 300,
1577              xns : Roo.form,
1578              '|xns' : 'Roo.form',
1579              xtype : 'ComboBox',
1580              store : {
1581               remoteSort : true,
1582               sortInfo : { direction : 'ASC', field: 'id' },
1583               xns : Roo.data,
1584               '|xns' : 'Roo.data',
1585               xtype : 'Store',
1586               listeners : {
1587                beforeload : function (_self, o){
1588                     o.params = o.params || {};
1589                     // set more here
1590                 }
1591               },
1592               proxy : {
1593                method : 'GET',
1594                url : baseURL + '/Roo/mtrack_ticket.php',
1595                xns : Roo.data,
1596                '|xns' : 'Roo.data',
1597                xtype : 'HttpProxy'
1598               },
1599               reader : {
1600                fields : [{"name":"id","type":"int"},{"name":"summary","type":"string"}],
1601                id : 'id',
1602                root : 'data',
1603                totalProperty : 'total',
1604                xns : Roo.data,
1605                '|xns' : 'Roo.data',
1606                xtype : 'JsonReader'
1607               }
1608              }
1609             }
1610            ]
1611           },
1612           dataSource : {
1613            remoteSort : true,
1614            sortInfo : { field : 'summary', direction: 'ASC' },
1615            xns : Roo.data,
1616            '|xns' : 'Roo.data',
1617            xtype : 'Store',
1618            proxy : {
1619             method : 'GET',
1620             url : baseURL + '/Roo/mtrack_ticket.php',
1621             xns : Roo.data,
1622             '|xns' : 'Roo.data',
1623             xtype : 'HttpProxy'
1624            },
1625            reader : {
1626             fields : [
1627                 {
1628                     'name': 'id',
1629                     'type': 'int'
1630                 },
1631                 {
1632                     'name': 'project_id',
1633                     'type': 'int'
1634                 },
1635                 {
1636                     'name': 'summary',
1637                     'type': 'string'
1638                 },
1639                 {
1640                     'name': 'description',
1641                     'type': 'string'
1642                 },
1643                 {
1644                     'name': 'changelog',
1645                     'type': 'string'
1646                 },
1647                 {
1648                     'name': 'created',
1649                     'type': 'int'
1650                 },
1651                 {
1652                     'name': 'updated',
1653                     'type': 'int'
1654                 },
1655                 {
1656                     'name': 'owner_id',
1657                     'type': 'int'
1658                 },
1659                 {
1660                     'name': 'priority_id',
1661                     'type': 'int'
1662                 },
1663                 {
1664                     'name': 'severity_id',
1665                     'type': 'int'
1666                 },
1667                 {
1668                     'name': 'classification_id',
1669                     'type': 'int'
1670                 },
1671                 {
1672                     'name': 'resolution_id',
1673                     'type': 'int'
1674                 },
1675                 {
1676                     'name': 'cc',
1677                     'type': 'string'
1678                 },
1679                 {
1680                     'name': 'status',
1681                     'type': 'int'
1682                 },
1683                 {
1684                     'name': 'estimated',
1685                     'type': 'float'
1686                 },
1687                 {
1688                     'name': 'spent',
1689                     'type': 'float'
1690                 },
1691                 {
1692                     'name': 'x_fieldname',
1693                     'type': 'string'
1694                 },
1695                 {
1696                     'name': 'developer_id',
1697                     'type': 'int'
1698                 },
1699                 {
1700                     'name': 'milestone_id',
1701                     'type': 'int'
1702                 },
1703                 {
1704                     'name': 'updated_id',
1705                     'type': 'int'
1706                 },
1707                 {
1708                     'name': 'updated_person_id',
1709                     'type': 'int'
1710                 },
1711                 {
1712                     'name': 'updated_ontable',
1713                     'type': 'string'
1714                 },
1715                 {
1716                     'name': 'updated_onid',
1717                     'type': 'int'
1718                 },
1719                 {
1720                     'name': 'updated_changedate',
1721                     'type': 'date'
1722                 },
1723                 {
1724                     'name': 'updated_reason',
1725                     'type': 'string'
1726                 },
1727                 {
1728                     'name': 'created_id',
1729                     'type': 'int'
1730                 },
1731                 {
1732                     'name': 'created_person_id',
1733                     'type': 'int'
1734                 },
1735                 {
1736                     'name': 'created_ontable',
1737                     'type': 'string'
1738                 },
1739                 {
1740                     'name': 'created_onid',
1741                     'type': 'int'
1742                 },
1743                 {
1744                     'name': 'created_changedate',
1745                     'type': 'date'
1746                 },
1747                 {
1748                     'name': 'created_reason',
1749                     'type': 'string'
1750                 },
1751                 {
1752                     'name': 'owner_id_id',
1753                     'type': 'int'
1754                 },
1755                 {
1756                     'name': 'owner_id_office_id',
1757                     'type': 'int'
1758                 },
1759                 {
1760                     'name': 'owner_id_name',
1761                     'type': 'string'
1762                 },
1763                 {
1764                     'name': 'owner_id_phone',
1765                     'type': 'string'
1766                 },
1767                 {
1768                     'name': 'owner_id_fax',
1769                     'type': 'string'
1770                 },
1771                 {
1772                     'name': 'owner_id_email',
1773                     'type': 'string'
1774                 },
1775                 {
1776                     'name': 'owner_id_company_id',
1777                     'type': 'int'
1778                 },
1779                 {
1780                     'name': 'owner_id_role',
1781                     'type': 'string'
1782                 },
1783                 {
1784                     'name': 'owner_id_active',
1785                     'type': 'int'
1786                 },
1787                 {
1788                     'name': 'owner_id_remarks',
1789                     'type': 'string'
1790                 },
1791                 {
1792                     'name': 'owner_id_passwd',
1793                     'type': 'string'
1794                 },
1795                 {
1796                     'name': 'owner_id_owner_id',
1797                     'type': 'int'
1798                 },
1799                 {
1800                     'name': 'owner_id_lang',
1801                     'type': 'string'
1802                 },
1803                 {
1804                     'name': 'owner_id_no_reset_sent',
1805                     'type': 'int'
1806                 },
1807                 {
1808                     'name': 'owner_id_action_type',
1809                     'type': 'string'
1810                 },
1811                 {
1812                     'name': 'owner_id_project_id',
1813                     'type': 'int'
1814                 },
1815                 {
1816                     'name': 'owner_id_deleted_by',
1817                     'type': 'int'
1818                 },
1819                 {
1820                     'name': 'owner_id_deleted_dt',
1821                     'type': 'date'
1822                 },
1823                 {
1824                     'name': 'developer_id_id',
1825                     'type': 'int'
1826                 },
1827                 {
1828                     'name': 'developer_id_office_id',
1829                     'type': 'int'
1830                 },
1831                 {
1832                     'name': 'developer_id_name',
1833                     'type': 'string'
1834                 },
1835                 {
1836                     'name': 'developer_id_phone',
1837                     'type': 'string'
1838                 },
1839                 {
1840                     'name': 'developer_id_fax',
1841                     'type': 'string'
1842                 },
1843                 {
1844                     'name': 'developer_id_email',
1845                     'type': 'string'
1846                 },
1847                 {
1848                     'name': 'developer_id_company_id',
1849                     'type': 'int'
1850                 },
1851                 {
1852                     'name': 'developer_id_role',
1853                     'type': 'string'
1854                 },
1855                 {
1856                     'name': 'developer_id_active',
1857                     'type': 'int'
1858                 },
1859                 {
1860                     'name': 'developer_id_remarks',
1861                     'type': 'string'
1862                 },
1863                 {
1864                     'name': 'developer_id_passwd',
1865                     'type': 'string'
1866                 },
1867                 {
1868                     'name': 'developer_id_owner_id',
1869                     'type': 'int'
1870                 },
1871                 {
1872                     'name': 'developer_id_lang',
1873                     'type': 'string'
1874                 },
1875                 {
1876                     'name': 'developer_id_no_reset_sent',
1877                     'type': 'int'
1878                 },
1879                 {
1880                     'name': 'developer_id_action_type',
1881                     'type': 'string'
1882                 },
1883                 {
1884                     'name': 'developer_id_project_id',
1885                     'type': 'int'
1886                 },
1887                 {
1888                     'name': 'developer_id_deleted_by',
1889                     'type': 'int'
1890                 },
1891                 {
1892                     'name': 'developer_id_deleted_dt',
1893                     'type': 'date'
1894                 },
1895                 {
1896                     'name': 'priority_id_id',
1897                     'type': 'int'
1898                 },
1899                 {
1900                     'name': 'priority_id_etype',
1901                     'type': 'string'
1902                 },
1903                 {
1904                     'name': 'priority_id_name',
1905                     'type': 'string'
1906                 },
1907                 {
1908                     'name': 'priority_id_active',
1909                     'type': 'int'
1910                 },
1911                 {
1912                     'name': 'priority_id_seqid',
1913                     'type': 'int'
1914                 },
1915                 {
1916                     'name': 'severity_id_id',
1917                     'type': 'int'
1918                 },
1919                 {
1920                     'name': 'severity_id_etype',
1921                     'type': 'string'
1922                 },
1923                 {
1924                     'name': 'severity_id_name',
1925                     'type': 'string'
1926                 },
1927                 {
1928                     'name': 'severity_id_active',
1929                     'type': 'int'
1930                 },
1931                 {
1932                     'name': 'severity_id_seqid',
1933                     'type': 'int'
1934                 },
1935                 {
1936                     'name': 'classification_id_id',
1937                     'type': 'int'
1938                 },
1939                 {
1940                     'name': 'classification_id_etype',
1941                     'type': 'string'
1942                 },
1943                 {
1944                     'name': 'classification_id_name',
1945                     'type': 'string'
1946                 },
1947                 {
1948                     'name': 'classification_id_active',
1949                     'type': 'int'
1950                 },
1951                 {
1952                     'name': 'classification_id_seqid',
1953                     'type': 'int'
1954                 },
1955                 {
1956                     'name': 'resolution_id_id',
1957                     'type': 'int'
1958                 },
1959                 {
1960                     'name': 'resolution_id_etype',
1961                     'type': 'string'
1962                 },
1963                 {
1964                     'name': 'resolution_id_name',
1965                     'type': 'string'
1966                 },
1967                 {
1968                     'name': 'resolution_id_active',
1969                     'type': 'int'
1970                 },
1971                 {
1972                     'name': 'resolution_id_seqid',
1973                     'type': 'int'
1974                 },
1975                 {
1976                     'name': 'status_id',
1977                     'type': 'int'
1978                 },
1979                 {
1980                     'name': 'status_etype',
1981                     'type': 'string'
1982                 },
1983                 {
1984                     'name': 'status_name',
1985                     'type': 'string'
1986                 },
1987                 {
1988                     'name': 'status_active',
1989                     'type': 'int'
1990                 },
1991                 {
1992                     'name': 'status_seqid',
1993                     'type': 'int'
1994                 },
1995                 {
1996                     'name': 'project_id_id',
1997                     'type': 'int'
1998                 },
1999                 {
2000                     'name': 'project_id_name',
2001                     'type': 'string'
2002                 },
2003                 {
2004                     'name': 'project_id_remarks',
2005                     'type': 'string'
2006                 },
2007                 {
2008                     'name': 'project_id_owner_id',
2009                     'type': 'int'
2010                 },
2011                 {
2012                     'name': 'project_id_code',
2013                     'type': 'string'
2014                 },
2015                 {
2016                     'name': 'project_id_active',
2017                     'type': 'int'
2018                 },
2019                 {
2020                     'name': 'project_id_type',
2021                     'type': 'string'
2022                 },
2023                 {
2024                     'name': 'project_id_client_id',
2025                     'type': 'int'
2026                 },
2027                 {
2028                     'name': 'project_id_team_id',
2029                     'type': 'int'
2030                 },
2031                 {
2032                     'name': 'project_id_file_location',
2033                     'type': 'string'
2034                 },
2035                 {
2036                     'name': 'project_id_open_date',
2037                     'type': 'date'
2038                 },
2039                 {
2040                     'name': 'project_id_open_by',
2041                     'type': 'int'
2042                 },
2043                 {
2044                     'name': 'project_id_close_date',
2045                     'type': 'date'
2046                 },
2047                 {
2048                     'name': 'project_id_countries',
2049                     'type': 'string'
2050                 },
2051                 {
2052                     'name': 'project_id_languages',
2053                     'type': 'string'
2054                 },
2055                 {
2056                     'name': 'project_id_agency_id',
2057                     'type': 'int'
2058                 },
2059                 {
2060                     'name': 'milestone_id_id',
2061                     'type': 'int'
2062                 },
2063                 {
2064                     'name': 'milestone_id_name',
2065                     'type': 'string'
2066                 },
2067                 {
2068                     'name': 'milestone_id_description',
2069                     'type': 'string'
2070                 },
2071                 {
2072                     'name': 'milestone_id_startdate',
2073                     'type': 'date'
2074                 },
2075                 {
2076                     'name': 'milestone_id_duedate',
2077                     'type': 'date'
2078                 },
2079                 {
2080                     'name': 'milestone_id_completed',
2081                     'type': 'date'
2082                 },
2083                 {
2084                     'name': 'milestone_id_deleted',
2085                     'type': 'int'
2086                 },
2087                 {
2088                     'name': 'milestone_id_created',
2089                     'type': 'int'
2090                 },
2091                 {
2092                     'name': 'milestone_id_updated',
2093                     'type': 'int'
2094                 },
2095                 {
2096                     'name': 'milestone_id_project_id',
2097                     'type': 'int'
2098                 }
2099             ],
2100             id : 'id',
2101             root : 'data',
2102             totalProperty : 'total',
2103             xns : Roo.data,
2104             '|xns' : 'Roo.data',
2105             xtype : 'JsonReader'
2106            }
2107           },
2108           colModel : [
2109            {
2110             dataIndex : 'summary',
2111             header : _this._strings['290612199861c31d1036b185b4e69b75'] /* Summary */,
2112             renderer : function(v) { return String.format('{0}', v); },
2113             width : 200,
2114             xns : Roo.grid,
2115             '|xns' : 'Roo.grid',
2116             xtype : 'ColumnModel'
2117            }
2118           ]
2119          }
2120         },
2121         {
2122          background : false,
2123          fitContainer : true,
2124          fitToframe : true,
2125          region : 'center',
2126          tableName : 'mtrack_ticket',
2127          title : _this._strings['3efbc55730fd4af147b96183d8afbd3b'] /* mtrack_ticket */,
2128          xns : Roo,
2129          '|xns' : 'Roo',
2130          xtype : 'GridPanel',
2131          listeners : {
2132           activate : function() {
2133                _this.openpanel = this;
2134                if (_this.opengrid) {
2135               //    _this.opengrid.footer.onClick('first');
2136                }
2137            }
2138          },
2139          grid : {
2140           autoExpandColumn : 'summary',
2141           loadMask : true,
2142           xns : Roo.grid,
2143           '|xns' : 'Roo.grid',
2144           xtype : 'Grid',
2145           listeners : {
2146            render : function() 
2147             {
2148                 _this.opengrid = this; 
2149                 //_this.dialog = Pman.Dialog.FILL_IN
2150                 if (_this.openpanel.active) {
2151                    //this.footer.onClick('first');
2152                 }
2153             },
2154            rowdblclick : function (_self, rowIndex, e)
2155             {
2156                 if (!_this.dialog) return;
2157                 _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
2158                     _this.grid.footer.onClick('first');
2159                 }); 
2160             }
2161           },
2162           toolbar : {
2163            xns : Roo,
2164            '|xns' : 'Roo',
2165            xtype : 'Toolbar',
2166            items  : [
2167             {
2168              displayField : '',
2169              editable : false,
2170              emptyText : _this._strings['340c2ee497b85d5954b01c64de7f44f6'] /* Select Person */,
2171              fieldLabel : _this._strings['3efbc55730fd4af147b96183d8afbd3b'] /* mtrack_ticket */,
2172              forceSelection : true,
2173              hiddenName : '',
2174              listWidth : 400,
2175              loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
2176              minChars : 2,
2177              name : '',
2178              pageSize : 20,
2179              qtip : _this._strings['74cf22d20dea80f7bd8800a6da89a722'] /* Select mtrack_ticket */,
2180              queryParam : '',
2181              selectOnFocus : true,
2182              tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>',
2183              triggerAction : 'all',
2184              typeAhead : true,
2185              valueField : 'id',
2186              width : 300,
2187              xns : Roo.form,
2188              '|xns' : 'Roo.form',
2189              xtype : 'ComboBox',
2190              store : {
2191               remoteSort : true,
2192               sortInfo : { direction : 'ASC', field: 'id' },
2193               xns : Roo.data,
2194               '|xns' : 'Roo.data',
2195               xtype : 'Store',
2196               listeners : {
2197                beforeload : function (_self, o){
2198                     o.params = o.params || {};
2199                     // set more here
2200                 }
2201               },
2202               proxy : {
2203                method : 'GET',
2204                url : baseURL + '/Roo/mtrack_ticket.php',
2205                xns : Roo.data,
2206                '|xns' : 'Roo.data',
2207                xtype : 'HttpProxy'
2208               },
2209               reader : {
2210                fields : [{"name":"id","type":"int"},{"name":"summary","type":"string"}],
2211                id : 'id',
2212                root : 'data',
2213                totalProperty : 'total',
2214                xns : Roo.data,
2215                '|xns' : 'Roo.data',
2216                xtype : 'JsonReader'
2217               }
2218              }
2219             }
2220            ]
2221           },
2222           dataSource : {
2223            remoteSort : true,
2224            sortInfo : { field : 'summary', direction: 'ASC' },
2225            xns : Roo.data,
2226            '|xns' : 'Roo.data',
2227            xtype : 'Store',
2228            proxy : {
2229             method : 'GET',
2230             url : baseURL + '/Roo/mtrack_ticket.php',
2231             xns : Roo.data,
2232             '|xns' : 'Roo.data',
2233             xtype : 'HttpProxy'
2234            },
2235            reader : {
2236             fields : [
2237                 {
2238                     'name': 'id',
2239                     'type': 'int'
2240                 },
2241                 {
2242                     'name': 'project_id',
2243                     'type': 'int'
2244                 },
2245                 {
2246                     'name': 'summary',
2247                     'type': 'string'
2248                 },
2249                 {
2250                     'name': 'description',
2251                     'type': 'string'
2252                 },
2253                 {
2254                     'name': 'changelog',
2255                     'type': 'string'
2256                 },
2257                 {
2258                     'name': 'created',
2259                     'type': 'int'
2260                 },
2261                 {
2262                     'name': 'updated',
2263                     'type': 'int'
2264                 },
2265                 {
2266                     'name': 'owner_id',
2267                     'type': 'int'
2268                 },
2269                 {
2270                     'name': 'priority_id',
2271                     'type': 'int'
2272                 },
2273                 {
2274                     'name': 'severity_id',
2275                     'type': 'int'
2276                 },
2277                 {
2278                     'name': 'classification_id',
2279                     'type': 'int'
2280                 },
2281                 {
2282                     'name': 'resolution_id',
2283                     'type': 'int'
2284                 },
2285                 {
2286                     'name': 'cc',
2287                     'type': 'string'
2288                 },
2289                 {
2290                     'name': 'status',
2291                     'type': 'int'
2292                 },
2293                 {
2294                     'name': 'estimated',
2295                     'type': 'float'
2296                 },
2297                 {
2298                     'name': 'spent',
2299                     'type': 'float'
2300                 },
2301                 {
2302                     'name': 'x_fieldname',
2303                     'type': 'string'
2304                 },
2305                 {
2306                     'name': 'developer_id',
2307                     'type': 'int'
2308                 },
2309                 {
2310                     'name': 'milestone_id',
2311                     'type': 'int'
2312                 },
2313                 {
2314                     'name': 'updated_id',
2315                     'type': 'int'
2316                 },
2317                 {
2318                     'name': 'updated_person_id',
2319                     'type': 'int'
2320                 },
2321                 {
2322                     'name': 'updated_ontable',
2323                     'type': 'string'
2324                 },
2325                 {
2326                     'name': 'updated_onid',
2327                     'type': 'int'
2328                 },
2329                 {
2330                     'name': 'updated_changedate',
2331                     'type': 'date'
2332                 },
2333                 {
2334                     'name': 'updated_reason',
2335                     'type': 'string'
2336                 },
2337                 {
2338                     'name': 'created_id',
2339                     'type': 'int'
2340                 },
2341                 {
2342                     'name': 'created_person_id',
2343                     'type': 'int'
2344                 },
2345                 {
2346                     'name': 'created_ontable',
2347                     'type': 'string'
2348                 },
2349                 {
2350                     'name': 'created_onid',
2351                     'type': 'int'
2352                 },
2353                 {
2354                     'name': 'created_changedate',
2355                     'type': 'date'
2356                 },
2357                 {
2358                     'name': 'created_reason',
2359                     'type': 'string'
2360                 },
2361                 {
2362                     'name': 'owner_id_id',
2363                     'type': 'int'
2364                 },
2365                 {
2366                     'name': 'owner_id_office_id',
2367                     'type': 'int'
2368                 },
2369                 {
2370                     'name': 'owner_id_name',
2371                     'type': 'string'
2372                 },
2373                 {
2374                     'name': 'owner_id_phone',
2375                     'type': 'string'
2376                 },
2377                 {
2378                     'name': 'owner_id_fax',
2379                     'type': 'string'
2380                 },
2381                 {
2382                     'name': 'owner_id_email',
2383                     'type': 'string'
2384                 },
2385                 {
2386                     'name': 'owner_id_company_id',
2387                     'type': 'int'
2388                 },
2389                 {
2390                     'name': 'owner_id_role',
2391                     'type': 'string'
2392                 },
2393                 {
2394                     'name': 'owner_id_active',
2395                     'type': 'int'
2396                 },
2397                 {
2398                     'name': 'owner_id_remarks',
2399                     'type': 'string'
2400                 },
2401                 {
2402                     'name': 'owner_id_passwd',
2403                     'type': 'string'
2404                 },
2405                 {
2406                     'name': 'owner_id_owner_id',
2407                     'type': 'int'
2408                 },
2409                 {
2410                     'name': 'owner_id_lang',
2411                     'type': 'string'
2412                 },
2413                 {
2414                     'name': 'owner_id_no_reset_sent',
2415                     'type': 'int'
2416                 },
2417                 {
2418                     'name': 'owner_id_action_type',
2419                     'type': 'string'
2420                 },
2421                 {
2422                     'name': 'owner_id_project_id',
2423                     'type': 'int'
2424                 },
2425                 {
2426                     'name': 'owner_id_deleted_by',
2427                     'type': 'int'
2428                 },
2429                 {
2430                     'name': 'owner_id_deleted_dt',
2431                     'type': 'date'
2432                 },
2433                 {
2434                     'name': 'developer_id_id',
2435                     'type': 'int'
2436                 },
2437                 {
2438                     'name': 'developer_id_office_id',
2439                     'type': 'int'
2440                 },
2441                 {
2442                     'name': 'developer_id_name',
2443                     'type': 'string'
2444                 },
2445                 {
2446                     'name': 'developer_id_phone',
2447                     'type': 'string'
2448                 },
2449                 {
2450                     'name': 'developer_id_fax',
2451                     'type': 'string'
2452                 },
2453                 {
2454                     'name': 'developer_id_email',
2455                     'type': 'string'
2456                 },
2457                 {
2458                     'name': 'developer_id_company_id',
2459                     'type': 'int'
2460                 },
2461                 {
2462                     'name': 'developer_id_role',
2463                     'type': 'string'
2464                 },
2465                 {
2466                     'name': 'developer_id_active',
2467                     'type': 'int'
2468                 },
2469                 {
2470                     'name': 'developer_id_remarks',
2471                     'type': 'string'
2472                 },
2473                 {
2474                     'name': 'developer_id_passwd',
2475                     'type': 'string'
2476                 },
2477                 {
2478                     'name': 'developer_id_owner_id',
2479                     'type': 'int'
2480                 },
2481                 {
2482                     'name': 'developer_id_lang',
2483                     'type': 'string'
2484                 },
2485                 {
2486                     'name': 'developer_id_no_reset_sent',
2487                     'type': 'int'
2488                 },
2489                 {
2490                     'name': 'developer_id_action_type',
2491                     'type': 'string'
2492                 },
2493                 {
2494                     'name': 'developer_id_project_id',
2495                     'type': 'int'
2496                 },
2497                 {
2498                     'name': 'developer_id_deleted_by',
2499                     'type': 'int'
2500                 },
2501                 {
2502                     'name': 'developer_id_deleted_dt',
2503                     'type': 'date'
2504                 },
2505                 {
2506                     'name': 'priority_id_id',
2507                     'type': 'int'
2508                 },
2509                 {
2510                     'name': 'priority_id_etype',
2511                     'type': 'string'
2512                 },
2513                 {
2514                     'name': 'priority_id_name',
2515                     'type': 'string'
2516                 },
2517                 {
2518                     'name': 'priority_id_active',
2519                     'type': 'int'
2520                 },
2521                 {
2522                     'name': 'priority_id_seqid',
2523                     'type': 'int'
2524                 },
2525                 {
2526                     'name': 'severity_id_id',
2527                     'type': 'int'
2528                 },
2529                 {
2530                     'name': 'severity_id_etype',
2531                     'type': 'string'
2532                 },
2533                 {
2534                     'name': 'severity_id_name',
2535                     'type': 'string'
2536                 },
2537                 {
2538                     'name': 'severity_id_active',
2539                     'type': 'int'
2540                 },
2541                 {
2542                     'name': 'severity_id_seqid',
2543                     'type': 'int'
2544                 },
2545                 {
2546                     'name': 'classification_id_id',
2547                     'type': 'int'
2548                 },
2549                 {
2550                     'name': 'classification_id_etype',
2551                     'type': 'string'
2552                 },
2553                 {
2554                     'name': 'classification_id_name',
2555                     'type': 'string'
2556                 },
2557                 {
2558                     'name': 'classification_id_active',
2559                     'type': 'int'
2560                 },
2561                 {
2562                     'name': 'classification_id_seqid',
2563                     'type': 'int'
2564                 },
2565                 {
2566                     'name': 'resolution_id_id',
2567                     'type': 'int'
2568                 },
2569                 {
2570                     'name': 'resolution_id_etype',
2571                     'type': 'string'
2572                 },
2573                 {
2574                     'name': 'resolution_id_name',
2575                     'type': 'string'
2576                 },
2577                 {
2578                     'name': 'resolution_id_active',
2579                     'type': 'int'
2580                 },
2581                 {
2582                     'name': 'resolution_id_seqid',
2583                     'type': 'int'
2584                 },
2585                 {
2586                     'name': 'status_id',
2587                     'type': 'int'
2588                 },
2589                 {
2590                     'name': 'status_etype',
2591                     'type': 'string'
2592                 },
2593                 {
2594                     'name': 'status_name',
2595                     'type': 'string'
2596                 },
2597                 {
2598                     'name': 'status_active',
2599                     'type': 'int'
2600                 },
2601                 {
2602                     'name': 'status_seqid',
2603                     'type': 'int'
2604                 },
2605                 {
2606                     'name': 'project_id_id',
2607                     'type': 'int'
2608                 },
2609                 {
2610                     'name': 'project_id_name',
2611                     'type': 'string'
2612                 },
2613                 {
2614                     'name': 'project_id_remarks',
2615                     'type': 'string'
2616                 },
2617                 {
2618                     'name': 'project_id_owner_id',
2619                     'type': 'int'
2620                 },
2621                 {
2622                     'name': 'project_id_code',
2623                     'type': 'string'
2624                 },
2625                 {
2626                     'name': 'project_id_active',
2627                     'type': 'int'
2628                 },
2629                 {
2630                     'name': 'project_id_type',
2631                     'type': 'string'
2632                 },
2633                 {
2634                     'name': 'project_id_client_id',
2635                     'type': 'int'
2636                 },
2637                 {
2638                     'name': 'project_id_team_id',
2639                     'type': 'int'
2640                 },
2641                 {
2642                     'name': 'project_id_file_location',
2643                     'type': 'string'
2644                 },
2645                 {
2646                     'name': 'project_id_open_date',
2647                     'type': 'date'
2648                 },
2649                 {
2650                     'name': 'project_id_open_by',
2651                     'type': 'int'
2652                 },
2653                 {
2654                     'name': 'project_id_close_date',
2655                     'type': 'date'
2656                 },
2657                 {
2658                     'name': 'project_id_countries',
2659                     'type': 'string'
2660                 },
2661                 {
2662                     'name': 'project_id_languages',
2663                     'type': 'string'
2664                 },
2665                 {
2666                     'name': 'project_id_agency_id',
2667                     'type': 'int'
2668                 },
2669                 {
2670                     'name': 'milestone_id_id',
2671                     'type': 'int'
2672                 },
2673                 {
2674                     'name': 'milestone_id_name',
2675                     'type': 'string'
2676                 },
2677                 {
2678                     'name': 'milestone_id_description',
2679                     'type': 'string'
2680                 },
2681                 {
2682                     'name': 'milestone_id_startdate',
2683                     'type': 'date'
2684                 },
2685                 {
2686                     'name': 'milestone_id_duedate',
2687                     'type': 'date'
2688                 },
2689                 {
2690                     'name': 'milestone_id_completed',
2691                     'type': 'date'
2692                 },
2693                 {
2694                     'name': 'milestone_id_deleted',
2695                     'type': 'int'
2696                 },
2697                 {
2698                     'name': 'milestone_id_created',
2699                     'type': 'int'
2700                 },
2701                 {
2702                     'name': 'milestone_id_updated',
2703                     'type': 'int'
2704                 },
2705                 {
2706                     'name': 'milestone_id_project_id',
2707                     'type': 'int'
2708                 }
2709             ],
2710             id : 'id',
2711             root : 'data',
2712             totalProperty : 'total',
2713             xns : Roo.data,
2714             '|xns' : 'Roo.data',
2715             xtype : 'JsonReader'
2716            }
2717           },
2718           colModel : [
2719            {
2720             dataIndex : 'summary',
2721             header : _this._strings['290612199861c31d1036b185b4e69b75'] /* Summary */,
2722             renderer : function(v) { return String.format('{0}', v); },
2723             width : 200,
2724             xns : Roo.grid,
2725             '|xns' : 'Roo.grid',
2726             xtype : 'ColumnModel'
2727            }
2728           ]
2729          }
2730         }
2731        ]
2732       }
2733      }
2734     ]
2735    });
2736  }
2737 };