1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.XtupleJournalEntry = {
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 / Create gltrans",
42 xtype: 'ContentPanel',
50 actioncomplete : function(_self,action)
52 if (action.type == 'setdata') {
53 //_this.dialog.el.mask("Loading");
54 //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
57 if (action.type == 'load') {
58 _this.dialog.el.unmask();
61 if (action.type =='submit') {
63 _this.dialog.el.unmask();
67 _this.callback.call(_this, _this.form.getValues());
73 rendered : function (form)
80 style : 'margin:10px;',
81 url : baseURL + '/Roo/gltrans.php',
91 fieldLabel : 'Sequence',
92 name : 'gltrans_sequence',
98 fieldLabel : 'Journal No.',
99 name : 'gltrans_journalnumber',
107 labelAlign : 'right',
114 name : 'gltrans_date',
121 fieldLabel : 'Entered',
122 name : 'gltrans_entered',
135 fieldLabel : 'Status',
147 boxLabel : 'Recorded in Bank Reconcile',
148 fieldLabel : ' ',
149 name : 'gltrans_rec',
155 boxLabel : 'Deleted',
156 fieldLabel : 'Deleted',
157 name : 'gltrans_deleted',
171 fieldLabel : 'Gltrans source',
178 fieldLabel : 'Doc Type',
179 name : 'gltrans_doctype',
185 fieldLabel : 'Doc No.',
186 name : 'gltrans_docnumber',
194 fieldLabel : 'Gltrans source',
201 fieldLabel : 'Doc No.',
202 name : 'gltrans_docnumber',
208 fieldLabel : 'References',
209 name : 'gltrans_misc_id',
215 fieldLabel : 'Doc Type',
216 name : 'gltrans_doctype',
222 boxLabel : 'In Bank Reconcile',
223 fieldLabel : 'Recorded',
224 name : 'gltrans_rec',
230 fieldLabel : 'Created By',
232 name : 'gltrans_username',
238 fieldLabel : 'Deleted',
239 name : 'gltrans_deleted',
248 xtype: 'LayoutRegion',
256 click : function (_self, e)
267 click : function (_self, e)
272 _this.dialog.el.mask("Saving");
273 _this.form.doAction("submit");