/// <summary> /// 右侧详细内容 /// </summary> /// <param name="id">疾病编码</param> /// <returns></returns> public ActionResult CureRuleDetail(string id) { BLL.Knowledge.CureRule cure = new BLL.Knowledge.CureRule(); TCureRule cot = cure.GetCureRuleById(id); if (cot != null) { string description = "疾病名称:\n"; description += cot.疾病名称 + "\n\n"; description += "病症描述:\n"; description += cot.病症描述 + "\n\n"; description += "诊断要点:\n"; description += cot.诊断要点 + "\n\n"; description += "处理方法:\n"; description += cot.即刻处理 + "\n\n"; description += "转运条件:\n"; description += cot.转运条件 + "\n\n"; this.ViewData["Description"] = description; } return(View()); }
/// <summary> /// 左侧列表 /// </summary> /// <param name="Name">疾病名称</param> /// <returns></returns> public ActionResult CureRule(string Name) { BLL.Knowledge.CureRule cure = new BLL.Knowledge.CureRule(); IList <TCureRule> cot = cure.GetCureRule(Name); this.ViewData["cureRule"] = cot; //给详细内容传递的id if (cot.Count != 0) { this.ViewData["id"] = cot[0].编码; } else { this.ViewData["id"] = "0001"; } return(View()); }