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"
21 show : function(data, cb)
29 this.dialog.show(this.data._el);
32 this.form.setValues(data);
33 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
41 this.dialog = Roo.factory({
42 xtype : 'LayoutDialog',
48 title : _this._strings['d928853fb4dfe148595cef31a72d52f5'] /* Merge Company */,
51 show : function (_self)
59 xtype : 'LayoutRegion',
66 text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
68 click : function (_self, e)
78 text : _this._strings['68be4837f6c739877233e527a996dd00'] /* Merge */,
80 click : function (_self, e)
83 _this.form.doAction("submit");
93 xtype : 'ContentPanel',
101 style : 'margin: 10px;',
102 url : baseURL + '/Roo/Core_company.php',
104 actioncomplete : function (_self, action)
107 if (action.type =='submit') {
111 if (_this.callback) {
112 _this.callback.call(_this, _this.form.getValues());
118 if (action.type == 'setdata') {
120 _this.dialog.setTitle("Delete selected " + _this.data.name + " and merge data with");
126 actionfailed : function (_self, action)
129 Pman.standardActionFailed(_self, action);
131 rendered : function (form)
143 displayField : 'name',
144 emptyText : _this._strings['bf8691517ce00a09186a05cd65863091'] /* Select Item to Merge With */,
145 fieldLabel : _this._strings['03e956f1dca2b4d525df03cb1899cb6f'] /* Merge with */,
146 forceSelection : true,
147 hiddenName : '_merge_id',
149 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
151 name : '_merge_id_name',
153 qtip : _this._strings['bf8691517ce00a09186a05cd65863091'] /* Select Item to Merge With */,
154 queryParam : 'search[name]',
155 selectOnFocus : true,
156 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{name}</b></div>',
157 triggerAction : 'all',
166 sortInfo : { direction : 'ASC', field: 'name' },
168 beforeload : function (_self, o){
169 o.params = o.params || {};
171 o.params['!id'] = _this.form.findField('id').getValue();
179 url : baseURL + '/Roo/Core_company',
184 xtype : 'JsonReader',
197 totalProperty : 'total',