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 '03e956f1dca2b4d525df03cb1899cb6f' :"Merge with",
14 '1243daf593fa297e07ab03bf06d925af' :"Searching...",
15 '68be4837f6c739877233e527a996dd00' :"Merge",
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' : '03e956f1dca2b4d525df03cb1899cb6f' /* Merge 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',
110 style : 'margin: 10px;',
111 url : baseURL + '/Roo/Core_enum.php',
113 actioncomplete : function (_self, action)
116 if (action.type =='submit') {
120 if (_this.callback) {
121 _this.callback.call(_this, _this.form.getValues());
126 if (action.type == 'setdata') {
128 var title = _this.data.title || _this.data.etype;
129 _this.dialog.setTitle("Delete selected " + title + " and merge data with");
135 actionfailed : function (_self, action)
138 Pman.standardActionFailed(_self, action);
140 rendered : function (form)
150 fieldLabel : _this._strings['8324cdec05065c4bd7d8c5effdf43edf'] /* Delete this */,
158 displayField : 'name',
159 emptyText : _this._strings['bf8691517ce00a09186a05cd65863091'] /* Select Item to Merge With */,
160 fieldLabel : _this._strings['03e956f1dca2b4d525df03cb1899cb6f'] /* Merge with */,
161 forceSelection : true,
162 hiddenName : '_merge_id',
164 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
166 name : '_merge_id_name',
168 qtip : _this._strings['bf8691517ce00a09186a05cd65863091'] /* Select Item to Merge With */,
169 queryParam : 'query[search_begins]',
170 selectOnFocus : true,
171 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b> {name}</div>',
172 triggerAction : 'all',
181 sortInfo : { direction : 'ASC', field: 'name' },
183 beforeload : function (_self, o){
184 o.params = o.params || {};
186 o.params['etype'] = _this.data.etype;
188 o.params['!id'] = _this.form.findField('id').getValue();
197 url : baseURL + '/Roo/Core_enum',
202 xtype : 'JsonReader',
203 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}],
206 totalProperty : 'total',