{ "id": "roo-file-346", "name": "Pman.Dialog.XtupleRecvGrp", "parent": "", "title": "", "path": "/home/alan/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtupleRecvGrp.bjs", "items": [ { "listeners": { "show": "function (_self)\n{\n _this.dialog.layout.getRegion('center').showPanel(0);\n}" }, "closable": false, "collapsible": false, "height": 600, "modal": true, "resizable": false, "title": "Enter Item Reciept", "width": 900, "xtype": "LayoutDialog", "|xns": "Roo", "items": [ { "*prop": "center", "tabPosition": "top", "xtype": "LayoutRegion", "|xns": "Roo" }, { "region": "center", "title": "Details", "xtype": "NestedLayoutPanel", "|xns": "Roo", "items": [ { "|xns": "Roo", "xtype": "BorderLayout", "*prop": "layout", "items": [ { "|xns": "Roo", "xtype": "LayoutRegion", "*prop": "center" }, { "*prop": "north", "height": 160, "xtype": "LayoutRegion", "|xns": "Roo" }, { "region": "north", "xtype": "ContentPanel", "|xns": "Roo", "items": [ { "listeners": { "|actioncomplete": "function(_self,action)\n{\n if (action.type == 'setdata') {\n //_this.dialog.el.mask(\"Loading\");\n \n if (_this.data.recvgrp_id) {\n this.load({ method: 'GET', params: { '_id' : _this.data.recvgrp_id }});\n return;\n }\n \n if (!_this.data.recv_id) {\n _this.data.recv_date = new Date();\n }\n _this.form.setValues(_this.data);\n\n _this.grid.ds.load({});\n //this.load({ method: 'GET', params: { '_id' : _this.data.id }});\n return;\n }\n if (action.type == 'load') {\n _this.grid.ds.load({});\n \n \n \n \n \n return;\n }\n if (action.type =='submit') {\n \n \n _this.dialog.hide();\n \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;", "timeout": 120000, "xtype": "Form", "|url": "baseURL + '/Roo/recvgrp.php'", "|xns": "Roo.form", "items": [ { "legend": "Receipt Details", "xtype": "FieldSet", "|xns": "Roo.form", "items": [ { "width": 800, "xtype": "Row", "|xns": "Roo.form", "items": [ { "width": 450, "xtype": "Column", "|xns": "Roo.form", "items": [ { "fieldLabel": "Order number", "name": "recvgrp_pohead_id_pohead_number", "readOnly": true, "width": 200, "xtype": "TextField", "|xns": "Roo.form" }, { "allowBlank": false, "altFormats": "Y-m-d", "fieldLabel": "Recv date", "format": "d/M/Y", "name": "recvgrp_date", "width": 100, "xtype": "DateField", "|useIso": "true", "|xns": "Roo.form" }, { "allowBlank": false, "displayField": "location_name", "editable": true, "emptyText": "Select location", "fieldLabel": "Delivered to", "forceSelection": true, "hiddenName": "recvgrp_location_id", "listWidth": 400, "loadingText": "Searching...", "minChars": 2, "name": "recvgrp_location_id_location_name", "pageSize": 200, "qtip": "Select terms", "queryParam": "query[location_name]", "selectOnFocus": true, "tpl": "