{ "id": "roo-file-324", "name": "Pman.Dialog.XtupleAdjustmentGroup", "parent": "", "title": "", "path": "/home/alan/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtupleAdjustmentGroup.bjs", "items": [ { "closable": false, "collapsible": false, "height": 500, "modal": true, "resizable": false, "title": "Edit / Create Inventory Adjustment Group", "width": 600, "xtype": "LayoutDialog", "|xns": "Roo", "items": [ { "*prop": "center", "tabPosition": "top", "xtype": "LayoutRegion", "|xns": "Roo" }, { "region": "center", "xtype": "NestedLayoutPanel", "|xns": "Roo", "items": [ { "|xns": "Roo", "xtype": "BorderLayout", "*prop": "layout", "items": [ { "*prop": "north", "height": 150, "split": true, "xtype": "LayoutRegion", "|xns": "Roo" }, { "|xns": "Roo", "xtype": "LayoutRegion", "*prop": "center" }, { "region": "north", "xtype": "ContentPanel", "|xns": "Roo", "items": [ { "listeners": { "|actioncomplete": "function(_self,action)\n{\n if (action.type == 'setdata') {\n _this.grid.ds.removeAll();\n _this.saveBtn.show();\n if(_this.data.invadjgrp_id){\n \n this.load({ method: 'GET', params: { '_id' : _this.data.invadjgrp_id }});\n }\n return;\n }\n if (action.type == 'load') {\n _this.data = action.result.data;\n if(_this.data.invadjgrp_posted){\n _this.saveBtn.hide();\n }\n\n _this.grid.ds.load({});\n return;\n }\n if (action.type =='submit') {\n \n \n if (!_this.grid.ds.getCount() && this.findField('invadjgrp_id').getValue()*1 < 1) {\n \n \n \n this.load({ method: 'GET', params: { '_id' : action.result.data.invadjgrp_id }});\n return;\n \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;", "xtype": "Form", "|url": "baseURL + '/Roo/Invadjgrp.php'", "|xns": "Roo.form", "items": [ { "legend": "Inventory Adjustment Group Detail", "style": "width:520px", "xtype": "FieldSet", "|xns": "Roo.form", "items": [ { "allowBlank": false, "fieldLabel": "Name", "name": "invadjgrp_name", "width": 200, "xtype": "TextField", "|xns": "Roo.form" }, { "allowBlank": false, "fieldLabel": "Date", "format": "Y-m-d", "name": "invadjgrp_transdate", "useIso": true, "width": 200, "xtype": "DateField", "|xns": "Roo.form" }, { "allowBlank": false, "displayField": "location_name", "editable": false, "emptyText": "Select Location", "fieldLabel": "Location", "forceSelection": true, "hiddenName": "invadjgrp_location_id", "listWidth": 400, "loadingText": "Searching...", "minChars": 2, "name": "invadjgrp_location_id_location_name", "pageSize": 20, "qtip": "Select Location", "queryParam": "query[location_name]", "selectOnFocus": true, "tpl": "