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"
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({
47 title : _this._strings['298a183cfe4fddedd4bd17abe8aeb685'] /* Merge Pulldown Option */,
51 xtype : 'LayoutDialog',
53 show : function (_self)
55 if (_this.isBuilder) {
56 _this.data = { id : 2, comptype : 'SUPPLIER' }
63 xtype : 'LayoutRegion'
67 text : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
72 click : function (_self, e)
79 text : _this._strings['68be4837f6c739877233e527a996dd00'] /* Merge */,
84 click : function (_self, e)
87 _this.form.doAction("submit");
98 xtype : 'ContentPanel',
102 style : 'margin: 10px;',
103 url : baseURL + '/Roo/Core_enum.php',
108 actioncomplete : function (_self, action)
111 if (action.type =='submit') {
115 if (_this.callback) {
116 _this.callback.call(_this, _this.form.getValues());
121 if (action.type == 'setdata') {
123 var title = _this.data.title || _this.data.etype;
124 _this.dialog.setTitle("Delete selected " + title + " and merge data with");
130 actionfailed : function (_self, action)
133 Pman.standardActionFailed(_self, action);
135 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' },
172 beforeload : function (_self, o){
173 o.params = o.params || {};
175 o.params['etype'] = _this.data.etype;
177 o.params['!id'] = _this.form.findField('id').getValue();
183 url : baseURL + '/Roo/Core_enum',
189 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}],
192 totalProperty : 'total',