3 "name": "Pman.Dialog.CorePersonContact",
6 "path": "/home/alan/gitlive/Pman.Core/Pman.Dialog.CorePersonContact.bjs",
13 "title": "Edit / Create Person",
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",
183 "fieldLabel": "Active",
190 "fieldLabel": "Remarks",
198 "fieldLabel": "Passwd",
207 "allowBlank": "false",
209 "emptyText": "Select Person",
210 "forceSelection": true,
212 "loadingText": "Searching...",
215 "qtip": "Select Person",
216 "selectOnFocus": true,
217 "triggerAction": "all",
220 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
221 "queryParam": "query[name]",
222 "fieldLabel": "Owner",
224 "displayField": "name",
225 "hiddenName": "owner_id",
226 "name": "owner_id_name",
233 "|sortInfo": "{ direction : 'ASC', field: 'id' }",
235 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
240 "xtype": "HttpProxy",
243 "|url": "baseURL + '/Roo/Person.php'"
247 "xtype": "JsonReader",
251 "totalProperty": "total",
252 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
259 "fieldLabel": "Lang",
266 "fieldLabel": "No reset sent",
267 "name": "no_reset_sent",
273 "fieldLabel": "Action type",
274 "name": "action_type",
282 "allowBlank": "false",
284 "emptyText": "Select Projects",
285 "forceSelection": true,
287 "loadingText": "Searching...",
290 "qtip": "Select Projects",
291 "selectOnFocus": true,
292 "triggerAction": "all",
295 "tpl": "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
296 "queryParam": "query[name]",
297 "fieldLabel": "Project",
299 "displayField": "name",
300 "hiddenName": "project_id",
301 "name": "project_id_name",
308 "|sortInfo": "{ direction : 'ASC', field: 'id' }",
310 "|beforeload": "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
315 "xtype": "HttpProxy",
318 "|url": "baseURL + '/Roo/Projects.php'"
322 "xtype": "JsonReader",
326 "totalProperty": "total",
327 "|fields": "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]"
334 "fieldLabel": "Deleted by",
335 "name": "deleted_by",
341 "fieldLabel": "Deleted dt",
342 "name": "deleted_dt",
358 "click": "function (_self, e)\n{\n _this.dialog.hide();\n}"
360 "*prop": "buttons[]",
367 "click": "function (_self, e)\n{\n // do some checks?\n \n \n _this.dialog.el.mask(\"Saving\");\n _this.form.doAction(\"submit\");\n\n}"
369 "*prop": "buttons[]",