1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.XtupleUploadHSBC = {
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 : "Upload HSBC",
42 xtype: 'ContentPanel',
50 rendered : function (form)
54 actioncomplete : function(_self,action)
\r
56 if (action.type == 'setdata') {
\r
59 if (action.type == 'load') {
\r
62 if (action.type =='submit') {
\r
64 _this.dialog.hide();
\r
66 if (_this.callback) {
\r
67 _this.callback.call(_this, _this.form.getValues());
\r
75 style : 'margin:10px;',
76 url : baseURL + '/Roo/INGORE.php',
82 render : function (_self)
84 _this.bankSel = _self;
86 edit : function (combo, record)
88 var id = combo.getValue() * 1;
91 Roo.MessageBox.alert('Error', 'Please select a bank account');
95 Pman.Dialog.XtupleBankAccnt.show({id : id});
101 displayField : 'bankaccnt_name',
103 emptyText : "Select Bank Accnt",
104 fieldLabel : 'Post to',
105 forceSelection : true,
106 hiddenName : 'bankaccnt_id',
108 loadingText : "Searching...",
110 name : 'bankaccnt_id_name',
112 qtip : "Select Bank Accnt",
113 queryParam : 'query[bankaccnt_name]',
114 selectOnFocus : true,
115 tpl : '<div class="x-grid-cell-text x-btn button"><b>{bankaccnt_name} - {bankaccnt_descrip}</b> </div>',
116 triggerAction : 'all',
118 valueField : 'bankaccnt_id',
124 beforeload : function (_self, o){
125 o.params = o.params || {};
131 sortInfo : { direction : 'DESC', field: 'bankaccnt_id' },
136 url : baseURL + '/Roo/bankaccnt.php'
143 totalProperty : 'total',
144 fields : [{"name":"bankaccnt_id","type":"int"},"bankaccnt_name"]
154 xtype: 'LayoutRegion',
162 click : function (_self, e)
173 click : function (_self, e)
175 var bank = _this.bankSel.getValue();
178 Roo.MessageBox.alert("Error", "Please select a bankaccnt");
184 _this.callback(_this.form.getValues());