public ActionResult EditPreventionDiseaseTask(string taskNumber)
        {
            if (Session["CheckFeed"] == null || !(bool)Session["EditPreventionDisease"] ||
                !(bool)Session["CheckPreventionDisease"])
            {
                Response.Write("<script>history.go(0);</script>");
                return View("Error");
            }

            PreventionDiseaseTask updateTask = new PreventionDiseaseTask().GetPreventionDiseaseTask(taskNumber);

            if (updateTask == null)
            {
                return View("Error");
            }

            var listService = new ListService();

            ViewData["PreventionType"] = listService.GetPreventionTypeList();
            ViewData["pighouse"] = listService.GetPigHouseList();
            ViewData["taskStatus"] = listService.GetTaskStatusList();
            ViewData["PigStyPigType"] = listService.GetPigStyPigTypeList();
            ViewBag.Title = "修改防疫任务";
            return View("NewPreventionDiseaseTask", updateTask);
        }
        public ActionResult NewPreventionDiseaseTask()
        {
            if (Session["CheckFeed"] == null || !(bool)Session["AddPreventionDisease"] ||
                !(bool)Session["CheckPreventionDisease"])
            {
                Response.Write("<script>history.go(0);</script>");
                return View("Error");
            }

            var listService = new ListService();
            ViewData["PreventionType"] = listService.GetPreventionTypeList();
            ViewData["pighouse"] = listService.GetPigHouseList();
            ViewData["PigStyPigType"] = listService.GetPigStyPigTypeList();
            ViewBag.Title = "新建防疫任务";
            return View(new PreventionDiseaseTask());
        }