3 "name": "Pman.Dialog.XtuplePurchaseOrderEdit",
6 "path": "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtuplePurchaseOrderEdit.bjs",
10 "show": "function () {\n this.layout.getRegion('center').showPanel(0);\n}"
17 "title": "Change Location",
19 "xtype": "LayoutDialog",
24 "xtype": "LayoutRegion",
29 "xtype": "ContentPanel",
34 "|actioncomplete": "function(_self,action)\n{\n if (action.type == 'setdata') {\n if(_this.data.pohead_id){\n _this.dialog.el.mask(\"Loading\");\n this.load({ method: 'GET', params: { '_id' : _this.data.pohead_id }});\n return;\n }\n }\n if (action.type == 'load') {\n _this.dialog.el.unmask();\n return;\n }\n if (action.type =='submit') {\n \n _this.dialog.el.unmask();\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",
35 "|rendered": "function (form)\n{\n _this.form= form;\n}\n"
38 "style": "margin:10px;",
40 "|url": "baseURL + '/Roo/pohead.php'",
45 "name": "pohead_number",
53 "displayField": "fname",
55 "fieldLabel": "Change Type",
56 "hiddenName": "change_type",
59 "name": "change_type_name",
60 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{fname}</b> </div>",
61 "triggerAction": "all",
63 "valueField": "ftype",
70 "xtype": "SimpleStore",
71 "|data": "[ \n [ 'A', \"Change All Location\"],\n [ 'E', \"Change The Location Of PO And un-signed Item\"]\n \n]\n",
72 "|fields": "[ 'ftype', 'fname']",
79 "displayField": "location_name",
81 "emptyText": "Select a location",
82 "fieldLabel": "Location",
83 "forceSelection": true,
84 "hiddenName": "pohead_location_id",
86 "loadingText": "Searching...",
88 "name": "pohead_location_id_location_name",
90 "qtip": "Select terms",
91 "queryParam": "query[location_name]",
92 "selectOnFocus": true,
93 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{location_name}</b> </div>",
94 "triggerAction": "all",
96 "valueField": "location_id",
103 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n o.params.location_netable = 1;\n}\n"
108 "|sortInfo": "{ direction : 'ASC', field: 'location_name' }",
114 "xtype": "HttpProxy",
115 "|url": "baseURL + '/Roo/location.php'",
122 "totalProperty": "total",
123 "xtype": "JsonReader",
124 "|fields": "[{\"name\":\"location_id\",\"type\":\"int\"},\"location_name\"]",
142 "click": "function (_self, e)\n{\n _this.dialog.hide();\n}"
144 "*prop": "buttons[]",
151 "click": "function (_self, e)\n{\n // do some checks?\n \n \n // _this.dialog.el.mask(\"Saving\");\n _this.form.doAction(\"submit\");\n\n}"
153 "*prop": "buttons[]",