1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Roo.namespace('Pman.Dialog');
7 Pman.Dialog.AdminCompanyMerge = {
10 'bf8691517ce00a09186a05cd65863091' :"Select Item to Merge With",
11 'd928853fb4dfe148595cef31a72d52f5' :"Merge Company",
12 '03e956f1dca2b4d525df03cb1899cb6f' :"Merge with",
13 '1243daf593fa297e07ab03bf06d925af' :"Searching...",
14 '68be4837f6c739877233e527a996dd00' :"Merge",
15 'ea4788705e6873b424c65e91c2846b19' :"Cancel"
18 '_merge_id_name_emptyText' : 'bf8691517ce00a09186a05cd65863091' /* Select Item to Merge With */ ,
19 '_merge_id_name_loadingText' : '1243daf593fa297e07ab03bf06d925af' /* Searching... */ ,
20 '_merge_id_name_qtip' : 'bf8691517ce00a09186a05cd65863091' /* Select Item to Merge With */ ,
21 '_merge_id_name_fieldLabel' : '03e956f1dca2b4d525df03cb1899cb6f' /* Merge with */
27 show : function(data, cb)
35 this.dialog.show(this.data._el);
38 this.form.setValues(data);
39 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
47 this.dialog = Roo.factory({
48 xtype : 'LayoutDialog',
54 title : _this._strings['d928853fb4dfe148595cef31a72d52f5'] /* Merge Company */,
57 show : function (_self)
65 xtype : 'LayoutRegion',
72 text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
74 click : function (_self, e)
84 text : _this._strings['68be4837f6c739877233e527a996dd00'] /* Merge */,
86 click : function (_self, e)
89 _this.form.doAction("submit");
99 xtype : 'ContentPanel',
107 style : 'margin: 10px;',
108 url : baseURL + '/Roo/Core_company.php',
110 actioncomplete : function (_self, action)
113 if (action.type =='submit') {
117 if (_this.callback) {
118 _this.callback.call(_this, _this.form.getValues());
124 if (action.type == 'setdata') {
126 _this.dialog.setTitle("Delete selected " + _this.data.name + " and merge data with");
132 actionfailed : function (_self, action)
135 Pman.standardActionFailed(_self, action);
137 rendered : function (form)
149 displayField : 'name',
150 emptyText : _this._strings['bf8691517ce00a09186a05cd65863091'] /* Select Item to Merge With */,
151 fieldLabel : _this._strings['03e956f1dca2b4d525df03cb1899cb6f'] /* Merge with */,
152 forceSelection : true,
153 hiddenName : '_merge_id',
155 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
157 name : '_merge_id_name',
159 qtip : _this._strings['bf8691517ce00a09186a05cd65863091'] /* Select Item to Merge With */,
160 queryParam : 'search[name]',
161 selectOnFocus : true,
162 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b></div>',
163 triggerAction : 'all',
172 sortInfo : { direction : 'ASC', field: 'name' },
174 beforeload : function (_self, o){
175 o.params = o.params || {};
177 o.params['!id'] = _this.form.findField('id').getValue();
185 url : baseURL + '/Roo/Core_company',
190 xtype : 'JsonReader',
203 totalProperty : 'total',