1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.CorePersonContact = {
10 show : function(data, cb)
18 this.dialog.show(this.data._el);
21 this.form.setValues(data);
22 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
30 this.dialog = Roo.factory({
31 xtype: 'LayoutDialog',
37 title : "Edit / Create Person",
41 xtype: 'ContentPanel',
49 actioncomplete : function(_self,action)
51 if (action.type == 'setdata') {
52 //_this.dialog.el.mask("Loading");
53 //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
56 if (action.type == 'load') {
57 _this.dialog.el.unmask();
60 if (action.type =='submit') {
62 _this.dialog.el.unmask();
66 _this.callback.call(_this, _this.form.getValues());
72 rendered : function (form)
78 style : 'margin:10px;',
79 url : baseURL + '/Roo/Person.php',
86 emptyText : "Select Companies",
87 forceSelection : true,
89 loadingText : "Searching...",
92 qtip : "Select Companies",
94 triggerAction : 'all',
97 tpl : '<div class="x-grid-cell-text x-btn button"><b>{code}</b> </div>',
98 queryParam : 'query[code]',
99 fieldLabel : 'Company',
101 displayField : 'code',
102 hiddenName : 'company_id',
103 name : 'company_id_code',
108 sortInfo : { direction : 'ASC', field: 'id' },
110 beforeload : function (_self, o){
111 o.params = o.params || {};
119 url : baseURL + '/Roo/Companies.php'
126 totalProperty : 'total',
127 fields : [{"name":"id","type":"int"},{"name":"code","type":"string"}]
134 allowBlank : 'false',
136 emptyText : "Select Office",
137 forceSelection : true,
139 loadingText : "Searching...",
142 qtip : "Select Office",
143 selectOnFocus : true,
144 triggerAction : 'all',
147 tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
148 queryParam : 'query[name]',
149 fieldLabel : 'Office',
151 displayField : 'name',
152 hiddenName : 'office_id',
153 name : 'office_id_name',
158 sortInfo : { direction : 'ASC', field: 'id' },
160 beforeload : function (_self, o){
161 o.params = o.params || {};
169 url : baseURL + '/Roo/Office.php'
176 totalProperty : 'total',
177 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
198 fieldLabel : 'Phone',
212 fieldLabel : 'Email',
219 allowBlank : 'false',
221 emptyText : "Select Person",
222 forceSelection : true,
224 loadingText : "Searching...",
227 qtip : "Select Person",
228 selectOnFocus : true,
229 triggerAction : 'all',
232 tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
233 queryParam : 'query[name]',
234 fieldLabel : 'Owner',
236 displayField : 'name',
237 hiddenName : 'owner_id',
238 name : 'owner_id_name',
243 sortInfo : { direction : 'ASC', field: 'id' },
245 beforeload : function (_self, o){
246 o.params = o.params || {};
254 url : baseURL + '/Roo/Person.php'
261 totalProperty : 'total',
262 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
276 fieldLabel : 'No reset sent',
277 name : 'no_reset_sent',
283 fieldLabel : 'Action type',
284 name : 'action_type',
290 allowBlank : 'false',
292 emptyText : "Select Projects",
293 forceSelection : true,
295 loadingText : "Searching...",
298 qtip : "Select Projects",
299 selectOnFocus : true,
300 triggerAction : 'all',
303 tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
304 queryParam : 'query[name]',
305 fieldLabel : 'Project',
307 displayField : 'name',
308 hiddenName : 'project_id',
309 name : 'project_id_name',
314 sortInfo : { direction : 'ASC', field: 'id' },
316 beforeload : function (_self, o){
317 o.params = o.params || {};
325 url : baseURL + '/Roo/Projects.php'
332 totalProperty : 'total',
333 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
340 fieldLabel : 'Deleted by',
347 fieldLabel : 'Deleted dt',
362 xtype: 'LayoutRegion',
370 click : function (_self, e)
381 click : function (_self, e)
386 _this.dialog.el.mask("Saving");
387 _this.form.doAction("submit");