📄 crb_xianbingshiview.aspx.cs
字号:
plGy_LC_rdYycx.SelectedValue = reader["yycx"].ToString();
plGy_LC_rdSzgb.SelectedValue = reader["szgb"].ToString();
string[] strArr = reader["hb"].ToString().Split('、');
int i, j;
for (i = 0; i < plGy_LC_ckHb.Items.Count; i++)
{
for (j = 0; j < strArr.Length; j++)
{
if (plGy_LC_ckHb.Items[i].Text == strArr[j] || plGy_LC_ckHb.Items[i].Text == strArr[j].TrimEnd(')'))
{
plGy_LC_ckHb.Items[i].Selected = true;
break;
}
}
}
DataSet ds = dac.ItemBind("现病史.黑便");
string temp = "";
string temp1 = "";
int n = 0;
plGy_LC_spHb.InnerHtml = "";
for ( i = 0; i < ds.Tables[0].Rows.Count; i++)
{
temp = ds.Tables[0].Rows[i]["xmName"].ToString();
temp1 = temp.Substring(0, temp.Length - 1);
for (j = 0; j < strArr.Length; j++)
{
if (temp == strArr[j] || temp == strArr[j].TrimEnd(')'))
{
n++;
plGy_LC_spHb.InnerHtml += " <input type='checkbox' checked='checked' id='plGy_LC_ckHbb" + i.ToString() + "' value= '" + temp + "' onclick=CheckValue('plGy_LC_ckHbb','plGy_LC_ckHbb" + i.ToString() + "')>" + temp1 + "</input> ";
break;
}
}
if (n == 0)
{
plGy_LC_spHb.InnerHtml += " <input type='checkbox' id='plGy_LC_ckHbb" + i.ToString() + "' value= '" + temp + "' onclick=CheckValue('plGy_LC_ckHbb','plGy_LC_ckHbb" + i.ToString() + "')>" + temp1 + "</input> ";
}
else
{
n = 0;
}
hdhb.Value += temp;
}
divKbdYys.InnerHtml = BindYy(pi.zyxh, "0");
}
else
{
plGy_LC_rdFl.SelectedIndex = 0;
plGy_LC_rdNc.SelectedIndex = 0;
plGy_LC_rdEx.SelectedIndex = 0;
plGy_LC_rdOt.SelectedIndex = 0;
plGy_LC_rdNh.SelectedIndex = 0;
plGy_LC_rdFz.SelectedIndex = 0;
plGy_LC_rdFt.SelectedIndex = 0;
plGy_LC_rdNl.SelectedIndex = 0;
plGy_LC_rdOx.SelectedIndex = 0;
plGy_LC_ckHb.SelectedIndex = 0;
plGy_LC_rdFr.SelectedIndex = 0;
plGy_LC_rdYycx.SelectedIndex = 0;
plGy_LC_rdSzgb.SelectedIndex = 0;
}
dac.CloseDbReader();
}
*/
/// <summary>
/// 获取页面CheckBoxList的值
/// </summary>
/// <param name="ck"></param>
/// <param name="wholeValue"></param>
/// <returns></returns>
private string GetCheckBoxListValue(CheckBoxList ck, ref string wholeValue)
{
wholeValue = "";
string returnValue = "";
for (int i = 0; i < ck.Items.Count; i++)
{
wholeValue += ck.Items[i].Text + "、";
if (ck.Items[i].Selected)
returnValue += ck.Items[i].Text + "、";
}
wholeValue = wholeValue.TrimEnd('、');
returnValue = returnValue.TrimEnd('、');
return returnValue;
}
/// <summary>
/// 设置页面CheckBoxList的值
/// </summary>
/// <param name="ck"></param>
/// <param name="value"></param>
private void SetCheckBoxListValue(CheckBoxList ck,string value)
{
string[] arr = value.Split('、');
for (int i = 0; i < ck.Items.Count; i++)
{
for (int j = 0; j < arr.Length; j++)
{
if (ck.Items[i].Text == arr[j])
{
ck.Items[i].Selected = true;
break;
}
}
}
}
/// <summary>
/// 获取病毒性肝炎现病史结构化录入内容
/// </summary>
/// <returns></returns>
private string GetIllnessDescriptionForBdxGy()
{
string strRef = "";
// string strLx = plGy_drJllx.SelectedValue;
string strBfz = GetCheckBoxListValue(plGy_ckBfz, ref strRef); //plGy_rdBfz.SelectedValue;
////并发症
//if (plGy_rdBfz.SelectedValue == "有")
//{
// strBfz += GetCheckBoxListValue(plGy_ckBfz, ref strRef);
//}
string strTcz = "";
string strTcz1 = "";
strTcz = GetCheckBoxListValue(plGy_ckGyjc, ref strTcz1);
string strWwrw = "";
string strWwrw1 = "";
strWwrw = GetCheckBoxListValue(plGy_ckJcwrw, ref strWwrw1);
string strXjc = "否认性接触而未采取防护措施。";
if (plGy_ckXjc.Checked)
strXjc = "有性接触而未采取防护措施。";
string returnValue ="";
string[] arr1 = Hidden1.Value.Split('$');
for (int i = 0; i < arr1.Length; i++)
{
string[] arr = arr1[i].Split('&');
returnValue +="患者于" + arr[0] + arr[1] + "时发现" +arr[2] ;
if (i == 0)
returnValue += ",就诊首诊医院" + arr[3] + ",";
else
returnValue += ",就诊于" + arr[3] + ",";
returnValue += arr[4] + arr[5] +"。";
}
returnValue += "患者于" + tbSj.Text;
if(rdFxtj.SelectedValue == "体检" )
returnValue += rdFxtj.SelectedValue + "时发现" + tbQk.Text;
else
{
if (rdYy.SelectedValue == "无")
{
returnValue += "无明显诱因下,出现";
}
else
{
returnValue += "因" + tbYy.Text + "出现";
}
returnValue += GetLczz("1");
}
returnValue += "就诊于" + tbjzyy.Text + tbZl.Text+"。";
returnValue += "今为求进一步诊治来我院,拟"+tbZd.Text+"收入我科。 ";
return returnValue;
}
/// <summary>
/// 获取临床症状的内容
/// </summary>
/// <param name="strLx">临床症状类型,0-历次,1-本次</param>
/// <returns></returns>
private string GetLczz(string strLx)
{
string returnValue = "";
string strZc="";
string strYc="";
string query = " select * from t_zyys_ryjl_xbs where zyxh ='" + pi.zyxh + "' and jllx='" + strLx + "'";
IDataReader reader = dac.DataReaderQuery(query);
if (reader.Read())
{
string strFl = reader["fl"].ToString();
string strNc = reader["nc"].ToString();
string strEx = reader["ex"].ToString();
string strOt = reader["ot"].ToString();
string strNh = reader["nh"].ToString();
string strFz = reader["fz"].ToString();
string strFt = reader["ft"].ToString();
string strNl = reader["nl"].ToString();
string strOx = reader["ox"].ToString();
string strHb = reader["hb"].ToString().Replace(",","").Replace(";","");
//黑便
string strFr = reader["fr"].ToString();
string strYycx = reader["yycx"].ToString();
string strSzgb = reader["szgb"].ToString();
string strKbdyys = reader["kbdyys"].ToString();
string strYymx = reader["yymx"].ToString();
string strFsqk = reader["fsqk"].ToString();
if (strFl != "" && strFl != "无")
strYc += strFl + "乏力、";
else
strZc += "乏力、";
if (strNc != "" && strNc != "无")
strYc += strNc + "纳差、";
else
strZc += "纳差、";
if (strEx != "" && strEx != "无")
strYc += strEx + "恶心、";
else
strZc += "恶心、";
if (strOt != "" && strOt != "无")
strYc += strOt + "呕吐、";
else
strZc += "呕吐、";
if (strNh != "" && strNh != "无")
strYc += strNh + "尿黄、";
else
strZc += "尿黄、";
string[] arr;
if (strFz != "" && strFz != "无")
{
arr = strFz.Split('|');
strYc += arr[3] + arr[1] + arr[2] + "腹胀、";
}
else
strZc += "腹胀、";
if (strFt != "" && strFt != "无")
{
arr = strFt.Split('|');
strYc += arr[1] + arr[2] + arr[3] + "腹痛、";
}
else
strZc += "腹痛、";
if (strFsqk != "" && strFsqk != "无")
strYc += "曾与" + strFsqk + "放射治疗、";
if (strNl != "" && strNl != "无")
strYc += strNl + "尿、";
else
strZc += "尿量、";
if (strOx != "" && strOx != "无")
strYc += strOx + "呕血、";
else
strZc += "呕血、";
if (strHb != "" && strHb != "无")
strYc += strHb + "黑便、";
else
strZc += "黑便、";
if (strFr != "" && strFr != "无")
strYc += strOx + "发热、";
else
strZc += "发热、";
if (strYycx != "" && strYycx != "无")
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -