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 'bf8691517ce00a09186a05cd65863091' :"Select Item to Merge With",
11 '298a183cfe4fddedd4bd17abe8aeb685' :"Merge Pulldown Option",
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['298a183cfe4fddedd4bd17abe8aeb685'] /* Merge Pulldown Option */,
57 show : function (_self)
59 if (_this.isBuilder) {
60 _this.data = { id : 2, comptype : 'SUPPLIER' }
67 xtype : 'LayoutRegion',
74 text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
76 click : function (_self, e)
86 text : _this._strings['68be4837f6c739877233e527a996dd00'] /* Merge */,
88 click : function (_self, e)
91 _this.form.doAction("submit");
101 xtype : 'ContentPanel',
109 style : 'margin: 10px;',
110 url : baseURL + '/Roo/Core_enum.php',
112 actioncomplete : function (_self, action)
115 if (action.type =='submit') {
119 if (_this.callback) {
120 _this.callback.call(_this, _this.form.getValues());
125 if (action.type == 'setdata') {
127 var title = _this.data.title || _this.data.etype;
128 _this.dialog.setTitle("Delete selected " + title + " and merge data with");
134 actionfailed : function (_self, action)
137 Pman.standardActionFailed(_self, action);
139 rendered : function (form)
151 displayField : 'name',
152 emptyText : _this._strings['bf8691517ce00a09186a05cd65863091'] /* Select Item to Merge With */,
153 fieldLabel : _this._strings['03e956f1dca2b4d525df03cb1899cb6f'] /* Merge with */,
154 forceSelection : true,
155 hiddenName : '_merge_id',
157 loadingText : _this._strings['1243daf593fa297e07ab03bf06d925af'] /* Searching... */,
159 name : '_merge_id_name',
161 qtip : _this._strings['bf8691517ce00a09186a05cd65863091'] /* Select Item to Merge With */,
162 queryParam : 'query[search_begins]',
163 selectOnFocus : true,
164 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b> {name}</div>',
165 triggerAction : 'all',
174 sortInfo : { direction : 'ASC', field: 'name' },
176 beforeload : function (_self, o){
177 o.params = o.params || {};
179 o.params['etype'] = _this.data.etype;
181 o.params['!id'] = _this.form.findField('id').getValue();
190 url : baseURL + '/Roo/Core_enum',
195 xtype : 'JsonReader',
196 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}],
199 totalProperty : 'total',