微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Ext.Ajax.request的waitMsg

var nwin = new Ext.Window({
            title: '编辑',modal : true,closeAction : 'close',buttonAlign : 'center',width : 400,height : 300,layout : 'fit',items: assignmentZDGrid,buttons: [{text: '确定',handler: function(){
                var myMask = new Ext.LoadMask(Ext.getBody(),{
                        msg: '正在保存,请稍后!',removeMask: true //完成后移除
                    });
                myMask.show();
                var ids="";
                var codes="";
                for(var i=0;i <assignmentZDGrid.getStore().getCount();i++)
                {    var id=assignmentZDGrid.getStore().getAt(i).get("type")+":"+assignmentZDGrid.getStore().getAt(i).get("id");
                    ids+=id+",";
                    var code=assignmentZDGrid.getStore().getAt(i).get("codeid");
                    codes+=code+",";
                } 
                Ext.Ajax.request({
                    url : './flow/saveProcessorsForCurrent.html',method : 'POST',params : {ids : ids,codes : codes},success : function(response,options) {
                        var responseArray = Ext.util.JSON.decode(response.responseText);
                            myMask.hide();
                            formView.grid.getStore().load();
                            Ext.Msg.alert('消息',responseArray.msg);
                            nwin.close();
                    }
                });                       

            }},{text: '取消',handler :function(){nwin.close();}}]
    });

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐