您的位置:首页 > 其它

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

2016-06-01 16:43 260 查看
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>

                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  EXT.NET mvc