摘要: public static class PredicateBuilder { /// /// 机关函数应用True时:单个AND有效,多个AND有效;单个OR无效,多个OR无效;混应时写在AND后的OR有效 /// /// ... 阅读全文
posted @ 2014-11-13 13:03 虫虫飞520 阅读(15671) 评论(2) 推荐(4) 编辑
摘要: foreach (T_GL_AnalysisCalculation item in AnalysisCalculationList) { foreach (System.Reflection.PropertyInfo p in item.GetType().GetProperties()) { v... 阅读全文
posted @ 2014-11-07 16:24 虫虫飞520 阅读(346) 评论(0) 推荐(0) 编辑
摘要: $("#btnSearch").click(function () { var queryUrl = '/Report/LoadInsClassifFileNew'; if ($("#txtSearch").v... 阅读全文
posted @ 2014-10-31 09:29 虫虫飞520 阅读(3401) 评论(0) 推荐(0) 编辑
摘要: //这样不行 var BrushProducTimeout = aliexpressEntities.CP_BrushProduc.Where(p => p.isActive == true && p.productState == 2 && (4 * 60 - (DateTime.Now.Su... 阅读全文
posted @ 2014-09-16 16:28 虫虫飞520 阅读(2900) 评论(1) 推荐(0) 编辑
摘要: { attributeSumValue= beforEntity.Sum(e => Convert.ToDecimal( e.GetType().GetProperties().Where(o => o.Name == attributeName).Single().GetValue(e, nul... 阅读全文
posted @ 2014-09-01 17:00 虫虫飞520 阅读(353) 评论(0) 推荐(0) 编辑
摘要: var jqData = (from s in queryResult select new { id = s.ContractGuid,//定义当前行数据的一个传输识别名称,一般以主键为名称,可以省略() cell = new object[] { s.ContractGuid, Conve... 阅读全文
posted @ 2014-06-18 17:13 虫虫飞520 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 今天在研究jquery用ajax提交form表单中得数据时,学习到了一种新的提交方式jquery中的serialize() 方法该方法通过序列化表单值,创建 URL 编码文本字符串序列化的值可在生成 AJAX 请求时用于 URL 查询字符串中这样当表单中要提交的参数比较多时,就可以使用该方法进行提交,否则将在ajax中得代码会很长,有可能在编写时出错,也不方便检查以下是自己写的测试代码ItemInfo类:publicclassItemInfo{publicstringPartNumber{get;set;}publicstringProject{get;set;}publicstringFam 阅读全文
posted @ 2014-02-27 13:33 虫虫飞520 阅读(2300) 评论(0) 推荐(0) 编辑
摘要: 某财务报表USE [PB_AHTC]GO/****** Object: StoredProcedure [dbo].[JSPRO] Script Date: 12/10/2013 11:54:52 ******/SET ANSI_NULLS ONGOSET QUOTED_IDENTIFIER ONGOALTER PROCEDURE [dbo].[JSPRO]ASBEGINDECLARE @B_CODE INT --商户代码DECLARE @B_JSTIME INT --商户结算时间DECLARE @B_LastJSTIME DATETIME --商户结算时间DEC... 阅读全文
posted @ 2013-12-10 11:57 虫虫飞520 阅读(411) 评论(0) 推荐(0) 编辑
摘要: 1 //获取所有树叶子节点 注册添加事件 if ($(node).tree('isLeaf', node.target)) 是否叶子节点 2 $(function () { 3 $('.easyui-tree').tree({ 4 onClick: function (node) { 5 if ($(node).tree('isLeaf', node.target)) { 6 alert(node.text); 7 } 8 } 9 })10 11 }) 阅读全文
posted @ 2013-11-21 16:53 虫虫飞520 阅读(4655) 评论(0) 推荐(0) 编辑
摘要: string url = "http://gw.api.taobao.com/router/rest"; string appkey = "21635046"; string appsecret = "fdf7e76c7cf2693d12943f42bb177da1"; string sessionKey = "6100c084de93ac021c879df03a4f699299a0cfe00b33d5b899573294"; ITopClient client = n... 阅读全文
posted @ 2013-10-09 22:23 虫虫飞520 阅读(2936) 评论(0) 推荐(0) 编辑