{ "id": "roo-file-9", "name": "Pman.Dialog.XtupleInvc", "parent": "", "title": "", "path": "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtupleInvc.bjs", "items": [ { "closable": true, "collapsible": false, "height": 600, "modal": true, "resizable": false, "title": "View Invoice", "width": 1000, "xtype": "LayoutDialog", "|xns": "Roo", "items": [ { "|xns": "Roo", "xtype": "LayoutRegion", "*prop": "center" }, { "*prop": "north", "height": 250, "split": true, "xtype": "LayoutRegion", "|xns": "Roo" }, { "region": "north", "xtype": "ContentPanel", "|xns": "Roo", "items": [ { "listeners": { "|actioncomplete": "function(_self,action)\n{\n if (action.type == 'setdata') {\n if (_this.data._id) {\n this.load({ method: 'GET', params: { '_id' : _this.data._id }});\n return;\n } \n \n \n \n _this.saveBtn.hide();\n \n \n \n \n }\n if (action.type == 'load') {\n var d = action.result.data;\n \n\n _this.grid.ds.load({});\n return;\n }\n if (action.type =='submit') {\n \n _this.dialog.hide();\n return; \n if (_this.callback) {\n _this.callback.call(_this, _this.form.getValues());\n }\n _this.form.reset();\n return;\n }\n}\n", "|rendered": "function (form)\n{\n _this.form= form;\n}\n" }, "method": "POST", "style": "margin:10px;", "xtype": "Form", "|url": "baseURL + '/Roo/invchead.php'", "|xns": "Roo.form", "items": [ { "width": 950, "xtype": "Row", "|xns": "Roo.form", "items": [ { "style": "float:left;", "width": 300, "xtype": "Column", "|xns": "Roo.form", "items": [ { "labelWidth": 70, "legend": "Invoice Details", "style": "width:280px", "xtype": "FieldSet", "|xns": "Roo.form", "items": [ { "fieldLabel": "Invoiced", "format": "Y-m-d", "name": "invchead_invcdate", "width": 120, "xtype": "DateField", "|xns": "Roo.form" }, { "fieldLabel": "Ordered", "format": "Y-m-d", "name": "invchead_orderdate", "width": 120, "xtype": "DateField", "|xns": "Roo.form" }, { "fieldLabel": "Invoice#", "name": "invchead_invcnumber", "width": 120, "xtype": "TextField", "|xns": "Roo.form" }, { "fieldLabel": "PO#", "name": "invchead_ponumber", "width": 120, "xtype": "TextField", "|xns": "Roo.form" }, { "fieldLabel": "Customer", "name": "cust_name", "width": 200, "xtype": "TextField", "|xns": "Roo.form" }, { "fieldLabel": "FOB", "name": "invchead_fob", "width": 200, "xtype": "TextField", "|xns": "Roo.form" }, { "fieldLabel": "Shipvia", "name": "invchead_shipvia", "width": 200, "xtype": "TextField", "|xns": "Roo.form" }, { "fieldLabel": "salesrep", "name": "invchead_salesrep_id", "width": 75, "xtype": "TextField", "|xns": "Roo.form" }, { "fieldLabel": "Terms", "name": "invchead_terms_id", "width": 75, "xtype": "TextField", "|xns": "Roo.form" } ] } ] }, { "style": "margin-left:10px;float:left;", "width": 370, "xtype": "Column", "|xns": "Roo.form", "items": [ { "labelAlign": "left", "labelWidth": 100, "legend": "Charges", "style": "width:350px", "xtype": "FieldSet", "|xns": "Roo.form", "items": [ { "allowBlank": false, "displayField": "invc_curr_id", "editable": false, "emptyText": "Select curr_symbol", "fieldLabel": "Currency", "forceSelection": true, "hiddenName": "invchead_curr_id", "listWidth": 400, "loadingText": "Searching...", "minChars": 2, "name": "invchead_curr_id_curr_name", "pageSize": 20, "qtip": "Select curr_symbol", "queryParam": "query[curr_name]", "selectOnFocus": true, "tpl": "