1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.XtupleUploadBalances = {
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 new Balances",
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 fieldLabel : 'Reference',
90 fieldLabel : 'Apply Date',
101 xtype: 'LayoutRegion',
109 click : function (_self, e)
120 click : function (_self, e)
122 var ref = _this.form.findField('reference').getValue();
123 var d = _this.form.findField('apply_date').getValue();
125 if(!ref.length || !d){
126 Roo.MessageBox.alert("Error", "Referenct and Apply date must be filled in");
132 _this.callback(_this.form.getValues());