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 displayField : 'bankaccnt_name',
84 emptyText : "Select Bank Accnt",
85 fieldLabel : 'Post to',
86 forceSelection : true,
87 hiddenName : 'checkhead_bankaccnt_id',
89 loadingText : "Searching...",
91 name : 'checkhead_bankaccnt_id_name',
93 qtip : "Select Bank Accnt",
94 queryParam : 'query[bankaccnt_name]',
96 tpl : '<div class="x-grid-cell-text x-btn button"><b>{bankaccnt_name} - {bankaccnt_descrip}</b> </div>',
97 triggerAction : 'all',
99 valueField : 'bankaccnt_id',
105 beforeload : function (_self, o){
106 o.params = o.params || {};
112 sortInfo : { direction : 'DESC', field: 'bankaccnt_id' },
117 url : baseURL + '/Roo/bankaccnt.php'
124 totalProperty : 'total',
125 fields : [{"name":"bankaccnt_id","type":"int"},"bankaccnt_name"]
135 xtype: 'LayoutRegion',
143 click : function (_self, e)
154 click : function (_self, e)
156 var ref = _this.form.findField('reference').getValue();
157 var d = _this.form.findField('apply_date').getValue();
159 if(!ref.length || !d){
160 Roo.MessageBox.alert("Error", "Referenct and Apply date must be filled in");
166 _this.callback(_this.form.getValues());