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