public JsonResult GetGoodsDocByOrderID(string orderid, int type, string taskid = "") { var list = StockBusiness.GetGoodsDocByOrderID(orderid, taskid, (EnumDocType)type, CurrentUser.ClientID); JsonDictionary.Add("items", list); return(new JsonResult { Data = JsonDictionary, JsonRequestBehavior = JsonRequestBehavior.AllowGet }); }
public ActionResult PlateMakingProcess(string id) { var taskid = ""; var type = 1; var model = OrdersBusiness.BaseBusiness.GetOrderByID(id, CurrentUser.ClientID); var list = StockBusiness.GetGoodsDocByOrderID(id, taskid, (EnumDocType)type, CurrentUser.ClientID); ViewBag.Model = model; ViewBag.List = list; return(View()); }