1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.XtupleVendTypeEdit = {
10 show : function(data, cb)
18 this.dialog.show(this.data._el);
21 this.form.setValues(data);
22 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
30 this.dialog = Roo.factory({
31 xtype: 'LayoutDialog',
38 title : "Edit / Create Vendor Type",
42 xtype: 'ContentPanel',
50 actioncomplete : function(_self,action)
52 if (action.type == 'setdata') {
53 if(_this.data.vendtype_id){
54 _this.dialog.el.mask("Loading");
55 this.load({ method: 'GET', params: { '_id' : _this.data.vendtype_id }});
59 if (action.type == 'load') {
60 _this.data = action.result.data;
61 _this.dialog.el.unmask();
64 if (action.type =='submit') {
66 _this.dialog.el.unmask();
70 _this.callback.call(_this, action.result.data);
76 rendered : function (form)
82 style : 'margin:10px;',
83 url : baseURL + '/Roo/Vendtype.php',
89 name : 'vendtype_code',
95 fieldLabel : 'Description',
96 name : 'vendtype_descrip',
110 xtype: 'LayoutRegion',
118 click : function (_self, e)
129 click : function (_self, e)
131 _this.form.doAction("submit");