Pman.Dialog.XtupleVendorEdit.bjs
[Pman.Xtuple] / Pman.Dialog.XtupleVendorEdit.bjs
1 {
2     "id": "roo-file-358",
3     "name": "Pman.Dialog.XtupleVendorEdit",
4     "parent": "",
5     "title": "",
6     "path": "/home/alan/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtupleVendorEdit.bjs",
7     "items": [
8         {
9             "closable": false,
10             "collapsible": false,
11             "height": 550,
12             "modal": true,
13             "resizable": false,
14             "title": "Edit / Create Vendor",
15             "width": 550,
16             "xtype": "LayoutDialog",
17             "|xns": "Roo",
18             "items": [
19                 {
20                     "*prop": "center",
21                     "tabPosition": "top",
22                     "xtype": "LayoutRegion",
23                     "|xns": "Roo"
24                 },
25                 {
26                     "region": "center",
27                     "xtype": "ContentPanel",
28                     "|xns": "Roo",
29                     "items": [
30                         {
31                             "listeners": {
32                                 "|actioncomplete": "function(_self,action)\n{\n    if (action.type == 'setdata') {\n        if(_this.data.vend_id){\n            _this.dialog.el.mask(\"Loading\");\n            this.load({ method: 'GET', params: { '_id' : _this.data.vend_id }});     \n        }\n       \n       return;\n    }\n    if (action.type == 'load') {\n        _this.data = action.result.data;\n        _this.form.findField('addr_view').sync();\n        _this.dialog.el.unmask();\n        return;\n    }\n    if (action.type =='submit') {\n    \n        _this.dialog.el.unmask();\n        _this.dialog.hide();\n    \n         if (_this.callback) {\n            _this.callback.call(_this, _this.form.getValues());\n         }\n         _this.form.reset();\n         return;\n    }\n}\n",
33                                 "|rendered": "function (form)\n{\n    _this.form= form;\n}\n"
34                             },
35                             "method": "POST",
36                             "style": "margin:10px;",
37                             "xtype": "Form",
38                             "|url": "baseURL + '/Roo/vendinfo.php'",
39                             "|xns": "Roo.form",
40                             "items": [
41                                 {
42                                     "legend": "Basic Details",
43                                     "style": "width:450px",
44                                     "xtype": "FieldSet",
45                                     "|xns": "Roo.form",
46                                     "items": [
47                                         {
48                                             "listeners": {
49                                                 "keyup": "function (_self, e)\n{\n    if (!(_this.form.findField('vend_id').getValue() * 1)) {\n    \n        _this.form.findField('vend_number').setValue(this.getValue().replace(/[^a-z0-9]/ig, '').toUpperCase());\n    \n    }\n}"
50                                             },
51                                             "allowBlank": false,
52                                             "fieldLabel": "Name",
53                                             "name": "vend_name",
54                                             "width": 200,
55                                             "xtype": "TextField",
56                                             "|xns": "Roo.form"
57                                         },
58                                         {
59                                             "allowBlank": false,
60                                             "fieldLabel": "Vendor #",
61                                             "name": "vend_number",
62                                             "readOnly": true,
63                                             "width": 200,
64                                             "xtype": "TextField",
65                                             "|xns": "Roo.form"
66                                         },
67                                         {
68                                             "allowBlank": true,
69                                             "fieldLabel": "Ship Via",
70                                             "name": "vend_shipvia",
71                                             "width": 200,
72                                             "xtype": "TextField",
73                                             "|xns": "Roo.form"
74                                         },
75                                         {
76                                             "allowBlank": false,
77                                             "alwaysQuery": true,
78                                             "displayField": "curr_symbol",
79                                             "editable": false,
80                                             "emptyText": "Select Currency",
81                                             "fieldLabel": "Currency",
82                                             "forceSelection": true,
83                                             "hiddenName": "vend_curr_id",
84                                             "listWidth": 400,
85                                             "loadingText": "Searching...",
86                                             "minChars": 2,
87                                             "name": "vend_curr_id_curr_symbol",
88                                             "pageSize": 20,
89                                             "qtip": "Select Currency",
90                                             "queryParam": "query[curr_symbol]",
91                                             "selectOnFocus": true,
92                                             "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{curr_symbol}</b> </div>",
93                                             "triggerAction": "all",
94                                             "typeAhead": true,
95                                             "valueField": "curr_id",
96                                             "width": 200,
97                                             "xtype": "ComboBox",
98                                             "|xns": "Roo.form",
99                                             "items": [
100                                                 {
101                                                     "listeners": {
102                                                         "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n}\n"
103                                                     },
104                                                     "*prop": "store",
105                                                     "remoteSort": true,
106                                                     "xtype": "Store",
107                                                     "|sortInfo": "{ direction : 'ASC', field: 'curr_symbol' }",
108                                                     "|xns": "Roo.data",
109                                                     "items": [
110                                                         {
111                                                             "*prop": "proxy",
112                                                             "xtype": "HttpProxy",
113                                                             "method": "GET",
114                                                             "|xns": "Roo.data",
115                                                             "|url": "baseURL + '/Roo/curr_symbol.php'"
116                                                         },
117                                                         {
118                                                             "*prop": "reader",
119                                                             "xtype": "JsonReader",
120                                                             "|xns": "Roo.data",
121                                                             "id": "curr_id",
122                                                             "root": "data",
123                                                             "totalProperty": "total",
124                                                             "|fields": "[{\"name\":\"curr_id\",\"type\":\"int\"},\"curr_symbol\"]"
125                                                         }
126                                                     ]
127                                                 }
128                                             ]
129                                         },
130                                         {
131                                             "allowBlank": false,
132                                             "alwaysQuery": true,
133                                             "displayField": "terms_descrip",
134                                             "editable": false,
135                                             "emptyText": "Select Terms",
136                                             "fieldLabel": "Terms",
137                                             "forceSelection": true,
138                                             "hiddenName": "vend_terms_id",
139                                             "listWidth": 400,
140                                             "loadingText": "Searching...",
141                                             "minChars": 2,
142                                             "name": "vend_terms_id_terms_descrip",
143                                             "pageSize": 20,
144                                             "qtip": "Select Terms",
145                                             "queryParam": "query[terms_descrip]",
146                                             "selectOnFocus": true,
147                                             "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{terms_descrip}</b> </div>",
148                                             "triggerAction": "all",
149                                             "typeAhead": true,
150                                             "valueField": "terms_id",
151                                             "width": 200,
152                                             "xtype": "ComboBox",
153                                             "|xns": "Roo.form",
154                                             "items": [
155                                                 {
156                                                     "listeners": {
157                                                         "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n}\n"
158                                                     },
159                                                     "*prop": "store",
160                                                     "remoteSort": true,
161                                                     "xtype": "Store",
162                                                     "|sortInfo": "{ direction : 'ASC', field: 'terms_descrip' }",
163                                                     "|xns": "Roo.data",
164                                                     "items": [
165                                                         {
166                                                             "*prop": "proxy",
167                                                             "xtype": "HttpProxy",
168                                                             "method": "GET",
169                                                             "|xns": "Roo.data",
170                                                             "|url": "baseURL + '/Roo/terms.php'"
171                                                         },
172                                                         {
173                                                             "*prop": "reader",
174                                                             "xtype": "JsonReader",
175                                                             "|xns": "Roo.data",
176                                                             "id": "terms_id",
177                                                             "root": "data",
178                                                             "totalProperty": "total",
179                                                             "|fields": "[{\"name\":\"terms_id\",\"type\":\"int\"},\"terms_descrip\"]"
180                                                         }
181                                                     ]
182                                                 }
183                                             ]
184                                         },
185                                         {
186                                             "allowBlank": false,
187                                             "alwaysQuery": true,
188                                             "displayField": "taxzone_descrip",
189                                             "editable": false,
190                                             "emptyText": "Select Taxzone",
191                                             "fieldLabel": "Tax Zone",
192                                             "forceSelection": true,
193                                             "hiddenName": "vend_taxzone_id",
194                                             "listWidth": 400,
195                                             "loadingText": "Searching...",
196                                             "minChars": 2,
197                                             "name": "vend_taxzone_id_taxzone_descrip",
198                                             "pageSize": 20,
199                                             "qtip": "Select Taxzone",
200                                             "queryParam": "query[taxzone_descrip]",
201                                             "selectOnFocus": true,
202                                             "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{taxzone_descrip}</b> </div>",
203                                             "triggerAction": "all",
204                                             "typeAhead": true,
205                                             "valueField": "taxzone_id",
206                                             "width": 200,
207                                             "xtype": "ComboBox",
208                                             "|xns": "Roo.form",
209                                             "items": [
210                                                 {
211                                                     "listeners": {
212                                                         "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n}\n"
213                                                     },
214                                                     "*prop": "store",
215                                                     "remoteSort": true,
216                                                     "xtype": "Store",
217                                                     "|sortInfo": "{ direction : 'ASC', field: 'taxzone_descrip' }",
218                                                     "|xns": "Roo.data",
219                                                     "items": [
220                                                         {
221                                                             "*prop": "proxy",
222                                                             "xtype": "HttpProxy",
223                                                             "method": "GET",
224                                                             "|xns": "Roo.data",
225                                                             "|url": "baseURL + '/Roo/taxzone.php'"
226                                                         },
227                                                         {
228                                                             "*prop": "reader",
229                                                             "xtype": "JsonReader",
230                                                             "|xns": "Roo.data",
231                                                             "id": "taxzone_id",
232                                                             "root": "data",
233                                                             "totalProperty": "total",
234                                                             "|fields": "[{\"name\":\"taxzone_id\",\"type\":\"int\"},\"taxzone_descrip\"]"
235                                                         }
236                                                     ]
237                                                 }
238                                             ]
239                                         },
240                                         {
241                                             "listeners": {
242                                                 "add": "function (combo)\n{\n    Pman.Dialog.XtupleVendTypeEdit.show({vendtype_id : 0}, function(res){\n        _this.form.findField('vend_vendtype_id').setFromData(res);\n    \n    });\n}",
243                                                 "edit": "function (combo, record)\n{\n    var s = _this.form.findField('vend_vendtype_id').getValue() * 1;\n    if(s < 1){\n        Roo.MessageBox.alert('Error','Please select a type');\n        return;\n    }\n\n    Pman.Dialog.XtupleVendTypeEdit.show({vendtype_id : s}, function(res){\n\n        _this.form.findField('vend_vendtype_id').setFromData(res);\n    \n    });\n}"
244                                             },
245                                             "allowBlank": false,
246                                             "alwaysQuery": true,
247                                             "displayField": "vendtype_descrip",
248                                             "editable": false,
249                                             "emptyText": "Select Vendor Type",
250                                             "fieldLabel": "Type",
251                                             "forceSelection": true,
252                                             "hiddenName": "vend_vendtype_id",
253                                             "listWidth": 400,
254                                             "loadingText": "Searching...",
255                                             "minChars": 2,
256                                             "name": "vend_vendtype_id_vendtype_descrip",
257                                             "pageSize": 20,
258                                             "qtip": "Select Vendor Type",
259                                             "queryParam": "query[vendtype_descrip]",
260                                             "selectOnFocus": true,
261                                             "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{vendtype_descrip}</b> </div>",
262                                             "triggerAction": "all",
263                                             "typeAhead": true,
264                                             "valueField": "vendtype_id",
265                                             "width": 200,
266                                             "xtype": "ComboBox",
267                                             "|xns": "Roo.form",
268                                             "items": [
269                                                 {
270                                                     "listeners": {
271                                                         "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n}\n"
272                                                     },
273                                                     "*prop": "store",
274                                                     "remoteSort": true,
275                                                     "xtype": "Store",
276                                                     "|sortInfo": "{ direction : 'ASC', field: 'vendtype_descrip' }",
277                                                     "|xns": "Roo.data",
278                                                     "items": [
279                                                         {
280                                                             "*prop": "proxy",
281                                                             "method": "GET",
282                                                             "xtype": "HttpProxy",
283                                                             "|url": "baseURL + '/Roo/vendtype.php'",
284                                                             "|xns": "Roo.data"
285                                                         },
286                                                         {
287                                                             "*prop": "reader",
288                                                             "id": "vendtype_id",
289                                                             "root": "data",
290                                                             "totalProperty": "total",
291                                                             "xtype": "JsonReader",
292                                                             "|fields": "[{\"name\":\"vendtype_id\",\"type\":\"int\"},\"vendtype_descrip\"]",
293                                                             "|xns": "Roo.data"
294                                                         }
295                                                     ]
296                                                 }
297                                             ]
298                                         },
299                                         {
300                                             "fieldLabel": "Active",
301                                             "inputValue": "true",
302                                             "name": "vend_active",
303                                             "valueOff": 0,
304                                             "xtype": "Checkbox",
305                                             "|xns": "Roo.form"
306                                         },
307                                         {
308                                             "allowBlank": true,
309                                             "fieldLabel": "Comments",
310                                             "name": "vend_comments",
311                                             "xtype": "TextArea",
312                                             "|xns": "Roo.form"
313                                         }
314                                     ]
315                                 },
316                                 {
317                                     "hideLabels": true,
318                                     "legend": "Address",
319                                     "style": "width:450px;",
320                                     "xtype": "FieldSet",
321                                     "|xns": "Roo.form",
322                                     "items": [
323                                         {
324                                             "listeners": {
325                                                 "add": "function (combo)\n{\n    Pman.Dialog.XtupleAddress.show({addr_id : 0});\n}",
326                                                 "edit": "function (combo, record)\n{\n    var s = _this.form.findField('vend_addr_id').getValue() * 1;\n    if(s < 1){\n        Roo.MessageBox.alert('Error','Please select a address');\n        return;\n    }\n    Pman.Dialog.XtupleAddress.show({addr_id : s});\n}",
327                                                 "select": "function (combo, record, index)\n{\n    for(var i in record.data) {\n        _this.data['vend_addr_id_' + i] = record.data[i];\n    }\n\n    _this.form.findField('addr_view').sync();\n}"
328                                             },
329                                             "allowBlank": false,
330                                             "alwaysQuery": true,
331                                             "displayField": "addr_number",
332                                             "editable": true,
333                                             "emptyText": "Select Address",
334                                             "fieldLabel": "Address",
335                                             "forceSelection": true,
336                                             "hiddenName": "vend_addr_id",
337                                             "listWidth": 400,
338                                             "loadingText": "Searching...",
339                                             "minChars": 2,
340                                             "name": "vend_addr_id_addr_number",
341                                             "pageSize": 20,
342                                             "qtip": "Select Address",
343                                             "queryParam": "query[address]",
344                                             "selectOnFocus": true,
345                                             "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>#{addr_id} - {addr_number}</b> </div>",
346                                             "triggerAction": "all",
347                                             "typeAhead": true,
348                                             "valueField": "addr_id",
349                                             "width": 400,
350                                             "xtype": "ComboBox",
351                                             "|xns": "Roo.form",
352                                             "items": [
353                                                 {
354                                                     "listeners": {
355                                                         "|beforeload": "function (_self, o){\n    o.params = o.params || {};\n    addr_active = 1;\n}\n"
356                                                     },
357                                                     "*prop": "store",
358                                                     "remoteSort": true,
359                                                     "xtype": "Store",
360                                                     "|sortInfo": "{ direction : 'DESC', field: 'addr_id' }",
361                                                     "|xns": "Roo.data",
362                                                     "items": [
363                                                         {
364                                                             "*prop": "proxy",
365                                                             "method": "GET",
366                                                             "xtype": "HttpProxy",
367                                                             "|url": "baseURL + '/Roo/addr.php'",
368                                                             "|xns": "Roo.data"
369                                                         },
370                                                         {
371                                                             "*prop": "reader",
372                                                             "id": "addr_id",
373                                                             "root": "data",
374                                                             "totalProperty": "total",
375                                                             "xtype": "JsonReader",
376                                                             "|fields": "[{\"name\":\"addr_id\",\"type\":\"int\"},\"addr_number\"]",
377                                                             "|xns": "Roo.data"
378                                                         }
379                                                     ]
380                                                 }
381                                             ]
382                                         },
383                                         {
384                                             "allowBlank": true,
385                                             "fieldLabel": "Notes",
386                                             "name": "addr_view",
387                                             "readOnly": true,
388                                             "width": 400,
389                                             "xtype": "TextArea",
390                                             "|sync": "function() {\n    var a = [ 'line1', 'line2', 'line3', 'city', 'state', 'country' ];\n    var v = [];\n    \n    Roo.each(a, function(e) {\n        if (_this.data['vend_addr_id_addr_' +e].length) {\n            v.push(_this.data['vend_addr_id_addr_' +e]);\n        }\n    });\n    \n    this.setValue(v.join(\"\\n\"));\n}\n",
391                                             "|xns": "Roo.form"
392                                         }
393                                     ]
394                                 },
395                                 {
396                                     "name": "vend_id",
397                                     "xtype": "Hidden",
398                                     "|xns": "Roo.form"
399                                 }
400                             ]
401                         }
402                     ]
403                 },
404                 {
405                     "listeners": {
406                         "|activate": "function() {\n    _this.panel = this;\n    if (_this.grid) {\n        _this.grid.footer.onClick('first');\n    }\n}"
407                     },
408                     "background": true,
409                     "fitContainer": true,
410                     "fitToframe": true,
411                     "region": "center",
412                     "tableName": "itemsrc",
413                     "title": "Supplier of",
414                     "xtype": "GridPanel",
415                     "|xns": "Roo",
416                     "items": [
417                         {
418                             "listeners": {
419                                 "|render": "function() \n{\n    _this.grid = this; \n    //_this.dialog = Pman.Dialog.FILL_IN\n    if (_this.panel.active) {\n       this.footer.onClick('first');\n    }\n}",
420                                 "|rowdblclick": "function (_self, rowIndex, e)\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( this.getDataSource().getAt(rowIndex).data, function() {\n        _this.grid.footer.onClick('first');\n    }); \n}\n"
421                             },
422                             "*prop": "grid",
423                             "autoExpandColumn": "itemsrc_vend_item_descrip",
424                             "loadMask": true,
425                             "xtype": "Grid",
426                             "|xns": "Roo.grid",
427                             "items": [
428                                 {
429                                     "listeners": {
430                                         "beforeload": "function (_self, options)\n{\n    options.params.itemsrc_vend_id =   _this.form.findField('vend_id').getValue();\n}"
431                                     },
432                                     "*prop": "dataSource",
433                                     "remoteSort": true,
434                                     "xtype": "Store",
435                                     "|sortInfo": "{ field : 'itemsrc_vend_item_number', direction: 'ASC' }",
436                                     "|xns": "Roo.data",
437                                     "items": [
438                                         {
439                                             "*prop": "proxy",
440                                             "xtype": "HttpProxy",
441                                             "method": "GET",
442                                             "|url": "baseURL + '/Roo/itemsrc.php'",
443                                             "|xns": "Roo.data"
444                                         },
445                                         {
446                                             "|xns": "Roo.data",
447                                             "xtype": "JsonReader",
448                                             "totalProperty": "total",
449                                             "root": "data",
450                                             "*prop": "reader",
451                                             "id": "id",
452                                             "|fields": "[\n    {\n        'name': 'itemsrc_id',\n        'type': 'int'\n    },\n    {\n        'name': 'itemsrc_item_id',\n        'type': 'int'\n    },\n    {\n        'name': 'itemsrc_item_id',\n        'type': 'int'\n    },\n    {\n        'name': 'itemsrc_vend_id',\n        'type': 'int'\n    },\n    {\n        'name': 'itemsrc_vend_id',\n        'type': 'int'\n    },\n    {\n        'name': 'itemsrc_vend_item_number',\n        'type': 'string'\n    },\n    {\n        'name': 'itemsrc_vend_item_descrip',\n        'type': 'string'\n    },\n    {\n        'name': 'itemsrc_comments',\n        'type': 'string'\n    },\n    {\n        'name': 'itemsrc_vend_uom',\n        'type': 'string'\n    },\n    {\n        'name': 'itemsrc_invvendoruomratio',\n        'type': 'float'\n    },\n    {\n        'name': 'itemsrc_minordqty',\n        'type': 'float'\n    },\n    {\n        'name': 'itemsrc_multordqty',\n        'type': 'float'\n    },\n    {\n        'name': 'itemsrc_leadtime',\n        'type': 'int'\n    },\n    {\n        'name': 'itemsrc_ranking',\n        'type': 'int'\n    },\n    {\n        'name': 'itemsrc_active',\n        'type': 'int'\n    },\n    {\n        'name': 'itemsrc_manuf_name',\n        'type': 'string'\n    },\n    {\n        'name': 'itemsrc_manuf_item_number',\n        'type': 'string'\n    },\n    {\n        'name': 'itemsrc_manuf_item_descrip',\n        'type': 'string'\n    },\n    {\n        'name': 'itemsrc_default',\n        'type': 'int'\n    },\n    {\n        'name': 'itemsrc_upccode',\n        'type': 'string'\n    }\n]"
453                                         }
454                                     ]
455                                 },
456                                 {
457                                     "*prop": "footer",
458                                     "xtype": "PagingToolbar",
459                                     "pageSize": 25,
460                                     "displayInfo": true,
461                                     "displayMsg": "Displaying itemsrc{0} - {1} of {2}",
462                                     "emptyMsg": "No itemsrc found",
463                                     "|xns": "Roo"
464                                 },
465                                 {
466                                     "*prop": "toolbar",
467                                     "xtype": "Toolbar",
468                                     "|xns": "Roo",
469                                     "items": [
470                                         {
471                                             "text": "Add",
472                                             "xtype": "Button",
473                                             "cls": "x-btn-text-icon",
474                                             "|icon": "Roo.rootURL + 'images/default/dd/drop-add.gif'",
475                                             "listeners": {
476                                                 "|click": "function()\n{\n    if (!_this.dialog) return;\n    _this.dialog.show( { id : 0 } , function() {\n        _this.grid.footer.onClick('first');\n   }); \n}\n"
477                                             },
478                                             "|xns": "Roo.Toolbar"
479                                         },
480                                         {
481                                             "|xns": "Roo.Toolbar",
482                                             "xtype": "Fill"
483                                         },
484                                         {
485                                             "text": "Delete",
486                                             "cls": "x-btn-text-icon",
487                                             "|icon": "rootURL + '/Pman/templates/images/trash.gif'",
488                                             "xtype": "Button",
489                                             "listeners": {
490                                                 "|click": "function()\n{\n     Pman.genericDelete(_this, 'itemsrc'); \n}\n        "
491                                             },
492                                             "|xns": "Roo.Toolbar"
493                                         }
494                                     ]
495                                 },
496                                 {
497                                     "*prop": "colModel[]",
498                                     "dataIndex": "itemsrc_id_item_number",
499                                     "header": "Item",
500                                     "width": 120,
501                                     "xtype": "ColumnModel",
502                                     "|renderer": "function(v) { return String.format('{0}', v); }",
503                                     "|xns": "Roo.grid"
504                                 },
505                                 {
506                                     "*prop": "colModel[]",
507                                     "dataIndex": "itemsrc_vend_item_number",
508                                     "header": "Vendor item number",
509                                     "width": 120,
510                                     "xtype": "ColumnModel",
511                                     "|renderer": "function(v) { return String.format('{0}', v); }",
512                                     "|xns": "Roo.grid"
513                                 },
514                                 {
515                                     "*prop": "colModel[]",
516                                     "dataIndex": "itemsrc_vend_item_descrip",
517                                     "header": "Vendor item description",
518                                     "width": 200,
519                                     "xtype": "ColumnModel",
520                                     "|renderer": "function(v) { return String.format('{0}', v); }",
521                                     "|xns": "Roo.grid"
522                                 },
523                                 {
524                                     "*prop": "colModel[]",
525                                     "dataIndex": "itemsrc_vend_uom",
526                                     "header": "Uom",
527                                     "width": 50,
528                                     "xtype": "ColumnModel",
529                                     "|renderer": "function(v) { return String.format('{0}', v); }",
530                                     "|xns": "Roo.grid"
531                                 },
532                                 {
533                                     "*prop": "colModel[]",
534                                     "dataIndex": "itemsrc_minordqty",
535                                     "header": "Min ord qty",
536                                     "width": 50,
537                                     "xtype": "ColumnModel",
538                                     "|renderer": "function(v) { return String.format('{0}', v); }",
539                                     "|xns": "Roo.grid"
540                                 },
541                                 {
542                                     "*prop": "colModel[]",
543                                     "dataIndex": "itemsrc_leadtime",
544                                     "header": "Lead time",
545                                     "width": 75,
546                                     "xtype": "ColumnModel",
547                                     "|renderer": "function(v) { return String.format('{0}', v); }",
548                                     "|xns": "Roo.grid"
549                                 },
550                                 {
551                                     "*prop": "colModel[]",
552                                     "dataIndex": "itemsrc_active",
553                                     "header": "Active",
554                                     "width": 75,
555                                     "xtype": "ColumnModel",
556                                     "|renderer": "function(v) { return String.format('{0}', v); }",
557                                     "|xns": "Roo.grid"
558                                 }
559                             ]
560                         }
561                     ]
562                 },
563                 {
564                     "listeners": {
565                         "click": "function (_self, e)\n{\n    _this.dialog.hide();\n}"
566                     },
567                     "*prop": "buttons[]",
568                     "text": "Cancel",
569                     "xtype": "Button",
570                     "|xns": "Roo"
571                 },
572                 {
573                     "listeners": {
574                         "click": "function (_self, e)\n{\n    _this.form.doAction(\"submit\");\n\n}"
575                     },
576                     "*prop": "buttons[]",
577                     "text": "Save",
578                     "xtype": "Button",
579                     "|xns": "Roo"
580                 }
581             ]
582         }
583     ],
584     "permname": "",
585     "modOrder": "001"
586 }