1059 lines
54 KiB
C#
1059 lines
54 KiB
C#
using DevExpress.XtraEditors;
|
||
using DevExpress.XtraGrid.Views.Grid;
|
||
using HL_FristAidPlatform_DTO;
|
||
using HL_FristAidPlatform_DynamicElectrocardiogram;
|
||
using HL_FristAidPlatform_Public;
|
||
using System;
|
||
using System.Collections.Generic;
|
||
using System.Data;
|
||
using System.Windows.Forms;
|
||
|
||
namespace HL_FristAidPlatform_FollowUp
|
||
{
|
||
public partial class Form_FollowUpDetail_Apoplexy : XtraForm
|
||
{
|
||
/// <summary>
|
||
/// 当前患者信息
|
||
/// </summary>
|
||
public DataTable Cur_PatientDT;
|
||
|
||
/// <summary>
|
||
/// 当前患者编号(GUID)
|
||
/// </summary>
|
||
public string Cur_PatientID;
|
||
|
||
/// <summary>
|
||
/// 当前随访计划编号(GUID)
|
||
/// </summary>
|
||
public string Cur_FollUpGUID;
|
||
|
||
/// <summary>
|
||
/// 当前随访日期
|
||
/// </summary>
|
||
public DateTime Cur_FollowUpDate;
|
||
/// <summary>
|
||
/// 等待窗体
|
||
/// </summary>
|
||
private Loading loading = new Loading();
|
||
|
||
public Form_FollowUpDetail_Apoplexy()
|
||
{
|
||
InitializeComponent();
|
||
}
|
||
public Form_FollowUpDetail_Apoplexy(string _Cur_PatientID)
|
||
{
|
||
Cur_PatientID = _Cur_PatientID;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 窗体加载
|
||
/// </summary>
|
||
/// <param name="sender"></param>
|
||
/// <param name="e"></param>
|
||
private void Form_FollowUpDetail_Load(object sender, EventArgs e)
|
||
{
|
||
gridView_FollowUpVisit.Columns["GUID"].Visible = false;
|
||
BindData();
|
||
BindList();
|
||
}
|
||
|
||
/// <summary>
|
||
/// 绑定随访计划列表
|
||
/// </summary>
|
||
private void BindList()
|
||
{
|
||
try
|
||
{
|
||
string Url = string.Empty;
|
||
Url = string.Format("api/service/T_Service_FollowUp/?pageIndex=1&pageSize=20&pGuid=" + Cur_PatientID + "");
|
||
DataTable data = DBHelpClass.Get(Url);
|
||
gridControl_FollowUpVisit.DataSource = data;
|
||
gridView_FollowUpVisit.OptionsBehavior.Editable = false;
|
||
}
|
||
catch (Exception ex)
|
||
{
|
||
PublicClass.WriteErrorLog(this.Text, "绑定随访计划列表:\r\n" + ex);
|
||
}
|
||
}
|
||
|
||
/// <summary>
|
||
/// 查询绑定
|
||
/// </summary>
|
||
private void BindData()
|
||
{
|
||
BindPatientInfo();
|
||
}
|
||
|
||
|
||
/// <summary>
|
||
/// 绑定患者信息
|
||
/// </summary>
|
||
private void BindPatientInfo()
|
||
{
|
||
try
|
||
{
|
||
Cur_PatientDT = DBHelpClass.GetDataRow("api/service/T_Service_Patient/" + Cur_PatientID + "");
|
||
label_name.Text = Cur_PatientDT.Rows[0]["Name"].ToString();
|
||
//label_sex.Text = Cur_PatientDT.Rows[0]["GenderString"].ToString();
|
||
label_age.Text = Cur_PatientDT.Rows[0]["Age"].ToString();
|
||
label_AdmissionNumber.Text = Cur_PatientDT.Rows[0]["AdmissionNumber"] + "";
|
||
}
|
||
catch (Exception ex)
|
||
{
|
||
PublicClass.WriteErrorLog(this.Text, "绑定患者信息:\r\n" + ex);
|
||
}
|
||
}
|
||
|
||
|
||
|
||
/// <summary>
|
||
/// 绑定详情
|
||
/// </summary>
|
||
/// <param name="_pGuid"></param>
|
||
/// <param name="_followDate"></param>
|
||
public void BindDataPrehospital(string _pGuid, DateTime _followDate)
|
||
{
|
||
try
|
||
{
|
||
#region 绑定详情
|
||
DataTable dataTable = new DataTable();
|
||
dataTable = DBHelpClass.GetDataRow("api/service/T_Service_FollowUp_Apoplexy/GetApoplexyPatientDetail?pGuid=" + _pGuid + "&followDate=" + _followDate + "");
|
||
|
||
if (dataTable != null)
|
||
{
|
||
if (dataTable.Rows.Count > 0)
|
||
{
|
||
#region 随访基本信息
|
||
|
||
dateEdit_FollowUpDate.TimeValue = PublicClass.ToString(dataTable.Rows[0]["ActualFollowUpDate"], "");
|
||
radioGroup_FollowUpType.SelectedIndex = Convert.ToInt32(dataTable.Rows[0]["FollowUpType"]);
|
||
radioGroup_IsLostVisit.SelectedIndex = dataTable.Rows[0]["IsLost"] + "" == "0" ? 0 : 1;
|
||
radioGroup_LostReasons.SelectedIndex = Convert.ToInt32(dataTable.Rows[0]["LostReasons"]);
|
||
radioGroup_IsDeath.SelectedIndex = dataTable.Rows[0]["IsDeath"] + "" == "0" ? 0 : 1;
|
||
radioGroup_DeathReasons.SelectedIndex = Convert.ToInt32(dataTable.Rows[0]["DeathReasons"]);
|
||
timeControl_DeathTime.TimeValue = PublicClass.ToString(dataTable.Rows[0]["DeathTime"], "");
|
||
#endregion
|
||
|
||
#region 随访期间基本情况
|
||
textEdit_OutpatientNumber.Text = dataTable.Rows[0]["OutpatientNumber"].ToString();
|
||
textEdit_EmergencyNumber.Text = dataTable.Rows[0]["EmergencyNumber"].ToString();
|
||
textEdit_HospitalizationNumber.Text = dataTable.Rows[0]["HospitalizationNumber"].ToString();
|
||
textEdit_AverageMonthlyOutpatientExpenses.Text = dataTable.Rows[0]["AverageMonthlyOutpatientExpenses"].ToString();
|
||
int nursing = Convert.ToInt32(dataTable.Rows[0]["Nursing"]);
|
||
switch (nursing)
|
||
{
|
||
case 1:
|
||
checkBox_NursingFamilyMembers.Checked = true;
|
||
break;
|
||
case 2:
|
||
checkBox_NursingParamedic.Checked = true;
|
||
break;
|
||
case 3:
|
||
checkBox__NursingNanny.Checked = true;
|
||
break;
|
||
case 4:
|
||
checkBox_NursingSelfCare.Checked = true;
|
||
break;
|
||
case 5:
|
||
checkBox_NursingOther.Checked = true;
|
||
break;
|
||
}
|
||
radioGroup_WorkSituation.SelectedIndex = Convert.ToInt32(dataTable.Rows[0]["WorkSituation"]);
|
||
|
||
#endregion
|
||
|
||
#region 随访期间新发事件
|
||
checkBox_IsApoplexy.Checked = Convert.ToInt32(dataTable.Rows[0]["IsApoplexy"]) == 1 ? true : false;
|
||
int apoplexyType = Convert.ToInt32(dataTable.Rows[0]["ApoplexyType"]);
|
||
switch (apoplexyType)
|
||
{
|
||
case 0:
|
||
checkBox_CerebralInfarction.Checked = true;
|
||
break;
|
||
case 1:
|
||
checkBox_CerebralHemorrhage.Checked = true;
|
||
break;
|
||
case 2:
|
||
checkBox_SubarachnoidHemorrhage.Checked = true;
|
||
break;
|
||
case 3:
|
||
checkBox_OtherUnclassifiedStroke.Checked = true;
|
||
break;
|
||
}
|
||
timeControl_ApoplexyTime.TimeValue = PublicClass.ToString(dataTable.Rows[0]["ApoplexyTime"], "");
|
||
checkBox_IsTIA.Checked = Convert.ToInt32(dataTable.Rows[0]["IsTIA"]) == 1 ? true : false;
|
||
timeControl_TIATime.TimeValue = PublicClass.ToString(dataTable.Rows[0]["TIATime"], "");
|
||
checkBox_IsMiocardialInfarction.Checked = Convert.ToInt32(dataTable.Rows[0]["IsMiocardialInfarction"]) == 1 ? true : false;
|
||
timeControl_MiocardialInfarctionTime.TimeValue = PublicClass.ToString(dataTable.Rows[0]["MiocardialInfarctionTime"], "");
|
||
checkBox_IsUnstableAngina.Checked = Convert.ToInt32(dataTable.Rows[0]["IsUnstableAngina"]) == 1 ? true : false;
|
||
timeControl_UnstableAnginaTime.TimeValue = PublicClass.ToString(dataTable.Rows[0]["UnstableAnginaTime"], "");
|
||
checkBox_IsHeartFailure.Checked = Convert.ToInt32(dataTable.Rows[0]["IsHeartFailure"]) == 1 ? true : false;
|
||
timeControl_HeartFailureTime.TimeValue = PublicClass.ToString(dataTable.Rows[0]["HeartFailureTime"], "");
|
||
checkBox_IsPulmonaryEmbolism.Checked = Convert.ToInt32(dataTable.Rows[0]["IsPulmonaryEmbolism"]) == 1 ? true : false;
|
||
timeControl_PulmonaryEmbolismTime.TimeValue = PublicClass.ToString(dataTable.Rows[0]["PulmonaryEmbolismTime"], "");
|
||
checkBox_IsPVD.Checked = Convert.ToInt32(dataTable.Rows[0]["IsPVD"]) == 1 ? true : false;
|
||
timeControl_PVDTime.TimeValue = PublicClass.ToString(dataTable.Rows[0]["PVDTime"], "");
|
||
|
||
checkBox_IsOther.Checked = Convert.ToInt32(dataTable.Rows[0]["IsOther"]) == 1 ? true : false;
|
||
textEdit_OtherText.Text = PublicClass.ToString(dataTable.Rows[0]["OtherText"], "");
|
||
checkBox_IsNoneAbove.Checked = Convert.ToInt32(dataTable.Rows[0]["IsNoneAbove"]) == 1 ? true : false;
|
||
|
||
checkBox_IsHypertension.Checked = Convert.ToInt32(dataTable.Rows[0]["IsHypertension"]) == 1 ? true : false;
|
||
checkBox_IsDiabetes.Checked = Convert.ToInt32(dataTable.Rows[0]["IsDiabetes"]) == 1 ? true : false;
|
||
checkBox_IsDyslipidemia.Checked = Convert.ToInt32(dataTable.Rows[0]["IsDyslipidemia"]) == 1 ? true : false;
|
||
checkBox_IsAtrialFibrillation.Checked = Convert.ToInt32(dataTable.Rows[0]["IsAtrialFibrillation"]) == 1 ? true : false;
|
||
checkBox_IsNone.Checked = Convert.ToInt32(dataTable.Rows[0]["IsNone"]) == 1 ? true : false;
|
||
|
||
#endregion
|
||
|
||
#region 随访期间生活方式
|
||
radioGroup_Smoking.SelectedIndex = Convert.ToInt32(dataTable.Rows[0]["Smoking"]);
|
||
radioGroup_Drinking.SelectedIndex = Convert.ToInt32(dataTable.Rows[0]["Drinking"]);
|
||
radioGroup_Motion.SelectedIndex = Convert.ToInt32(dataTable.Rows[0]["Motion"]);
|
||
#endregion
|
||
|
||
#region 随访期间危险因素控制情况
|
||
radioGroup_BloodPressureMeasurementFrequency.SelectedIndex = Convert.ToInt32(dataTable.Rows[0]["BloodPressureMeasurementFrequency"]);
|
||
radioGroup_SystolicPressure.SelectedIndex = Convert.ToInt32(dataTable.Rows[0]["SystolicPressure"]);
|
||
radioGroup_DiastolicPressure.SelectedIndex = Convert.ToInt32(dataTable.Rows[0]["DiastolicPressure"]);
|
||
radioGroup_BloodGlucoseMeasurement.SelectedIndex = Convert.ToInt32(dataTable.Rows[0]["BloodGlucoseMeasurement"]);
|
||
radioGroup_FastingBloodGlucose.SelectedIndex = Convert.ToInt32(dataTable.Rows[0]["FastingBloodGlucose"]);
|
||
radioGroup_PostprandialBloodGlucose.SelectedIndex = Convert.ToInt32(dataTable.Rows[0]["PostprandialBloodGlucose"]);
|
||
#endregion
|
||
|
||
#region 随访期间用药情况
|
||
radioGroup_AntithromboticDrugs.SelectedIndex = dataTable.Rows[0]["AntithromboticDrugs"] + "" == "0" ? 0 : 1;
|
||
checkBox_Aspirin.Checked = Convert.ToInt32(dataTable.Rows[0]["Aspirin"]) == 1 ? true : false;
|
||
textEdit_AspirinDose.Text = dataTable.Rows[0]["AspirinDose"].ToString();
|
||
checkBox_Clopidogrel.Checked = Convert.ToInt32(dataTable.Rows[0]["Clopidogrel"]) == 1 ? true : false;
|
||
textEdit_ClopidogrelDose.Text = dataTable.Rows[0]["ClopidogrelDose"].ToString();
|
||
checkBox_Ozagre.Checked = Convert.ToInt32(dataTable.Rows[0]["Ozagre"]) == 1 ? true : false;
|
||
textEdit_OzagreDose.Text = dataTable.Rows[0]["OzagreDose"].ToString();
|
||
checkBox_Dipyridamole.Checked = Convert.ToInt32(dataTable.Rows[0]["Dipyridamole"]) == 1 ? true : false;
|
||
textEdit_DipyridamoleDose.Text = dataTable.Rows[0]["DipyridamoleDose"].ToString();
|
||
checkBox_Ceclopyridine.Checked = Convert.ToInt32(dataTable.Rows[0]["Ceclopyridine"]) == 1 ? true : false;
|
||
textEdit_CeclopyridineDose.Text = dataTable.Rows[0]["CeclopyridineDose"].ToString();
|
||
checkBox_Cilostazol.Checked = Convert.ToInt32(dataTable.Rows[0]["Cilostazol"]) == 1 ? true : false;
|
||
textEdit_CilostazolDose.Text = dataTable.Rows[0]["CilostazolDose"].ToString();
|
||
checkBox_Warfarin.Checked = Convert.ToInt32(dataTable.Rows[0]["Warfarin"]) == 1 ? true : false;
|
||
textEdit_WarfarinDose.Text = dataTable.Rows[0]["WarfarinDose"].ToString();
|
||
checkBox_Dabigatran.Checked = Convert.ToInt32(dataTable.Rows[0]["Dabigatran"]) == 1 ? true : false;
|
||
textEdit_DabigatranDose.Text = dataTable.Rows[0]["DabigatranDose"].ToString();
|
||
checkBox_Rivaroxaban.Checked = Convert.ToInt32(dataTable.Rows[0]["Rivaroxaban"]) == 1 ? true : false;
|
||
textEdit_RivaroxabanDose.Text = dataTable.Rows[0]["RivaroxabanDose"].ToString();
|
||
checkBox_Apixaban.Checked = Convert.ToInt32(dataTable.Rows[0]["Apixaban"]) == 1 ? true : false;
|
||
textEdit_ApixabanDose.Text = dataTable.Rows[0]["ApixabanDose"].ToString();
|
||
checkBox_Aspirin.Checked = Convert.ToInt32(dataTable.Rows[0]["OtherDrugs"]) == 1 ? true : false;
|
||
textEdit_OtherDrugs.Text = dataTable.Rows[0]["OtherDrugsName"].ToString();
|
||
|
||
radioGroup_Hypotensor.SelectedIndex = dataTable.Rows[0]["Hypotensor"] + "" == "0" ? 0 : 1;
|
||
radioGroup_HypotensorTypeNumber.SelectedIndex = Convert.ToInt32(dataTable.Rows[0]["HypotensorType"]);
|
||
checkBox_HypotensorACEI.Checked = Convert.ToInt32(dataTable.Rows[0]["HypotensorACEI"]) == 1 ? true : false;
|
||
checkBox_HypotensorARB.Checked = Convert.ToInt32(dataTable.Rows[0]["HypotensorARB"]) == 1 ? true : false;
|
||
checkBox_HypotensorDiuretic.Checked = Convert.ToInt32(dataTable.Rows[0]["HypotensorDiuretic"]) == 1 ? true : false;
|
||
checkBox_HypotensorBetaBlockers.Checked = Convert.ToInt32(dataTable.Rows[0]["HypotensorBetaBlockers"]) == 1 ? true : false;
|
||
checkBox_CalciumAntagonists.Checked = Convert.ToInt32(dataTable.Rows[0]["CalciumAntagonists"]) == 1 ? true : false;
|
||
checkBox_HypotensorOther.Checked = Convert.ToInt32(dataTable.Rows[0]["HypotensorOther"]) == 1 ? true : false;
|
||
|
||
radioGroup_HypoglycemicDrugs.SelectedIndex = dataTable.Rows[0]["HypoglycemicDrugs"] + "" == "0" ? 0 : 1;
|
||
checkBox_Insulin.Checked = Convert.ToInt32(dataTable.Rows[0]["Insulin"]) == 1 ? true : false;
|
||
checkBox_Sulfonylureas.Checked = Convert.ToInt32(dataTable.Rows[0]["Sulfonylureas"]) == 1 ? true : false; ;
|
||
checkBox_Biguanides.Checked = Convert.ToInt32(dataTable.Rows[0]["Biguanides"]) == 1 ? true : false;
|
||
checkBox_αGlucosidaseInhibitors.Checked = Convert.ToInt32(dataTable.Rows[0]["GlucosidaseInhibitors"]) == 1 ? true : false;
|
||
checkBox_NonSulfonylureaTypeInsulinSecretingAgent.Checked = Convert.ToInt32(dataTable.Rows[0]["NonSulfonylureaTypeInsulinSecretingAgent"]) == 1 ? true : false;
|
||
checkBox_HypoglycemicOther.Checked = Convert.ToInt32(dataTable.Rows[0]["HypoglycemicOther"]) == 1 ? true : false;
|
||
|
||
radioGroup_LipidRegulatingMedicine.SelectedIndex = dataTable.Rows[0]["LipidRegulatingMedicine"] + "" == "0" ? 0 : 1;
|
||
checkBox_Statins.Checked = Convert.ToInt32(dataTable.Rows[0]["Statins"]) == 1 ? true : false;
|
||
checkBox_Fibrates.Checked = Convert.ToInt32(dataTable.Rows[0]["Fibrates"]) == 1 ? true : false;
|
||
checkBox_NicotinicAcidAndItsDerivatives.Checked = Convert.ToInt32(dataTable.Rows[0]["NicotinicAcidAndItsDerivatives"]) == 1 ? true : false;
|
||
checkBox_CholesterolAbsorptionInhibitors.Checked = Convert.ToInt32(dataTable.Rows[0]["CholesterolAbsorptionInhibitors"]) == 1 ? true : false;
|
||
checkBox_StatinsOther.Checked = Convert.ToInt32(dataTable.Rows[0]["StatinsOther"]) == 1 ? true : false;
|
||
|
||
#endregion
|
||
|
||
#region 评分
|
||
textEdit_MRS.Text = dataTable.Rows[0]["MRS"].ToString();
|
||
radioGroup_MRSScore.SelectedIndex = dataTable.Rows[0]["MRSScore"] + "" == "0" ? 0 : 1;
|
||
textEdit_NIHSS.Text = dataTable.Rows[0]["NIHSS"].ToString();
|
||
radioGroup_MRSScore.SelectedIndex = dataTable.Rows[0]["NIHSSScore"] + "" == "0" ? 0 : 1;
|
||
#endregion
|
||
|
||
#region 检查(12个月回访患者必填)
|
||
|
||
textEdit_Weight.Text = dataTable.Rows[0]["Weight"].ToString();
|
||
textEdit_InspectDiastolicPressure.Text = dataTable.Rows[0]["InspectSystolicPressure"].ToString();
|
||
radioGroup_ECG.SelectedIndex = dataTable.Rows[0]["ECG"] + "" == "0" ? 0 : 1;
|
||
checkBox_AtrialFibrillation.Checked = Convert.ToInt32(dataTable.Rows[0]["AtrialFibrillation"]) == 1 ? true : false;
|
||
checkBox_Fangpu.Checked = Convert.ToInt32(dataTable.Rows[0]["Fangpu"]) == 1 ? true : false;
|
||
checkBox_OtherTypes.Checked = Convert.ToInt32(dataTable.Rows[0]["OtherTypes"]) == 1 ? true : false;
|
||
checkBox_Normal.Checked = Convert.ToInt32(dataTable.Rows[0]["Normal"]) == 1 ? true : false;
|
||
textEdit_InspectFastingBloodGlucose.Text = dataTable.Rows[0]["InspectFastingBloodGlucose"].ToString();
|
||
textEdit_TwoHourPostprandialBloodGlucose.Text = dataTable.Rows[0]["TwoHourPostprandialBloodGlucose"].ToString();
|
||
textEdit_Triglyceride.Text = dataTable.Rows[0]["Triglyceride"].ToString();
|
||
textEdit_Cholesterol.Text = dataTable.Rows[0]["Cholesterol"].ToString();
|
||
textEdit_GlycosylatedHemoglobin.Text = dataTable.Rows[0]["GlycosylatedHemoglobin"].ToString();
|
||
textEdit_HighDensityLipoproteinCholesterol.Text = dataTable.Rows[0]["HighDensityLipoproteinCholesterol"].ToString();
|
||
textEdit_Homocysteine.Text = dataTable.Rows[0]["Homocysteine"].ToString();
|
||
#endregion
|
||
}
|
||
}
|
||
#endregion
|
||
}
|
||
catch (Exception ex)
|
||
{
|
||
PublicClass.WriteErrorLog(this.Text, "绑定详情:\r\n" + ex);
|
||
}
|
||
}
|
||
|
||
/// <summary>
|
||
/// 单击绑定详情
|
||
/// </summary>
|
||
/// <param name="sender"></param>
|
||
/// <param name="e"></param>
|
||
private void gridView_FollowUpVisit_RowClick(object sender, RowClickEventArgs e)
|
||
{
|
||
try
|
||
{
|
||
DataRow dataRow = gridView_FollowUpVisit.GetDataRow(e.RowHandle);
|
||
Cur_FollowUpDate = Convert.ToDateTime(dataRow["FollowUpDate"]);
|
||
Cur_FollUpGUID = dataRow["GUID"].ToString();
|
||
BindDataPrehospital(Cur_PatientID, Cur_FollowUpDate);
|
||
}
|
||
catch (Exception ex)
|
||
{
|
||
PublicClass.WriteErrorLog(this.Text, "单击绑定详情:\r\n" + ex);
|
||
}
|
||
}
|
||
|
||
/// <summary>
|
||
/// 新增按钮
|
||
/// </summary>
|
||
/// <param name="sender"></param>
|
||
/// <param name="e"></param>
|
||
private void simpleButton_Add_Click(object sender, EventArgs e)
|
||
{
|
||
UpdateFollowDetail();
|
||
gridView_FollowUpVisit.Columns["GUID"].Visible = false;
|
||
BindData();
|
||
BindList();
|
||
}
|
||
|
||
/// <summary>
|
||
/// 自定义显示
|
||
/// </summary>
|
||
/// <param name="sender"></param>
|
||
/// <param name="e"></param>
|
||
private void gridView_FollowUpVisit_CustomColumnDisplayText(object sender, DevExpress.XtraGrid.Views.Base.CustomColumnDisplayTextEventArgs e)
|
||
{
|
||
GridView View = sender as GridView;
|
||
//随访状态
|
||
if (e.Column.FieldName == "FollowUpStatus")
|
||
{
|
||
int value = PublicClass.ToInt32(e.Value, 0);
|
||
switch (value)
|
||
{
|
||
case 0:
|
||
e.DisplayText = "未随访";
|
||
break;
|
||
case 1:
|
||
e.DisplayText = "已随访";
|
||
break;
|
||
default:
|
||
break;
|
||
}
|
||
}
|
||
}
|
||
|
||
private void simpleButton_ViewDrugs_Click(object sender, EventArgs e)
|
||
{
|
||
Form form = PublicHelp.GetReflection("HL_FristAidPlatform_ChestPain", "Form_ChestPain_OutDrug", Cur_PatientID);
|
||
form.ShowDialog();
|
||
}
|
||
|
||
private void simpleButton_ViewOperation_Click(object sender, EventArgs e)
|
||
{
|
||
Form form = PublicHelp.GetReflection("HL_FristAidPlatform_ChestPain", "Form_ChestPain_CoronaryAngiographie", Cur_PatientID);
|
||
form.ShowDialog();
|
||
}
|
||
|
||
private void simpleButton_ECG_Click(object sender, EventArgs e)
|
||
{
|
||
MdiChildrenClose();
|
||
if (!ShowChildrenForm("HL_FristAidPlatform_DynamicElectrocardiogram"))
|
||
{
|
||
loading.ShowMessage("请稍候", "正在加载【" + label_name.Text + "】的心电监测...");
|
||
Form_DynamicElectrocardiogramDetailed form = new Form_DynamicElectrocardiogramDetailed(label_name.Text, label_age.Text, label_sex.Text, Cur_PatientDT.Rows[0]["WardshipId"] + "");
|
||
//form.WindowState = FormWindowState.Maximized;
|
||
//form.MdiParent = this;
|
||
form.Show();
|
||
loading.HideMessage();
|
||
}
|
||
}
|
||
#region 方法
|
||
/// <summary>
|
||
/// 防止打开多个窗体
|
||
/// </summary>
|
||
/// <param name="p_ChildrenFormText">窗体名称</param>
|
||
/// <returns></returns>
|
||
private bool ShowChildrenForm(string p_ChildrenFormText)
|
||
{
|
||
int i;
|
||
//依次检测当前窗体的子窗体
|
||
for (i = 0; i < MdiChildren.Length; i++)
|
||
{
|
||
//判断当前子窗体的Text属性值是否与传入的字符串值相同
|
||
if (MdiChildren[i].Name == p_ChildrenFormText)
|
||
{
|
||
//如果值相同则表示此子窗体为想要调用的子窗体,激活此子窗体并返回true值
|
||
MdiChildren[i].Activate();
|
||
return true;
|
||
}
|
||
}
|
||
//如果没有相同的值则表示要调用的子窗体还没有被打开,返回false值
|
||
return false;
|
||
}
|
||
public void MdiChildrenClose()
|
||
{
|
||
//关闭所有已经打开的子窗体
|
||
if (MdiChildren.Length > 0)
|
||
{
|
||
foreach (Form myForm in this.MdiChildren)
|
||
{
|
||
myForm.Close();
|
||
}
|
||
}
|
||
}
|
||
#endregion
|
||
|
||
private void simpleButton_EMR_Click(object sender, EventArgs e)
|
||
{
|
||
loading.ShowMessage();
|
||
Form form = PublicHelp.GetReflection("HL_FristAidPlatform_ChestPain", "Form_ChestPain_Main", Cur_PatientID, Information.Hospital.GUID);
|
||
form.MdiParent = this.MdiParent;
|
||
form.Show();
|
||
loading.HideMessage();
|
||
}
|
||
|
||
|
||
|
||
/// <summary>
|
||
/// 修改随访详情
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
private bool UpdateFollowDetail()
|
||
{
|
||
try
|
||
{
|
||
#region 保存
|
||
string url = string.Empty;
|
||
List<T_Service_FollowUp_ApoplexyDTO> patientDTOs = new List<T_Service_FollowUp_ApoplexyDTO>();
|
||
T_Service_FollowUp_ApoplexyDTO followUp_ApoplexyDTO = new T_Service_FollowUp_ApoplexyDTO();
|
||
ClientFactory<T_Service_FollowUp_ApoplexyDTO> httpClient = new HttpClientFactory<T_Service_FollowUp_ApoplexyDTO>();
|
||
Client<T_Service_FollowUp_ApoplexyDTO> client = httpClient.VisitFactory();
|
||
url = "api/service/T_Service_FollowUp_Apoplexy/UpdateFollowUp_Apoplexy";
|
||
followUp_ApoplexyDTO.PatientGuid = Cur_PatientID;
|
||
followUp_ApoplexyDTO.FollowUpDate = Cur_FollowUpDate;
|
||
|
||
#region 随访基本信息
|
||
if (dateEdit_FollowUpDate.TimeValue != "")
|
||
{
|
||
followUp_ApoplexyDTO.ActualFollowUpDate = dateEdit_FollowUpDate.TimeValue.ToString();
|
||
}
|
||
else
|
||
{
|
||
followUp_ApoplexyDTO.ActualFollowUpDate = null;
|
||
}
|
||
if (dateEdit_FollowUpDate.TimeValue != "" && radioGroup_FollowUpType.SelectedIndex == -1)
|
||
{
|
||
MessageBox.Show("请选择一个随访类型");
|
||
}
|
||
followUp_ApoplexyDTO.FollowUpType = radioGroup_FollowUpType.SelectedIndex.ToString();
|
||
followUp_ApoplexyDTO.IsLost = radioGroup_IsLostVisit.SelectedIndex.ToString();
|
||
if (radioGroup_IsLostVisit.SelectedIndex == 1 && radioGroup_LostReasons.SelectedIndex == -1)
|
||
{
|
||
MessageBox.Show("请选择一个失访类型");
|
||
}
|
||
followUp_ApoplexyDTO.LostReasons = Convert.ToInt32(radioGroup_LostReasons.SelectedIndex);
|
||
followUp_ApoplexyDTO.IsDeath = radioGroup_IsDeath.SelectedIndex.ToString();
|
||
followUp_ApoplexyDTO.DeathReasons = radioGroup_DeathReasons.SelectedIndex.ToString();
|
||
if (timeControl_DeathTime.TimeValue == "")
|
||
{
|
||
followUp_ApoplexyDTO.DeathTime = null;
|
||
}
|
||
else
|
||
{
|
||
|
||
followUp_ApoplexyDTO.DeathTime = timeControl_DeathTime.TimeValue;
|
||
}
|
||
|
||
#endregion
|
||
|
||
#region 随访期间基本情况
|
||
followUp_ApoplexyDTO.OutpatientNumber = textEdit_OutpatientNumber.Text;
|
||
followUp_ApoplexyDTO.EmergencyNumber = Convert.ToInt32(textEdit_EmergencyNumber.Text);
|
||
followUp_ApoplexyDTO.HospitalizationNumber = Convert.ToInt32(textEdit_HospitalizationNumber.Text);
|
||
followUp_ApoplexyDTO.AverageMonthlyOutpatientExpenses = Convert.ToInt32(textEdit_AverageMonthlyOutpatientExpenses.Text);
|
||
int nursing = 0;
|
||
if (checkBox_NursingFamilyMembers.Checked)
|
||
{
|
||
nursing = 1;
|
||
}
|
||
else if (checkBox_NursingParamedic.Checked)
|
||
{
|
||
nursing = 2;
|
||
}
|
||
else if (checkBox__NursingNanny.Checked)
|
||
{
|
||
nursing = 3;
|
||
}
|
||
else if (checkBox_NursingSelfCare.Checked)
|
||
{
|
||
nursing = 4;
|
||
}
|
||
else if (checkBox_NursingOther.Checked)
|
||
{
|
||
nursing = 5;
|
||
}
|
||
followUp_ApoplexyDTO.Nursing = nursing;
|
||
if (radioGroup_WorkSituation.SelectedIndex != -1)
|
||
{
|
||
followUp_ApoplexyDTO.WorkSituation = radioGroup_WorkSituation.SelectedIndex.ToString();
|
||
}
|
||
else
|
||
{
|
||
followUp_ApoplexyDTO.WorkSituation = "";
|
||
}
|
||
|
||
checkBox_IsNoneAbove.Checked = false;
|
||
#endregion
|
||
|
||
#region 随访期间新发事件
|
||
//1:选中 0:未选中
|
||
|
||
string apoplexyType = "-1";
|
||
if (checkBox_CerebralInfarction.Checked)
|
||
{
|
||
apoplexyType = "0";
|
||
}
|
||
else if (checkBox_CerebralHemorrhage.Checked)
|
||
{
|
||
apoplexyType = "1";
|
||
}
|
||
else if (checkBox_SubarachnoidHemorrhage.Checked)
|
||
{
|
||
apoplexyType = "2";
|
||
}
|
||
else if (checkBox_OtherUnclassifiedStroke.Checked)
|
||
{
|
||
apoplexyType = "3";
|
||
}
|
||
|
||
followUp_ApoplexyDTO.ApoplexyType = apoplexyType;
|
||
if (apoplexyType != "-1")
|
||
{
|
||
followUp_ApoplexyDTO.IsApoplexy = "1";
|
||
}
|
||
else
|
||
{
|
||
followUp_ApoplexyDTO.IsApoplexy = "0";
|
||
}
|
||
if (timeControl_ApoplexyTime.TimeValue == "")
|
||
{
|
||
followUp_ApoplexyDTO.ApoplexyTime = null;
|
||
}
|
||
//ITA
|
||
if (timeControl_TIATime.TimeValue == "")
|
||
{
|
||
followUp_ApoplexyDTO.TIATime = null;
|
||
followUp_ApoplexyDTO.IsTIA = "0";
|
||
}
|
||
else
|
||
{
|
||
followUp_ApoplexyDTO.TIATime = timeControl_TIATime.TimeValue;
|
||
followUp_ApoplexyDTO.IsTIA = "1";
|
||
}
|
||
//心肌梗死
|
||
if (timeControl_MiocardialInfarctionTime.TimeValue == "")
|
||
{
|
||
followUp_ApoplexyDTO.MiocardialInfarctionTime = null;
|
||
followUp_ApoplexyDTO.IsMiocardialInfarction = "0";
|
||
}
|
||
else
|
||
{
|
||
followUp_ApoplexyDTO.MiocardialInfarctionTime = timeControl_MiocardialInfarctionTime.TimeValue;
|
||
followUp_ApoplexyDTO.IsMiocardialInfarction = "1";
|
||
}
|
||
//不稳定心绞痛
|
||
if (timeControl_UnstableAnginaTime.TimeValue == "")
|
||
{
|
||
followUp_ApoplexyDTO.UnstableAnginaTime = null;
|
||
followUp_ApoplexyDTO.IsUnstableAngina = "0";
|
||
}
|
||
else
|
||
{
|
||
followUp_ApoplexyDTO.UnstableAnginaTime = timeControl_UnstableAnginaTime.TimeValue;
|
||
followUp_ApoplexyDTO.IsUnstableAngina = "1";
|
||
}
|
||
//心力衰竭
|
||
if (timeControl_HeartFailureTime.TimeValue == "")
|
||
{
|
||
followUp_ApoplexyDTO.HeartFailureTime = null;
|
||
followUp_ApoplexyDTO.IsHeartFailure = "0";
|
||
|
||
}
|
||
else
|
||
{
|
||
followUp_ApoplexyDTO.HeartFailureTime = timeControl_HeartFailureTime.TimeValue;
|
||
followUp_ApoplexyDTO.IsHeartFailure = "1";
|
||
}
|
||
//肺栓塞
|
||
if (timeControl_PulmonaryEmbolismTime.TimeValue == "")
|
||
{
|
||
followUp_ApoplexyDTO.PulmonaryEmbolismTime = null;
|
||
followUp_ApoplexyDTO.IsPulmonaryEmbolism = "0";
|
||
|
||
}
|
||
else
|
||
{
|
||
followUp_ApoplexyDTO.PulmonaryEmbolismTime = timeControl_PulmonaryEmbolismTime.TimeValue;
|
||
followUp_ApoplexyDTO.IsPulmonaryEmbolism = "1";
|
||
}
|
||
//PVD
|
||
if (timeControl_PVDTime.TimeValue == "")
|
||
{
|
||
followUp_ApoplexyDTO.PVDTime = null;
|
||
followUp_ApoplexyDTO.IsPVD = "0";
|
||
}
|
||
else
|
||
{
|
||
followUp_ApoplexyDTO.PVDTime = timeControl_PVDTime.TimeValue;
|
||
followUp_ApoplexyDTO.IsPVD = "1";
|
||
}
|
||
followUp_ApoplexyDTO.IsOther = checkBox_IsOther.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.OtherText = textEdit_OtherText.Text;
|
||
followUp_ApoplexyDTO.IsNoneAbove = checkBox_IsNoneAbove.Checked ? "1" : "0";
|
||
|
||
followUp_ApoplexyDTO.IsHypertension = checkBox_IsHypertension.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.IsDiabetes = checkBox_IsDiabetes.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.IsDyslipidemia = checkBox_IsDyslipidemia.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.IsAtrialFibrillation = checkBox_IsAtrialFibrillation.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.IsNone = checkBox_IsNone.Checked ? "1" : "0";
|
||
|
||
#endregion
|
||
|
||
#region 随访期间生活方式
|
||
followUp_ApoplexyDTO.Smoking = radioGroup_Smoking.SelectedIndex.ToString();
|
||
followUp_ApoplexyDTO.Drinking = radioGroup_Drinking.SelectedIndex.ToString();
|
||
followUp_ApoplexyDTO.Motion = radioGroup_Motion.SelectedIndex.ToString();
|
||
#endregion
|
||
|
||
#region 随访期间危险因素控制情况
|
||
followUp_ApoplexyDTO.BloodPressureMeasurementFrequency = radioGroup_BloodPressureMeasurementFrequency.SelectedIndex.ToString();
|
||
followUp_ApoplexyDTO.SystolicPressure = radioGroup_SystolicPressure.SelectedIndex.ToString();
|
||
followUp_ApoplexyDTO.DiastolicPressure = radioGroup_DiastolicPressure.SelectedIndex.ToString();
|
||
followUp_ApoplexyDTO.BloodGlucoseMeasurement = radioGroup_BloodGlucoseMeasurement.SelectedIndex.ToString();
|
||
followUp_ApoplexyDTO.FastingBloodGlucose = radioGroup_FastingBloodGlucose.SelectedIndex.ToString();
|
||
followUp_ApoplexyDTO.PostprandialBloodGlucose = radioGroup_PostprandialBloodGlucose.SelectedIndex.ToString();
|
||
#endregion
|
||
|
||
#region 随访期间用药情况
|
||
|
||
followUp_ApoplexyDTO.AntithromboticDrugs = radioGroup_AntithromboticDrugs.SelectedIndex.ToString();
|
||
followUp_ApoplexyDTO.Aspirin = checkBox_Aspirin.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.AspirinDose = textEdit_AspirinDose.Text;
|
||
followUp_ApoplexyDTO.Clopidogrel = checkBox_Clopidogrel.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.ClopidogrelDose = textEdit_ClopidogrelDose.Text;
|
||
followUp_ApoplexyDTO.Ozagre = checkBox_Ozagre.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.OzagreDose = textEdit_OzagreDose.Text;
|
||
followUp_ApoplexyDTO.Dipyridamole = checkBox_Dipyridamole.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.DipyridamoleDose = textEdit_DipyridamoleDose.Text;
|
||
followUp_ApoplexyDTO.Ceclopyridine = checkBox_Ceclopyridine.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.CeclopyridineDose = textEdit_CeclopyridineDose.Text;
|
||
followUp_ApoplexyDTO.Cilostazol = checkBox_Cilostazol.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.CilostazolDose = textEdit_CilostazolDose.Text;
|
||
followUp_ApoplexyDTO.Warfarin = checkBox_Warfarin.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.WarfarinDose = textEdit_WarfarinDose.Text;
|
||
followUp_ApoplexyDTO.Dabigatran = checkBox_Dabigatran.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.DabigatranDose = textEdit_DabigatranDose.Text;
|
||
followUp_ApoplexyDTO.Rivaroxaban = checkBox_Rivaroxaban.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.RivaroxabanDose = textEdit_RivaroxabanDose.Text;
|
||
followUp_ApoplexyDTO.Apixaban = checkBox_Apixaban.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.ApixabanDose = textEdit_ApixabanDose.Text;
|
||
followUp_ApoplexyDTO.OtherDrugs = checkBox_Aspirin.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.OtherDrugsName = textEdit_OtherDrugs.Text;
|
||
|
||
followUp_ApoplexyDTO.Hypotensor = radioGroup_Hypotensor.SelectedIndex.ToString();
|
||
followUp_ApoplexyDTO.HypotensorType = radioGroup_HypotensorTypeNumber.SelectedIndex.ToString();
|
||
followUp_ApoplexyDTO.HypotensorACEI = checkBox_HypotensorACEI.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.HypotensorARB = checkBox_HypotensorARB.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.HypotensorDiuretic = checkBox_HypotensorDiuretic.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.HypotensorBetaBlockers = checkBox_HypotensorBetaBlockers.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.CalciumAntagonists = checkBox_CalciumAntagonists.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.HypotensorOther = checkBox_HypotensorOther.Checked ? "1" : "0";
|
||
|
||
followUp_ApoplexyDTO.HypoglycemicDrugs = radioGroup_HypoglycemicDrugs.SelectedIndex.ToString();
|
||
followUp_ApoplexyDTO.Insulin = checkBox_Insulin.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.Sulfonylureas = checkBox_Sulfonylureas.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.Biguanides = checkBox_Biguanides.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.GlucosidaseInhibitors = checkBox_αGlucosidaseInhibitors.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.NonSulfonylureaTypeInsulinSecretingAgent = checkBox_NonSulfonylureaTypeInsulinSecretingAgent.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.HypoglycemicOther = checkBox_HypoglycemicOther.Checked ? "1" : "0";
|
||
|
||
followUp_ApoplexyDTO.LipidRegulatingMedicine = radioGroup_LipidRegulatingMedicine.SelectedIndex.ToString();
|
||
followUp_ApoplexyDTO.Statins = checkBox_Statins.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.Fibrates = checkBox_Fibrates.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.NicotinicAcidAndItsDerivatives = checkBox_NicotinicAcidAndItsDerivatives.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.CholesterolAbsorptionInhibitors = checkBox_CholesterolAbsorptionInhibitors.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.StatinsOther = checkBox_StatinsOther.Checked ? "1" : "0";
|
||
|
||
#endregion
|
||
|
||
#region 评分
|
||
followUp_ApoplexyDTO.MRS = textEdit_MRS.Text;
|
||
followUp_ApoplexyDTO.MRSScore = followUp_ApoplexyDTO.MRS != "" ? followUp_ApoplexyDTO.MRSScore = "1" : followUp_ApoplexyDTO.MRSScore = "0";
|
||
followUp_ApoplexyDTO.NIHSS = textEdit_NIHSS.Text;
|
||
followUp_ApoplexyDTO.NIHSSScore = followUp_ApoplexyDTO.NIHSS != "" ? followUp_ApoplexyDTO.NIHSSScore = "1" : followUp_ApoplexyDTO.NIHSSScore = "0";
|
||
#endregion
|
||
|
||
#region 检查(12个月回访患者必填)
|
||
|
||
followUp_ApoplexyDTO.Weight = textEdit_Weight.Text;
|
||
followUp_ApoplexyDTO.InspectSystolicPressure = textEdit_InspectDiastolicPressure.Text;
|
||
followUp_ApoplexyDTO.ECG = radioGroup_ECG.SelectedIndex.ToString();
|
||
followUp_ApoplexyDTO.AtrialFibrillation = checkBox_AtrialFibrillation.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.Fangpu = checkBox_Fangpu.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.OtherTypes = checkBox_OtherTypes.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.Normal = checkBox_Normal.Checked ? "1" : "0";
|
||
followUp_ApoplexyDTO.InspectFastingBloodGlucose = textEdit_InspectFastingBloodGlucose.Text;
|
||
followUp_ApoplexyDTO.TwoHourPostprandialBloodGlucose = textEdit_TwoHourPostprandialBloodGlucose.Text;
|
||
followUp_ApoplexyDTO.Triglyceride = textEdit_Triglyceride.Text;
|
||
followUp_ApoplexyDTO.Cholesterol = textEdit_Cholesterol.Text;
|
||
followUp_ApoplexyDTO.GlycosylatedHemoglobin = textEdit_GlycosylatedHemoglobin.Text;
|
||
followUp_ApoplexyDTO.HighDensityLipoproteinCholesterol = textEdit_HighDensityLipoproteinCholesterol.Text;
|
||
followUp_ApoplexyDTO.Homocysteine = textEdit_Homocysteine.Text;
|
||
#endregion
|
||
followUp_ApoplexyDTO.FollowUpStatus = "1";
|
||
patientDTOs.Add(followUp_ApoplexyDTO);
|
||
//访问
|
||
ListEntity<T_Service_FollowUp_ApoplexyDTO> t = client.Post(url, patientDTOs);
|
||
DataTable dataTable = new DataTable();
|
||
string followUpUrl = string.Empty;
|
||
|
||
|
||
List<T_Service_FollowUpDTO> list = new List<T_Service_FollowUpDTO>();
|
||
T_Service_FollowUpDTO followDTO = new T_Service_FollowUpDTO();
|
||
ClientFactory<T_Service_FollowUpDTO> httpClientofFollow = new HttpClientFactory<T_Service_FollowUpDTO>();
|
||
Client<T_Service_FollowUpDTO> clientOfFollow = httpClientofFollow.VisitFactory();
|
||
if (!string.IsNullOrEmpty(Cur_FollUpGUID))
|
||
{
|
||
dataTable = DBHelpClass.GetDataRow("api/service/T_Service_FollowUp/" + Cur_FollUpGUID + "");
|
||
if (dataTable.Rows.Count > 0)
|
||
{
|
||
followUpUrl = "api/service/T_Service_FollowUp/Update";
|
||
followDTO.ID = Int32.Parse(dataTable.Rows[0]["ID"].ToString());
|
||
followDTO.GUID = dataTable.Rows[0]["GUID"].ToString();
|
||
followDTO.PatientGuid = dataTable.Rows[0]["PatientGuid"].ToString();
|
||
followDTO.FollowUpDate = dataTable.Rows[0]["FollowUpDate"].ToString();
|
||
if (radioGroup_FollowUpType.SelectedIndex >= 0)
|
||
{
|
||
followDTO.FollowUpType = radioGroup_FollowUpType.SelectedIndex.ToString();
|
||
}
|
||
else
|
||
{
|
||
followDTO.FollowUpType = "";
|
||
}
|
||
|
||
followDTO.AdmittingDiagnosis = dataTable.Rows[0]["AdmittingDiagnosis"].ToString();
|
||
followDTO.DischargeDiagnosis = dataTable.Rows[0]["DischargeDiagnosis"].ToString();
|
||
followDTO.HospitalOutcome = dataTable.Rows[0]["HospitalOutcome"].ToString();
|
||
followDTO.DrugRegimen = dataTable.Rows[0]["DrugRegimen"].ToString();
|
||
followDTO.HealthPrescription = dataTable.Rows[0]["HealthPrescription"].ToString();
|
||
followDTO.RehabilitationProgram = dataTable.Rows[0]["RehabilitationProgram"].ToString();
|
||
followDTO.InspectionResult = dataTable.Rows[0]["InspectionResult"].ToString();
|
||
followDTO.CheckResult = dataTable.Rows[0]["CheckResult"].ToString();
|
||
followDTO.FollowUpResult = "1";
|
||
followDTO.FollowUpDoctor = Information.User.ID.ToString();
|
||
followDTO.DeleteFlag = Convert.ToInt32(dataTable.Rows[0]["DeleteFlag"]);
|
||
followDTO.FollowUpStatus = "1";
|
||
}
|
||
list.Add(followDTO);
|
||
ListEntity<T_Service_FollowUpDTO> follow = clientOfFollow.Post(followUpUrl, list);
|
||
}
|
||
if (t.Success == true)
|
||
{
|
||
MessageBox.Show("操作成功");
|
||
}
|
||
|
||
return t.Success;
|
||
#endregion
|
||
}
|
||
catch (Exception ex)
|
||
{
|
||
PublicClass.WriteErrorLog(this.Text, "保存:\r\n" + ex);
|
||
return false;
|
||
}
|
||
}
|
||
|
||
/// 以上均无
|
||
private void checkBox_IsNoneAbove_CheckStateChanged(object sender, EventArgs e)
|
||
{
|
||
if (checkBox_IsNoneAbove.Checked == true)
|
||
{
|
||
checkBox_IsApoplexy.Checked = false;
|
||
checkBox_CerebralInfarction.Checked = false;
|
||
checkBox_SubarachnoidHemorrhage.Checked = false;
|
||
checkBox_SubarachnoidHemorrhage.Checked = false;
|
||
checkBox_OtherUnclassifiedStroke.Checked = false;
|
||
timeControl_ApoplexyTime.TimeValue = null;
|
||
checkBox_IsTIA.Checked = false;
|
||
timeControl_TIATime.TimeValue = null;
|
||
checkBox_IsMiocardialInfarction.Checked = false;
|
||
timeControl_MiocardialInfarctionTime.TimeValue = null;
|
||
checkBox_IsUnstableAngina.Checked = false;
|
||
timeControl_UnstableAnginaTime.TimeValue = null;
|
||
checkBox_IsHeartFailure.Checked = false;
|
||
timeControl_HeartFailureTime.TimeValue = null;
|
||
checkBox_IsPulmonaryEmbolism.Checked = false;
|
||
timeControl_PulmonaryEmbolismTime.TimeValue = null;
|
||
checkBox_IsPVD.Checked = false;
|
||
timeControl_PVDTime.TimeValue = null;
|
||
checkBox_IsOther.Checked = false;
|
||
textEdit_OtherText.Text = null;
|
||
}
|
||
else
|
||
{
|
||
checkBox_IsNoneAbove.Checked = false;
|
||
}
|
||
}
|
||
|
||
/// 以上均无
|
||
private void checkBox_IsNone_CheckStateChanged(object sender, EventArgs e)
|
||
{
|
||
if (checkBox_IsNone.Checked == true)
|
||
{
|
||
checkBox_IsHypertension.Checked = false;
|
||
checkBox_IsDiabetes.Checked = false;
|
||
checkBox_IsDyslipidemia.Checked = false;
|
||
checkBox_IsAtrialFibrillation.Checked = false;
|
||
}
|
||
else
|
||
{
|
||
checkBox_IsNone.Checked = false;
|
||
}
|
||
}
|
||
|
||
//是否失访
|
||
private void radioGroup_IsLostVisit_SelectedIndexChanged(object sender, EventArgs e)
|
||
{
|
||
if (radioGroup_IsLostVisit.SelectedIndex == 0)//否 失访原因不可选
|
||
{
|
||
radioGroup_LostReasons.Enabled = false;
|
||
radioGroup_LostReasons.SelectedIndex = -1;
|
||
}
|
||
else
|
||
{
|
||
radioGroup_LostReasons.Enabled = true;
|
||
}
|
||
}
|
||
|
||
//是否死亡
|
||
private void radioGroup_IsDeath_SelectedIndexChanged(object sender, EventArgs e)
|
||
{
|
||
if (radioGroup_IsDeath.SelectedIndex == 0)//否 死亡原因不可选
|
||
{
|
||
radioGroup_DeathReasons.Enabled = false;
|
||
timeControl_DeathTime.Enabled = false;
|
||
radioGroup_DeathReasons.SelectedIndex = -1;
|
||
timeControl_DeathTime.TimeValue = "";
|
||
}
|
||
else
|
||
{
|
||
radioGroup_DeathReasons.Enabled = true;
|
||
timeControl_DeathTime.Enabled = true;
|
||
}
|
||
}
|
||
|
||
//是否使用抗栓药物
|
||
private void radioGroup_AntithromboticDrugs_SelectedIndexChanged(object sender, EventArgs e)
|
||
{
|
||
if (radioGroup_AntithromboticDrugs.SelectedIndex == 0)
|
||
{
|
||
checkBox_Aspirin.Enabled = false;
|
||
textEdit_AspirinDose.Enabled = false;
|
||
checkBox_Clopidogrel.Enabled = false;
|
||
textEdit_ClopidogrelDose.Enabled = false;
|
||
checkBox_Ozagre.Enabled = false;
|
||
textEdit_OzagreDose.Enabled = false;
|
||
checkBox_Dipyridamole.Enabled = false;
|
||
textEdit_DipyridamoleDose.Enabled = false;
|
||
checkBox_Ceclopyridine.Enabled = false;
|
||
textEdit_CeclopyridineDose.Enabled = false;
|
||
checkBox_Cilostazol.Enabled = false;
|
||
textEdit_CilostazolDose.Enabled = false;
|
||
checkBox_Warfarin.Enabled = false;
|
||
textEdit_WarfarinDose.Enabled = false;
|
||
checkBox_Dabigatran.Enabled = false;
|
||
textEdit_DabigatranDose.Enabled = false;
|
||
checkBox_Rivaroxaban.Enabled = false;
|
||
textEdit_RivaroxabanDose.Enabled = false; ;
|
||
checkBox_Apixaban.Enabled = false;
|
||
textEdit_ApixabanDose.Enabled = false;
|
||
checkBox_Aspirin.Enabled = false;
|
||
textEdit_OtherDrugs.Enabled = false;
|
||
textEdit_AspirinDose.Text = "";
|
||
textEdit_ClopidogrelDose.Text = "";
|
||
textEdit_ClopidogrelDose.Text = "";
|
||
textEdit_OzagreDose.Text = "";
|
||
textEdit_DipyridamoleDose.Text = "";
|
||
textEdit_CeclopyridineDose.Text = "";
|
||
textEdit_CilostazolDose.Text = "";
|
||
textEdit_WarfarinDose.Text = "";
|
||
textEdit_DabigatranDose.Text = "";
|
||
textEdit_RivaroxabanDose.Text = "";
|
||
textEdit_ApixabanDose.Text = "";
|
||
textEdit_OtherDrugs.Text = "";
|
||
}
|
||
else
|
||
{
|
||
checkBox_Aspirin.Enabled = true;
|
||
textEdit_AspirinDose.Enabled = true;
|
||
checkBox_Clopidogrel.Enabled = true;
|
||
textEdit_ClopidogrelDose.Enabled = true;
|
||
checkBox_Ozagre.Enabled = true;
|
||
textEdit_OzagreDose.Enabled = true;
|
||
checkBox_Dipyridamole.Enabled = true;
|
||
textEdit_DipyridamoleDose.Enabled = true;
|
||
checkBox_Ceclopyridine.Enabled = true;
|
||
textEdit_CeclopyridineDose.Enabled = true;
|
||
checkBox_Cilostazol.Enabled = true;
|
||
textEdit_CilostazolDose.Enabled = true;
|
||
checkBox_Warfarin.Enabled = true;
|
||
textEdit_WarfarinDose.Enabled = true;
|
||
checkBox_Dabigatran.Enabled = true;
|
||
textEdit_DabigatranDose.Enabled = true;
|
||
checkBox_Rivaroxaban.Enabled = true;
|
||
textEdit_RivaroxabanDose.Enabled = true; ;
|
||
checkBox_Apixaban.Enabled = true;
|
||
textEdit_ApixabanDose.Enabled = true;
|
||
checkBox_Aspirin.Enabled = true;
|
||
textEdit_OtherDrugs.Enabled = true;
|
||
}
|
||
}
|
||
|
||
//是否服用降压药
|
||
private void radioGroup_Hypotensor_SelectedIndexChanged(object sender, EventArgs e)
|
||
{
|
||
if (radioGroup_Hypotensor.SelectedIndex == 0)
|
||
{
|
||
radioGroup_HypotensorTypeNumber.Enabled = false;
|
||
radioGroup_HypotensorTypeNumber.SelectedIndex = -1;
|
||
checkBox_HypotensorACEI.Enabled = false;
|
||
checkBox_HypotensorACEI.Checked = false;
|
||
checkBox_HypotensorARB.Enabled = false;
|
||
checkBox_HypotensorARB.Checked = false;
|
||
checkBox_HypotensorDiuretic.Enabled = false;
|
||
checkBox_HypotensorDiuretic.Checked = false;
|
||
checkBox_HypotensorBetaBlockers.Enabled = false;
|
||
checkBox_HypotensorBetaBlockers.Checked = false;
|
||
checkBox_CalciumAntagonists.Enabled = false;
|
||
checkBox_CalciumAntagonists.Checked = false;
|
||
checkBox_HypotensorOther.Enabled = false;
|
||
checkBox_HypotensorOther.Checked = false;
|
||
}
|
||
else
|
||
{
|
||
radioGroup_HypotensorTypeNumber.Enabled = true;
|
||
checkBox_HypotensorACEI.Enabled = true;
|
||
checkBox_HypotensorARB.Enabled = true;
|
||
checkBox_HypotensorDiuretic.Enabled = true;
|
||
checkBox_HypotensorBetaBlockers.Enabled = true; ;
|
||
checkBox_CalciumAntagonists.Enabled = true;
|
||
checkBox_HypotensorOther.Enabled = true;
|
||
}
|
||
}
|
||
|
||
//是否服用降糖药
|
||
private void radioGroup_HypoglycemicDrugs_SelectedIndexChanged(object sender, EventArgs e)
|
||
{
|
||
if (radioGroup_HypoglycemicDrugs.SelectedIndex == 0)
|
||
{
|
||
checkBox_Insulin.Enabled = false;
|
||
checkBox_Sulfonylureas.Enabled = false;
|
||
checkBox_Biguanides.Enabled = false;
|
||
checkBox_αGlucosidaseInhibitors.Enabled = false;
|
||
checkBox_NonSulfonylureaTypeInsulinSecretingAgent.Enabled = false; ;
|
||
checkBox_HypoglycemicOther.Enabled = false;
|
||
}
|
||
else
|
||
{
|
||
checkBox_Insulin.Enabled = true;
|
||
checkBox_Sulfonylureas.Enabled = true;
|
||
checkBox_Biguanides.Enabled = true;
|
||
checkBox_αGlucosidaseInhibitors.Enabled = true;
|
||
checkBox_NonSulfonylureaTypeInsulinSecretingAgent.Enabled = true; ;
|
||
checkBox_HypoglycemicOther.Enabled = true;
|
||
}
|
||
}
|
||
|
||
//是否服用调脂药
|
||
private void radioGroup_LipidRegulatingMedicine_SelectedIndexChanged(object sender, EventArgs e)
|
||
{
|
||
if (radioGroup_LipidRegulatingMedicine.SelectedIndex == 0)
|
||
{
|
||
checkBox_Statins.Enabled = false;
|
||
checkBox_Fibrates.Enabled = false;
|
||
checkBox_NicotinicAcidAndItsDerivatives.Enabled = false;
|
||
checkBox_CholesterolAbsorptionInhibitors.Enabled = false;
|
||
checkBox_StatinsOther.Enabled = false;
|
||
}
|
||
else
|
||
{
|
||
checkBox_Statins.Enabled = true;
|
||
checkBox_Fibrates.Enabled = true;
|
||
checkBox_NicotinicAcidAndItsDerivatives.Enabled = true;
|
||
checkBox_CholesterolAbsorptionInhibitors.Enabled = true;
|
||
checkBox_StatinsOther.Enabled = true;
|
||
}
|
||
}
|
||
|
||
//心电图是否已查询
|
||
private void radioGroup_ECG_SelectedIndexChanged(object sender, EventArgs e)
|
||
{
|
||
if (radioGroup_ECG.SelectedIndex == 0)
|
||
{
|
||
checkBox_AtrialFibrillation.Enabled = false;
|
||
checkBox_Fangpu.Enabled = false;
|
||
checkBox_OtherTypes.Enabled = false;
|
||
checkBox_Normal.Enabled = false;
|
||
}
|
||
else
|
||
{
|
||
checkBox_AtrialFibrillation.Enabled = true;
|
||
checkBox_Fangpu.Enabled = true;
|
||
checkBox_OtherTypes.Enabled = true;
|
||
checkBox_Normal.Enabled = true;
|
||
}
|
||
}
|
||
|
||
private void textEdit_MRS_EditValueChanged(object sender, EventArgs e)
|
||
{
|
||
if (textEdit_MRS.Text != "")
|
||
{
|
||
radioGroup_MRSScore.SelectedIndex = 1;
|
||
}
|
||
}
|
||
|
||
private void textEdit_NIHSS_EditValueChanged(object sender, EventArgs e)
|
||
{
|
||
|
||
if (textEdit_NIHSS.Text != "")
|
||
{
|
||
radioGroup_NIHSSScore.SelectedIndex = 1;
|
||
}
|
||
}
|
||
|
||
|
||
}
|
||
}
|