上一页 1 ··· 36 37 38 39 40 41 42 43 44 ··· 47 下一页
摘要: var getstockid = $.trim($("#SearchString").val());if (!isNaN(getstockid)) alert('是数字!');else alert('不是数字!'); 阅读全文
posted @ 2013-08-13 14:47 James·wang 阅读(392) 评论(0) 推荐(0)
摘要: 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)
摘要: 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)
摘要: 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)
摘要: 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)
摘要: $("#total" + billcode).text(data.Total.toFixed(2));直接使用:toFixed(2) 阅读全文
posted @ 2013-07-19 17:16 James·wang 阅读(1132) 评论(0) 推荐(0)
摘要: 方法一:使用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)
摘要: 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)
摘要: 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)
摘要: @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 下一页