MTrackWeb/templates/images/MTrackWeb/MTrackWeb.Tab.TicketView.js
[web.mtrack] / MTrackWeb / templates / images / MTrackWeb / MTrackWeb.Tab.TicketView.js
1 //<script type="text/javascript">
2
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
4
5 MTrackWeb.Tab.TicketView = new Roo.XComponent({
6     order    : '001-MTrackWeb.Tab.TicketView',
7     region   : 'center',
8     parent   : false,
9     name     : "unnamed module",
10     disabled : false, 
11     tree : function()
12     {
13         var _this = this;
14         var MODULE = this;
15         return {
16             xtype: 'NestedLayoutPanel',
17             xns: Roo,
18             title : "Tickets",
19             layout : {
20                 xtype: 'BorderLayout',
21                 xns: Roo,
22                 items : [
23                     {
24                         xtype: 'GridPanel',
25                         xns: Roo,
26                         title : "mtrack_ticket",
27                         fitToframe : true,
28                         fitContainer : true,
29                         tableName : 'mtrack_ticket',
30                         background : true,
31                         region : 'center',
32                         listeners : {
33                             activate : function() {
34                                 _this.panel = this;
35                                 if (_this.grid) {
36                                     _this.grid.footer.onClick('first');
37                                 }
38                             }
39                         },
40                         grid : {
41                             xtype: 'Grid',
42                             xns: Roo.grid,
43                             autoExpandColumn : 'summary',
44                             loadMask : true,
45                             listeners : {
46                                 render : function() 
47                                 {
48                                     _this.grid = this; 
49                                     //_this.dialog = Pman.Dialog.FILL_IN
50                                     if (_this.panel.active) {
51                                        this.footer.onClick('first');
52                                     }
53                                 },
54                                 rowdblclick : function (_self, rowIndex, e)
55                                 {
56                                     if (!_this.dialog) return;
57                                     _this.dialog.show( this.getDataSource().getAt(rowIndex), function() {
58                                         _this.grid.footer.onClick('first');
59                                     }); 
60                                 }
61                             },
62                             dataSource : {
63                                 xtype: 'Store',
64                                 xns: Roo.data,
65                                 remoteSort : true,
66                                 sortInfo : { field : 'summary', direction: 'ASC' },
67                                 proxy : {
68                                     xtype: 'HttpProxy',
69                                     xns: Roo.data,
70                                     method : 'GET',
71                                     url : baseURL + '/Roo/mtrack_ticket.php'
72                                 },
73                                 reader : {
74                                     xtype: 'JsonReader',
75                                     xns: Roo.data,
76                                     totalProperty : 'total',
77                                     root : 'data',
78                                     id : 'id',
79                                     fields : [
80                                         {
81                                             'name': 'id',
82                                             'type': 'int'
83                                         },
84                                         {
85                                             'name': 'summary',
86                                             'type': 'string'
87                                         },
88                                         {
89                                             'name': 'description',
90                                             'type': 'string'
91                                         },
92                                         {
93                                             'name': 'changelog',
94                                             'type': 'string'
95                                         },
96                                         {
97                                             'name': 'created',
98                                             'type': 'int'
99                                         },
100                                         {
101                                             'name': 'updated',
102                                             'type': 'int'
103                                         },
104                                         {
105                                             'name': 'owner_id',
106                                             'type': 'int'
107                                         },
108                                         {
109                                             'name': 'priority_id',
110                                             'type': 'int'
111                                         },
112                                         {
113                                             'name': 'severity_id',
114                                             'type': 'int'
115                                         },
116                                         {
117                                             'name': 'classification_id',
118                                             'type': 'int'
119                                         },
120                                         {
121                                             'name': 'resolution_id',
122                                             'type': 'int'
123                                         },
124                                         {
125                                             'name': 'cc',
126                                             'type': 'string'
127                                         },
128                                         {
129                                             'name': 'status',
130                                             'type': 'int'
131                                         },
132                                         {
133                                             'name': 'estimated',
134                                             'type': 'float'
135                                         },
136                                         {
137                                             'name': 'spent',
138                                             'type': 'float'
139                                         },
140                                         {
141                                             'name': 'x_fieldname',
142                                             'type': 'string'
143                                         },
144                                         {
145                                             'name': 'project_id',
146                                             'type': 'int'
147                                         },
148                                         {
149                                             'name': 'developer_id',
150                                             'type': 'int'
151                                         },
152                                         {
153                                             'name': 'milestone_id',
154                                             'type': 'int'
155                                         },
156                                         {
157                                             'name': 'updated_id',
158                                             'type': 'int'
159                                         },
160                                         {
161                                             'name': 'updated_person_id',
162                                             'type': 'int'
163                                         },
164                                         {
165                                             'name': 'updated_ontable',
166                                             'type': 'string'
167                                         },
168                                         {
169                                             'name': 'updated_onid',
170                                             'type': 'int'
171                                         },
172                                         {
173                                             'name': 'updated_changedate',
174                                             'type': 'date'
175                                         },
176                                         {
177                                             'name': 'updated_reason',
178                                             'type': 'string'
179                                         },
180                                         {
181                                             'name': 'created_id',
182                                             'type': 'int'
183                                         },
184                                         {
185                                             'name': 'created_person_id',
186                                             'type': 'int'
187                                         },
188                                         {
189                                             'name': 'created_ontable',
190                                             'type': 'string'
191                                         },
192                                         {
193                                             'name': 'created_onid',
194                                             'type': 'int'
195                                         },
196                                         {
197                                             'name': 'created_changedate',
198                                             'type': 'date'
199                                         },
200                                         {
201                                             'name': 'created_reason',
202                                             'type': 'string'
203                                         },
204                                         {
205                                             'name': 'owner_id_id',
206                                             'type': 'int'
207                                         },
208                                         {
209                                             'name': 'owner_id_office_id',
210                                             'type': 'int'
211                                         },
212                                         {
213                                             'name': 'owner_id_name',
214                                             'type': 'string'
215                                         },
216                                         {
217                                             'name': 'owner_id_phone',
218                                             'type': 'string'
219                                         },
220                                         {
221                                             'name': 'owner_id_fax',
222                                             'type': 'string'
223                                         },
224                                         {
225                                             'name': 'owner_id_email',
226                                             'type': 'string'
227                                         },
228                                         {
229                                             'name': 'owner_id_company_id',
230                                             'type': 'int'
231                                         },
232                                         {
233                                             'name': 'owner_id_role',
234                                             'type': 'string'
235                                         },
236                                         {
237                                             'name': 'owner_id_active',
238                                             'type': 'int'
239                                         },
240                                         {
241                                             'name': 'owner_id_remarks',
242                                             'type': 'string'
243                                         },
244                                         {
245                                             'name': 'owner_id_passwd',
246                                             'type': 'string'
247                                         },
248                                         {
249                                             'name': 'owner_id_owner_id',
250                                             'type': 'int'
251                                         },
252                                         {
253                                             'name': 'owner_id_lang',
254                                             'type': 'string'
255                                         },
256                                         {
257                                             'name': 'owner_id_no_reset_sent',
258                                             'type': 'int'
259                                         },
260                                         {
261                                             'name': 'owner_id_action_type',
262                                             'type': 'string'
263                                         },
264                                         {
265                                             'name': 'owner_id_project_id',
266                                             'type': 'int'
267                                         },
268                                         {
269                                             'name': 'owner_id_deleted_by',
270                                             'type': 'int'
271                                         },
272                                         {
273                                             'name': 'owner_id_deleted_dt',
274                                             'type': 'date'
275                                         },
276                                         {
277                                             'name': 'developer_id_id',
278                                             'type': 'int'
279                                         },
280                                         {
281                                             'name': 'developer_id_office_id',
282                                             'type': 'int'
283                                         },
284                                         {
285                                             'name': 'developer_id_name',
286                                             'type': 'string'
287                                         },
288                                         {
289                                             'name': 'developer_id_phone',
290                                             'type': 'string'
291                                         },
292                                         {
293                                             'name': 'developer_id_fax',
294                                             'type': 'string'
295                                         },
296                                         {
297                                             'name': 'developer_id_email',
298                                             'type': 'string'
299                                         },
300                                         {
301                                             'name': 'developer_id_company_id',
302                                             'type': 'int'
303                                         },
304                                         {
305                                             'name': 'developer_id_role',
306                                             'type': 'string'
307                                         },
308                                         {
309                                             'name': 'developer_id_active',
310                                             'type': 'int'
311                                         },
312                                         {
313                                             'name': 'developer_id_remarks',
314                                             'type': 'string'
315                                         },
316                                         {
317                                             'name': 'developer_id_passwd',
318                                             'type': 'string'
319                                         },
320                                         {
321                                             'name': 'developer_id_owner_id',
322                                             'type': 'int'
323                                         },
324                                         {
325                                             'name': 'developer_id_lang',
326                                             'type': 'string'
327                                         },
328                                         {
329                                             'name': 'developer_id_no_reset_sent',
330                                             'type': 'int'
331                                         },
332                                         {
333                                             'name': 'developer_id_action_type',
334                                             'type': 'string'
335                                         },
336                                         {
337                                             'name': 'developer_id_project_id',
338                                             'type': 'int'
339                                         },
340                                         {
341                                             'name': 'developer_id_deleted_by',
342                                             'type': 'int'
343                                         },
344                                         {
345                                             'name': 'developer_id_deleted_dt',
346                                             'type': 'date'
347                                         },
348                                         {
349                                             'name': 'priority_id_id',
350                                             'type': 'int'
351                                         },
352                                         {
353                                             'name': 'priority_id_etype',
354                                             'type': 'string'
355                                         },
356                                         {
357                                             'name': 'priority_id_name',
358                                             'type': 'string'
359                                         },
360                                         {
361                                             'name': 'priority_id_active',
362                                             'type': 'int'
363                                         },
364                                         {
365                                             'name': 'priority_id_seqid',
366                                             'type': 'int'
367                                         },
368                                         {
369                                             'name': 'severity_id_id',
370                                             'type': 'int'
371                                         },
372                                         {
373                                             'name': 'severity_id_etype',
374                                             'type': 'string'
375                                         },
376                                         {
377                                             'name': 'severity_id_name',
378                                             'type': 'string'
379                                         },
380                                         {
381                                             'name': 'severity_id_active',
382                                             'type': 'int'
383                                         },
384                                         {
385                                             'name': 'severity_id_seqid',
386                                             'type': 'int'
387                                         },
388                                         {
389                                             'name': 'classification_id_id',
390                                             'type': 'int'
391                                         },
392                                         {
393                                             'name': 'classification_id_etype',
394                                             'type': 'string'
395                                         },
396                                         {
397                                             'name': 'classification_id_name',
398                                             'type': 'string'
399                                         },
400                                         {
401                                             'name': 'classification_id_active',
402                                             'type': 'int'
403                                         },
404                                         {
405                                             'name': 'classification_id_seqid',
406                                             'type': 'int'
407                                         },
408                                         {
409                                             'name': 'resolution_id_id',
410                                             'type': 'int'
411                                         },
412                                         {
413                                             'name': 'resolution_id_etype',
414                                             'type': 'string'
415                                         },
416                                         {
417                                             'name': 'resolution_id_name',
418                                             'type': 'string'
419                                         },
420                                         {
421                                             'name': 'resolution_id_active',
422                                             'type': 'int'
423                                         },
424                                         {
425                                             'name': 'resolution_id_seqid',
426                                             'type': 'int'
427                                         },
428                                         {
429                                             'name': 'status_id',
430                                             'type': 'int'
431                                         },
432                                         {
433                                             'name': 'status_etype',
434                                             'type': 'string'
435                                         },
436                                         {
437                                             'name': 'status_name',
438                                             'type': 'string'
439                                         },
440                                         {
441                                             'name': 'status_active',
442                                             'type': 'int'
443                                         },
444                                         {
445                                             'name': 'status_seqid',
446                                             'type': 'int'
447                                         },
448                                         {
449                                             'name': 'project_id_id',
450                                             'type': 'int'
451                                         },
452                                         {
453                                             'name': 'project_id_name',
454                                             'type': 'string'
455                                         },
456                                         {
457                                             'name': 'project_id_remarks',
458                                             'type': 'string'
459                                         },
460                                         {
461                                             'name': 'project_id_owner_id',
462                                             'type': 'int'
463                                         },
464                                         {
465                                             'name': 'project_id_code',
466                                             'type': 'string'
467                                         },
468                                         {
469                                             'name': 'project_id_active',
470                                             'type': 'int'
471                                         },
472                                         {
473                                             'name': 'project_id_type',
474                                             'type': 'string'
475                                         },
476                                         {
477                                             'name': 'project_id_client_id',
478                                             'type': 'int'
479                                         },
480                                         {
481                                             'name': 'project_id_team_id',
482                                             'type': 'int'
483                                         },
484                                         {
485                                             'name': 'project_id_file_location',
486                                             'type': 'string'
487                                         },
488                                         {
489                                             'name': 'project_id_open_date',
490                                             'type': 'date'
491                                         },
492                                         {
493                                             'name': 'project_id_open_by',
494                                             'type': 'int'
495                                         },
496                                         {
497                                             'name': 'project_id_close_date',
498                                             'type': 'date'
499                                         },
500                                         {
501                                             'name': 'project_id_countries',
502                                             'type': 'string'
503                                         },
504                                         {
505                                             'name': 'project_id_languages',
506                                             'type': 'string'
507                                         },
508                                         {
509                                             'name': 'project_id_agency_id',
510                                             'type': 'int'
511                                         },
512                                         {
513                                             'name': 'milestone_id_id',
514                                             'type': 'int'
515                                         },
516                                         {
517                                             'name': 'milestone_id_name',
518                                             'type': 'string'
519                                         },
520                                         {
521                                             'name': 'milestone_id_description',
522                                             'type': 'string'
523                                         },
524                                         {
525                                             'name': 'milestone_id_startdate',
526                                             'type': 'date'
527                                         },
528                                         {
529                                             'name': 'milestone_id_duedate',
530                                             'type': 'date'
531                                         },
532                                         {
533                                             'name': 'milestone_id_completed',
534                                             'type': 'date'
535                                         },
536                                         {
537                                             'name': 'milestone_id_deleted',
538                                             'type': 'int'
539                                         },
540                                         {
541                                             'name': 'milestone_id_created',
542                                             'type': 'int'
543                                         },
544                                         {
545                                             'name': 'milestone_id_updated',
546                                             'type': 'int'
547                                         },
548                                         {
549                                             'name': 'milestone_id_project_id',
550                                             'type': 'int'
551                                         }
552                                     ]
553                                 }
554                             },
555                             footer : {
556                                 xtype: 'PagingToolbar',
557                                 xns: Roo,
558                                 pageSize : 25,
559                                 displayInfo : true,
560                                 displayMsg : 'Displaying mtrack_ticket{0} - {1} of {2}',
561                                 emptyMsg : 'No mtrack_ticket found'
562                             },
563                             toolbar : {
564                                 xtype: 'Toolbar',
565                                 xns: Roo,
566                                 items : [
567                                     {
568                                         xtype: 'Fill',
569                                         xns: Roo.Toolbar
570                                     },
571                                     {
572                                         xtype: 'Button',
573                                         xns: Roo.Toolbar,
574                                         listeners : {
575                                             click : function()
576                                             {
577                                                 if (!_this.dialog) return;
578                                                 _this.dialog.show( { id : 0 } , function() {
579                                                     _this.grid.footer.onClick('first');
580                                                }); 
581                                             }
582                                         },
583                                         cls : 'x-btn-text-icon',
584                                         text : "Create Ticket",
585                                         icon : Roo.rootURL + 'images/default/dd/drop-add.gif'
586                                     },
587                                     {
588                                         xtype: 'Button',
589                                         xns: Roo.Toolbar,
590                                         text : "Edit",
591                                         cls : 'x-btn-text-icon',
592                                         icon : Roo.rootURL + 'images/default/tree/leaf.gif',
593                                         listeners : {
594                                             click : function()
595                                             {
596                                                 var s = _this.grid.getSelectionModel().getSelections();
597                                                 if (!s.length || (s.length > 1))  {
598                                                     Roo.MessageBox.alert("Error", s.length ? "Select only one Row" : "Select a Row");
599                                                     return;
600                                                 }
601                                                 if (!_this.dialog) return;
602                                                 _this.dialog.show(s[0].data, function() {
603                                                     _this.grid.footer.onClick('first');
604                                                 }); 
605                                                 
606                                             }
607                                         }
608                                     },
609                                     {
610                                         xtype: 'Button',
611                                         xns: Roo.Toolbar,
612                                         listeners : {
613                                             click : function()
614                                             {
615                                                  Pman.genericDelete(_this, 'mtrack_ticket'); 
616                                             }
617                                         },
618                                         cls : 'x-btn-text-icon',
619                                         text : "Quick Close",
620                                         icon : rootURL + '/Pman/templates/images/trash.gif'
621                                     }
622                                 ]
623                             },
624                             colModel : [
625                                 {
626                                     xtype: 'ColumnModel',
627                                     xns: Roo.grid,
628                                     header : 'Id',
629                                     width : 75,
630                                     dataIndex : 'id',
631                                     renderer : function(v) { return String.format('{0}', v); }
632                                 },
633                                 {
634                                     xtype: 'ColumnModel',
635                                     xns: Roo.grid,
636                                     header : 'Summary',
637                                     width : 200,
638                                     dataIndex : 'summary',
639                                     renderer : function(v) { return String.format('{0}', v); }
640                                 },
641                                 {
642                                     xtype: 'ColumnModel',
643                                     xns: Roo.grid,
644                                     header : 'Project',
645                                     width : 75,
646                                     dataIndex : 'project_id',
647                                     renderer : function(v) { return String.format('{0}', v); }
648                                 },
649                                 {
650                                     xtype: 'ColumnModel',
651                                     xns: Roo.grid,
652                                     header : 'Milestone',
653                                     width : 75,
654                                     dataIndex : 'milestone_id',
655                                     renderer : function(v) { return String.format('{0}', v); }
656                                 },
657                                 {
658                                     xtype: 'ColumnModel',
659                                     xns: Roo.grid,
660                                     header : 'Owner',
661                                     width : 75,
662                                     dataIndex : 'owner_id',
663                                     renderer : function(v) { return String.format('{0}', v); }
664                                 },
665                                 {
666                                     xtype: 'ColumnModel',
667                                     xns: Roo.grid,
668                                     header : 'Created',
669                                     width : 75,
670                                     dataIndex : 'created',
671                                     renderer : function(v) { return String.format('{0}', v); }
672                                 },
673                                 {
674                                     xtype: 'ColumnModel',
675                                     xns: Roo.grid,
676                                     header : 'Updated',
677                                     width : 75,
678                                     dataIndex : 'updated',
679                                     renderer : function(v) { return String.format('{0}', v); }
680                                 },
681                                 {
682                                     xtype: 'ColumnModel',
683                                     xns: Roo.grid,
684                                     header : 'Priority',
685                                     width : 75,
686                                     dataIndex : 'priority_id',
687                                     renderer : function(v) { return String.format('{0}', v); }
688                                 },
689                                 {
690                                     xtype: 'ColumnModel',
691                                     xns: Roo.grid,
692                                     header : 'Severity',
693                                     width : 75,
694                                     dataIndex : 'severity_id',
695                                     renderer : function(v) { return String.format('{0}', v); }
696                                 },
697                                 {
698                                     xtype: 'ColumnModel',
699                                     xns: Roo.grid,
700                                     header : 'Classification',
701                                     width : 75,
702                                     dataIndex : 'classification_id',
703                                     renderer : function(v) { return String.format('{0}', v); }
704                                 },
705                                 {
706                                     xtype: 'ColumnModel',
707                                     xns: Roo.grid,
708                                     header : 'Estimated',
709                                     width : 75,
710                                     dataIndex : 'estimated',
711                                     renderer : function(v) { return String.format('{0}', v); }
712                                 },
713                                 {
714                                     xtype: 'ColumnModel',
715                                     xns: Roo.grid,
716                                     header : 'Spent',
717                                     width : 75,
718                                     dataIndex : 'spent',
719                                     renderer : function(v) { return String.format('{0}', v); }
720                                 },
721                                 {
722                                     xtype: 'ColumnModel',
723                                     xns: Roo.grid,
724                                     header : 'Project',
725                                     width : 75,
726                                     dataIndex : 'project_id',
727                                     renderer : function(v) { return String.format('{0}', v); }
728                                 },
729                                 {
730                                     xtype: 'ColumnModel',
731                                     xns: Roo.grid,
732                                     header : 'Developer',
733                                     width : 75,
734                                     dataIndex : 'developer_id',
735                                     renderer : function(v) { return String.format('{0}', v); }
736                                 }
737                             ]
738                         }
739                     },
740                     {
741                         xtype: 'ContentPanel',
742                         xns: Roo,
743                         autoScroll : true,
744                         region : 'east',
745                         title : "Add / Edit Ticket",
746                         adjustments : [30, 30],
747                         items : [
748                             {
749                                 xtype: 'Form',
750                                 xns: Roo.form,
751                                 listeners : {
752                                     actioncomplete : function(_self,action)
753                                     {
754                                         if (action.type == 'setdata') {
755                                            //_this.dialog.el.mask("Loading");
756                                            //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
757                                            return;
758                                         }
759                                         if (action.type == 'load') {
760                                             _this.dialog.el.unmask();
761                                             return;
762                                         }
763                                         if (action.type =='submit') {
764                                         
765                                             _this.dialog.el.unmask();
766                                             _this.dialog.hide();
767                                         
768                                              if (_this.callback) {
769                                                 _this.callback.call(_this, _this.form.getValues());
770                                              }
771                                              _this.form.reset();
772                                              return;
773                                         }
774                                     },
775                                     rendered : function (form)
776                                     {
777                                         _this.form= form;
778                                     }
779                                 },
780                                 method : 'POST',
781                                 style : 'margin:10px;width:1000px;',
782                                 url : baseURL + '/Roo/mtrack_ticket.php',
783                                 items : [
784                                     {
785                                         xtype: 'Column',
786                                         xns: Roo.form,
787                                         width : 200,
788                                         items : [
789                                             {
790                                                 xtype: 'FieldSet',
791                                                 xns: Roo.form,
792                                                 labelAlign : 'top',
793                                                 legend : "Properties",
794                                                 items : [
795                                                     {
796                                                         xtype: 'ComboBox',
797                                                         xns: Roo.form,
798                                                         allowBlank : 'false',
799                                                         displayField : 'name',
800                                                         editable : 'false',
801                                                         emptyText : "Select Projects",
802                                                         fieldLabel : 'Project',
803                                                         forceSelection : true,
804                                                         hiddenName : 'project_id',
805                                                         listWidth : 400,
806                                                         loadingText : "Searching...",
807                                                         minChars : 2,
808                                                         name : 'project_id_name',
809                                                         pageSize : 20,
810                                                         qtip : "Select Projects",
811                                                         queryParam : 'query[name]',
812                                                         selectOnFocus : true,
813                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
814                                                         triggerAction : 'all',
815                                                         typeAhead : true,
816                                                         valueField : 'id',
817                                                         width : 180,
818                                                         store : {
819                                                             xtype: 'Store',
820                                                             xns: Roo.data,
821                                                             remoteSort : true,
822                                                             sortInfo : { direction : 'ASC', field: 'id' },
823                                                             listeners : {
824                                                                 beforeload : function (_self, o){
825                                                                     o.params = o.params || {};
826                                                                     // set more here
827                                                                 }
828                                                             },
829                                                             proxy : {
830                                                                 xtype: 'HttpProxy',
831                                                                 xns: Roo.data,
832                                                                 method : 'GET',
833                                                                 url : baseURL + '/Roo/Projects.php'
834                                                             },
835                                                             reader : {
836                                                                 xtype: 'JsonReader',
837                                                                 xns: Roo.data,
838                                                                 id : 'id',
839                                                                 root : 'data',
840                                                                 totalProperty : 'total',
841                                                                 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
842                                                             }
843                                                         }
844                                                     },
845                                                     {
846                                                         xtype: 'ComboBox',
847                                                         xns: Roo.form,
848                                                         allowBlank : 'false',
849                                                         displayField : 'name',
850                                                         editable : 'false',
851                                                         emptyText : "Select mtrack_milestone",
852                                                         fieldLabel : 'Milestone',
853                                                         forceSelection : true,
854                                                         hiddenName : 'milestone_id',
855                                                         listWidth : 400,
856                                                         loadingText : "Searching...",
857                                                         minChars : 2,
858                                                         name : 'milestone_id_name',
859                                                         pageSize : 20,
860                                                         qtip : "Select mtrack_milestone",
861                                                         queryParam : 'query[name]',
862                                                         selectOnFocus : true,
863                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
864                                                         triggerAction : 'all',
865                                                         typeAhead : true,
866                                                         valueField : 'id',
867                                                         width : 180,
868                                                         store : {
869                                                             xtype: 'Store',
870                                                             xns: Roo.data,
871                                                             remoteSort : true,
872                                                             sortInfo : { direction : 'ASC', field: 'id' },
873                                                             listeners : {
874                                                                 beforeload : function (_self, o){
875                                                                     o.params = o.params || {};
876                                                                     // set more here
877                                                                 }
878                                                             },
879                                                             proxy : {
880                                                                 xtype: 'HttpProxy',
881                                                                 xns: Roo.data,
882                                                                 method : 'GET',
883                                                                 url : baseURL + '/Roo/mtrack_milestone.php'
884                                                             },
885                                                             reader : {
886                                                                 xtype: 'JsonReader',
887                                                                 xns: Roo.data,
888                                                                 id : 'id',
889                                                                 root : 'data',
890                                                                 totalProperty : 'total',
891                                                                 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
892                                                             }
893                                                         }
894                                                     },
895                                                     {
896                                                         xtype: 'ComboBox',
897                                                         xns: Roo.form,
898                                                         allowBlank : 'false',
899                                                         displayField : 'etype',
900                                                         editable : 'false',
901                                                         emptyText : "Select core_enum",
902                                                         fieldLabel : 'Priority',
903                                                         forceSelection : true,
904                                                         hiddenName : 'priority_id',
905                                                         listWidth : 400,
906                                                         loadingText : "Searching...",
907                                                         minChars : 2,
908                                                         name : 'priority_id_etype',
909                                                         pageSize : 20,
910                                                         qtip : "Select core_enum",
911                                                         queryParam : 'query[etype]',
912                                                         selectOnFocus : true,
913                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
914                                                         triggerAction : 'all',
915                                                         typeAhead : true,
916                                                         valueField : 'id',
917                                                         width : 180,
918                                                         store : {
919                                                             xtype: 'Store',
920                                                             xns: Roo.data,
921                                                             remoteSort : true,
922                                                             sortInfo : { direction : 'ASC', field: 'id' },
923                                                             listeners : {
924                                                                 beforeload : function (_self, o){
925                                                                     o.params = o.params || {};
926                                                                     // set more here
927                                                                 }
928                                                             },
929                                                             proxy : {
930                                                                 xtype: 'HttpProxy',
931                                                                 xns: Roo.data,
932                                                                 method : 'GET',
933                                                                 url : baseURL + '/Roo/core_enum.php'
934                                                             },
935                                                             reader : {
936                                                                 xtype: 'JsonReader',
937                                                                 xns: Roo.data,
938                                                                 id : 'id',
939                                                                 root : 'data',
940                                                                 totalProperty : 'total',
941                                                                 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
942                                                             }
943                                                         }
944                                                     },
945                                                     {
946                                                         xtype: 'ComboBox',
947                                                         xns: Roo.form,
948                                                         allowBlank : 'false',
949                                                         displayField : 'etype',
950                                                         editable : 'false',
951                                                         emptyText : "Select core_enum",
952                                                         fieldLabel : 'Severity',
953                                                         forceSelection : true,
954                                                         hiddenName : 'severity_id',
955                                                         listWidth : 400,
956                                                         loadingText : "Searching...",
957                                                         minChars : 2,
958                                                         name : 'severity_id_etype',
959                                                         pageSize : 20,
960                                                         qtip : "Select core_enum",
961                                                         queryParam : 'query[etype]',
962                                                         selectOnFocus : true,
963                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
964                                                         triggerAction : 'all',
965                                                         typeAhead : true,
966                                                         valueField : 'id',
967                                                         width : 180,
968                                                         store : {
969                                                             xtype: 'Store',
970                                                             xns: Roo.data,
971                                                             remoteSort : true,
972                                                             sortInfo : { direction : 'ASC', field: 'id' },
973                                                             listeners : {
974                                                                 beforeload : function (_self, o){
975                                                                     o.params = o.params || {};
976                                                                     // set more here
977                                                                 }
978                                                             },
979                                                             proxy : {
980                                                                 xtype: 'HttpProxy',
981                                                                 xns: Roo.data,
982                                                                 method : 'GET',
983                                                                 url : baseURL + '/Roo/core_enum.php'
984                                                             },
985                                                             reader : {
986                                                                 xtype: 'JsonReader',
987                                                                 xns: Roo.data,
988                                                                 id : 'id',
989                                                                 root : 'data',
990                                                                 totalProperty : 'total',
991                                                                 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
992                                                             }
993                                                         }
994                                                     },
995                                                     {
996                                                         xtype: 'ComboBox',
997                                                         xns: Roo.form,
998                                                         allowBlank : 'false',
999                                                         displayField : 'etype',
1000                                                         editable : 'false',
1001                                                         emptyText : "Select core_enum",
1002                                                         fieldLabel : 'Classification',
1003                                                         forceSelection : true,
1004                                                         hiddenName : 'classification_id',
1005                                                         listWidth : 400,
1006                                                         loadingText : "Searching...",
1007                                                         minChars : 2,
1008                                                         name : 'classification_id_etype',
1009                                                         pageSize : 20,
1010                                                         qtip : "Select core_enum",
1011                                                         queryParam : 'query[etype]',
1012                                                         selectOnFocus : true,
1013                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
1014                                                         triggerAction : 'all',
1015                                                         typeAhead : true,
1016                                                         valueField : 'id',
1017                                                         width : 180,
1018                                                         store : {
1019                                                             xtype: 'Store',
1020                                                             xns: Roo.data,
1021                                                             remoteSort : true,
1022                                                             sortInfo : { direction : 'ASC', field: 'id' },
1023                                                             listeners : {
1024                                                                 beforeload : function (_self, o){
1025                                                                     o.params = o.params || {};
1026                                                                     // set more here
1027                                                                 }
1028                                                             },
1029                                                             proxy : {
1030                                                                 xtype: 'HttpProxy',
1031                                                                 xns: Roo.data,
1032                                                                 method : 'GET',
1033                                                                 url : baseURL + '/Roo/core_enum.php'
1034                                                             },
1035                                                             reader : {
1036                                                                 xtype: 'JsonReader',
1037                                                                 xns: Roo.data,
1038                                                                 id : 'id',
1039                                                                 root : 'data',
1040                                                                 totalProperty : 'total',
1041                                                                 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
1042                                                             }
1043                                                         }
1044                                                     }
1045                                                 ]
1046                                             },
1047                                             {
1048                                                 xtype: 'FieldSet',
1049                                                 xns: Roo.form,
1050                                                 labelAlign : 'top',
1051                                                 legend : "Status / Resources",
1052                                                 items : [
1053                                                     {
1054                                                         xtype: 'ComboBox',
1055                                                         xns: Roo.form,
1056                                                         allowBlank : 'false',
1057                                                         displayField : 'name',
1058                                                         editable : 'false',
1059                                                         emptyText : "Select Person",
1060                                                         fieldLabel : 'Developer',
1061                                                         forceSelection : true,
1062                                                         hiddenName : 'developer_id',
1063                                                         listWidth : 400,
1064                                                         loadingText : "Searching...",
1065                                                         minChars : 2,
1066                                                         name : 'developer_id_name',
1067                                                         pageSize : 20,
1068                                                         qtip : "Select Person",
1069                                                         queryParam : 'query[name]',
1070                                                         selectOnFocus : true,
1071                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
1072                                                         triggerAction : 'all',
1073                                                         typeAhead : true,
1074                                                         valueField : 'id',
1075                                                         width : 180,
1076                                                         store : {
1077                                                             xtype: 'Store',
1078                                                             xns: Roo.data,
1079                                                             remoteSort : true,
1080                                                             sortInfo : { direction : 'ASC', field: 'id' },
1081                                                             listeners : {
1082                                                                 beforeload : function (_self, o){
1083                                                                     o.params = o.params || {};
1084                                                                     // set more here
1085                                                                 }
1086                                                             },
1087                                                             proxy : {
1088                                                                 xtype: 'HttpProxy',
1089                                                                 xns: Roo.data,
1090                                                                 method : 'GET',
1091                                                                 url : baseURL + '/Roo/Person.php'
1092                                                             },
1093                                                             reader : {
1094                                                                 xtype: 'JsonReader',
1095                                                                 xns: Roo.data,
1096                                                                 id : 'id',
1097                                                                 root : 'data',
1098                                                                 totalProperty : 'total',
1099                                                                 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
1100                                                             }
1101                                                         }
1102                                                     },
1103                                                     {
1104                                                         xtype: 'ComboBox',
1105                                                         xns: Roo.form,
1106                                                         allowBlank : 'false',
1107                                                         displayField : 'name',
1108                                                         editable : 'false',
1109                                                         emptyText : "Select Person",
1110                                                         fieldLabel : 'Owner',
1111                                                         forceSelection : true,
1112                                                         hiddenName : 'owner_id',
1113                                                         listWidth : 400,
1114                                                         loadingText : "Searching...",
1115                                                         minChars : 2,
1116                                                         name : 'owner_id_name',
1117                                                         pageSize : 20,
1118                                                         qtip : "Select Person",
1119                                                         queryParam : 'query[name]',
1120                                                         selectOnFocus : true,
1121                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
1122                                                         triggerAction : 'all',
1123                                                         typeAhead : true,
1124                                                         valueField : 'id',
1125                                                         width : 180,
1126                                                         store : {
1127                                                             xtype: 'Store',
1128                                                             xns: Roo.data,
1129                                                             remoteSort : true,
1130                                                             sortInfo : { direction : 'ASC', field: 'id' },
1131                                                             listeners : {
1132                                                                 beforeload : function (_self, o){
1133                                                                     o.params = o.params || {};
1134                                                                     // set more here
1135                                                                 }
1136                                                             },
1137                                                             proxy : {
1138                                                                 xtype: 'HttpProxy',
1139                                                                 xns: Roo.data,
1140                                                                 method : 'GET',
1141                                                                 url : baseURL + '/Roo/Person.php'
1142                                                             },
1143                                                             reader : {
1144                                                                 xtype: 'JsonReader',
1145                                                                 xns: Roo.data,
1146                                                                 id : 'id',
1147                                                                 root : 'data',
1148                                                                 totalProperty : 'total',
1149                                                                 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
1150                                                             }
1151                                                         }
1152                                                     },
1153                                                     {
1154                                                         xtype: 'ComboBox',
1155                                                         xns: Roo.form,
1156                                                         allowBlank : 'false',
1157                                                         displayField : 'etype',
1158                                                         editable : 'false',
1159                                                         emptyText : "Select core_enum",
1160                                                         fieldLabel : 'Status',
1161                                                         forceSelection : true,
1162                                                         hiddenName : 'status',
1163                                                         listWidth : 400,
1164                                                         loadingText : "Searching...",
1165                                                         minChars : 2,
1166                                                         name : 'status_etype',
1167                                                         pageSize : 20,
1168                                                         qtip : "Select core_enum",
1169                                                         queryParam : 'query[etype]',
1170                                                         selectOnFocus : true,
1171                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
1172                                                         triggerAction : 'all',
1173                                                         typeAhead : true,
1174                                                         valueField : 'id',
1175                                                         width : 180,
1176                                                         store : {
1177                                                             xtype: 'Store',
1178                                                             xns: Roo.data,
1179                                                             remoteSort : true,
1180                                                             sortInfo : { direction : 'ASC', field: 'id' },
1181                                                             listeners : {
1182                                                                 beforeload : function (_self, o){
1183                                                                     o.params = o.params || {};
1184                                                                     // set more here
1185                                                                 }
1186                                                             },
1187                                                             proxy : {
1188                                                                 xtype: 'HttpProxy',
1189                                                                 xns: Roo.data,
1190                                                                 method : 'GET',
1191                                                                 url : baseURL + '/Roo/core_enum.php'
1192                                                             },
1193                                                             reader : {
1194                                                                 xtype: 'JsonReader',
1195                                                                 xns: Roo.data,
1196                                                                 id : 'id',
1197                                                                 root : 'data',
1198                                                                 totalProperty : 'total',
1199                                                                 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
1200                                                             }
1201                                                         }
1202                                                     },
1203                                                     {
1204                                                         xtype: 'ComboBox',
1205                                                         xns: Roo.form,
1206                                                         allowBlank : 'false',
1207                                                         displayField : 'etype',
1208                                                         editable : 'false',
1209                                                         emptyText : "Select core_enum",
1210                                                         fieldLabel : 'Resolution',
1211                                                         forceSelection : true,
1212                                                         hiddenName : 'resolution_id',
1213                                                         listWidth : 400,
1214                                                         loadingText : "Searching...",
1215                                                         minChars : 2,
1216                                                         name : 'resolution_id_etype',
1217                                                         pageSize : 20,
1218                                                         qtip : "Select core_enum",
1219                                                         queryParam : 'query[etype]',
1220                                                         selectOnFocus : true,
1221                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{etype}</b> </div>',
1222                                                         triggerAction : 'all',
1223                                                         typeAhead : true,
1224                                                         valueField : 'id',
1225                                                         width : 180,
1226                                                         store : {
1227                                                             xtype: 'Store',
1228                                                             xns: Roo.data,
1229                                                             remoteSort : true,
1230                                                             sortInfo : { direction : 'ASC', field: 'id' },
1231                                                             listeners : {
1232                                                                 beforeload : function (_self, o){
1233                                                                     o.params = o.params || {};
1234                                                                     // set more here
1235                                                                 }
1236                                                             },
1237                                                             proxy : {
1238                                                                 xtype: 'HttpProxy',
1239                                                                 xns: Roo.data,
1240                                                                 method : 'GET',
1241                                                                 url : baseURL + '/Roo/core_enum.php'
1242                                                             },
1243                                                             reader : {
1244                                                                 xtype: 'JsonReader',
1245                                                                 xns: Roo.data,
1246                                                                 id : 'id',
1247                                                                 root : 'data',
1248                                                                 totalProperty : 'total',
1249                                                                 fields : [{"name":"id","type":"int"},{"name":"etype","type":"string"}]
1250                                                             }
1251                                                         }
1252                                                     },
1253                                                     {
1254                                                         xtype: 'NumberField',
1255                                                         xns: Roo.form,
1256                                                         style : 'align:right;',
1257                                                         fieldLabel : 'Estimated',
1258                                                         name : 'estimated',
1259                                                         width : 75
1260                                                     },
1261                                                     {
1262                                                         xtype: 'NumberField',
1263                                                         xns: Roo.form,
1264                                                         fieldLabel : 'Spent',
1265                                                         name : 'spent',
1266                                                         width : 75
1267                                                     },
1268                                                     {
1269                                                         xtype: 'DisplayField',
1270                                                         xns: Roo.form,
1271                                                         fieldLabel : 'Created',
1272                                                         name : 'created_when'
1273                                                     },
1274                                                     {
1275                                                         xtype: 'DisplayField',
1276                                                         xns: Roo.form,
1277                                                         fieldLabel : 'Last Updated',
1278                                                         name : 'updated_when'
1279                                                     }
1280                                                 ]
1281                                             }
1282                                         ]
1283                                     },
1284                                     {
1285                                         xtype: 'Column',
1286                                         xns: Roo.form,
1287                                         style : 'margin-left:10px',
1288                                         width : '420px',
1289                                         items : [
1290                                             {
1291                                                 xtype: 'FieldSet',
1292                                                 xns: Roo.form,
1293                                                 labelAlign : 'top',
1294                                                 legend : "Summary / Details",
1295                                                 items : [
1296                                                     {
1297                                                         xtype: 'TextField',
1298                                                         xns: Roo.form,
1299                                                         fieldLabel : 'Summary',
1300                                                         name : 'summary',
1301                                                         width : 400
1302                                                     },
1303                                                     {
1304                                                         xtype: 'TextArea',
1305                                                         xns: Roo.form,
1306                                                         fieldLabel : 'Description',
1307                                                         height : 200,
1308                                                         name : 'description',
1309                                                         width : 400
1310                                                     }
1311                                                 ]
1312                                             },
1313                                             {
1314                                                 xtype: 'FieldSet',
1315                                                 xns: Roo.form,
1316                                                 labelAlign : 'top',
1317                                                 legend : "Add Comment",
1318                                                 items : [
1319                                                     {
1320                                                         xtype: 'TextArea',
1321                                                         xns: Roo.form,
1322                                                         fieldLabel : 'Comment',
1323                                                         height : 150,
1324                                                         name : 'comment',
1325                                                         width : 400
1326                                                     },
1327                                                     {
1328                                                         xtype: 'Button',
1329                                                         xns: Roo,
1330                                                         text : "Add Comment"
1331                                                     }
1332                                                 ]
1333                                             },
1334                                             {
1335                                                 xtype: 'FieldSet',
1336                                                 xns: Roo.form,
1337                                                 labelAlign : 'top',
1338                                                 legend : "History",
1339                                                 items : [
1340                                                     {
1341                                                         xtype: 'DisplayField',
1342                                                         xns: Roo.form,
1343                                                         value : "... last few items of history goes in here.."
1344                                                     }
1345                                                 ]
1346                                             }
1347                                         ]
1348                                     },
1349                                     {
1350                                         xtype: 'Column',
1351                                         xns: Roo.form,
1352                                         style : 'margin-left: 10px',
1353                                         width : 200,
1354                                         items : [
1355                                             {
1356                                                 xtype: 'FieldSet',
1357                                                 xns: Roo.form,
1358                                                 labelAlign : 'top',
1359                                                 legend : "Schedule Work",
1360                                                 items : [
1361                                                     {
1362                                                         xtype: 'DateField',
1363                                                         xns: Roo.form,
1364                                                         fieldLabel : 'Tagged to start on'
1365                                                     }
1366                                                 ]
1367                                             },
1368                                             {
1369                                                 xtype: 'FieldSet',
1370                                                 xns: Roo.form,
1371                                                 labelAlign : 'top',
1372                                                 legend : "Attachments",
1373                                                 items : [
1374                                                     {
1375                                                         xtype: 'TextField',
1376                                                         xns: Roo.form,
1377                                                         fieldLabel : 'Add File',
1378                                                         inputType : 'file',
1379                                                         name : 'files[]',
1380                                                         qtip : ""
1381                                                     }
1382                                                 ]
1383                                             },
1384                                             {
1385                                                 xtype: 'FieldSet',
1386                                                 xns: Roo.form,
1387                                                 labelAlign : 'top',
1388                                                 legend : "Watching",
1389                                                 items : [
1390                                                     {
1391                                                         xtype: 'ComboBox',
1392                                                         xns: Roo.form,
1393                                                         displayField : 'name',
1394                                                         emptyText : "Select Person",
1395                                                         fieldLabel : 'Person',
1396                                                         forceSelection : true,
1397                                                         hiddenName : 'watcher_add_id',
1398                                                         listWidth : 400,
1399                                                         loadingText : "Searching...",
1400                                                         minChars : 2,
1401                                                         name : 'watcher_add',
1402                                                         pageSize : 20,
1403                                                         qtip : "Select Person",
1404                                                         queryParam : 'query[name]',
1405                                                         selectOnFocus : true,
1406                                                         tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
1407                                                         triggerAction : 'all',
1408                                                         typeAhead : true,
1409                                                         valueField : 'id',
1410                                                         width : 180,
1411                                                         store : {
1412                                                             xtype: 'Store',
1413                                                             xns: Roo.data,
1414                                                             remoteSort : true,
1415                                                             sortInfo : { direction : 'ASC', field: 'id' },
1416                                                             listeners : {
1417                                                                 beforeload : function (_self, o){
1418                                                                     o.params = o.params || {};
1419                                                                     // set more here
1420                                                                 }
1421                                                             },
1422                                                             proxy : {
1423                                                                 xtype: 'HttpProxy',
1424                                                                 xns: Roo.data,
1425                                                                 method : 'GET',
1426                                                                 url : baseURL + '/Roo/Person.php'
1427                                                             },
1428                                                             reader : {
1429                                                                 xtype: 'JsonReader',
1430                                                                 xns: Roo.data,
1431                                                                 id : 'id',
1432                                                                 root : 'data',
1433                                                                 totalProperty : 'total',
1434                                                                 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
1435                                                             }
1436                                                         }
1437                                                     },
1438                                                     {
1439                                                         xtype: 'DisplayField',
1440                                                         xns: Roo.form,
1441                                                         value : "..existing watchers..."
1442                                                     }
1443                                                 ]
1444                                             },
1445                                             {
1446                                                 xtype: 'FieldSet',
1447                                                 xns: Roo.form,
1448                                                 labelSeparator : '&nbsp;',
1449                                                 labelWidth : 1,
1450                                                 legend : "Change Status",
1451                                                 items : [
1452                                                     {
1453                                                         xtype: 'Radio',
1454                                                         xns: Roo.form,
1455                                                         boxLabel : 'Leave status as NEW',
1456                                                         name : 'leave'
1457                                                     },
1458                                                     {
1459                                                         xtype: 'Radio',
1460                                                         xns: Roo.form,
1461                                                         boxLabel : 'Leave status as NEW',
1462                                                         name : 'leave'
1463                                                     },
1464                                                     {
1465                                                         xtype: 'Radio',
1466                                                         xns: Roo.form,
1467                                                         boxLabel : 'Leave status as NEW',
1468                                                         name : 'leave'
1469                                                     },
1470                                                     {
1471                                                         xtype: 'Radio',
1472                                                         xns: Roo.form,
1473                                                         boxLabel : 'Leave status as NEW',
1474                                                         name : 'leave'
1475                                                     },
1476                                                     {
1477                                                         xtype: 'Radio',
1478                                                         xns: Roo.form,
1479                                                         boxLabel : 'Leave status as NEW',
1480                                                         name : 'leave'
1481                                                     }
1482                                                 ]
1483                                             },
1484                                             {
1485                                                 xtype: 'FieldSet',
1486                                                 xns: Roo.form,
1487                                                 labelAlign : 'top',
1488                                                 legend : "Logged work",
1489                                                 items : [
1490                                                     {
1491                                                         xtype: 'DisplayField',
1492                                                         xns: Roo.form,
1493                                                         value : "... timesheet references?..."
1494                                                     }
1495                                                 ]
1496                                             }
1497                                         ]
1498                                     },
1499                                     {
1500                                         xtype: 'Hidden',
1501                                         xns: Roo.form,
1502                                         name : 'id'
1503                                     }
1504                                 ]
1505                             }
1506                         ],
1507                         toolbar : {
1508                             xtype: 'Toolbar',
1509                             xns: Roo,
1510                             items : [
1511                                 {
1512                                     xtype: 'Button',
1513                                     xns: Roo.Toolbar,
1514                                     text : "Save Changes"
1515                                 },
1516                                 {
1517                                     xtype: 'Fill',
1518                                     xns: Roo.Toolbar
1519                                 },
1520                                 {
1521                                     xtype: 'Button',
1522                                     xns: Roo.Toolbar,
1523                                     text : "Cancel"
1524                                 }
1525                             ]
1526                         }
1527                     },
1528                     {
1529                         xtype: 'ContentPanel',
1530                         xns: Roo,
1531                         background : true,
1532                         region : 'east',
1533                         title : "Full history"
1534                     }
1535                 ],
1536                 center : {
1537                     xtype: 'LayoutRegion',
1538                     xns: Roo
1539                 },
1540                 east : {
1541                     xtype: 'LayoutRegion',
1542                     xns: Roo,
1543                     collapsible : true,
1544                     tabPosition : 'top',
1545                     title : "Ticket Details",
1546                     width : 550
1547                 },
1548                 center : {
1549                     xtype: 'LayoutRegion',
1550                     xns: Roo
1551                 }
1552             }
1553         };
1554     }
1555 });