public bool add触诊人设置(触诊模拟人 _触诊模拟人, string user_name) { return simulationDao.add触诊人设置(_触诊模拟人, user_name); }
public 触诊模拟人 get触诊人设置(string user_name) { StringBuilder strSql = new StringBuilder(); strSql.Append(" select "); strSql.Append(" 肝脏肿大,肝脏质地, 脾脏肿大,胆囊触痛, "); strSql.Append(" 胆囊肿大,胆囊墨菲氏征,压痛胃溃疡,压痛十二指肠,压痛胰腺,压痛阑尾,压痛小肠, "); strSql.Append(" 乙状结肠,反跳痛胰腺,反跳痛阑尾,反跳痛小肠,肠鸣音,肾动脉听诊音,股动脉听诊音,脉搏,血压收缩压,血压舒张压 "); strSql.Append(" from tcz_czmnr "); strSql.Append(" where "); strSql.Append(" LOGIN_ID = ?LOGIN_ID "); MySqlParameter[] parameters = { new MySqlParameter("?LOGIN_ID", MySqlDbType.VarChar) }; parameters[0].Value = user_name; DataSet ds = MySqlHelper.DateSet(strSql.ToString(), parameters); if (ds.Tables[0].Rows.Count ==1 ) { 触诊模拟人 _触诊模拟人 = new 触诊模拟人(); _触诊模拟人.肝脏肿大= Convert.ToString(ds.Tables[0].Rows[0]["肝脏肿大"].ToString()); _触诊模拟人.肝脏质地 = Convert.ToString(ds.Tables[0].Rows[0]["肝脏质地"].ToString()); _触诊模拟人.脾脏肿大 = Convert.ToString(ds.Tables[0].Rows[0]["脾脏肿大"].ToString()); _触诊模拟人.胆囊触痛 = Convert.ToString(ds.Tables[0].Rows[0]["胆囊触痛"].ToString()); _触诊模拟人.胆囊肿大 = Convert.ToString(ds.Tables[0].Rows[0]["胆囊肿大"].ToString()); _触诊模拟人.胆囊墨菲氏征 = Convert.ToString(ds.Tables[0].Rows[0]["胆囊墨菲氏征"].ToString()); _触诊模拟人.压痛胃溃疡 = Convert.ToString(ds.Tables[0].Rows[0]["压痛胃溃疡"].ToString()); _触诊模拟人.压痛十二指肠 = Convert.ToString(ds.Tables[0].Rows[0]["压痛十二指肠"].ToString()); _触诊模拟人.压痛胰腺 = Convert.ToString(ds.Tables[0].Rows[0]["压痛胰腺"].ToString()); _触诊模拟人.压痛阑尾 = Convert.ToString(ds.Tables[0].Rows[0]["压痛阑尾"].ToString()); _触诊模拟人.压痛小肠 = Convert.ToString(ds.Tables[0].Rows[0]["压痛小肠"].ToString()); _触诊模拟人.乙状结肠 = Convert.ToString(ds.Tables[0].Rows[0]["乙状结肠"].ToString()); _触诊模拟人.反跳痛胰腺 = Convert.ToString(ds.Tables[0].Rows[0]["反跳痛胰腺"].ToString()); _触诊模拟人.反跳痛阑尾 = Convert.ToString(ds.Tables[0].Rows[0]["反跳痛阑尾"].ToString()); _触诊模拟人.反跳痛小肠 = Convert.ToString(ds.Tables[0].Rows[0]["反跳痛小肠"].ToString()); _触诊模拟人.肠鸣音 = Convert.ToString(ds.Tables[0].Rows[0]["肠鸣音"].ToString()); _触诊模拟人.肾动脉听诊音 = Convert.ToString(ds.Tables[0].Rows[0]["肾动脉听诊音"].ToString()); _触诊模拟人.股动脉听诊音 = Convert.ToString(ds.Tables[0].Rows[0]["股动脉听诊音"].ToString()); _触诊模拟人.脉搏 = Convert.ToString(ds.Tables[0].Rows[0]["脉搏"].ToString()); _触诊模拟人.血压收缩压 = Convert.ToString(ds.Tables[0].Rows[0]["血压收缩压"].ToString()); _触诊模拟人.血压舒张压 = Convert.ToString(ds.Tables[0].Rows[0]["血压舒张压"].ToString()); return _触诊模拟人; } return null; }
public bool add触诊人设置(触诊模拟人 _触诊模拟人,string user_name) { //检索是否存在该用户的信息 StringBuilder strSql = new StringBuilder(); //先检查是否有旧记录没有正确退出 strSql.Append(" select count(1) from tcz_czmnr "); strSql.Append(" where "); strSql.Append(" LOGIN_ID=?LOGIN_ID "); MySqlParameter[] parameters0 = { new MySqlParameter("?LOGIN_ID", MySqlDbType.VarChar) }; parameters0[0].Value = user_name; int row0 = Convert.ToInt32(MySqlHelper.ExecuteScalar(strSql.ToString(), parameters0)); if (row0 > 0)//存在更新 { strSql = new StringBuilder(); strSql.Append(" update tcz_czmnr set 肝脏肿大='" + _触诊模拟人.肝脏肿大+"', "); strSql.Append(" 肝脏质地='" + _触诊模拟人.肝脏质地 + "', "); strSql.Append(" 脾脏肿大='" + _触诊模拟人.脾脏肿大 + "', "); strSql.Append(" 胆囊触痛='" + _触诊模拟人.胆囊触痛 + "', "); strSql.Append(" 胆囊肿大='" + _触诊模拟人.胆囊肿大 + "', "); strSql.Append(" 胆囊墨菲氏征='" + _触诊模拟人.胆囊墨菲氏征 + "', "); strSql.Append(" 压痛胃溃疡='" + _触诊模拟人.压痛胃溃疡 + "', "); strSql.Append(" 压痛十二指肠='" + _触诊模拟人.压痛十二指肠 + "', "); strSql.Append(" 压痛胰腺='" + _触诊模拟人.压痛胰腺 + "', "); strSql.Append(" 压痛阑尾='" + _触诊模拟人.压痛阑尾 + "', "); strSql.Append(" 压痛小肠='" + _触诊模拟人.压痛小肠 + "', "); strSql.Append(" 乙状结肠='" + _触诊模拟人.乙状结肠 + "', "); strSql.Append(" 反跳痛胰腺='" + _触诊模拟人.反跳痛胰腺 + "', "); strSql.Append(" 反跳痛阑尾='" + _触诊模拟人.反跳痛阑尾 + "', "); strSql.Append(" 反跳痛小肠='" + _触诊模拟人.反跳痛小肠 + "', "); strSql.Append(" 肠鸣音='" + _触诊模拟人.肠鸣音 + "', "); strSql.Append(" 肾动脉听诊音='" + _触诊模拟人.肾动脉听诊音 + "', "); strSql.Append(" 股动脉听诊音='" + _触诊模拟人.股动脉听诊音 + "', "); strSql.Append(" 脉搏='" + _触诊模拟人.脉搏 + "', "); strSql.Append(" 肠鸣音='" + _触诊模拟人.肠鸣音 + "', "); strSql.Append(" 血压收缩压='" + _触诊模拟人.血压收缩压 + "', "); strSql.Append(" 血压舒张压='" + _触诊模拟人.血压舒张压 + "' "); strSql.Append(" where "); strSql.Append(" LOGIN_ID=?LOGIN_ID "); MySqlParameter[] parameters1 = { new MySqlParameter("?LOGIN_ID", MySqlDbType.VarChar) }; parameters1[0].Value = user_name; int rows1 = MySqlHelper.ExecuteNonQuery(strSql.ToString(), parameters1); if (rows1 > 0) { return true; } else { return false; } } else//不存在新增 { strSql = new StringBuilder(); strSql.Append(" insert into tcz_czmnr ( LOGIN_ID,"); strSql.Append(" 肝脏肿大,肝脏质地, 脾脏肿大,胆囊触痛, "); strSql.Append(" 胆囊肿大,胆囊墨菲氏征,压痛胃溃疡,压痛十二指肠,压痛胰腺,压痛阑尾,压痛小肠, "); strSql.Append(" 乙状结肠,反跳痛胰腺,反跳痛阑尾,反跳痛小肠,肠鸣音,肾动脉听诊音,股动脉听诊音,脉搏,血压收缩压,血压舒张压 "); strSql.Append(" ) values ( ?LOGIN_ID, "); strSql.Append(" '" + _触诊模拟人.肝脏肿大 + "', "); strSql.Append(" '" + _触诊模拟人.肝脏质地 + "', "); strSql.Append(" '" + _触诊模拟人.脾脏肿大 + "', "); strSql.Append(" '" + _触诊模拟人.胆囊触痛 + "', "); strSql.Append(" '" + _触诊模拟人.胆囊肿大 + "', "); strSql.Append(" '" + _触诊模拟人.胆囊墨菲氏征 + "', "); strSql.Append(" '" + _触诊模拟人.压痛胃溃疡 + "', "); strSql.Append(" '" + _触诊模拟人.压痛十二指肠 + "', "); strSql.Append(" '" + _触诊模拟人.压痛胰腺 + "', "); strSql.Append(" '" + _触诊模拟人.压痛阑尾 + "', "); strSql.Append(" '" + _触诊模拟人.压痛小肠 + "', "); strSql.Append(" '" + _触诊模拟人.乙状结肠 + "', "); strSql.Append(" '" + _触诊模拟人.反跳痛胰腺 + "', "); strSql.Append(" '" + _触诊模拟人.反跳痛阑尾 + "', "); strSql.Append(" '" + _触诊模拟人.反跳痛小肠 + "', "); strSql.Append(" '" + _触诊模拟人.肠鸣音 + "', "); strSql.Append(" '" + _触诊模拟人.肾动脉听诊音 + "', "); strSql.Append(" '" + _触诊模拟人.股动脉听诊音 + "', "); strSql.Append(" '" + _触诊模拟人.脉搏 + "', "); strSql.Append(" '" + _触诊模拟人.血压收缩压 + "', "); strSql.Append(" '" + _触诊模拟人.血压舒张压 + "' "); strSql.Append(" ) "); MySqlParameter[] parameters = { new MySqlParameter("?LOGIN_ID", MySqlDbType.VarChar) }; parameters[0].Value = user_name; int rows = MySqlHelper.ExecuteNonQuery(strSql.ToString(), parameters); if (rows > 0) { return true; } else { return false; } } }
private void sendCzSettings(触诊模拟人 _触诊模拟人) { if (!LoginRoler.Czmonitors.ContainsKey("czmnr1")) return; SerialPort BluetoothConnection = LoginRoler.Czmonitors["czmnr1"]; if (BluetoothConnection!=null) { //肝脏肿大 if (_触诊模拟人.肝脏肿大 == "0") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.肝脏无肿大]).Agreement); } else if (_触诊模拟人.肝脏肿大 == "1") { BluetoothUtil.BlueToothDataSend(BluetoothConnection,((AgreeMent)LoginRoler.AgreeMents[Constant.肝脏有肿大1]).Agreement); } else if (_触诊模拟人.肝脏肿大 == "2") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.肝脏有肿大2]).Agreement ); } else if (_触诊模拟人.肝脏肿大 == "3") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.肝脏有肿大3]).Agreement ); } else if (_触诊模拟人.肝脏肿大 == "4") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.肝脏有肿大4]).Agreement ); } else if (_触诊模拟人.肝脏肿大 == "5") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.肝脏有肿大5]).Agreement ); } else if (_触诊模拟人.肝脏肿大 == "6") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.肝脏有肿大6]).Agreement ); } else if (_触诊模拟人.肝脏肿大 == "7") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.肝脏有肿大7]).Agreement ); } //肝脏质地 if (_触诊模拟人.肝脏质地=="1") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.肝脏质地质硬]).Agreement ); } else if (_触诊模拟人.肝脏质地 == "0") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.肝脏质地质软]).Agreement ); } //脾脏肿大 if (_触诊模拟人.脾脏肿大 == "0") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.脾脏无肿大]).Agreement ); } else if (_触诊模拟人.脾脏肿大 == "1") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.脾脏有肿大1]).Agreement ); } else if (_触诊模拟人.脾脏肿大 == "2") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.脾脏有肿大2]).Agreement); } else if (_触诊模拟人.脾脏肿大 == "3") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.脾脏有肿大3]).Agreement); } else if (_触诊模拟人.脾脏肿大 == "4") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.脾脏有肿大4]).Agreement); } else if (_触诊模拟人.脾脏肿大 == "5") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.脾脏有肿大5]).Agreement); } else if (_触诊模拟人.脾脏肿大 == "6") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.脾脏有肿大6]).Agreement); } else if (_触诊模拟人.脾脏肿大 == "7") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.脾脏有肿大7]).Agreement); } //胆囊触痛 if (_触诊模拟人.胆囊触痛 == "1") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.胆囊有触痛]).Agreement ); } else if (_触诊模拟人.胆囊触痛 == "0") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.胆囊无触痛]).Agreement ); } //胆囊肿大 if (_触诊模拟人.胆囊肿大 == "1") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.胆囊有肿大]).Agreement ); } else if (_触诊模拟人.胆囊肿大 == "0") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.胆囊无肿大]).Agreement ); } //墨菲氏征 if (_触诊模拟人.胆囊墨菲氏征 == "1") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.胆囊墨菲氏征有]).Agreement ); } else if (_触诊模拟人.胆囊墨菲氏征 == "0") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.胆囊墨菲氏征无]).Agreement ); } //压痛胃溃疡 胃部压痛 if (_触诊模拟人.压痛胃溃疡 == "1") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.胃部压痛有]).Agreement ); } else if (_触诊模拟人.压痛胃溃疡 == "0") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.胃部压痛无]).Agreement ); } //压痛十二指肠 if (_触诊模拟人.压痛十二指肠 == "1") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.十二指肠有]).Agreement ); } else if (_触诊模拟人.压痛十二指肠 == "0") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.十二指肠无]).Agreement ); } //压痛胰腺 if (_触诊模拟人.压痛胰腺 == "1") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.胰腺有]).Agreement ); } else if (_触诊模拟人.压痛胰腺 == "0") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.胰腺无]).Agreement ); } //压痛阑尾 if (_触诊模拟人.压痛阑尾 == "1") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.阑尾有]).Agreement ); } else if (_触诊模拟人.压痛阑尾 == "0") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.阑尾无]).Agreement ); } //压痛小肠 if (_触诊模拟人.压痛小肠 == "1") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.小肠有]).Agreement ); } else if (_触诊模拟人.压痛小肠 == "0") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.小肠无]).Agreement ); } //压痛乙状结肠 if (_触诊模拟人.乙状结肠 == "1") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.乙状结肠有]).Agreement ); } else if (_触诊模拟人.乙状结肠 == "0") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.乙状结肠无]).Agreement ); } //反跳痛胰腺 if (_触诊模拟人.反跳痛胰腺 == "1") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.胰腺反跳痛有]).Agreement ); } else if (_触诊模拟人.反跳痛胰腺 == "0") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.胰腺反跳痛无]).Agreement ); } //反跳痛阑尾 if (_触诊模拟人.反跳痛阑尾 == "1") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.阑尾反跳痛有]).Agreement ); } else if (_触诊模拟人.反跳痛阑尾 == "0") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.阑尾反跳痛无]).Agreement ); } //反跳痛小肠 if (_触诊模拟人.反跳痛小肠 == "1") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.小肠反跳痛有]).Agreement ); } else if (_触诊模拟人.反跳痛小肠 == "0") { BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.小肠反跳痛无]).Agreement ); } //脉搏 BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.脉搏设置]).Agreement.Replace("@", _触诊模拟人.脉搏)); //血压收缩压 BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.血压设置收缩压]).Agreement.Replace("@", _触诊模拟人.血压收缩压)); //血压舒张压 BluetoothUtil.BlueToothDataSend(BluetoothConnection, ((AgreeMent)LoginRoler.AgreeMents[Constant.血压设置舒张压]).Agreement.Replace("@", _触诊模拟人.血压舒张压)); //盲肠音 //肾动脉听诊音 //股动脉听诊音 } }
/// <summary> /// 将数据库获取的对象赋值到界面上面 /// </summary> /// <param name="_触诊模拟人"></param> private void load触诊人Data2Frm(触诊模拟人 _触诊模拟人) { if (_触诊模拟人!=null) { this.肝脏肿大.Text = _触诊模拟人.肝脏肿大; this.脾脏肿大.Text = _触诊模拟人.脾脏肿大; if (_触诊模拟人.肝脏质地 == "1") { this.肝脏质地硬.Checked = true; } else if (_触诊模拟人.肝脏质地 == "0") { this.肝脏质地软.Checked = true; } this.脾脏肿大.Text = _触诊模拟人.脾脏肿大; if (_触诊模拟人.胆囊触痛 == "1") { this.胆囊触痛有.Checked = true; } else if (_触诊模拟人.胆囊触痛 == "0") { this.胆囊触痛无.Checked = true; } if (_触诊模拟人.胆囊肿大 == "1") { this.胆囊肿大有.Checked = true; } else if (_触诊模拟人.胆囊肿大 == "0") { this.胆囊肿大无.Checked = true; } if (_触诊模拟人.胆囊墨菲氏征 == "1") { this.胆囊墨菲氏征阳性.Checked = true; } else if (_触诊模拟人.胆囊墨菲氏征 == "0") { this.胆囊墨菲氏征阴性.Checked = true; } if (_触诊模拟人.压痛胃溃疡 == "1") { this.压痛胃溃疡有.Checked = true; } else if (_触诊模拟人.压痛胃溃疡 == "0") { this.压痛胃溃疡无.Checked = true; } if (_触诊模拟人.压痛十二指肠 == "1") { this.压痛十二指肠有.Checked = true; } else if (_触诊模拟人.压痛十二指肠 == "0") { this.压痛十二指肠无.Checked = true; } if (_触诊模拟人.压痛胰腺 == "1") { this.压痛胰腺有.Checked = true; } else if (_触诊模拟人.压痛胰腺 == "0") { this.压痛胰腺无.Checked = true; } if (_触诊模拟人.压痛阑尾 == "1") { this.压痛阑尾有.Checked = true; } else if (_触诊模拟人.压痛阑尾 == "0") { this.压痛阑尾无.Checked = true; } if (_触诊模拟人.压痛小肠 == "1") { this.压痛小肠有.Checked = true; } else if (_触诊模拟人.压痛小肠 == "0") { this.压痛小肠无.Checked = true; } if (_触诊模拟人.乙状结肠 == "1") { this.压痛乙状结肠有.Checked = true; } else if (_触诊模拟人.乙状结肠 == "0") { this.压痛乙状结肠无.Checked = true; } if (_触诊模拟人.反跳痛胰腺 == "1") { this.反跳痛胰腺有.Checked = true; } else if (_触诊模拟人.反跳痛胰腺 == "0") { this.反跳痛胰腺无.Checked = true; } if (_触诊模拟人.反跳痛阑尾 == "1") { this.反跳痛阑尾有.Checked = true; } else if (_触诊模拟人.反跳痛阑尾 == "0") { this.反跳痛阑尾无.Checked = true; } if (_触诊模拟人.反跳痛小肠 == "1") { this.反跳痛小肠有.Checked = true; } else if (_触诊模拟人.反跳痛小肠 == "0") { this.反跳痛小肠无.Checked = true; } this.脉搏.Text = _触诊模拟人.脉搏; this.血压收缩压.Text = _触诊模拟人.血压收缩压; this.血压舒张压.Text = _触诊模拟人.血压舒张压; this.肠鸣音.Text = _触诊模拟人.肠鸣音; this.肾动脉听诊音.Text = _触诊模拟人.肾动脉听诊音; this.股动脉听诊音.Text = _触诊模拟人.股动脉听诊音; } }
/// <summary> /// //获取触诊模拟人数据 封装成 对象 /// </summary> /// <returns></returns> private 触诊模拟人 get触诊模拟人数据() { 触诊模拟人 _触诊模拟人 = new 触诊模拟人(); _触诊模拟人.肝脏肿大 = this.肝脏肿大.Text; if (this.肝脏质地硬.Checked) { _触诊模拟人.肝脏质地 = "1"; } if (this.肝脏质地软.Checked) { _触诊模拟人.肝脏质地 = "0"; } _触诊模拟人.脾脏肿大 = this.脾脏肿大.Text; if (this.胆囊触痛有.Checked) { _触诊模拟人.胆囊触痛 = "1"; } if (this.胆囊触痛无.Checked) { _触诊模拟人.胆囊触痛 = "0"; } if (this.胆囊肿大有.Checked) { _触诊模拟人.胆囊肿大 = "1"; } if (this.胆囊肿大无.Checked) { _触诊模拟人.胆囊肿大 = "0"; } if (this.胆囊墨菲氏征阳性.Checked) { _触诊模拟人.胆囊墨菲氏征 = "1"; } if (this.胆囊墨菲氏征阴性.Checked) { _触诊模拟人.胆囊墨菲氏征 = "0"; } if (this.压痛胃溃疡有.Checked) { _触诊模拟人.压痛胃溃疡 = "1"; } if (this.压痛胃溃疡无.Checked) { _触诊模拟人.压痛胃溃疡 = "0"; } if (this.压痛十二指肠有.Checked) { _触诊模拟人.压痛十二指肠 = "1"; } if (this.压痛十二指肠无.Checked) { _触诊模拟人.压痛十二指肠 = "0"; } if (this.压痛胰腺有.Checked) { _触诊模拟人.压痛胰腺 = "1"; } if (this.压痛胰腺无.Checked) { _触诊模拟人.压痛胰腺 = "0"; } if (this.压痛阑尾有.Checked) { _触诊模拟人.压痛阑尾 = "1"; } if (this.压痛阑尾无.Checked) { _触诊模拟人.压痛阑尾 = "0"; } if (this.压痛小肠有.Checked) { _触诊模拟人.压痛小肠 = "1"; } if (this.压痛小肠无.Checked) { _触诊模拟人.压痛小肠 = "0"; } if (this.压痛乙状结肠有.Checked) { _触诊模拟人.乙状结肠 = "1"; } if (this.压痛乙状结肠无.Checked) { _触诊模拟人.乙状结肠 = "0"; } if (this.反跳痛胰腺有.Checked) { _触诊模拟人.反跳痛胰腺 = "1"; } if (this.反跳痛胰腺无.Checked) { _触诊模拟人.反跳痛胰腺 = "0"; } if (this.反跳痛阑尾有.Checked) { _触诊模拟人.反跳痛阑尾 = "1"; } if (this.反跳痛阑尾无.Checked) { _触诊模拟人.反跳痛阑尾 = "0"; } if (this.反跳痛小肠有.Checked) { _触诊模拟人.反跳痛小肠 = "1"; } if (this.反跳痛小肠无.Checked) { _触诊模拟人.反跳痛小肠 = "0"; } _触诊模拟人.脉搏 = this.脉搏.Text; _触诊模拟人.血压收缩压 = this.血压收缩压.Text; _触诊模拟人.血压舒张压 = this.血压舒张压.Text; _触诊模拟人.肠鸣音 = this.肠鸣音.Text; _触诊模拟人.肾动脉听诊音 = this.肾动脉听诊音.Text; _触诊模拟人.股动脉听诊音 = this.股动脉听诊音.Text; return _触诊模拟人; }