当前位置: 代码迷 >> 综合 >> EXT同步问题、mask方法、combobox的load完毕的判断
  详细解决方案

EXT同步问题、mask方法、combobox的load完毕的判断

热度:80   发布时间:2024-01-21 18:48:36.0

 this.btnOk = new Ext.Button({ 
             text        : '确定', 
             disabled    : true, 
             scope       : this, 
             handler     : function(){ 
                Ext.Msg.show({ 
                    title:'更新', 
                    msg: '操作更新,请确认 !', 
                     buttons: Ext.Msg.OKCANCEL, 
                     fn: function(_btn, _text){ 
                         if(_btn == 'ok') { 
                 try { 
                    if(!isUndefined(this.getEl())){ 
                         this.getEl().mask('模型上传中,请稍后...','x-mask-loading'); 
                     }
                    



                    后台同步操作数据库(Action)



                 } finally { 
                    if(!isUndefined(this.getEl())){ 
                         this.getEl().unmask(); 
                     }
                 } 
                 Ext.Msg.alert('同步',  '操作成功'); 
                        } 
                     }, 
                     animEl: 'elId', 
                     icon: Ext.MessageBox.WARNING, 
                     scope   : this 
                }); 
             } 
        });

 

 

 

 

 comboCity.on({
             'select':function(combo,record,index){
                          comboQb.clearValue();
                          comboZc.clearValue();
                          comboTown.reset();
                          comboDisplaylevel.clearValue();
                          newOrgManageFormWin.getEl().mask('正在获取分支机构的信息,请稍后...','x-mask-loading'); 
                          storeTown.reload({
                                params:{branchno:comboCity.getValue(),_node:_node},
                                callback : function(r, options, success) { 
                                                 newOrgManageFormWin.getEl().unmask(); 
                                             } 
                                 });
                          storeDisplayLevel.reload( {params : { type:'1'}});
                        }
            });

  相关解决方案