示例#1
0
        // GET: /PatientInfo/TreatmentPlan/
        public ActionResult TreatmentPlan(string PatientId)
        {
            if (PatientId == null)
            {
                PatientId = Session["PatientId"] as String;
            }
            else
            {
                Session["PatientId"] = PatientId;
            }
            var user = Session["CurrentUser"] as UserAndRole;
            TreatmentViewModel TreatmentData = new TreatmentViewModel();
            TreatmentData.UserId = user.UserId;
            TreatmentData.PId = PatientId;
            OtherCs.TreatFunctions.GetTreatmentList(_ServicesSoapClient, TreatmentData.UserId, PatientId, TreatmentData.TreatmentList);

            return View(TreatmentData);
        }
示例#2
0
        public ActionResult TreatmentPlan(TreatmentViewModel piTreatmentViewData)
        {
            var user = Session["CurrentUser"] as UserAndRole;
            if (ModelState.IsValid)
            {

                //往数据库插数据
                //
                bool SetTreatmentInfoFlag = OtherCs.TreatFunctions.SetTreatmentInfo(_ServicesSoapClient, piTreatmentViewData, user);
                if (SetTreatmentInfoFlag)
                {
                    return RedirectToAction("TreatmentPlan");
                }
                else
                {

                }
            }

            return View(piTreatmentViewData);
        }
示例#3
0
 public static bool SetTreatmentInfo(ServicesSoapClient _ServicesSoapClient, TreatmentViewModel Tr, UserAndRole user)
 {
     string UserId = Tr.PId;
     string TreatmentGoal = Tr.TreatmentInfo.TreatmentGoal;
     string TreatmentAction = Tr.TreatmentInfo.TreatmentAction;
     string Group = Tr.TreatmentInfo.Group;
     string TreatmentPlan = Tr.TreatmentInfo.TreatmentPlan;
     string Description = string.Empty;
     //取数据库时间
     DateTime TreatTime = DateTime.Now; //输入无效,数据库取当前时间自动存入
     string Duration = Tr.TreatmentInfo.Duration;
     bool SetTreatmentInfoFlag = _ServicesSoapClient.SetTreatmentInfo(UserId, Convert.ToInt32(TreatmentGoal), Convert.ToInt32(TreatmentAction), Convert.ToInt32(Group), TreatmentPlan, Description, TreatTime, Duration, user.UserId, user.TerminalName, user.TerminalIP, user.DeviceType);
     return SetTreatmentInfoFlag;
 }