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.AdminEnumMerge = {
10 '0b3e4317865feb6f0224397600b7cafc' :"Merge Core Enum",
11 'ea4788705e6873b424c65e91c2846b19' :"Cancel",
12 'e0aa021e21dddbd6d8cecec71e9cf564' :"OK"
18 show : function(data, cb)
26 this.dialog.show(this.data._el);
29 this.form.setValues(data);
30 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
38 this.dialog = Roo.factory({
43 xtype : 'LayoutRegion'
52 title : _this._strings['0b3e4317865feb6f0224397600b7cafc'],
55 xtype : 'LayoutDialog',
59 text : _this._strings['ea4788705e6873b424c65e91c2846b19'],
71 text : _this._strings['e0aa021e21dddbd6d8cecec71e9cf564'],
77 var name = _this.form.findField('name').getValue();
78 name = name.toUpperCase().replace(/[^A-Z]+/g, '');
80 Roo.MessageBox.alert("Error","Please fill in a valid name");
83 _this.form.findField('name').setValue(name);
85 _this.form.doAction('submit');
98 xtype : 'ContentPanel',
103 style : 'margin: 5px',
104 url : baseURL + '/Roo/core_enum.php',
108 actioncomplete : function (_self, action)
110 if (action.type == 'setdata') {
114 if (action.type == 'load') {
115 _this.dialog.el.unmask();
118 if (action.type == 'submit' ) {
119 _this.dialog.el.unmask();
122 if (_this.callback) {
123 _this.callback.call(_this, action.result.data);
128 rendered : function (form)
139 url : baseURL + '/Roo/Core_enum.php',
151 "name":"display_name",
157 totalProperty : 'total',
163 sortInfo : { direction : 'ASC', field: 'name' },
167 beforeload : function (_self, o){
168 o.params = o.params || {};
171 o.params.etype = _this.data.etype;
172 o.params['!id'] = _this.data.id;
182 displayField : 'display_name',
184 fieldLabel : 'Merge with',
185 forceSelection : true,
186 hiddenName : 'industry_id',
189 name : 'industry_id_display_name',
191 queryParam : 'query[search]',
192 selectOnFocus : true,
193 tpl : '<div class=\"x-grid-cell-text x-btn button\"><b>{display_name}</b> </div>',
194 triggerAction : 'all',