2 "name" : "Pman.Dialog.CorePersonContact",
5 "path" : "/home/johns/gitlive/Pman.Core/Pman.Dialog.CorePersonContact.bjs",
9 "1c76cbfe21c6f44c1d1e59d54f3e4420" : "Company",
10 "ce8ae9da5b7cd6c3df2929543a9af92d" : "Email",
11 "c8972faa3b9e1c7250db23c57c85aa23" : "Edit / Create Contact Details",
12 "1243daf593fa297e07ab03bf06d925af" : "Searching...",
13 "bcc254b55c4a1babdf1dcb82c207506b" : "Phone",
14 "ea4788705e6873b424c65e91c2846b19" : "Cancel",
15 "9675747b5ab12d05f18518761e68a533" : "Select Companies",
16 "df814135652a5a308fea15bff37ea284" : "Office",
17 "c373dd4bd4ba0b5d3e0c7522c5629880" : "Select Office",
18 "49ee3087348e8d44e1feda1917443987" : "Name",
19 "bbbabdbe1b262f75d99d62880b953be1" : "Role",
20 "c9cc8cce247e49bae79f15173ce97354" : "Save",
21 "9810aa2b9f44401be4bf73188ef2b67d" : "Fax"
25 "collapsible" : false,
26 "title" : "Edit / Create Contact Details",
27 "xtype" : "LayoutDialog",
35 "xtype" : "LayoutRegion",
41 "xtype" : "ContentPanel",
46 "|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",
47 "|rendered" : "function (form)\n{\n _this.form= form;\n}\n"
49 "$ url" : "baseURL + '/Roo/core_person'",
52 "style" : "margin:10px;",
57 "add" : "function (combo)\n{\n\n Pman.Dialog.Companies.show( { id: 0 }, function(data) {\n _this.form.setValues({\n company_id_name : data.name,\n company_id : data.id\n });\n }); \n}"
60 "triggerAction" : "all",
61 "fieldLabel" : "Company",
62 "forceSelection" : true,
63 "selectOnFocus" : true,
65 "displayField" : "code",
66 "emptyText" : "Select Companies",
67 "hiddenName" : "company_id",
76 "name" : "company_id_code",
77 "qtip" : "Select Companies",
78 "queryParam" : "query[code]",
79 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{code}</b> </div>",
80 "loadingText" : "Searching...",
84 "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n // set more here\n}\n"
89 "$ sortInfo" : "{ direction : 'ASC', field: 'id' }",
93 "$ url" : "baseURL + '/Roo/core_company.php'",
95 "xtype" : "HttpProxy",
102 "xtype" : "JsonReader",
103 "$ xns" : "Roo.data",
104 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"code\",\"type\":\"string\"}]",
106 "totalProperty" : "total"
114 "add" : "function (combo)\n{\n var coid = _this.form.findField('company_id').getValue();\n if (!coid ) {\n \n Ext.MessageBox.alert(\"Error\", \"Select An Company First\");\n return false;\n\n }\n Pman.Dialog.Office.show(cfg, function(data) {\n _this.form.setValues({\n office_id_name : data.name,\n office_id : data.id\n });\n }); \n \n \n}",
115 "beforequery" : "function (combo, query, forceAll, cancel, e)\n{\n var coid = _this.form.findField('company_id').getValue();\n if (coid < 1 ) {\n Ext.MessageBox.alert(\"Error\", \"Select An Company First\");\n return false;\n }\n}"
118 "triggerAction" : "all",
119 "fieldLabel" : "Office",
120 "forceSelection" : true,
121 "selectOnFocus" : true,
123 "displayField" : "name",
124 "emptyText" : "Select Office",
125 "hiddenName" : "office_id",
128 "xtype" : "ComboBox",
129 "allowBlank" : false,
133 "$ xns" : "Roo.form",
134 "name" : "office_id_name",
135 "qtip" : "Select Office",
136 "queryParam" : "query[name]",
137 "tpl" : "<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b> </div>",
138 "loadingText" : "Searching...",
142 "|beforeload" : "function (_self, o){\n o.params = o.params || {};\n var coid = _this.form.findField('company_id').getValue();\n o.params.company_id = coid;\n}\n"
146 "$ sortInfo" : "{ direction : 'ASC', field: 'id' }",
147 "$ xns" : "Roo.data",
151 "$ url" : "baseURL + '/Roo/Office.php'",
153 "xtype" : "HttpProxy",
154 "$ xns" : "Roo.data",
160 "xtype" : "JsonReader",
161 "$ xns" : "Roo.data",
162 "$ fields" : "[{\"name\":\"id\",\"type\":\"int\"},{\"name\":\"name\",\"type\":\"string\"}]",
164 "totalProperty" : "total"
171 "fieldLabel" : "Name",
172 "xtype" : "TextField",
175 "$ xns" : "Roo.form",
179 "fieldLabel" : "Role",
180 "xtype" : "TextField",
182 "$ xns" : "Roo.form",
186 "fieldLabel" : "Phone",
187 "xtype" : "TextField",
189 "$ xns" : "Roo.form",
193 "fieldLabel" : "Fax",
194 "xtype" : "TextField",
196 "$ xns" : "Roo.form",
200 "fieldLabel" : "Email",
201 "xtype" : "TextField",
202 "allowBlank" : false,
204 "$ xns" : "Roo.form",
209 "$ xns" : "Roo.form",
218 "click" : "function (_self, e)\n{\n _this.dialog.hide();\n}"
223 "* prop" : "buttons[]"
227 "click" : "function (_self, e)\n{\n // do some checks?\n \n \n _this.dialog.el.mask(\"Saving\");\n _this.form.doAction(\"submit\");\n\n}"
232 "* prop" : "buttons[]"