1 //<script type="text/javascript">
3 // Auto generated file - created by app.Builder.js- do not edit directly (at present!)
5 Pman.Dialog.XtupleBankAccnt = {
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 Groups",
42 xtype: 'ContentPanel',
50 actioncomplete : function(_self,action)
52 if (action.type == 'setdata') {
53 //_this.dialog.el.mask("Loading");
54 //this.load({ method: 'GET', params: { '_id' : _this.data.id }});
57 if (action.type == 'load') {
58 _this.dialog.el.unmask();
61 if (action.type =='submit') {
63 _this.dialog.el.unmask();
67 _this.callback.call(_this, _this.form.getValues());
73 rendered : function (form)
79 style : 'margin:10px;',
80 url : baseURL + '/Roo/Groups.php',
101 emptyText : "Select Person",
102 forceSelection : true,
104 loadingText : "Searching...",
107 qtip : "Select Person",
108 selectOnFocus : true,
109 triggerAction : 'all',
112 tpl : '<div class="x-grid-cell-text x-btn button"><b>{name}</b> </div>',
113 queryParam : 'query[name]',
114 fieldLabel : 'Leader',
116 displayField : 'name',
117 hiddenName : 'leader',
118 name : 'leader_name',
123 sortInfo : { direction : 'ASC', field: 'id' },
125 beforeload : function (_self, o){
126 o.params = o.params || {};
134 url : baseURL + '/Roo/Person.php'
141 totalProperty : 'total',
142 fields : [{"name":"id","type":"int"},{"name":"name","type":"string"}]
157 xtype: 'LayoutRegion',
165 click : function (_self, e)
176 click : function (_self, e)
181 _this.dialog.el.mask("Saving");
182 _this.form.doAction("submit");