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

            var listService = new ListService();
            ViewData["CureTaskEmployee"] = listService.GetCureTaskEmployee();
            ViewData["CureType"] = listService.GetCureTypeList();
            ViewData["Medicine"] = listService.GetMedicineList();
            ViewData["Unit"] = listService.GetUnitList();
            //定义实际领取的药品
            var medicineTakeModel = new MedicineTakeModel();
            var cureTypeModels = new List<CureTypeModel>();
            var medicineTakeDetails = new List<MedicineTakeDetail>();
            var cureTypeModel = new CureTypeModel();
            var medicineTakeDetail = new MedicineTakeDetail();
            cureTypeModels.Add(cureTypeModel);
            medicineTakeDetails.Add(medicineTakeDetail);
            medicineTakeModel.CureType = cureTypeModels;
            cureTypeModel.MedicineTakeDetails = medicineTakeDetails;
            //定义任务的药品
            var cureDetails = new List<CureDetail>();
            var cureDetail = new CureDetail();
            cureDetails.Add(cureDetail);
            var cureMedicineDetails = new List<CureMedicineDetail>();
            var cureMedicineDetail = new CureMedicineDetail();
            cureMedicineDetails.Add(cureMedicineDetail);
            cureDetail.CureMedicineDetail = cureMedicineDetails;
            medicineTakeModel.CureTaskType = cureDetails;

            return View(medicineTakeModel);
        }
 public ActionResult MedicineTake(MedicineTakeModel model)
 {
     var listService = new ListService();
     ViewData["CureTaskEmployee"] = listService.GetCureTaskEmployee();
     ViewData["CureType"] = listService.GetCureTypeList();
     ViewData["Medicine"] = listService.GetMedicineList();
     ViewData["Unit"] = listService.GetUnitList();
     var medicineTakeModel = new MedicineTakeModel();
     medicineTakeModel = medicineTakeModel.GetCureTaskByEmployeeId(model.EmployeeId);
     model.TaskNumber = medicineTakeModel.TaskNumber;
     model.EmloyeeName = medicineTakeModel.EmloyeeName;
     model.TaskCourseId = medicineTakeModel.TaskCourseId;
     model.CureTaskType = medicineTakeModel.CureTaskType;
     return View(model);
 }