/// <summary> /// 验证 /// </summary> /// <returns></returns> private bool ValiDateAfterVisit() { if (!ValidationRegex.ValidteData(txtXueYa.Controls[0].Text) && !ValidationRegex.ValidteDouble(txtXueYa.Controls[0].Text)) { MessageBox.Show("血压值填写有误,请检查!"); txtXueYa.Focus(); return(false); } if (!ValidationRegex.ValidteData(txtXinLv.Controls[0].Text) && !ValidationRegex.ValidteDouble(txtXinLv.Controls[0].Text)) { MessageBox.Show("心率值填写有误,请检查!"); txtXinLv.Focus(); return(false); } if (!ValidationRegex.ValidteData(txtHuXi.Controls[0].Text) && !ValidationRegex.ValidteDouble(txtHuXi.Controls[0].Text)) { MessageBox.Show("呼吸值填写有误,请检查!"); txtHuXi.Focus(); return(false); } return(true); }
/// <summary> /// 验证 /// </summary> /// <returns></returns> private bool ValiDateBeforeVisit() { if (!ValidationRegex.ValidteData(tbJieyanDay.Text)) { MessageBox.Show("戒烟天数填写有误,请检查!"); tbJieyanDay.Focus(); return(false); } if (!ValidationRegex.ValidteData(tbXiyanliang.Text)) { MessageBox.Show("吸烟量填写有误,请检查!"); tbJieyanDay.Focus(); return(false); } if (!ValidationRegex.ValidteDouble(tbXiyanYear.Text)) { MessageBox.Show("吸烟年数填写有误,请检查!"); tbJieyanDay.Focus(); return(false); } else { return(true); } }
/// <summary> /// 验证 /// </summary> /// <returns></returns> private bool ValiDateBeforeVisit() { if (!ValidationRegex.ValidteData(txtWeight.Controls[0].Text) && !ValidationRegex.ValidteDouble(txtWeight.Controls[0].Text)) { MessageBox.Show("体重值填写有误,请检查!"); txtWeight.Focus(); return(false); } if (!ValidationRegex.ValidteData(txtBlood.Controls[0].Text) && !ValidationRegex.ValidteDouble(txtBlood.Controls[0].Text)) { MessageBox.Show("血压值填写有误,请检查!"); txtBlood.Focus(); return(false); } if (!ValidationRegex.ValidteData(txtHeartRate.Controls[0].Text) && !ValidationRegex.ValidteDouble(txtHeartRate.Controls[0].Text)) { MessageBox.Show("心率值填写有误,请检查!"); txtHeartRate.Focus(); return(false); } if (!ValidationRegex.ValidteData(txtPulse.Controls[0].Text) && !ValidationRegex.ValidteDouble(txtPulse.Controls[0].Text)) { MessageBox.Show("脉搏值填写有误,请检查!"); txtPulse.Focus(); return(false); } if (!ValidationRegex.ValidteData(txtBreathing.Controls[0].Text) && !ValidationRegex.ValidteDouble(txtBreathing.Controls[0].Text)) { MessageBox.Show("呼吸值填写有误,请检查!"); txtBreathing.Focus(); return(false); } if (!ValidationRegex.ValidteData(txtBT.Controls[0].Text) && !ValidationRegex.ValidteDouble(txtBT.Controls[0].Text)) { MessageBox.Show("体温值填写有误,请检查!"); txtBT.Focus(); return(false); } if (!ValidationRegex.ValidteData(txtHemoglobin.Controls[0].Text) && !ValidationRegex.ValidteDouble(txtHemoglobin.Controls[0].Text)) { MessageBox.Show("血红蛋白值填写有误,请检查!"); txtHemoglobin.Focus(); return(false); } if (!ValidationRegex.ValidteData(txtErythrocyte.Controls[0].Text) && !ValidationRegex.ValidteDouble(txtErythrocyte.Controls[0].Text)) { MessageBox.Show("红细胞值填写有误,请检查!"); txtErythrocyte.Focus(); return(false); } if (!ValidationRegex.ValidteData(txtHematocrit.Controls[0].Text) && !ValidationRegex.ValidteDouble(txtHematocrit.Controls[0].Text)) { MessageBox.Show("血细胞比容值填写有误,请检查!"); txtHematocrit.Focus(); return(false); } if (!ValidationRegex.ValidteData(txtBTB.Controls[0].Text) && !ValidationRegex.ValidteDouble(txtBTB.Controls[0].Text)) { MessageBox.Show("血小板值填写有误,请检查!"); txtBTB.Focus(); return(false); } if (!ValidationRegex.ValidteData(txtFG.Controls[0].Text) && !ValidationRegex.ValidteDouble(txtFG.Controls[0].Text)) { MessageBox.Show("FG值填写有误,请检查!"); txtFG.Focus(); return(false); } if (!ValidationRegex.ValidteData(txtAPTT.Controls[0].Text) && !ValidationRegex.ValidteDouble(txtAPTT.Controls[0].Text)) { MessageBox.Show("APTT值填写有误,请检查!"); txtAPTT.Focus(); return(false); } if (!ValidationRegex.ValidteData(txtThrombinDate.Controls[0].Text) && !ValidationRegex.ValidteDouble(txtThrombinDate.Controls[0].Text)) { MessageBox.Show("凝血酶原时间值填写有误,请检查!"); txtThrombinDate.Focus(); return(false); } if (!ValidationRegex.ValidteData(txtPotassium.Controls[0].Text) && !ValidationRegex.ValidteDouble(txtPotassium.Controls[0].Text)) { MessageBox.Show("血钾值填写有误,请检查!"); txtPotassium.Focus(); return(false); } if (!ValidationRegex.ValidteData(txtHyponatremia.Controls[0].Text) && !ValidationRegex.ValidteDouble(txtHyponatremia.Controls[0].Text)) { MessageBox.Show("血钠值填写有误,请检查!"); txtHyponatremia.Focus(); return(false); } if (!ValidationRegex.ValidteData(txtSerumChloride.Controls[0].Text) && !ValidationRegex.ValidteDouble(txtSerumChloride.Controls[0].Text)) { MessageBox.Show("血氯值填写有误,请检查!"); txtSerumChloride.Focus(); return(false); } if (!ValidationRegex.ValidteData(txtBloodSugar.Controls[0].Text) && !ValidationRegex.ValidteDouble(txtBloodSugar.Controls[0].Text)) { MessageBox.Show("血糖值填写有误,请检查!"); txtBloodSugar.Focus(); return(false); } return(true); }