会员
周边
新闻
博问
闪存
赞助商
YouClaw
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
James wang
Shanghai Pudong New District
首页
管理
上一页
1
···
36
37
38
39
40
41
42
43
44
···
47
下一页
2013年8月13日
用javascript的isNan()函数,可以判断是否为数字
摘要: var getstockid = $.trim($("#SearchString").val());if (!isNaN(getstockid)) alert('是数字!');else alert('不是数字!');
阅读全文
posted @ 2013-08-13 14:47 James·wang
阅读(392)
评论(0)
推荐(0)
2013年8月5日
@using (Html.BeginForm())参数示例
摘要: 1、指定表单提交方式和路径等 @using (Html.BeginForm("Index", "Home", FormMethod.Get, new { name = "nbform", id = "nbform" }))2、指定表单提交为数据方式 @using (Html.BeginForm("ImportExcel", "Stock", FormMethod.Post, new { enctype = "multipart/form-data" }))
阅读全文
posted @ 2013-08-05 15:31 James·wang
阅读(58163)
评论(8)
推荐(6)
2013年7月25日
Autocomplete in ASP.NET MVC3自动检索并填充输入框
摘要: 1、单一产品情况下使用:public ActionResult GetStockList(){ var item = _db.Stocks.ToList().Select(s =>s.Product.CodePro); return Json(item, JsonRequestBehavior.AllowGet);} Tags: 2、多组返回值的情况下: Find by name: @Html.TextBox("SearchString") public ActionResult AutocompleteSuggest...
阅读全文
posted @ 2013-07-25 16:38 James·wang
阅读(794)
评论(0)
推荐(0)
2013年7月23日
List(T)类的方法
摘要: List.Clear 方法List.RemoveAll 方法http://msdn.microsoft.com/zh-cn/library/s6hkc2c4(v=vs.100).aspx
阅读全文
posted @ 2013-07-23 13:01 James·wang
阅读(450)
评论(0)
推荐(0)
2013年7月22日
循环中逐一添加集合的方法
摘要: var tempbd=new List(); foreach (var eitem in bitem) { tempbd.Add(new TempBillDetailsView { StockId = getorder.StockId, PCS = getorder.PCS }); }
阅读全文
posted @ 2013-07-22 18:03 James·wang
阅读(520)
评论(0)
推荐(0)
2013年7月19日
jquery 保留两个小数的方法
摘要: $("#total" + billcode).text(data.Total.toFixed(2));直接使用:toFixed(2)
阅读全文
posted @ 2013-07-19 17:16 James·wang
阅读(1132)
评论(0)
推荐(0)
2013年7月14日
MVC时间对比及时间范围判断
摘要: 方法一:使用DateTime.Compare 方法public static int Compare( DateTime t1, DateTime t2)t1早于t2:小于零t1与t2相同:零t1晚于t2:大于零示例:DateTime ctime = Convert.ToDateTime("2013-07-14 04:00:00.000");DateTime today = DateTime.Now;DateTime.Compare(today,ctime)>0DateTime now = DateTime.Now;var policypro = _db.Policy
阅读全文
posted @ 2013-07-14 07:32 James·wang
阅读(1621)
评论(0)
推荐(1)
2013年7月2日
查询当日数据集
摘要: var policystore = _db.PolicyStores.SingleOrDefault(p => System.Data.Objects.EntityFunctions.DiffDays(p.CreateDate, ordercreatedate)==0);
阅读全文
posted @ 2013-07-02 16:22 James·wang
阅读(257)
评论(0)
推荐(0)
2013年6月27日
MVC3循环添加数据
摘要: foreach (var item in orderdetails) { var billdetails = new BillDetail(){BillCode = billoflading.BillCode,StockId = item.StockId,PCS = item.PCS,CreateDate = DateTime.Now}; _db.BillDetails.Add(billdetails); } _db.SaveChanges();
阅读全文
posted @ 2013-06-27 10:33 James·wang
阅读(946)
评论(0)
推荐(0)
2013年6月19日
在Html.ActionLink中运用二维判断语句
摘要: @Html.ActionLink("公告信息", "notice", "article", null, new { @class = ViewData["getclass"]!="notice"?"":"currclass" })@Html.ActionLink("历史查询", "index", "home", new { hd = DateTime.Today.ToString("yy
阅读全文
posted @ 2013-06-19 11:00 James·wang
阅读(471)
评论(0)
推荐(0)
上一页
1
···
36
37
38
39
40
41
42
43
44
···
47
下一页