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.BAdminCoreEnum= function() {}
8 Roo.apply(Pman.Dialog.BAdminCoreEnum.prototype, {
11 'd5cf6a6c4887716d7a14a84d9ba81b02' :"Add / Edit Pulldown Option",
12 'b48968e1c912da07df5e8d6d246291ec' :"Display Name",
13 'ea4788705e6873b424c65e91c2846b19' :"Cancel",
14 '688a7766da608ca2b2fe6a7d1c0d7ccb' :"Sequence Number",
15 '49ee3087348e8d44e1feda1917443987' :"Name",
16 'c9cc8cce247e49bae79f15173ce97354' :"Save"
22 show : function(data, cb)
30 this.dialog.show(this.data._el);
33 this.form.setValues(data);
34 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
42 this.dialog = Roo.factory({
44 cls : 'enable-overflow',
45 title : _this._strings['d5cf6a6c4887716d7a14a84d9ba81b02'] /* Add / Edit Pulldown Option */,
47 '|xns' : 'Roo.bootstrap',
51 html : _this._strings['ea4788705e6873b424c65e91c2846b19'] /* Cancel */,
53 click : function (_self, e)
59 '|xns' : 'Roo.bootstrap'
63 html : _this._strings['c9cc8cce247e49bae79f15173ce97354'] /* Save */,
66 click : function (_self, e)
68 _this.form.doAction("submit");
74 '|xns' : 'Roo.bootstrap'
82 url : baseURL + '/Roo/Core_enum',
84 actioncomplete : function (_self, action)
86 if(action.type == 'setdata') {
88 if(_this.data.id * 1 > 0) {
90 this.doAction('load',{ method: 'GET', params: { '_id' : _this.data.id }});
96 if (action.type == 'load') {
98 _this.data = action.result.data;
104 if (action.type == 'submit') {
108 if (_this.callback) {
109 _this.callback.call(this, action.result.data);
115 actionfailed : function (_self, action)
117 Roo.bootstrap.MessageBox.alert('Error', action.result.errorMsg);
119 render : function (_self)
125 '|xns' : 'Roo.bootstrap',
129 fieldLabel : _this._strings['49ee3087348e8d44e1feda1917443987'] /* Name */,
132 '|xns' : 'Roo.bootstrap'
136 fieldLabel : _this._strings['b48968e1c912da07df5e8d6d246291ec'] /* Display Name */,
137 name : 'display_name',
139 '|xns' : 'Roo.bootstrap'
143 fieldLabel : _this._strings['688a7766da608ca2b2fe6a7d1c0d7ccb'] /* Sequence Number */,
144 inputType : 'number',
147 '|xns' : 'Roo.bootstrap'
156 '|xns' : 'Roo.bootstrap'
160 inputType : 'hidden',
163 '|xns' : 'Roo.bootstrap'
167 inputType : 'hidden',
170 '|xns' : 'Roo.bootstrap'
178 Roo.apply(Pman.Dialog.BAdminCoreEnum, Pman.Dialog.BAdminCoreEnum.prototype);