1091 lines
43 KiB
C#
1091 lines
43 KiB
C#
using DevExpress.XtraEditors;
|
|
using HL_FristAidPlatform_DTO;
|
|
using HL_FristAidPlatform_Public;
|
|
using Newtonsoft.Json;
|
|
using Newtonsoft.Json.Linq;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel;
|
|
using System.Data;
|
|
using System.Drawing;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace HL_FristAidPlatform_Apoplexy
|
|
{
|
|
public partial class UserControl_NDACI : UserControl
|
|
{
|
|
string patientGUID = "";
|
|
private PatientNIHSSDTO nihss1;
|
|
private PatientNIHSSDTO nihss2;
|
|
private PatientNIHSSDTO nihss3;
|
|
private PatientNIHSSDTO nihss4;
|
|
private PatientNIHSSDTO nihss5;
|
|
private PatientNIHSSDTO nihss6;
|
|
private PatientNIHSSDTO nihss7;
|
|
private PatientNIHSSDTO nihss8;
|
|
|
|
public UserControl_NDACI(string _patientGUID)
|
|
{
|
|
patientGUID = _patientGUID;
|
|
InitializeComponent();
|
|
}
|
|
|
|
private void radioGroup1_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
if (radioGroup1.SelectedIndex == 1)
|
|
{
|
|
labelControl4.Visible = true;
|
|
timeControl2.Visible = true;
|
|
GetInMintus();
|
|
GetInMintus1();
|
|
GetInMintus2();
|
|
}
|
|
else
|
|
{
|
|
labelControl4.Visible = false;
|
|
timeControl2.Visible = false;
|
|
GetInMintus();
|
|
GetInMintus1();
|
|
GetInMintus2();
|
|
}
|
|
}
|
|
|
|
private void radioGroup8_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
if (radioGroup8.EditValue + "" == "1")
|
|
{
|
|
labelControl61.Visible = true;
|
|
labelControl14.Visible = true;
|
|
textBox15.Visible = true;
|
|
}
|
|
else
|
|
{
|
|
labelControl61.Visible = false;
|
|
labelControl14.Visible = false;
|
|
textBox15.Visible = false;
|
|
}
|
|
if (radioGroup8.EditValue + "" == "2")
|
|
{
|
|
labelControl63.Visible = true;
|
|
labelControl62.Visible = true;
|
|
textBox16.Visible = true;
|
|
}
|
|
else
|
|
{
|
|
labelControl63.Visible = false;
|
|
labelControl62.Visible = false;
|
|
textBox16.Visible = false;
|
|
}
|
|
if (radioGroup8.EditValue + "" == "9")
|
|
{
|
|
labelControl64.Visible = true;
|
|
textBox17.Visible = true;
|
|
}
|
|
else
|
|
{
|
|
labelControl64.Visible = false;
|
|
textBox17.Visible = false;
|
|
}
|
|
}
|
|
|
|
private void radioGroup5_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
if (radioGroup5.SelectedIndex == 0)
|
|
{
|
|
panelControl14.Visible = true;
|
|
labelControl7.Visible = false;
|
|
checkedListBoxControl14.Visible = false;
|
|
}
|
|
else
|
|
{
|
|
panelControl14.Visible = false;
|
|
labelControl7.Visible = true;
|
|
checkedListBoxControl14.Visible = true;
|
|
}
|
|
}
|
|
|
|
private void radioGroup6_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
if (radioGroup6.SelectedIndex == 0)
|
|
{
|
|
textBox1.Visible = true;
|
|
labelControl15.Visible = true;
|
|
simpleButton1.Visible = true;
|
|
}
|
|
else
|
|
{
|
|
textBox1.Visible = false;
|
|
labelControl15.Visible = false;
|
|
simpleButton1.Visible = false;
|
|
}
|
|
}
|
|
|
|
private void radioGroup13_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
if (radioGroup13.SelectedIndex == 0)
|
|
{
|
|
textBox18.Visible = true;
|
|
labelControl66.Visible = true;
|
|
simpleButton2.Visible = true;
|
|
}
|
|
else
|
|
{
|
|
textBox18.Visible = false;
|
|
labelControl66.Visible = false;
|
|
simpleButton2.Visible = false;
|
|
}
|
|
}
|
|
|
|
private void radioGroup14_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
if (radioGroup14.SelectedIndex == 0)
|
|
{
|
|
textBox19.Visible = true;
|
|
labelControl68.Visible = true;
|
|
simpleButton3.Visible = true;
|
|
}
|
|
else
|
|
{
|
|
textBox19.Visible = false;
|
|
labelControl68.Visible = false;
|
|
simpleButton3.Visible = false;
|
|
}
|
|
}
|
|
|
|
private void radioGroup15_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
if (radioGroup15.SelectedIndex == 0)
|
|
{
|
|
textBox20.Visible = true;
|
|
labelControl70.Visible = true;
|
|
simpleButton4.Visible = true;
|
|
}
|
|
else
|
|
{
|
|
textBox20.Visible = false;
|
|
labelControl70.Visible = false;
|
|
simpleButton4.Visible = false;
|
|
}
|
|
}
|
|
|
|
private void radioGroup9_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
if (radioGroup9.SelectedIndex == 0)
|
|
{
|
|
labelControl31.Visible = false;
|
|
checkedListBoxControl6.Visible = false;
|
|
panelControl15.Visible = true;
|
|
}
|
|
else
|
|
{
|
|
labelControl31.Visible = true;
|
|
checkedListBoxControl6.Visible = true;
|
|
panelControl15.Visible = false;
|
|
}
|
|
}
|
|
|
|
private void radioGroup10_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
if (radioGroup10.SelectedIndex == 2)
|
|
{
|
|
labelControl33.Visible = true;
|
|
timeControl4.Visible = true;
|
|
}
|
|
else
|
|
{
|
|
labelControl33.Visible = false;
|
|
timeControl4.Visible = false;
|
|
}
|
|
}
|
|
|
|
private void radioGroup16_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
if (radioGroup16.SelectedIndex == 0)
|
|
{
|
|
textBox4.Visible = true;
|
|
labelControl25.Visible = true;
|
|
simpleButton5.Visible = true;
|
|
}
|
|
else
|
|
{
|
|
textBox4.Visible = false;
|
|
labelControl25.Visible = false;
|
|
simpleButton5.Visible = false;
|
|
}
|
|
}
|
|
|
|
private void radioGroup17_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
if (radioGroup17.SelectedIndex == 0)
|
|
{
|
|
textBox5.Visible = true;
|
|
labelControl28.Visible = true;
|
|
simpleButton6.Visible = true;
|
|
}
|
|
else
|
|
{
|
|
textBox5.Visible = false;
|
|
labelControl28.Visible = false;
|
|
simpleButton6.Visible = false;
|
|
}
|
|
}
|
|
|
|
private void radioGroup18_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
if (radioGroup18.SelectedIndex == 0)
|
|
{
|
|
radioGroup11.Visible = true;
|
|
}
|
|
else
|
|
{
|
|
radioGroup11.Visible = false;
|
|
}
|
|
}
|
|
|
|
private void radioGroup19_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
if (radioGroup19.SelectedIndex == 0)
|
|
{
|
|
textBox6.Visible = true;
|
|
labelControl30.Visible = true;
|
|
simpleButton7.Visible = true;
|
|
}
|
|
else
|
|
{
|
|
textBox6.Visible = false;
|
|
labelControl30.Visible = false;
|
|
simpleButton7.Visible = false;
|
|
}
|
|
}
|
|
|
|
private void radioGroup20_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
if (radioGroup20.SelectedIndex == 0)
|
|
{
|
|
radioGroup21.Visible = true;
|
|
}
|
|
else
|
|
{
|
|
radioGroup21.Visible = false;
|
|
}
|
|
}
|
|
|
|
private void radioGroup12_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
if (radioGroup12.SelectedIndex == 0)
|
|
{
|
|
textBox8.Visible = true;
|
|
labelControl49.Visible = true;
|
|
simpleButton8.Visible = true;
|
|
}
|
|
else
|
|
{
|
|
textBox8.Visible = false;
|
|
labelControl49.Visible = false;
|
|
simpleButton8.Visible = false;
|
|
}
|
|
}
|
|
|
|
private void radioGroup22_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
if (radioGroup22.SelectedIndex == 0)
|
|
{
|
|
textBox11.Visible = true;
|
|
labelControl51.Visible = true;
|
|
simpleButton9.Visible = true;
|
|
}
|
|
else
|
|
{
|
|
textBox11.Visible = false;
|
|
labelControl51.Visible = false;
|
|
simpleButton9.Visible = false;
|
|
}
|
|
}
|
|
private void UserControl_NDACI_Load(object sender, EventArgs e)
|
|
{
|
|
try
|
|
{
|
|
string url = string.Format("api/service/T_Service_Intervention/GetCerebralInfarctionByPatientGuid?patientGuid={0}", patientGUID);
|
|
T_Service_Intervention_CerebralInfarctionDTO temp = DBHelpClass.GetDateModel<T_Service_Intervention_CerebralInfarctionDTO>(url);
|
|
if (temp != null)
|
|
{
|
|
if (!string.IsNullOrEmpty(temp.NGSJZFaBingTime + ""))
|
|
{
|
|
timeControl1.TimeValue = temp.NGSJZFaBingTime + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.NGSJZDaoYuanTime + ""))
|
|
{
|
|
timeControl2.TimeValue = temp.NGSJZDaoYuanTime + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.NGSJZZyCz + ""))
|
|
{
|
|
radioGroup1.EditValue = temp.NGSJZZyCz + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.NGSJZFBSJ + ""))
|
|
{
|
|
radioGroup2.EditValue = temp.NGSJZFBSJ + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.TJiZhi + ""))
|
|
{
|
|
radioGroup4.EditValue = temp.TJiZhi + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.TYwbYN + ""))
|
|
{
|
|
radioGroup3.EditValue = temp.TYwbYN + "";
|
|
}
|
|
|
|
if (!string.IsNullOrEmpty(temp.RSRongShuan + ""))
|
|
{
|
|
radioGroup5.EditValue = temp.RSRongShuan + "";
|
|
if (radioGroup5.EditValue + "" == "1")
|
|
{
|
|
if (!string.IsNullOrEmpty(temp.RSStartNIHSSYN + ""))
|
|
{
|
|
radioGroup6.EditValue = temp.RSStartNIHSSYN + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.RSStartNIHSS + ""))
|
|
{
|
|
textBox1.Text = temp.RSStartNIHSS + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.RSRongShuanPlace + ""))
|
|
{
|
|
radioGroup7.EditValue = temp.RSRongShuanPlace + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.RSRongShuanTime + ""))
|
|
{
|
|
timeControl3.TimeValue = temp.RSRongShuanTime + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.RSONT + ""))
|
|
{
|
|
textBox2.Text = temp.RSONT + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.RSDNT + ""))
|
|
{
|
|
textBox3.Text = temp.RSDNT + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.RSRongShuanYW + ""))
|
|
{
|
|
radioGroup8.EditValue = temp.RSRongShuanYW + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.RSrtPA + ""))
|
|
{
|
|
textBox15.Text = temp.RSrtPA + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.RSUrokinase + ""))
|
|
{
|
|
textBox16.Text = temp.RSUrokinase + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.RSYWOther + ""))
|
|
{
|
|
textBox17.Text = temp.RSYWOther + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.RSBFZNR + ""))
|
|
{
|
|
PublicClass.SetItemChecked(checkedListBoxControl2, temp.RSBFZNR, ';');
|
|
if (temp.RSBFZNR.Contains("99"))
|
|
{
|
|
textBox12.Visible = true;
|
|
textBox12.Text = temp.RSBFZOther;
|
|
}
|
|
}
|
|
|
|
if (!string.IsNullOrEmpty(temp.RSEndNIHSSYN + ""))
|
|
{
|
|
radioGroup13.EditValue = temp.RSEndNIHSSYN + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.RSEndNIHSS + ""))
|
|
{
|
|
textBox18.Text = temp.RSEndNIHSS + "";
|
|
}
|
|
|
|
if (!string.IsNullOrEmpty(temp.RS24hNIHSSYN + ""))
|
|
{
|
|
radioGroup14.EditValue = temp.RS24hNIHSSYN + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.RS24hNIHSS + ""))
|
|
{
|
|
textBox19.Text = temp.RS24hNIHSS + "";
|
|
}
|
|
|
|
if (!string.IsNullOrEmpty(temp.RS7dNIHSSYN + ""))
|
|
{
|
|
radioGroup15.EditValue = temp.RS7dNIHSSYN + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.RS7dNIHSS + ""))
|
|
{
|
|
textBox20.Text = temp.RS7dNIHSS + "";
|
|
}
|
|
}
|
|
else if (radioGroup5.EditValue + "" == "2")
|
|
{
|
|
if (!string.IsNullOrEmpty(temp.RSReason + ""))
|
|
{
|
|
PublicClass.SetItemChecked(checkedListBoxControl14, temp.RSReason, ';');
|
|
}
|
|
}
|
|
}
|
|
|
|
if (!string.IsNullOrEmpty(temp.XGZLYN + ""))
|
|
{
|
|
radioGroup9.EditValue = temp.XGZLYN + "";
|
|
if (radioGroup9.EditValue + "" == "1")
|
|
{
|
|
if (!string.IsNullOrEmpty(temp.Str6 + ""))
|
|
{
|
|
radioGroup10.EditValue = temp.Str6 + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.XGFaBingTime2 + ""))
|
|
timeControl4.TimeValue = temp.XGFaBingTime2;
|
|
if (!string.IsNullOrEmpty(temp.XGSQNIHSSYN + ""))
|
|
{
|
|
radioGroup16.EditValue = temp.XGSQNIHSSYN + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.XGSQNIHSS + ""))
|
|
{
|
|
textBox4.Text = temp.XGSQNIHSS + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.XGASPECTYN + ""))
|
|
{
|
|
radioGroup17.EditValue = temp.XGASPECTYN + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.XGSQCT + ""))
|
|
{
|
|
textBox5.Text = temp.XGSQCT + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.XGSQTICIYN + ""))
|
|
{
|
|
radioGroup18.EditValue = temp.XGSQTICIYN + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.XGSQTICI + ""))
|
|
{
|
|
radioGroup11.EditValue = temp.XGSQTICI + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.XGPunctureEnd + ""))
|
|
timeControl5.TimeValue = temp.XGPunctureEnd;
|
|
textBox9.Text = temp.XGOPT;
|
|
textBox10.Text = temp.XGDPT;
|
|
|
|
if (!string.IsNullOrEmpty(temp.XGXGKT + ""))
|
|
{
|
|
PublicClass.SetItemChecked(checkedListBoxControl9, temp.XGXGKT, ';');
|
|
if (temp.XGXGKT.Contains("99"))
|
|
{
|
|
textBox13.Visible = true;
|
|
textBox13.Text = temp.XGXGKTOther;
|
|
}
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.XGSHNIHSSYN + ""))
|
|
{
|
|
radioGroup19.EditValue = temp.XGSHNIHSSYN + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.XGSHNIHSS + ""))
|
|
{
|
|
textBox6.Text = temp.XGSHNIHSS + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.XGSHTICIYN + ""))
|
|
{
|
|
radioGroup20.EditValue = temp.XGSHTICIYN + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.XGSHTICI + ""))
|
|
{
|
|
radioGroup21.EditValue = temp.XGSHTICI + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.XGXGZTTime + ""))
|
|
{
|
|
timeControl7.TimeValue = temp.XGXGZTTime + "";
|
|
}
|
|
textBox7.Text = temp.XGDRT;
|
|
|
|
if (!string.IsNullOrEmpty(temp.XGOpBFZ + ""))
|
|
{
|
|
PublicClass.SetItemChecked(checkedListBoxControl11, temp.XGOpBFZ, ';');
|
|
if (temp.XGOpBFZ.Contains("99"))
|
|
{
|
|
textBox14.Visible = true;
|
|
textBox14.Text = temp.XGOpBFZOther;
|
|
}
|
|
}
|
|
|
|
if (!string.IsNullOrEmpty(temp.XGSH24NIHSSYN + ""))
|
|
{
|
|
radioGroup12.EditValue = temp.XGSH24NIHSSYN + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.XGSH24NIHSS + ""))
|
|
{
|
|
textBox8.Text = temp.XGSH24NIHSS + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.XGSH7dNIHSSYN + ""))
|
|
{
|
|
radioGroup22.EditValue = temp.XGSH7dNIHSSYN + "";
|
|
}
|
|
if (!string.IsNullOrEmpty(temp.XGSH7dNIHSS + ""))
|
|
{
|
|
textBox11.Text = temp.XGSH7dNIHSS + "";
|
|
}
|
|
}
|
|
else if (radioGroup9.EditValue + "" == "2")
|
|
{
|
|
if (!string.IsNullOrEmpty(temp.XGZLReason + ""))
|
|
{
|
|
PublicClass.SetItemChecked(checkedListBoxControl6, temp.XGZLReason, ';');
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
throw ex;
|
|
}
|
|
}
|
|
|
|
public void SaveNDACI()
|
|
{
|
|
try
|
|
{
|
|
T_Service_Intervention_CerebralInfarctionDTO cerebralInfarctionDTO = new T_Service_Intervention_CerebralInfarctionDTO();
|
|
cerebralInfarctionDTO.PatientGuid = patientGUID;
|
|
cerebralInfarctionDTO.CreateUser = Information.User.ID;
|
|
cerebralInfarctionDTO.NGSJZFBSJ = radioGroup2.EditValue + "";
|
|
cerebralInfarctionDTO.NGSJZZyCz = radioGroup1.EditValue + "";
|
|
cerebralInfarctionDTO.NGSJZFaBingTime = timeControl1.TimeValue;
|
|
if (radioGroup1.EditValue + "" == "2")
|
|
{
|
|
cerebralInfarctionDTO.NGSJZDaoYuanTime = timeControl2.TimeValue;
|
|
}
|
|
|
|
cerebralInfarctionDTO.TJiZhi = radioGroup4.EditValue + "";
|
|
cerebralInfarctionDTO.TYwbYN = radioGroup3.EditValue + "";
|
|
|
|
string tempvalues = "";
|
|
string temptexts = "";
|
|
cerebralInfarctionDTO.RSRongShuan = radioGroup5.EditValue + "";
|
|
if (radioGroup5.EditValue + "" == "1")
|
|
{
|
|
cerebralInfarctionDTO.RSStartNIHSSYN = radioGroup6.EditValue + "";
|
|
if (radioGroup6.EditValue + "" == "1")
|
|
{
|
|
cerebralInfarctionDTO.RSStartNIHSS = textBox1.Text + "";
|
|
}
|
|
|
|
cerebralInfarctionDTO.RSRongShuanPlace = radioGroup7.EditValue + "";
|
|
cerebralInfarctionDTO.RSRongShuanTime = timeControl3.TimeValue + "";
|
|
cerebralInfarctionDTO.RSONT = textBox2.Text + "";
|
|
cerebralInfarctionDTO.RSDNT = textBox3.Text + "";
|
|
|
|
cerebralInfarctionDTO.RSRongShuanYW = radioGroup8.EditValue + "";
|
|
if (radioGroup8.EditValue + "" == "1")
|
|
{
|
|
cerebralInfarctionDTO.RSrtPA = textBox15.Text + "";
|
|
}
|
|
if (radioGroup8.EditValue + "" == "2")
|
|
{
|
|
cerebralInfarctionDTO.RSUrokinase = textBox16.Text + "";
|
|
}
|
|
if (radioGroup8.EditValue + "" == "9")
|
|
{
|
|
cerebralInfarctionDTO.RSYWOther = textBox17.Text + "";
|
|
}
|
|
|
|
{
|
|
tempvalues = "";
|
|
temptexts = "";
|
|
PublicClass.GetCheckedListBoxItemValues(checkedListBoxControl2, ";", out tempvalues, out temptexts);
|
|
if (!string.IsNullOrEmpty(tempvalues))
|
|
cerebralInfarctionDTO.RSBFZNR = ";" + tempvalues + ";";
|
|
if (tempvalues.Contains("99"))
|
|
{
|
|
cerebralInfarctionDTO.RSBFZOther = textBox12.Text;
|
|
}
|
|
}
|
|
|
|
cerebralInfarctionDTO.RSEndNIHSSYN = radioGroup13.EditValue + "";
|
|
if (radioGroup13.EditValue + "" == "1")
|
|
{
|
|
cerebralInfarctionDTO.RSEndNIHSS = textBox18.Text + "";
|
|
}
|
|
|
|
cerebralInfarctionDTO.RS24hNIHSSYN = radioGroup14.EditValue + "";
|
|
if (radioGroup14.EditValue + "" == "1")
|
|
{
|
|
cerebralInfarctionDTO.RS24hNIHSS = textBox19.Text + "";
|
|
}
|
|
|
|
cerebralInfarctionDTO.RS7dNIHSSYN = radioGroup15.EditValue + "";
|
|
if (radioGroup15.EditValue + "" == "1")
|
|
{
|
|
cerebralInfarctionDTO.RS7dNIHSS = textBox20.Text + "";
|
|
}
|
|
}
|
|
else if (radioGroup5.EditValue + "" == "2")
|
|
{
|
|
{
|
|
tempvalues = "";
|
|
temptexts = "";
|
|
PublicClass.GetCheckedListBoxItemValues(checkedListBoxControl14, ";", out tempvalues, out temptexts);
|
|
if (!string.IsNullOrEmpty(tempvalues))
|
|
cerebralInfarctionDTO.RSReason = ";" + tempvalues + ";";
|
|
}
|
|
}
|
|
|
|
|
|
cerebralInfarctionDTO.XGZLYN = radioGroup9.EditValue + "";
|
|
if (radioGroup9.EditValue + "" == "1")
|
|
{
|
|
cerebralInfarctionDTO.Str6 = radioGroup10.EditValue + "";
|
|
if (radioGroup10.EditValue + "" == "3")
|
|
{
|
|
cerebralInfarctionDTO.XGFaBingTime2 = timeControl4.TimeValue + "";
|
|
}
|
|
|
|
cerebralInfarctionDTO.XGSQNIHSSYN = radioGroup16.EditValue + "";
|
|
if (radioGroup16.EditValue + "" == "1")
|
|
{
|
|
cerebralInfarctionDTO.XGSQNIHSS = textBox4.Text + "";
|
|
}
|
|
|
|
cerebralInfarctionDTO.XGASPECTYN = radioGroup17.EditValue + "";
|
|
if (radioGroup17.EditValue + "" == "1")
|
|
{
|
|
cerebralInfarctionDTO.XGSQCT = textBox5.Text + "";
|
|
}
|
|
|
|
cerebralInfarctionDTO.XGSQTICIYN = radioGroup18.EditValue + "";
|
|
if (radioGroup18.EditValue + "" == "1")
|
|
{
|
|
cerebralInfarctionDTO.XGSQTICI = radioGroup11.EditValue + "";
|
|
}
|
|
cerebralInfarctionDTO.XGPunctureEnd = timeControl5.TimeValue + "";
|
|
cerebralInfarctionDTO.XGOPT = textBox9.Text + "";
|
|
cerebralInfarctionDTO.XGDPT = textBox10.Text + "";
|
|
|
|
{
|
|
tempvalues = "";
|
|
temptexts = "";
|
|
PublicClass.GetCheckedListBoxItemValues(checkedListBoxControl9, ";", out tempvalues, out temptexts);
|
|
if (!string.IsNullOrEmpty(tempvalues))
|
|
cerebralInfarctionDTO.XGXGKT = ";" + tempvalues + ";";
|
|
if (tempvalues.Contains("99"))
|
|
{
|
|
cerebralInfarctionDTO.XGXGKTOther = textBox13.Text + "";
|
|
}
|
|
}
|
|
|
|
cerebralInfarctionDTO.XGSHNIHSSYN = radioGroup19.EditValue + "";
|
|
if (radioGroup19.EditValue + "" == "1")
|
|
{
|
|
cerebralInfarctionDTO.XGSHNIHSS = textBox6.Text + "";
|
|
}
|
|
|
|
cerebralInfarctionDTO.XGSHTICIYN = radioGroup20.EditValue + "";
|
|
if (radioGroup20.EditValue + "" == "1")
|
|
{
|
|
cerebralInfarctionDTO.XGSHTICI = radioGroup21.EditValue + "";
|
|
}
|
|
cerebralInfarctionDTO.XGXGZTTime = timeControl7.TimeValue + "";
|
|
cerebralInfarctionDTO.XGDRT = textBox7.Text + "";
|
|
{
|
|
tempvalues = "";
|
|
temptexts = "";
|
|
PublicClass.GetCheckedListBoxItemValues(checkedListBoxControl11, ";", out tempvalues, out temptexts);
|
|
if (!string.IsNullOrEmpty(tempvalues))
|
|
cerebralInfarctionDTO.XGOpBFZ = ";" + tempvalues + ";";
|
|
if (tempvalues.Contains("99"))
|
|
{
|
|
cerebralInfarctionDTO.XGOpBFZOther = textBox14.Text + "";
|
|
}
|
|
}
|
|
|
|
cerebralInfarctionDTO.XGSH24NIHSSYN = radioGroup12.EditValue + "";
|
|
if (radioGroup12.EditValue + "" == "1")
|
|
{
|
|
cerebralInfarctionDTO.XGSH24NIHSS = textBox8.Text + "";
|
|
}
|
|
|
|
cerebralInfarctionDTO.XGSH7dNIHSSYN = radioGroup22.EditValue + "";
|
|
if (radioGroup22.EditValue + "" == "1")
|
|
{
|
|
cerebralInfarctionDTO.XGSH7dNIHSS = textBox11.Text + "";
|
|
}
|
|
}
|
|
else if (radioGroup9.EditValue + "" == "2")
|
|
{
|
|
{
|
|
tempvalues = "";
|
|
temptexts = "";
|
|
PublicClass.GetCheckedListBoxItemValues(checkedListBoxControl6, ";", out tempvalues, out temptexts);
|
|
if (!string.IsNullOrEmpty(tempvalues))
|
|
cerebralInfarctionDTO.XGZLYN = ";" + tempvalues + ";";
|
|
}
|
|
}
|
|
|
|
List<T_Service_Intervention_CerebralInfarctionDTO> cerebralInfarctionDTOs = new List<T_Service_Intervention_CerebralInfarctionDTO>();
|
|
string Url = string.Format("api/service/T_Service_Intervention/SaveCerebralInfarction");
|
|
|
|
ClientFactory<T_Service_Intervention_CerebralInfarctionDTO> httpClient = new HttpClientFactory<T_Service_Intervention_CerebralInfarctionDTO>();
|
|
Client<T_Service_Intervention_CerebralInfarctionDTO> client = httpClient.VisitFactory();
|
|
|
|
cerebralInfarctionDTOs.Add(cerebralInfarctionDTO);
|
|
//访问
|
|
ListEntity<T_Service_Intervention_CerebralInfarctionDTO> t = client.Post(Url, cerebralInfarctionDTOs);
|
|
|
|
if (t.Success)
|
|
{
|
|
if (!string.IsNullOrEmpty(t.DataString))
|
|
{
|
|
if (t.DataString.Contains("Success"))
|
|
{
|
|
JObject jo = (JObject)JsonConvert.DeserializeObject(t.DataString);
|
|
string msg = jo["Msg"].ToString();
|
|
if (!string.IsNullOrEmpty(msg))
|
|
{
|
|
XtraMessageBox.Show(msg);
|
|
}
|
|
if (nihss1 != null)
|
|
saveNIHSS(nihss1);
|
|
if (nihss2 != null)
|
|
saveNIHSS(nihss2);
|
|
if (nihss3 != null)
|
|
saveNIHSS(nihss3);
|
|
if (nihss4 != null)
|
|
saveNIHSS(nihss4);
|
|
if (nihss5 != null)
|
|
saveNIHSS(nihss5);
|
|
if (nihss6 != null)
|
|
saveNIHSS(nihss6);
|
|
if (nihss7 != null)
|
|
saveNIHSS(nihss7);
|
|
if (nihss8 != null)
|
|
saveNIHSS(nihss8);
|
|
}
|
|
else
|
|
{
|
|
string msg1 = t.DataString.Replace("/", "").Replace(@"\", "").Replace("\"", "");
|
|
XtraMessageBox.Show(msg1);
|
|
}
|
|
}
|
|
else
|
|
{
|
|
XtraMessageBox.Show("保存失败");
|
|
}
|
|
}
|
|
else
|
|
{
|
|
XtraMessageBox.Show("保存失败");
|
|
}
|
|
}
|
|
catch (Exception ex)
|
|
{
|
|
PublicClass.WriteErrorLog(this.Text, "保存干预表急诊脑梗死信息:\r\n" + ex);
|
|
}
|
|
}
|
|
|
|
private void checkedListBoxControl2_ItemCheck(object sender, DevExpress.XtraEditors.Controls.ItemCheckEventArgs e)
|
|
{
|
|
if (checkedListBoxControl2.Text == "其他")
|
|
{
|
|
if (e.State == CheckState.Checked)
|
|
{
|
|
labelControl52.Visible = true;
|
|
textBox12.Visible = true;
|
|
}
|
|
else
|
|
{
|
|
labelControl52.Visible = false;
|
|
textBox12.Visible = false;
|
|
}
|
|
}
|
|
if (checkedListBoxControl2.Text == "无")
|
|
{
|
|
if (e.State == CheckState.Checked)
|
|
{
|
|
//清空本窗体
|
|
for (int i = 0; i < checkedListBoxControl2.Items.Count - 1; i++)
|
|
checkedListBoxControl2.SetItemChecked(i, false);
|
|
}
|
|
}
|
|
}
|
|
|
|
private void checkedListBoxControl9_ItemCheck(object sender, DevExpress.XtraEditors.Controls.ItemCheckEventArgs e)
|
|
{
|
|
if (checkedListBoxControl9.Text == "其他")
|
|
{
|
|
if (e.State == CheckState.Checked)
|
|
{
|
|
textBox13.Visible = true;
|
|
}
|
|
else
|
|
{
|
|
textBox13.Visible = false;
|
|
}
|
|
}
|
|
}
|
|
|
|
private void checkedListBoxControl11_ItemCheck(object sender, DevExpress.XtraEditors.Controls.ItemCheckEventArgs e)
|
|
{
|
|
if (checkedListBoxControl11.Text == "其他")
|
|
{
|
|
if (e.State == CheckState.Checked)
|
|
{
|
|
textBox14.Visible = true;
|
|
}
|
|
else
|
|
{
|
|
textBox14.Visible = false;
|
|
}
|
|
}
|
|
}
|
|
public void saveNIHSS(PatientNIHSSDTO patientNIHSSDTO)
|
|
{
|
|
List<PatientNIHSSDTO> PrehospitalDTOs = new List<PatientNIHSSDTO>();
|
|
string Url = string.Format("api/service/T_Service_Patient/SaveNIHSS");
|
|
ClientFactory<PatientNIHSSDTO> httpClient = new HttpClientFactory<PatientNIHSSDTO>();
|
|
Client<PatientNIHSSDTO> client = httpClient.VisitFactory();
|
|
patientNIHSSDTO.PatientGUID = patientGUID;
|
|
patientNIHSSDTO.Flag = 1;
|
|
PrehospitalDTOs.Add(patientNIHSSDTO);
|
|
//访问
|
|
ListEntity<PatientNIHSSDTO> t = client.Post(Url, PrehospitalDTOs);
|
|
}
|
|
private void simpleButton1_Click(object sender, EventArgs e)
|
|
{
|
|
//溶栓前NIHSS评分分数
|
|
string strText = string.Empty;
|
|
InputDialog_trans.Show(out strText, out nihss1, 7);
|
|
if (!string.IsNullOrEmpty(strText))
|
|
{
|
|
textBox1.Text = strText;
|
|
radioGroup6.SelectedIndex = 0;
|
|
nihss1.Flag = 2;
|
|
}
|
|
}
|
|
|
|
private void simpleButton2_Click(object sender, EventArgs e)
|
|
{
|
|
//溶栓结束后即刻NIHSS评分分数
|
|
string strText = string.Empty;
|
|
InputDialog_trans.Show(out strText, out nihss2, 8);
|
|
if (!string.IsNullOrEmpty(strText))
|
|
{
|
|
textBox18.Text = strText;
|
|
radioGroup13.SelectedIndex = 0;
|
|
nihss2.Flag = 3;
|
|
}
|
|
}
|
|
|
|
private void simpleButton3_Click(object sender, EventArgs e)
|
|
{
|
|
//溶栓后24h NIHSS评分分数
|
|
string strText = string.Empty;
|
|
InputDialog_trans.Show(out strText, out nihss3, 9);
|
|
if (!string.IsNullOrEmpty(strText))
|
|
{
|
|
textBox19.Text = strText;
|
|
radioGroup14.SelectedIndex = 0;
|
|
nihss3.Flag = 4;
|
|
}
|
|
}
|
|
|
|
private void simpleButton4_Click(object sender, EventArgs e)
|
|
{
|
|
//溶栓后7±2 天NIHSS评分分数
|
|
string strText = string.Empty;
|
|
InputDialog_trans.Show(out strText, out nihss4, 10);
|
|
if (!string.IsNullOrEmpty(strText))
|
|
{
|
|
textBox20.Text = strText;
|
|
radioGroup15.SelectedIndex = 0;
|
|
nihss4.Flag = 5;
|
|
}
|
|
}
|
|
|
|
private void simpleButton5_Click(object sender, EventArgs e)
|
|
{
|
|
//术前NIHSS评分分数
|
|
string strText = string.Empty;
|
|
InputDialog_trans.Show(out strText, out nihss5, 10);
|
|
if (!string.IsNullOrEmpty(strText))
|
|
{
|
|
textBox4.Text = strText;
|
|
radioGroup16.SelectedIndex = 0;
|
|
nihss5.Flag = 6;
|
|
}
|
|
}
|
|
|
|
private void simpleButton7_Click(object sender, EventArgs e)
|
|
{
|
|
//术后NIHSS评分分数
|
|
string strText = string.Empty;
|
|
InputDialog_trans.Show(out strText, out nihss6, 10);
|
|
if (!string.IsNullOrEmpty(strText))
|
|
{
|
|
textBox6.Text = strText;
|
|
radioGroup19.SelectedIndex = 0;
|
|
nihss6.Flag = 7;
|
|
}
|
|
}
|
|
|
|
private void simpleButton8_Click(object sender, EventArgs e)
|
|
{
|
|
//术后24hNIHSS评分分数
|
|
string strText = string.Empty;
|
|
InputDialog_trans.Show(out strText, out nihss7, 10);
|
|
if (!string.IsNullOrEmpty(strText))
|
|
{
|
|
textBox8.Text = strText;
|
|
radioGroup12.SelectedIndex = 0;
|
|
nihss7.Flag = 8;
|
|
}
|
|
}
|
|
|
|
private void simpleButton9_Click(object sender, EventArgs e)
|
|
{
|
|
//术后7+2dhNIHSS评分分数
|
|
string strText = string.Empty;
|
|
InputDialog_trans.Show(out strText, out nihss8, 10);
|
|
if (!string.IsNullOrEmpty(strText))
|
|
{
|
|
textBox11.Text = strText;
|
|
radioGroup22.SelectedIndex = 0;
|
|
nihss8.Flag = 8;
|
|
}
|
|
}
|
|
|
|
private void simpleButton6_Click(object sender, EventArgs e)
|
|
{
|
|
//术前CT评分
|
|
string strText = string.Empty;
|
|
InputDialog_trans.ShowForCT(out strText, 6, patientGUID, 0, 1, "", "", "");
|
|
if (!string.IsNullOrEmpty(strText))
|
|
{
|
|
textBox5.Text = strText;
|
|
radioGroup17.SelectedIndex = 0;
|
|
}
|
|
}
|
|
public void GetInMintus()
|
|
{
|
|
if (!string.IsNullOrEmpty(timeControl1.TimeValue + "") && !string.IsNullOrEmpty(timeControl3.TimeValue + ""))
|
|
{
|
|
textBox2.Text = PublicClass.DiffMinutes(Convert.ToDateTime(timeControl1.TimeValue), Convert.ToDateTime(timeControl3.TimeValue)).TotalMinutes + "";
|
|
}
|
|
else
|
|
{
|
|
textBox2.Text = "";
|
|
}
|
|
if (radioGroup1.SelectedIndex == 0)
|
|
{
|
|
if (!string.IsNullOrEmpty(timeControl1.TimeValue + "") && !string.IsNullOrEmpty(timeControl3.TimeValue + ""))
|
|
{
|
|
textBox3.Text = PublicClass.DiffMinutes(Convert.ToDateTime(timeControl1.TimeValue), Convert.ToDateTime(timeControl3.TimeValue)).TotalMinutes + "";
|
|
}
|
|
else
|
|
{
|
|
textBox3.Text = "";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if (!string.IsNullOrEmpty(timeControl2.TimeValue + "") && !string.IsNullOrEmpty(timeControl3.TimeValue + ""))
|
|
{
|
|
textBox3.Text = PublicClass.DiffMinutes(Convert.ToDateTime(timeControl2.TimeValue), Convert.ToDateTime(timeControl3.TimeValue)).TotalMinutes + "";
|
|
}
|
|
else
|
|
{
|
|
textBox3.Text = "";
|
|
}
|
|
}
|
|
}
|
|
public void GetInMintus1()
|
|
{
|
|
if (!string.IsNullOrEmpty(timeControl1.TimeValue + "") && !string.IsNullOrEmpty(timeControl5.TimeValue + ""))
|
|
{
|
|
textBox9.Text = PublicClass.DiffMinutes(Convert.ToDateTime(timeControl1.TimeValue), Convert.ToDateTime(timeControl5.TimeValue)).TotalMinutes + "";
|
|
}
|
|
else
|
|
{
|
|
textBox9.Text = "";
|
|
}
|
|
if (radioGroup1.SelectedIndex == 0)
|
|
{
|
|
if (!string.IsNullOrEmpty(timeControl1.TimeValue + "") && !string.IsNullOrEmpty(timeControl5.TimeValue + ""))
|
|
{
|
|
textBox10.Text = PublicClass.DiffMinutes(Convert.ToDateTime(timeControl1.TimeValue), Convert.ToDateTime(timeControl5.TimeValue)).TotalMinutes + "";
|
|
}
|
|
else
|
|
{
|
|
textBox10.Text = "";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if (!string.IsNullOrEmpty(timeControl2.TimeValue + "") && !string.IsNullOrEmpty(timeControl5.TimeValue + ""))
|
|
{
|
|
textBox10.Text = PublicClass.DiffMinutes(Convert.ToDateTime(timeControl2.TimeValue), Convert.ToDateTime(timeControl5.TimeValue)).TotalMinutes + "";
|
|
}
|
|
else
|
|
{
|
|
textBox10.Text = "";
|
|
}
|
|
}
|
|
}
|
|
private void GetInMintus2()
|
|
{
|
|
if (radioGroup1.SelectedIndex == 0)
|
|
{
|
|
if (!string.IsNullOrEmpty(timeControl1.TimeValue + "") && !string.IsNullOrEmpty(timeControl5.TimeValue + ""))
|
|
{
|
|
textBox7.Text = PublicClass.DiffMinutes(Convert.ToDateTime(timeControl1.TimeValue), Convert.ToDateTime(timeControl5.TimeValue)).TotalMinutes + "";
|
|
}
|
|
else
|
|
{
|
|
textBox7.Text = "";
|
|
}
|
|
}
|
|
else
|
|
{
|
|
if (!string.IsNullOrEmpty(timeControl2.TimeValue + "") && !string.IsNullOrEmpty(timeControl7.TimeValue + ""))
|
|
{
|
|
textBox7.Text = PublicClass.DiffMinutes(Convert.ToDateTime(timeControl2.TimeValue), Convert.ToDateTime(timeControl7.TimeValue)).TotalMinutes + "";
|
|
}
|
|
else
|
|
{
|
|
textBox7.Text = "";
|
|
}
|
|
}
|
|
}
|
|
private void timeControl3_TimeValueChanged(object sender, EventArgs e)
|
|
{
|
|
GetInMintus();
|
|
}
|
|
|
|
private void timeControl1_TimeValueChanged(object sender, EventArgs e)
|
|
{
|
|
GetInMintus();
|
|
GetInMintus1();
|
|
GetInMintus2();
|
|
}
|
|
|
|
private void timeControl2_TimeValueChanged(object sender, EventArgs e)
|
|
{
|
|
GetInMintus();
|
|
GetInMintus1();
|
|
GetInMintus2();
|
|
}
|
|
|
|
private void timeControl5_TimeValueChanged(object sender, EventArgs e)
|
|
{
|
|
GetInMintus1();
|
|
}
|
|
|
|
private void timeControl7_TimeValueChanged(object sender, EventArgs e)
|
|
{
|
|
GetInMintus2();
|
|
}
|
|
|
|
|
|
}
|
|
}
|