private void updateBichao_Load(object sender, EventArgs e) { grjdDao grjddao = new grjdDao(); dttv = grjddao.checkThresholdValues("", ""); this.textBox1.Text = name; this.textBox3.Text = time; this.textBox9.Text = aichive_no; this.textBox4.Text = id_number; this.textBox2.Text = bar_code; DataTable dtbichao = tjdao.selectXueyaInfo(aichive_no, bar_code); if (dtbichao != null && dtbichao.Rows.Count > 0) { string sbp = dtbichao.Rows[0]["SBP"].ToString(); if (sbp != "") { double sbpdouble = double.Parse(sbp); int _result = GetJudgeResultForSBP(sbpdouble); } this.textBox5.Text = sbp; string dbp = dtbichao.Rows[0]["DBP"].ToString(); if (dbp != "") { double dbpdouble = double.Parse(dbp); int _result = GetJudgeResultForDBP(dbpdouble); } this.textBox6.Text = dbp; string _pulsestr = dtbichao.Rows[0]["Pulse"].ToString(); if (_pulsestr != "") { double _dbpulse = double.Parse(_pulsestr); int _result = GetJudgeResultForPulse(_dbpulse); } this.textBox7.Text = _pulsestr; } else { MessageBox.Show("未查询到数据!"); } }