{
- "id": "roo-file-275",
+ "id": "roo-file-37",
"name": "Pman.Dialog.XtupleUploadHSBC",
"parent": "",
"title": "",
"path": "/home/edward/gitlive/web.xtuple/Pman/Xtuple/Pman.Dialog.XtupleUploadHSBC.bjs",
- "items": false,
+ "items": [
+ {
+ "closable": false,
+ "collapsible": false,
+ "height": 140,
+ "modal": true,
+ "resizable": false,
+ "title": "Upload HSBC",
+ "width": 400,
+ "xtype": "LayoutDialog",
+ "|xns": "Roo",
+ "items": [
+ {
+ "|xns": "Roo",
+ "xtype": "LayoutRegion",
+ "*prop": "center"
+ },
+ {
+ "region": "center",
+ "xtype": "ContentPanel",
+ "|xns": "Roo",
+ "items": [
+ {
+ "listeners": {
+ "|rendered": "function (form)\n{\n _this.form= form;\n}\n",
+ "actioncomplete": "function(_self,action)\r\n{\r\n if (action.type == 'setdata') {\r\n return;\r\n }\r\n if (action.type == 'load') {\r\n return;\r\n }\r\n if (action.type =='submit') {\r\n \r\n _this.dialog.hide();\r\n\r\n if (_this.callback) {\r\n _this.callback.call(_this, _this.form.getValues());\r\n }\r\n _this.form.reset();\r\n return;\r\n }\r\n}\r"
+ },
+ "method": "GET",
+ "style": "margin:10px;",
+ "xtype": "Form",
+ "|url": "baseURL + '/Roo/INGORE.php'",
+ "|xns": "Roo.form",
+ "items": [
+ {
+ "listeners": {
+ "render": "function (_self)\n{\n _this.bankSel = _self;\n}",
+ "edit": "function (combo, record)\n{\n var id = combo.getValue() * 1;\n \n if(id < 1){\n Roo.MessageBox.alert('Error', 'Please select a bank account');\n return;\n }\n \n Pman.Dialog.XtupleBankAccnt.show({id : id});\n \n}"
+ },
+ "allowBlank": false,
+ "alwaysQuery": true,
+ "displayField": "bankaccnt_name",
+ "editable": false,
+ "emptyText": "Select Bank Accnt",
+ "fieldLabel": "Post to",
+ "forceSelection": true,
+ "hiddenName": "bankaccnt_id",
+ "listWidth": 400,
+ "loadingText": "Searching...",
+ "minChars": 2,
+ "name": "bankaccnt_id_name",
+ "pageSize": 20,
+ "qtip": "Select Bank Accnt",
+ "queryParam": "query[bankaccnt_name]",
+ "selectOnFocus": true,
+ "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{bankaccnt_name} - {bankaccnt_descrip}</b> </div>",
+ "triggerAction": "all",
+ "typeAhead": true,
+ "valueField": "bankaccnt_id",
+ "width": 200,
+ "xtype": "ComboBox",
+ "|xns": "Roo.form",
+ "items": [
+ {
+ "listeners": {
+ "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n \n}\n"
+ },
+ "*prop": "store",
+ "remoteSort": true,
+ "xtype": "Store",
+ "|sortInfo": "{ direction : 'DESC', field: 'bankaccnt_id' }",
+ "|xns": "Roo.data",
+ "items": [
+ {
+ "*prop": "proxy",
+ "method": "GET",
+ "xtype": "HttpProxy",
+ "|url": "baseURL + '/Roo/bankaccnt.php'",
+ "|xns": "Roo.data"
+ },
+ {
+ "*prop": "reader",
+ "id": "bankaccnt_id",
+ "root": "data",
+ "totalProperty": "total",
+ "xtype": "JsonReader",
+ "|fields": "[{\"name\":\"bankaccnt_id\",\"type\":\"int\"},\"bankaccnt_name\"]",
+ "|xns": "Roo.data"
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ }
+ ]
+ },
+ {
+ "listeners": {
+ "click": "function (_self, e)\n{\n _this.dialog.hide();\n}"
+ },
+ "*prop": "buttons[]",
+ "text": "Cancel",
+ "xtype": "Button",
+ "|xns": "Roo"
+ },
+ {
+ "listeners": {
+ "click": "function (_self, e)\n{\n var bank = _this.bankSel.getValue();\n \n if(bank * 1 < 1){\n Roo.MessageBox.alert(\"Error\", \"Please select a bankaccnt\");\n return;\n }\n \n _this.dialog.hide();\n \n _this.callback(_this.form.getValues());\n\n}"
+ },
+ "*prop": "buttons[]",
+ "text": "Save",
+ "xtype": "Button",
+ "|xns": "Roo"
+ }
+ ]
+ }
+ ],
"permname": "",
"modOrder": "001"
}
\ No newline at end of file