EXT.NET MVC5 工作随笔06 保存前提示框 及formpanel 的有效性判断

来源:互联网 发布:淘宝达人如何发帖 编辑:程序博客网 时间:2024/05/21 17:16
            Ext.MessageBox.confirm('操作提示', '确认保存井号[ ' + vJH + ' ]的基本信息吗?', function (button, text) {   //带确定和取消的提示框                if (button == 'yes' && App.fp_Main.getForm().isValid()) {                    var gpData = JSON.stringify(App.GP_Main.store.getChangedData());                    $.post("Save", { Values: gpData, entcode: entcode, WellNumber: vJH }, function (result) {                        result = eval('(' + result + ')');                        if (result.MsgCode == '0000') {                            App.S_Main.reload();                            X.Msg.notify("操作提示", "操作成功!<br/>井号[ " + vJH + " ]的基本信息保存成功.");//右下角提示                        } else {                            X.Msg.show({ icon: X.MessageBox.ERROR, msg: result.Msg, buttons: X.Msg.OK });//显示错误提示                        }                    });                }            });
App.fp_Main.getForm().isValid()//确定ID为<span style="font-family: Arial, Helvetica, sans-serif;">fp_Main的formpanel是否有效.</span>

0 0
原创粉丝点击