3 "name": "Pman.Dialog.CorePersonContact",
6 "path": "/home/alan/gitlive/Pman.Core/Pman.Dialog.CorePersonContact.bjs",
13 "title": "Edit / Create Contact Details",
15 "xtype": "LayoutDialog",
20 "xtype": "LayoutRegion",
25 "xtype": "ContentPanel",
32 "|actioncomplete": "function(_self,action)\n{\n if (action.type == 'setdata') {\n //_this.dialog.el.mask(\"Loading\");\n //this.load({ method: 'GET', params: { '_id' : _this.data.id }});\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"
36 "style": "margin:10px;",
37 "|url": "baseURL + '/Roo/Person.php'",
42 "allowBlank": "false",
44 "emptyText": "Select Companies",
45 "forceSelection": true,
47 "loadingText": "Searching...",
50 "qtip": "Select Companies",
51 "selectOnFocus": true,
52 "triggerAction": "all",
55 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{code}</b> </div>",
56 "queryParam": "query[code]",
57 "fieldLabel": "Company",
59 "displayField": "code",
60 "hiddenName": "company_id",
61 "name": "company_id_code",
68 "|sortInfo": "{ direction : 'ASC', field: 'id' }",
70 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
78 "|url": "baseURL + '/Roo/Companies.php'"
82 "xtype": "JsonReader",
86 "totalProperty": "total",
87 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"code\",\"type\":\"string\"}]"
96 "allowBlank": "false",
98 "emptyText": "Select Office",
99 "forceSelection": true,
101 "loadingText": "Searching...",
104 "qtip": "Select Office",
105 "selectOnFocus": true,
106 "triggerAction": "all",
109 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
110 "queryParam": "query[name]",
111 "fieldLabel": "Office",
113 "displayField": "name",
114 "hiddenName": "office_id",
115 "name": "office_id_name",
122 "|sortInfo": "{ direction : 'ASC', field: 'id' }",
124 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
129 "xtype": "HttpProxy",
132 "|url": "baseURL + '/Roo/Office.php'"
136 "xtype": "JsonReader",
140 "totalProperty": "total",
141 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
148 "fieldLabel": "Name",
151 "xtype": "TextField",
155 "fieldLabel": "Role",
162 "fieldLabel": "Phone",
176 "fieldLabel": "Email",
193 "click": "function (_self, e)\n{\n _this.dialog.hide();\n}"
195 "*prop": "buttons[]",
202 "click": "function (_self, e)\n{\n // do some checks?\n \n \n _this.dialog.el.mask(\"Saving\");\n _this.form.doAction(\"submit\");\n\n}"
204 "*prop": "buttons[]",