public ActionResult FodderTake(FodderTakeModel model)
 {
     model = new FodderDetail().GetFodderDetail(model);
     var listService = new ListService();
     ViewData["FeedTaskEmployee"] = listService.GetFeedTaskEmployee();
     ViewData["FodderType"] = listService.GetFodderTypeList();
     ViewData["Unit"] = listService.GetUnitList();
     return View(model);
 }
        public ActionResult FodderTake()
        {
            if (Session["CheckFeed"] == null || !(bool) Session["CheckFodderTake"])
            {
                Response.Write("<script>history.go(0);</script>");
                return View("Error");
            }

            var listService = new ListService();
            ViewData["FeedTaskEmployee"] = listService.GetFeedTaskEmployee();
            ViewData["FodderType"] = listService.GetFodderTypeList();
            ViewData["Unit"] = listService.GetUnitList();
            //初始化
            var fodderTakeModel = new FodderTakeModel();
            var taskDetail = new List<FodderDetail>();
            var actualDetail = new List<FodderDetail>();
            var fodderDetail = new FodderDetail();
            taskDetail.Add(fodderDetail);
            actualDetail.Add(fodderDetail);
            fodderTakeModel.ActualDetail = actualDetail;
            fodderTakeModel.TaskDetail = taskDetail;
            return View(fodderTakeModel);
        }