Exemple #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("");
 }
Exemple #2
0
 protected void search_drug_Click(object sender, EventArgs e)
 {
     if (Drug_C.isExit(drug_name.Value) == true)
     {
         drugs = Drug_C.SelectFuzzy(drug_name.Value);
     }
     else
     {
         Response.Write("<script language=javascript>window.alert('该药品不存在!');</script>");
     }
 }
Exemple #3
0
        protected void search_drug_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 (Drug_C.isExit(drug_name.Value) == false)
                    {
                        Response.Write("<script language=javascript>window.alert('该药品不存在!');</script>");
                    }
                    else
                    {
                        drugs           = Drug_C.SelectFuzzy(drug_name.Value);
                        drug_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;
                    }
                }
            }
        }
Exemple #4
0
 protected void Page_Load(object sender, EventArgs e)
 {
     drugs = Drug_C.SelectFuzzy("");
 }