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