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 Office",
87 forceSelection : true,
89 loadingText : "Searching...",
92 qtip : "Select Office",
94 triggerAction : 'all',
97 tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
98 queryParam : 'query[name]',
99 fieldLabel : 'Office',
101 displayField : 'name',
102 hiddenName : 'office_id',
103 name : 'office_id_name',
108 sortInfo : { direction : 'ASC', field: 'id' },
110 beforeload : function (_self, o){
111 o.params = o.params || {};
119 url : baseURL + '/Roo/Office.php'
126 totalProperty : 'total',
127 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
141 fieldLabel : 'Phone',
155 fieldLabel : 'Email',
162 allowBlank : 'false',
164 emptyText : "Select Companies",
165 forceSelection : true,
167 loadingText : "Searching...",
170 qtip : "Select Companies",
171 selectOnFocus : true,
172 triggerAction : 'all',
175 tpl : '<div class="x-grid-cell-text x-btn button"><b>{code}</b> </div>',
176 queryParam : 'query[code]',
177 fieldLabel : 'Company',
179 displayField : 'code',
180 hiddenName : 'company_id',
181 name : 'company_id_code',
186 sortInfo : { direction : 'ASC', field: 'id' },
188 beforeload : function (_self, o){
189 o.params = o.params || {};
197 url : baseURL + '/Roo/Companies.php'
204 totalProperty : 'total',
205 fields : [{"name":"id","type":"int"},{"name":"code","type":"string"}]
219 fieldLabel : 'Active',
226 fieldLabel : 'Remarks',
234 fieldLabel : 'Passwd',
241 allowBlank : 'false',
243 emptyText : "Select Person",
244 forceSelection : true,
246 loadingText : "Searching...",
249 qtip : "Select Person",
250 selectOnFocus : true,
251 triggerAction : 'all',
254 tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
255 queryParam : 'query[name]',
256 fieldLabel : 'Owner',
258 displayField : 'name',
259 hiddenName : 'owner_id',
260 name : 'owner_id_name',
265 sortInfo : { direction : 'ASC', field: 'id' },
267 beforeload : function (_self, o){
268 o.params = o.params || {};
276 url : baseURL + '/Roo/Person.php'
283 totalProperty : 'total',
284 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
298 fieldLabel : 'No reset sent',
299 name : 'no_reset_sent',
305 fieldLabel : 'Action type',
306 name : 'action_type',
312 allowBlank : 'false',
314 emptyText : "Select Projects",
315 forceSelection : true,
317 loadingText : "Searching...",
320 qtip : "Select Projects",
321 selectOnFocus : true,
322 triggerAction : 'all',
325 tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
326 queryParam : 'query[name]',
327 fieldLabel : 'Project',
329 displayField : 'name',
330 hiddenName : 'project_id',
331 name : 'project_id_name',
336 sortInfo : { direction : 'ASC', field: 'id' },
338 beforeload : function (_self, o){
339 o.params = o.params || {};
347 url : baseURL + '/Roo/Projects.php'
354 totalProperty : 'total',
355 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
362 fieldLabel : 'Deleted by',
369 fieldLabel : 'Deleted dt',
384 xtype: 'LayoutRegion',
392 click : function (_self, e)
403 click : function (_self, e)
408 _this.dialog.el.mask("Saving");
409 _this.form.doAction("submit");