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.CoreEnumMerge = {
10 '8324cdec05065c4bd7d8c5effdf43edf' :"Delete this",
11 '298a183cfe4fddedd4bd17abe8aeb685' :"Merge Pulldown Option",
12 'bf8691517ce00a09186a05cd65863091' :"Select Item to Merge With",
13 '1243daf593fa297e07ab03bf06d925af' :"Searching...",
14 '68be4837f6c739877233e527a996dd00' :"Merge",
15 '266459bee8ed1ca2e0464899e1ef0994' :"And replace with",
16 'ea4788705e6873b424c65e91c2846b19' :"Cancel"
19 '_merge_id_name_emptyText' : 'bf8691517ce00a09186a05cd65863091' /* Select Item to Merge With */ ,
20 '_merge_id_name_loadingText' : '1243daf593fa297e07ab03bf06d925af' /* Searching... */ ,
21 '_merge_id_name_qtip' : 'bf8691517ce00a09186a05cd65863091' /* Select Item to Merge With */ ,
22 '_merge_id_name_fieldLabel' : '266459bee8ed1ca2e0464899e1ef0994' /* And replace with */
28 show : function(data, cb)
36 this.dialog.show(this.data._el);
39 this.form.setValues(data);
40 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
48 this.dialog = Roo.factory({
49 xtype : 'LayoutDialog',
55 title : _this._strings['298a183cfe4fddedd4bd17abe8aeb685'] /* Merge Pulldown Option */,
58 show : function (_self)
60 if (_this.isBuilder) {
61 _this.data = { id : 2, comptype : 'SUPPLIER' }
68 xtype : 'LayoutRegion',
75 text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
77 click : function (_self, e)
87 text : _this._strings['68be4837f6c739877233e527a996dd00'] /* Merge */,
89 click : function (_self, e)
92 _this.form.doAction("submit");
102 xtype : 'ContentPanel',
111 style : 'margin: 10px;',
112 url : baseURL + '/Roo/Core_enum.php',
114 actioncomplete : function (_self, action)
117 if (action.type =='submit') {
121 if (_this.callback) {
122 _this.callback.call(_this, _this.form.getValues());
127 if (action.type == 'setdata') {
129 var title = _this.data.title || _this.data.etype;
130 _this.dialog.setTitle("Delete selected " + title + " and merge data with");
136 actionfailed : function (_self, action)
139 Pman.standardActionFailed(_self, action);
141 rendered : function (form)
151 fieldLabel : _this._strings['8324cdec05065c4bd7d8c5effdf43edf'] /* Delete this */,
159 displayField : 'name',
160 emptyText : _this._strings['bf8691517ce00a09186a05cd65863091'] /* Select Item to Merge With */,
161 fieldLabel : _this._strings['266459bee8ed1ca2e0464899e1ef0994'] /* And replace with */,
162 forceSelection : true,
163 hiddenName : '_merge_id',
165 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
167 name : '_merge_id_name',
169 qtip : _this._strings['bf8691517ce00a09186a05cd65863091'] /* Select Item to Merge With */,
170 queryParam : 'query[search_begins]',
171 selectOnFocus : true,
172 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b> {name}</div>',
173 triggerAction : 'all',
182 sortInfo : { direction : 'ASC', field: 'name' },
184 beforeload : function (_self, o){
185 o.params = o.params || {};
187 o.params['etype'] = _this.data.etype;
189 o.params['!id'] = _this.form.findField('id').getValue();
198 url : baseURL + '/Roo/Core_enum',
203 xtype : 'JsonReader',
204 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}],
207 totalProperty : 'total',