예제 #1
0
 protected void Page_Load(object sender, EventArgs e)
 {
     name1.Value     = "";
     sex1.Value      = "";
     age1.Value      = "";
     phone1.Value    = "";
     drugs           = Drug_C.SelectFuzzy("");
     assessmentItems = AssessmentItem_C.Select("");
 }
예제 #2
0
        protected void Button_search_text_Click(object sender, EventArgs e)
        {
            int    i = 0;
            String s = patient_ID.Value.ToString();

            if (int.TryParse(s, out i) == false)
            {
                Response.Write("<script language=javascript>window.alert('病人ID输入格式不正确!');</script>");
            }
            else
            {
                if (Patient_C.isExit(s) == false)
                {
                    Response.Write("<script language=javascript>window.alert('该病人ID不存在!');</script>");
                }
                else
                {
                    patient1 = Patient_C.GetPatientinformation(s);
                    if (AssessmentItem_C.isExit(Text_Name.Value) == false)
                    {
                        Response.Write("<script language=javascript>window.alert('该检查项不存在!');</script>");
                    }
                    else
                    {
                        assessmentItems = AssessmentItem_C.Select(Text_Name.Value);
                        Text_Name.Value = "";
                        name1.Value     = " 姓名:" + patient1[0].P_Name + "";
                        sex1.Value      = " 性别:" + patient1[0].P_Sex + "";
                        age1.Value      = " 年龄:" + Convert.ToString(patient1[0].P_Age) + "";
                        phone1.Value    = " 手机号:" + Convert.ToString(patient1[0].P_Phone) + "";
                        name1.Visible   = true;
                        sex1.Visible    = true;
                        age1.Visible    = true;
                        phone1.Visible  = true;
                    }
                }
            }
        }