摘要: orm 事物的使用案例如下: using (var tran = DataAccess.LepulsDB.DBContext.BeginTransaction()) { try { if (InspectTableCheck != null) { var itemlist = LepulsDB.DB 阅读全文
posted @ 2017-10-09 14:00 飞刀软件 阅读(125) 评论(0) 推荐(0) 编辑
摘要: @using RTSafe.Platform.ManagerCenterModules.ProjectModules.Models@using RTSafe.Platform.ManagerCenter.Core.Models;@{ ViewBag.Title = "index"; Layout = 阅读全文
posted @ 2017-06-26 15:16 飞刀软件 阅读(926) 评论(0) 推荐(0) 编辑
摘要: 可以对ef使用lamda表达式动态添加参数查询: 案例如下: Func<Std_InspectionContentTableSchema, WhereClip> whereExp = p => { var whereClip = WhereClip.All; if (DangerLevel != n 阅读全文
posted @ 2017-06-16 11:03 飞刀软件 阅读(505) 评论(0) 推荐(0) 编辑
摘要: 例子如下: DataAccess.InspectStandardDB.DBContext.Ji_InspectionContent.UpdateCustom() .Set(p => p.InspectionContent, mode.InspectionContent) .Set(p =>p.Num 阅读全文
posted @ 2017-06-14 16:47 飞刀软件 阅读(225) 评论(0) 推荐(0) 编辑
摘要: jquery 如何传递对象本身作为参数的例子: <input type="radio" name="aaa" value="1" onclick="RadioSelect($(this))”/> function RadioSelect(this) { debugger; $(this).remov 阅读全文
posted @ 2017-05-26 18:29 飞刀软件 阅读(3120) 评论(0) 推荐(0) 编辑
摘要: double percent = (double)alreadyRectification / (alreadyRectification + noRectification); ViewData["rectificationCompletionRate"]= percent.ToString("0 阅读全文
posted @ 2017-05-22 17:12 飞刀软件 阅读(437) 评论(0) 推荐(0) 编辑
摘要: 最近第一次使用sql表变量,感觉挺好用,案例如下: declare @aaa table(Com_SiteGroupID uniqueidentifier) --定义表变量 往表变量里写数据 insert into @aaa select Com_SiteGroupID from Com_SiteG 阅读全文
posted @ 2017-05-21 12:26 飞刀软件 阅读(1559) 评论(0) 推荐(0) 编辑
摘要: echart的官方只提供label标签文字过长是斜着显示的方式,并且文字显示不全重叠等现象。那么只能自己的方式来实现。 option = { title : { text: '世界人口总量', subtext: '数据来自网络' }, tooltip : { trigger: 'axis' }, l 阅读全文
posted @ 2017-05-13 10:26 飞刀软件 阅读(14481) 评论(0) 推荐(0) 编辑
摘要: 最近在项目中需要做一些复杂的图表统计,所以使用了存储过程和游标,案例如下: ALTER PROCEDURE [dbo].[proc_CountSiteGroupByAreaSiteType] -- Add the parameters for the stored procedure hereASB 阅读全文
posted @ 2017-05-10 16:10 飞刀软件 阅读(296) 评论(0) 推荐(0) 编辑
摘要: 项目中需要做一些统计的图表,使用的是百度的EChart做的。 现贴上官网的案例地址: http://echarts.baidu.com/echarts2/doc/example.html 阅读全文
posted @ 2017-04-27 14:16 飞刀软件 阅读(476) 评论(0) 推荐(0) 编辑