摘要: 最近在做项目的时候碰到一个问题,事务锁。 TransactionOptions tos = new TransactionOptions(); tos.IsolationLevel = IsolationLevel.RepeatableRead; //行锁 只会锁住当前操作的那一行数据,当前表的其他 阅读全文
posted @ 2018-06-05 10:42 !opts 阅读(137) 评论(0) 推荐(0) 编辑
摘要: 商品 全选 ... 阅读全文
posted @ 2018-05-18 09:57 !opts 阅读(192) 评论(0) 推荐(0) 编辑
摘要: //获取列表[HttpPost] public ActionResult List(DataSourceRequest command, RemitOrderListModel model) { if (_workContext.CurrentCustomer == null) return nul 阅读全文
posted @ 2018-05-16 17:57 !opts 阅读(190) 评论(0) 推荐(0) 编辑
摘要: 使用LayerConfirm方法确定回调方法不能传参。如果传参了,会直接执行不会等到点击确定在执行 Layer.confirm("确定执行此操作?", "执行该操作将不能撤回", "确定", AuditRemit, "取消", null); confirm: function (content, t 阅读全文
posted @ 2018-05-12 10:49 !opts 阅读(3223) 评论(0) 推荐(0) 编辑
摘要: 表单提交传值的两种方式: 1. JS中直接 post提交: 2. JS中直接 模拟表单submit提交: 如果表单未指定提交地址,则直接提交当前页面。在该控制器下可以获取到表单传来的值 阅读全文
posted @ 2018-05-05 09:24 !opts 阅读(217) 评论(0) 推荐(0) 编辑
摘要: 问题:1.服务上正式环境没有日志也没有MongDB日志2.文本日志只有部分,而且只有开始没有结束3.数据库连接字符串解密可能会存在问题。 分析:1.如果是数据库连接不上导致的,那么只需要将本地数据库连接改错,就可还原改BUG 并且肯定会有MongoDB日志,但是现在没有日志。2.MongoDB没有日 阅读全文
posted @ 2018-05-02 15:22 !opts 阅读(90) 评论(0) 推荐(0) 编辑
摘要: var relationNos = new List<String>(); //有很多条数据 var loop = (int)Math.Ceiling(relationNos.Count * 0.1); //除以10 for (int i = 0; i < loop; ++i) { var orde 阅读全文
posted @ 2018-04-09 17:53 !opts 阅读(231) 评论(0) 推荐(0) 编辑
摘要: public class ImportExportHelper { /// /// Excel to DataTable /// /// 内容流 /// 文件名 /// 表头开始行(确定列和数据开始) /// 表头第一列(确定列和数据开始) /// ... 阅读全文
posted @ 2018-04-08 11:06 !opts 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 使用Get方式获取到请求页面的Html,然后作为Content使用Layer弹出来 $.get('@Url.Action("AddressAdd", "Customer")', {}, function (result) { if (result.Flag == 0) { ZTLayer.showT 阅读全文
posted @ 2018-03-20 10:15 !opts 阅读(3271) 评论(0) 推荐(0) 编辑
摘要: using MongoDB.Driver;using MongoDB.Bson; static void Main(string[] args) { MongoClient client = new MongoClient("mongodb://cjj:123456@127.0.0.1:27017" 阅读全文
posted @ 2018-03-05 13:28 !opts 阅读(206) 评论(0) 推荐(0) 编辑