public ViewResult Product(ProductSearchCondition condition, string errorMsg = "", bool isloadCondition = false) { //condition.BeginTime = DateTime.Today; if (isloadCondition) { condition = TempData["condition"] as ProductSearchCondition; } if (string.IsNullOrEmpty(errorMsg) == false) { ViewBag.ErrorMsg = errorMsg; } GetBcBz(); ViewBag.ListCK = bll_Product.GetWWCK(); ViewBag.PlanData = bll.GetProductList( condition?.Ph, condition?.Gz, condition?.Zxbz, condition?.Gg, condition?.Wl, condition?.BeginTime, condition?.EndTime); // 质量等级选择框数据源 ViewBag.CheckStateList = bll.GetCheckstate(); TempData["condition"] = condition; // 外委报工 return(View(condition)); }