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