2 "name" : "Pman.Dialog.XtuplePriceList",
5 "path" : "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtuplePriceList.bjs",
11 "collapsible" : false,
12 "title" : "Edit / Create Price List",
13 "xtype" : "LayoutDialog",
21 "xtype" : "LayoutRegion",
27 "xtype" : "ContentPanel",
32 "|actioncomplete" : "function(_self,action)\n{\n if (action.type == 'setdata') {\n //_this.dialog.el.mask(\"Loading\");\n\n \n if (_this.data.ipshead_id) { \n this.load({ method: 'GET', params: { '_id' : _this.data.ipshead_id }});\n return;\n }\n this.setValues({\n ipshead_effective : new Date(1970,1,1),\n ipshead_expires :new Date(2100,1,1)\n\n });\n \n \n return;\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",
33 "|rendered" : "function (form)\n{\n _this.form= form;\n}\n"
35 "$ url" : "baseURL + '/Roo/ipshead.php'",
38 "style" : "margin:10px;",
42 "fieldLabel" : "Name",
43 "xtype" : "TextField",
47 "name" : "ipshead_name"
50 "fieldLabel" : "Description",
54 "name" : "ipshead_descrip",
59 "triggerAction" : "all",
60 "fieldLabel" : "Currency",
61 "forceSelection" : true,
62 "selectOnFocus" : true,
64 "displayField" : "curr_name",
65 "emptyText" : "Select currency",
66 "hiddenName" : "ipshead_curr_id",
68 "valueField" : "curr_id",
75 "name" : "ipshead_curr_id_curr_name",
76 "qtip" : "Select curr_symbol",
77 "queryParam" : "query[curr_name]",
78 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{curr_name}</b> </div>",
79 "loadingText" : "Searching...",
83 "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
88 "$ sortInfo" : "{ direction : 'ASC', field: 'id' }",
92 "$ url" : "baseURL + '/Roo/curr_symbol.php'",
93 "xtype" : "HttpProxy",
101 "xtype" : "JsonReader",
102 "$ xns" : "Roo.data",
103 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"curr_name\",\"type\":\"string\"}]",
105 "totalProperty" : "total"
112 "fieldLabel" : "Effective",
114 "xtype" : "DateField",
116 "allowBlank" : false,
118 "$ xns" : "Roo.form",
119 "altFormats" : "Y-m-d",
120 "name" : "ipshead_effective"
123 "fieldLabel" : "Expires",
125 "xtype" : "DateField",
127 "allowBlank" : false,
129 "$ xns" : "Roo.form",
130 "altFormats" : "Y-m-d",
131 "name" : "ipshead_expires"
134 "String name" : "ipshead_id",
144 "click" : "function (_self, e)\n{\n _this.dialog.hide();\n}"
149 "* prop" : "buttons[]"
153 "click" : "function (_self, e)\n{\n // do some checks?\n \n \n //_this.dialog.el.mask(\"Saving\");\n _this.form.doAction(\"submit\");\n\n}"
158 "* prop" : "buttons[]"