Exemplo n.º 1
0
 private void login_Load(object sender, EventArgs e)
 {
     if (TextValueLimit.PingHost(ConfigurationManager.AppSettings["SeverIp"]))
     {
         IsUpate();
     }
 }
Exemplo n.º 2
0
 private void btnCheckHis_Click(object sender, EventArgs e)
 {
     if (linePatid.Text.Trim().Length != 6)
     {
         MessageBox.Show("请输入六位完整住院号");
     }
     else
     {
         string IPaddress = "132.147.160.60";
         bool   flag      = TextValueLimit.PingHost(IPaddress, 1000);
         if (flag == true)
         {
             DataTable dt = HisHelp.GetHisInfoByPatID(linePatid.Text.Trim());
             if (dt.Rows.Count == 1)
             {
                 lineBedno.Text    = dt.Rows[0]["BedNo"].ToString();
                 lineName.Text     = dt.Rows[0]["patname"].ToString();
                 lineAge.Text      = dt.Rows[0]["patage"].ToString();
                 txtPatNation.Text = dt.Rows[0]["patNation"].ToString();
                 cmbSex.Text       = dt.Rows[0]["patsex"].ToString();
                 cmbKeshi.Text     = dt.Rows[0]["Patdpm"].ToString();
                 lineSQZD.Text     = dt.Rows[0]["SQZD"].ToString();
                 lineTSQK.Text     = dt.Rows[0]["bz"].ToString();
                 lineNSSSS.Text    = dt.Rows[0]["oname"].ToString();
                 cmbMZFF.Text      = dt.Rows[0]["mzff"].ToString();
             }
             else
             {
                 MessageBox.Show("无此住院号病人信息,请检查");
             }
         }
         else
         {
             MessageBox.Show("HIS网络连接错误,请检查");
         }
     }
 }
Exemplo n.º 3
0
 private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
 {
     TextValueLimit.Text_Value_Limit(sender, e);
 }
Exemplo n.º 4
0
 private void txtxuejiang_KeyPress(object sender, KeyPressEventArgs e)
 {
     TextValueLimit.Text_Value_Limit(sender, e);
 }