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>
相关文章推荐
- 分享微信开发Html5轻游戏中的几个坑
- C# MVC模式下商品抽奖功能实现
- Zend的MVC机制使用分析(二)
- ASP.NET MVC 4 捆绑和缩小实例介绍
- ASP.NET Mvc开发之查询数据
- ASP.NET MVC中将控制器分离到类库的实现
- asp.net实现在非MVC中使用Razor模板引擎的方法
- ASP.NET MVC中的AJAX应用
- 为ASP.NET MVC及WebApi添加路由优先级
- ASP.NET MVC中图表控件的使用方法
- Asp.net mvc实时生成缩率图到硬盘
- 剖析ASP.NET MVC的DependencyResolver组件
- ASP.NET MVC的四种验证编程方式
- ASP.NET MVC @Helper辅助方法和@functons自定义函数的使用方法
- 仅30行代码实现Javascript中的MVC
- asp.net MVC利用ActionFilterAttribute过滤关键字的方法
- ASP.NET MVC使用ActionFilterAttribute实现权限限制的方法(附demo源码下载)
- ASP.NET MVC 3仿Server.Transfer效果的实现方法
- 如何在MVC应用程序中使用Jquery
- 利用ASP.NET MVC+EasyUI+SqlServer搭建企业开发框架