Exemplo n.º 1
0
        /// <summary>
        /// 左侧列表
        /// </summary>
        /// <param name="chineseName">中文名称</param>
        /// <param name="englishName">英文名称</param>
        /// <returns></returns>
        public ActionResult Poison(string chineseName, string englishName)
        {
            BLL.Knowledge.Poison poison = new BLL.Knowledge.Poison();

            //radio框的值
            string type = Request.QueryString["type"];

            this.ViewData["type"] = type == null ? "1" : type;

            IList <TPoison> cot = poison.GetPoison(chineseName, englishName);

            this.ViewData["poison"] = cot;

            for (int i = 0; i < cot.Count; i++)
            {
                cot[i].英文名称 = cot[i].英文名称 == null ? cot[i].序号 : cot[i].英文名称;
            }

            //给详细内容传递的id
            if (cot.Count != 0)
            {
                this.ViewData["id"] = cot[0].序号;
            }
            else
            {
                this.ViewData["id"] = "02100600";
            }

            return(View());
        }
Exemplo n.º 2
0
        /// <summary>
        /// 右侧详细内容
        /// </summary>
        /// <param name="id">毒品序号</param>
        /// <returns></returns>
        public ActionResult PoisonDetail(string id)
        {
            BLL.Knowledge.Poison poison = new BLL.Knowledge.Poison();

            TPoison cot = poison.GetPoisonById(id);

            this.ViewData["poison"] = cot;

            this.ViewData["Character"]              = cot.性质;
            this.ViewData["Fatalness"]              = cot.毒性;
            this.ViewData["Characteristic"]         = cot.特点;
            this.ViewData["ToxicEffect"]            = cot.毒理作用;
            this.ViewData["PoisoningManifestation"] = cot.中毒表现;
            this.ViewData["DiagnoseMainPoint"]      = cot.诊断要点;
            this.ViewData["CureMainPoint"]          = cot.救治要点;
            this.ViewData["Toxicology"]             = cot.毒理;
            this.ViewData["Pharmacokinetic"]        = cot.药动学;
            this.ViewData["LabExamine"]             = cot.实验室检查;
            this.ViewData["Pharmacology"]           = cot.药理;
            this.ViewData["Etiology"]     = cot.病原学;
            this.ViewData["Epidemiology"] = cot.流行病学;
            this.ViewData["Remark"]       = cot.备注;
            return(View());
        }