1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.XtupleCurrency = {
10 show : function(data, cb)
18 this.dialog.show(this.data._el);
21 this.form.setValues(data);
22 this.form.fireEvent('actioncomplete', this.form, { type: 'setdata', data: data });
30 this.dialog = Roo.factory({
31 xtype: 'LayoutDialog',
38 title : "Edit / Create Currency",
42 xtype: 'ContentPanel',
50 actioncomplete : function(_self,action)
52 if (action.type == 'setdata') {
53 if(_this.data.curr_id){
54 _this.dialog.el.mask("Loading");
55 this.load({ method: 'GET', params: { '_id' : _this.data.curr_id }});
60 if (action.type == 'load') {
61 _this.dialog.el.unmask();
64 if (action.type =='submit') {
66 _this.dialog.el.unmask();
70 _this.callback.call(_this, _this.form.getValues());
76 rendered : function (form)
82 style : 'margin:10px;',
83 url : baseURL + '/Roo/curr_symbol.php',
104 emptyText : "Select Person",
105 forceSelection : true,
107 loadingText : "Searching...",
110 qtip : "Select Person",
111 selectOnFocus : true,
112 triggerAction : 'all',
115 tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
116 queryParam : 'query[name]',
117 fieldLabel : 'Leader',
119 displayField : 'name',
120 hiddenName : 'leader',
121 name : 'leader_name',
126 sortInfo : { direction : 'ASC', field: 'id' },
128 beforeload : function (_self, o){
129 o.params = o.params || {};
137 url : baseURL + '/Roo/Person.php'
144 totalProperty : 'total',
145 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
160 xtype: 'LayoutRegion',
168 click : function (_self, e)
179 click : function (_self, e)
184 _this.dialog.el.mask("Saving");
185 _this.form.doAction("submit");