好好学习,天天向上!

03 2020 档案

摘要:直接上代码: db.GetList<Draw2D>(x => x.ProductId == id && x.EditionNo == no) .OrderBy(x => x.CreateTime.Desc()) .ToList(); 这个无法排序!!! return db.GetList<Draw2 阅读全文
posted @ 2020-03-17 10:43 刘下来 阅读(1338) 评论(0) 推荐(0)
摘要:源码如下: public Element(string label, string id) : this() { Label = label; Id = id; } public Element(string label, string id, string className) : this(la 阅读全文
posted @ 2020-03-13 09:22 刘下来 阅读(369) 评论(0) 推荐(0)
摘要:来源 int类型变量之间运算,无论是加减乘除得到的结果都是int类型,如果有一个更大范围的变量类型参与运算,那就是最大类型的,比如double int a = 10; int b = 3; double c = a / b; Console.WriteLine(c);//3 double d = a 阅读全文
posted @ 2020-03-05 09:46 刘下来 阅读(1059) 评论(0) 推荐(0)
摘要:2020-03-04 closest():当点击确认按钮时,需要获取表单内容,此时就需要这个函数来查找他的指定父级元素..... $(this).closest("tr").find(".lotNo").val(str); 获取div中所有表单内容,并组成对象: $("#btnRegister"). 阅读全文
posted @ 2020-03-04 14:39 刘下来 阅读(158) 评论(0) 推荐(0)
摘要:2020-03-04 1. 字符串对比,是否相同 int string.Compare(string str1,string str2,ignoreCase:bool) 运用实例: /// <summary> /// 是否超级管理员 /// </summary> public bool IsSupe 阅读全文
posted @ 2020-03-04 09:47 刘下来 阅读(241) 评论(0) 推荐(0)