1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.XtupleGLAccountNameEdit = {
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 Account Name",
42 xtype: 'ContentPanel',
50 actioncomplete : function(_self,action)
52 if (action.type == 'setdata') {
53 if(_this.data.accnt_id * 1 >1){
54 _this.dialog.el.mask("Loading");
55 this.load({ method: 'GET', params: { '_id' : _this.data.accnt_id }});
59 if (action.type == 'load') {
60 _this.dialog.el.unmask();
63 if (action.type =='submit') {
65 _this.dialog.el.unmask();
69 _this.callback.call(_this, _this.form.getValues());
75 rendered : function (form)
82 style : 'margin:10px;',
83 url : baseURL + '/Roo/Accnt.php',
89 fieldLabel : 'Account Name',
90 name : 'accnt_descrip',
97 fieldLabel : 'Alternative Code',
98 name : 'accnt_code_alt',
105 fieldLabel : 'Alternative Description',
106 name : 'accnt_descrip_alt',
120 xtype: 'LayoutRegion',
128 click : function (_self, e)
139 click : function (_self, e)
142 _this.form.doAction("submit");