1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Roo.namespace('Pman.Dialog');
7 Pman.Dialog.XtupleBankAccnt = {
12 show : function(data, cb)
20 this.dialog.show(this.data._el);
23 this.form.setValues(data);
24 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
32 this.dialog = Roo.factory({
35 xtype : 'LayoutRegion',
41 title : "Edit Bank Account",
42 xtype : 'LayoutDialog',
55 click : function (_self, e)
67 click : function (_self, e)
70 _this.form.doAction("submit");
80 xtype : 'ContentPanel',
85 url : baseURL + '/Roo/Bankaccnt.php',
88 style : 'margin:10px;',
91 actioncomplete : function(_self,action)
93 if (action.type == 'setdata') {
96 _this.dialog.el.mask("Loading");
97 this.load({ method: 'GET', params: { '_id' : _this.data.id }});
103 if (action.type == 'load') {
104 _this.dialog.el.unmask();
107 if (action.type =='submit') {
109 _this.dialog.el.unmask();
112 if (_this.callback) {
113 _this.callback.call(_this, _this.form.getValues());
119 rendered : function (form)
128 emptyText : "eg. HSBC",
134 name : 'bankaccnt_bankname'
140 emptyText : "Automatic",
145 name : 'bankaccnt_name'
149 fieldLabel : 'Account No.',
150 emptyText : "eg. 1-23-23-23",
156 name : 'bankaccnt_accntnumber'
160 fieldLabel : 'Description',
165 name : 'bankaccnt_descrip'
171 name : 'bankaccnt_id'