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 var title = _this.data.title || _this.data.etype;
121 _this.dialog.setTitle("Delete selected " + title + " and merge data with");
127 actionfailed : function (_self, action)
130 Pman.standardActionFailed(_self, action);
132 rendered : function (form)
144 displayField : 'name',
145 emptyText : _this._strings['bf8691517ce00a09186a05cd65863091'] /* Select Item to Merge With */,
146 fieldLabel : _this._strings['03e956f1dca2b4d525df03cb1899cb6f'] /* Merge with */,
147 forceSelection : true,
148 hiddenName : '_merge_id',
150 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
152 name : '_merge_id_name',
154 qtip : _this._strings['bf8691517ce00a09186a05cd65863091'] /* Select Item to Merge With */,
155 queryParam : 'query[search_begins]',
156 selectOnFocus : true,
157 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b> {name}</div>',
158 triggerAction : 'all',
167 sortInfo : { direction : 'ASC', field: 'name' },
169 beforeload : function (_self, o){
170 o.params = o.params || {};
172 o.params['etype'] = _this.data.etype;
174 o.params['!id'] = _this.form.findField('id').getValue();
183 url : baseURL + '/Roo/Core_enum',
188 xtype : 'JsonReader',
189 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}],
192 totalProperty : 'total',