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("未查询到数据!"); } }
private void updateBichao_Load(object sender, EventArgs e) { 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.selectShenghuaInfo(aichive_no, bar_code); if (dtbichao != null && dtbichao.Rows.Count > 0) { _haveData = true; //这里处理下 dttv _currentdevno = "SH_YNH_001"; if (dtbichao.Rows[0]["deviceModel"] != null) { _currentdevno = dtbichao.Rows[0]["deviceModel"].ToString(); if (_currentdevno == "") { _currentdevno = "SH_YNH_001"; } } grjdDao grjddao = new grjdDao(); dttv = grjddao.checkThresholdValues(_currentdevno, "生化"); string alt = dtbichao.Rows[0]["ALT"].ToString(); if (alt != "" && alt != "*") { double altdouble = 0; bool a = double.TryParse(alt, out altdouble); if (a == true) { GetJudgeResultForALT(altdouble); } } this.textBox5.Text = alt; string ast = dtbichao.Rows[0]["AST"].ToString(); if (ast != "" && ast != "*") { double astdouble = 0; bool a = double.TryParse(ast, out astdouble); if (a == true) { GetJudgeResultForAST(astdouble); } } this.textBox6.Text = ast; string tbil = dtbichao.Rows[0]["TBIL"].ToString(); if (tbil != "" && tbil != "*") { double tbildouble = 0; bool a = double.TryParse(tbil, out tbildouble); if (a == true) { GetJudgeResultForTBIL(tbildouble); } } this.textBox8.Text = tbil; string dbil = dtbichao.Rows[0]["DBIL"].ToString(); //if (dbil != "" && dbil != "*") //{ // double dbildouble = double.Parse(dbil); // GetJudgeResultForDBIL(dbildouble); //} this.textBox7.Text = dbil; string crea = dtbichao.Rows[0]["CREA"].ToString(); if (crea != "" && crea != "*") { double creadouble = 0; bool a = double.TryParse(crea, out creadouble); if (a == true) { GetJudgeResultForCREA(creadouble); } } this.textBox11.Text = crea; string urea = dtbichao.Rows[0]["UREA"].ToString(); if (urea != "" && urea != "*") { double ureadouble = 0; bool a = double.TryParse(urea, out ureadouble); if (a == true) { GetJudgeResultForUREA(ureadouble); } } this.textBox10.Text = urea; string glu = dtbichao.Rows[0]["GLU"].ToString(); if (glu != "" && glu != "*") { double gludouble = 0; bool a = double.TryParse(glu, out gludouble); if (a == true) { GetJudgeResultForGLU(gludouble); } } this.textBox13.Text = glu; string tg = dtbichao.Rows[0]["TG"].ToString(); if (tg != "" && tg != "*") { double tgdouble = 0; bool a = double.TryParse(tg, out tgdouble); if (a == true) { GetJudgeResultForTG(tgdouble); } } this.textBox12.Text = tg; string cho = dtbichao.Rows[0]["CHO"].ToString(); if (cho != "" && cho != "*") { double chodouble = 0; bool a = double.TryParse(cho, out chodouble); if (a == true) { GetJudgeResultForCHO(chodouble); } } this.textBox15.Text = cho; string hdlc = dtbichao.Rows[0]["HDLC"].ToString(); if (hdlc != "" && hdlc != "*") { double hdlcdouble = 0; bool a = double.TryParse(hdlc, out hdlcdouble); if (a == true) { GetJudgeResultForHDLC(hdlcdouble); } } this.textBox14.Text = hdlc; string ldlc = dtbichao.Rows[0]["LDLC"].ToString(); if (ldlc != "" && ldlc != "*") { double ldlcdouble = 0; bool a = double.TryParse(ldlc, out ldlcdouble); if (a == true) { GetJudgeResultForLDLC(ldlcdouble); } } this.textBox17.Text = ldlc; this.textBox16.Text = dtbichao.Rows[0]["ALB"].ToString(); this.textBox19.Text = dtbichao.Rows[0]["UA"].ToString(); this.textBox18.Text = dtbichao.Rows[0]["HCY"].ToString(); this.textBox21.Text = dtbichao.Rows[0]["AFP"].ToString(); this.textBox20.Text = dtbichao.Rows[0]["CEA"].ToString(); this.textBox23.Text = dtbichao.Rows[0]["Ka"].ToString(); this.textBox22.Text = dtbichao.Rows[0]["Na"].ToString(); this.textBox25.Text = dtbichao.Rows[0]["TP"].ToString(); this.textBox24.Text = dtbichao.Rows[0]["ALP"].ToString(); this.textBox27.Text = dtbichao.Rows[0]["GGT"].ToString(); this.textBox26.Text = dtbichao.Rows[0]["CHE"].ToString(); this.textBox29.Text = dtbichao.Rows[0]["TBA"].ToString(); this.textBox28.Text = dtbichao.Rows[0]["APOA1"].ToString(); this.textBox31.Text = dtbichao.Rows[0]["APOB"].ToString(); this.textBox30.Text = dtbichao.Rows[0]["CK"].ToString(); this.textBox33.Text = dtbichao.Rows[0]["CKMB"].ToString(); this.textBox32.Text = dtbichao.Rows[0]["LDHL"].ToString(); this.textBox35.Text = dtbichao.Rows[0]["HBDH"].ToString(); this.textBox34.Text = dtbichao.Rows[0]["aAMY"].ToString(); } else { _currentdevno = "SH_YNH_001"; string[] a = Common._deviceModel.Split(','); _currentdevno = a[0].ToString(); grjdDao grjddao = new grjdDao(); dttv = grjddao.checkThresholdValues(_currentdevno, "生化"); MessageBox.Show("未查询到数据!"); } }
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; _isHaveData = false; DataTable dtbichao = tjdao.selectNiaochangguiInfo(aichive_no, bar_code); if (dtbichao != null && dtbichao.Rows.Count > 0) { _isHaveData = true; string wbc = dtbichao.Rows[0]["WBC"].ToString(); int _result = GetJudgeResultForWBC(wbc); this.textBox5.Text = wbc; this.textBox6.Text = dtbichao.Rows[0]["LEU"].ToString(); string nit = dtbichao.Rows[0]["NIT"].ToString(); _result = GetJudgeResultForNIT(nit); this.textBox8.Text = nit; string uro = dtbichao.Rows[0]["URO"].ToString(); _result = GetJudgeResultForURO(uro); this.textBox7.Text = uro; string pro = dtbichao.Rows[0]["PRO"].ToString(); _result = GetJudgeResultForPRO(pro); this.textBox11.Text = pro; string ph = dtbichao.Rows[0]["PH"].ToString(); if (ph != "") { double phdouble = 0; bool a = double.TryParse(ph, out phdouble); if (a == true) { _result = GetJudgeResultForPH(phdouble); } } this.textBox10.Text = ph; string bld = dtbichao.Rows[0]["BLD"].ToString(); _result = GetJudgeResultForBLD(bld); this.textBox13.Text = bld; string sg = dtbichao.Rows[0]["SG"].ToString(); if (sg != "") { double sgdouble = 0; bool a = double.TryParse(sg, out sgdouble); if (a == true) { GetJudgeResultForSG(sgdouble); } } this.textBox12.Text = sg; string ket = dtbichao.Rows[0]["KET"].ToString(); GetJudgeResultForKET(ket); this.textBox15.Text = ket; string bil = dtbichao.Rows[0]["BIL"].ToString(); GetJudgeResultForBIL(bil); this.textBox14.Text = bil; string glu = dtbichao.Rows[0]["GLU"].ToString(); GetJudgeResultForGLU(glu); this.textBox17.Text = glu; string vc = dtbichao.Rows[0]["Vc"].ToString(); GetJudgeResultForVC(vc); this.textBox16.Text = dtbichao.Rows[0]["Vc"].ToString(); string strma = dtbichao.Rows[0]["MA"].ToString(); if (strma != "") { double madouble = 0; bool a = double.TryParse(strma, out madouble); if (a == true) { GetJudgeResultForMA(madouble); } } this.textBox19.Text = dtbichao.Rows[0]["MA"].ToString(); this.textBox18.Text = dtbichao.Rows[0]["ACR"].ToString(); this.textBox21.Text = dtbichao.Rows[0]["Ca"].ToString(); this.textBox20.Text = dtbichao.Rows[0]["CR"].ToString(); } else { MessageBox.Show("未查询到数据!"); } }
private void updateBichao_Load(object sender, EventArgs e) { 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.selectXuechangguiInfo(aichive_no, bar_code); _isHaveData = false; if (dtbichao != null && dtbichao.Rows.Count > 0) { _isHaveData = true; _currentdevno = "XCG_YNH_001"; if (dtbichao.Rows[0]["deviceModel"] != null) { _currentdevno = dtbichao.Rows[0]["deviceModel"].ToString(); if (_currentdevno == "") { _currentdevno = "XCG_YNH_001"; } } grjdDao grjddao = new grjdDao(); dttv = grjddao.checkThresholdValues(_currentdevno, "血常规"); string wbc = dtbichao.Rows[0]["WBC"].ToString(); if (wbc != "" && wbc != "*") { double wbcdouble = 0; bool a = double.TryParse(wbc, out wbcdouble); if (a == true) { GetJudgeResultForWBC(wbcdouble); } } this.textBox5.Text = wbc; string rbc = dtbichao.Rows[0]["RBC"].ToString(); if (rbc != "" && rbc != "*") { double rbcdouble = 0; bool a = double.TryParse(rbc, out rbcdouble); if (a == true) { GetJudgeResultForRBC(rbcdouble); } } this.textBox6.Text = rbc; string pct = dtbichao.Rows[0]["PCT"].ToString(); if (pct != "" && pct != "*") { double pctdouble = 0; bool a = double.TryParse(pct, out pctdouble); if (a == true) { GetJudgeResultForPCT(pctdouble); } } this.textBox8.Text = pct; string plt = dtbichao.Rows[0]["PLT"].ToString(); if (plt != "" && plt != "*") { double pltdouble = 0; bool a = double.TryParse(plt, out pltdouble); if (a == true) { GetJudgeResultForPLT(pltdouble); } } this.textBox7.Text = plt; string hgb = dtbichao.Rows[0]["HGB"].ToString(); if (hgb != "" && hgb != "*") { double hgbdouble = 0; bool a = double.TryParse(hgb, out hgbdouble); if (a == true) { GetJudgeResultForHGB(hgbdouble); } } this.textBox11.Text = hgb; string hct = dtbichao.Rows[0]["HCT"].ToString(); if (hct != "" && hct != "*") { double hctdouble = 0; bool a = double.TryParse(hct, out hctdouble); if (a == true) { GetJudgeResultForHCT(hctdouble); } } this.textBox10.Text = hct; string mcv = dtbichao.Rows[0]["MCV"].ToString(); if (mcv != "" && mcv != "*") { double mcvdouble = 0; bool a = double.TryParse(mcv, out mcvdouble); if (a == true) { GetJudgeResultForMCV(mcvdouble); } } this.textBox13.Text = mcv; string mch = dtbichao.Rows[0]["MCH"].ToString(); if (mch != "" && mch != "*") { double mchdouble = 0; bool a = double.TryParse(mch, out mchdouble); if (a == true) { GetJudgeResultForMCH(mchdouble); } } this.textBox12.Text = mch; string mchc = dtbichao.Rows[0]["MCHC"].ToString(); if (mchc != "" && mchc != "*") { double mchcdouble = 0; bool a = double.TryParse(mchc, out mchcdouble); if (a == true) { GetJudgeResultForMCHC(mchcdouble); } } this.textBox15.Text = mchc; string rdwcv = dtbichao.Rows[0]["RDWCV"].ToString(); if (rdwcv != "" && rdwcv != "*") { double rdwcvdouble = 0; bool a = double.TryParse(rdwcv, out rdwcvdouble); if (a == true) { GetJudgeResultForRDWCV(rdwcvdouble); } } this.textBox14.Text = rdwcv; string rdwsd = dtbichao.Rows[0]["RDWSD"].ToString(); if (rdwsd != "" && rdwsd != "*") { double rdwsddouble = 0; bool a = double.TryParse(rdwsd, out rdwsddouble); if (a == true) { GetJudgeResultForRDWSD(rdwsddouble); } } this.textBox17.Text = rdwsd; this.textBox16.Text = dtbichao.Rows[0]["MONO"].ToString(); this.textBox19.Text = dtbichao.Rows[0]["MONOP"].ToString(); this.textBox18.Text = dtbichao.Rows[0]["GRAN"].ToString(); this.textBox21.Text = dtbichao.Rows[0]["GRANP"].ToString(); string neut = dtbichao.Rows[0]["NEUT"].ToString(); if (neut != "" && neut != "*") { double neutdouble = double.Parse(neut); GetJudgeResultForNEUT(neutdouble); } this.textBox20.Text = neut; string neutp = dtbichao.Rows[0]["NEUTP"].ToString(); if (neutp != "" && neutp != "*") { double neutpdouble = double.Parse(neutp); GetJudgeResultForNEUTP(neutpdouble); } this.textBox23.Text = neutp; this.textBox22.Text = dtbichao.Rows[0]["EO"].ToString(); this.textBox25.Text = dtbichao.Rows[0]["EOP"].ToString(); this.textBox24.Text = dtbichao.Rows[0]["BASO"].ToString(); this.textBox29.Text = dtbichao.Rows[0]["BASOP"].ToString(); string lym = dtbichao.Rows[0]["LYM"].ToString(); if (lym != "" && lym != "*") { double lymdouble = 0; bool a = double.TryParse(lym, out lymdouble); if (a == true) { GetJudgeResultForLYM(lymdouble); } } this.textBox28.Text = lym; string lymp = dtbichao.Rows[0]["LYMP"].ToString(); if (lymp != "" && lymp != "*") { double lympdouble = 0; bool a = double.TryParse(lymp, out lympdouble); if (a == true) { GetJudgeResultForLYMP(lympdouble); } } this.textBox31.Text = lymp; string mpv = dtbichao.Rows[0]["MPV"].ToString(); if (mpv != "" && mpv != "*") { double mpvdouble = 0; bool a = double.TryParse(mpv, out mpvdouble); if (a == true) { GetJudgeResultForMPV(mpvdouble); } } this.textBox30.Text = mpv; string pdw = dtbichao.Rows[0]["PDW"].ToString(); if (pdw != "" && pdw != "*") { double pdwdouble = 0; bool a = double.TryParse(pdw, out pdwdouble); if (a == true) { GetJudgeResultForPDW(pdwdouble); } } this.textBox33.Text = pdw; string mxd = dtbichao.Rows[0]["MXD"].ToString(); if (mxd != "" && mxd != "*") { double mxddouble = 0; bool a = double.TryParse(mxd, out mxddouble); if (a == true) { GetJudgeResultForMXD(mxddouble); } } this.textBox32.Text = mxd; string mxdp = dtbichao.Rows[0]["MXDP"].ToString(); if (mxdp != "" && mxdp != "*") { double mxdpdouble = 0; bool a = double.TryParse(mxdp, out mxdpdouble); if (a == true) { GetJudgeResultForMXDP(mxdpdouble); } } this.textBox35.Text = mxdp; this.textBox34.Text = dtbichao.Rows[0]["PLCR"].ToString(); this.textBox36.Text = dtbichao.Rows[0]["OTHERS"].ToString(); } else { _currentdevno = "XCG_YNH_001"; string[] a = Common._deviceModel.Split(','); _currentdevno = a[1].ToString(); grjdDao grjddao = new grjdDao(); dttv = grjddao.checkThresholdValues(_currentdevno, "血常规"); MessageBox.Show("未查询到数据!"); } }
private void updateBichao_Load(object sender, EventArgs e) { grjdDao grjddao = new grjdDao(); dttv = grjddao.checkThresholdValues("", ""); isfrist = true; 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.selectSgtzInfo(aichive_no, bar_code); if (dtbichao != null && dtbichao.Rows.Count > 0) { #region 身高 string height = dtbichao.Rows[0]["Height"].ToString(); if (height != "") { double heightdouble = 0; bool a = double.TryParse(height, out heightdouble); if (a == true) { int ret = GetJudgeResultForHeight(heightdouble); } } this.textBox5.Text = height; #endregion #region 重量 string weight = dtbichao.Rows[0]["Weight"].ToString(); if (weight != "") { double weightdouble = 0; bool a = double.TryParse(weight, out weightdouble); if (a == true) { int ret = GetJudgeResultForWeight(weightdouble); } } this.textBox6.Text = weight; #endregion #region BMI string _bmi = dtbichao.Rows[0]["BMI"].ToString(); if (_bmi != "") { double _dbBmi = 0; bool a = double.TryParse(_bmi, out _dbBmi); if (a == true) { int ret = GetJudgeResultForBMI(_dbBmi); } } this.textBox7.Text = _bmi; #endregion } else { MessageBox.Show("未查询到数据!"); } isfrist = false; }