1829 lines
99 KiB
C#
1829 lines
99 KiB
C#
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_FollowUp
|
||
{
|
||
public partial class UC_FollowUpMedication : UserControl
|
||
{
|
||
/// <summary>
|
||
/// 患者ID
|
||
/// </summary>
|
||
public static string registerId;
|
||
/// <summary>
|
||
/// 月份
|
||
/// </summary>
|
||
public static string month;
|
||
|
||
public UC_FollowUpMedication(string _registerId, string _month)
|
||
{
|
||
InitializeComponent();
|
||
registerId = _registerId;
|
||
month = _month;
|
||
}
|
||
|
||
private async void UC_FollowUpMedication_Load(object sender, EventArgs e)
|
||
{
|
||
//DataTable dt = new DataTable("Table_New");
|
||
//DataColumn dc1 = new DataColumn("name", Type.GetType("System.String"));
|
||
//DataColumn dc2 = new DataColumn("value", Type.GetType("System.String"));
|
||
//dt.Columns.Add(dc1);
|
||
//dt.Columns.Add(dc2);
|
||
//DataRow dr1 = dt.NewRow();
|
||
//dr1["name"] = "正在服用";
|
||
//dr1["value"] = "1";
|
||
//dt.Rows.Add(dr1);
|
||
//DataRow dr2 = dt.NewRow();
|
||
//dr2["name"] = "已停药";
|
||
//dr2["value"] = "2";
|
||
//dt.Rows.Add(dr2);
|
||
//DataRow dr3 = dt.NewRow();
|
||
//dr3["name"] = "从未服用";
|
||
//dr3["value"] = "3";
|
||
//dt.Rows.Add(dr3);
|
||
//PublicClass.SetLookUpList(look_ADrugStatus1, dt, "value", "name", true, "请选择");
|
||
|
||
await GetInfo(registerId, month);
|
||
|
||
}
|
||
|
||
|
||
#region 抗血小板药物
|
||
private void radio_isAntiplateletDrugs_SelectedIndexChanged(object sender, EventArgs e)
|
||
{
|
||
radio_SelectedIndexChanged(sender, e, radio_isAntiplateletDrugs, panel_A);
|
||
}
|
||
|
||
private void com_ADrugStatus1_SelectedValueChanged(object sender, EventArgs e)
|
||
{
|
||
com_SelectedValueChanged(sender, e, com_ADrugStatus1, panel_A1, panel_A2);
|
||
}
|
||
private void com_ADrugStatus2_SelectedValueChanged(object sender, EventArgs e)
|
||
{
|
||
com_SelectedValueChanged(sender, e, com_ADrugStatus2, panel_A3, panel_A4);
|
||
}
|
||
private void com_ADrugStatus3_SelectedValueChanged(object sender, EventArgs e)
|
||
{
|
||
com_SelectedValueChanged(sender, e, com_ADrugStatus3, panel_A5, panel_A6);
|
||
}
|
||
private void lbl_A1_Click(object sender, EventArgs e)
|
||
{
|
||
if (panel_isAntiplateletDrugs2.Visible == false)
|
||
{
|
||
panel_isAntiplateletDrugs2.Visible = true;
|
||
}
|
||
else
|
||
{
|
||
panel_isAntiplateletDrugs3.Visible = true;
|
||
}
|
||
}
|
||
|
||
private void lbl_A2_Click(object sender, EventArgs e)
|
||
{
|
||
panel_isAntiplateletDrugs2.Visible = false;
|
||
}
|
||
|
||
private void lbl_A3_Click(object sender, EventArgs e)
|
||
{
|
||
panel_isAntiplateletDrugs3.Visible = false;
|
||
}
|
||
#endregion
|
||
|
||
#region 调脂药物
|
||
private void radio_isLipidLoweringDrugs_SelectedIndexChanged(object sender, EventArgs e)
|
||
{
|
||
radio_SelectedIndexChanged(sender, e, radio_isLipidLoweringDrugs, panel_B);
|
||
}
|
||
|
||
private void com_BDrugStatus1_SelectedValueChanged(object sender, EventArgs e)
|
||
{
|
||
com_SelectedValueChanged(sender, e, com_BDrugStatus1, panel_B1, panel_B2);
|
||
}
|
||
|
||
private void com_BDrugStatus2_SelectedValueChanged(object sender, EventArgs e)
|
||
{
|
||
com_SelectedValueChanged(sender, e, com_BDrugStatus2, panel_B3, panel_B4);
|
||
}
|
||
|
||
private void com_BDrugStatus3_SelectedValueChanged(object sender, EventArgs e)
|
||
{
|
||
com_SelectedValueChanged(sender, e, com_BDrugStatus3, panel_B5, panel_B6);
|
||
}
|
||
|
||
private void lbl_B1_Click(object sender, EventArgs e)
|
||
{
|
||
if (panel_LipidLoweringDrugs2.Visible == false)
|
||
{
|
||
panel_LipidLoweringDrugs2.Visible = true;
|
||
}
|
||
else
|
||
{
|
||
panel_LipidLoweringDrugs3.Visible = true;
|
||
}
|
||
}
|
||
|
||
private void lbl_B2_Click(object sender, EventArgs e)
|
||
{
|
||
panel_LipidLoweringDrugs2.Visible = false;
|
||
}
|
||
|
||
private void lbl_B3_Click(object sender, EventArgs e)
|
||
{
|
||
panel_LipidLoweringDrugs3.Visible = false;
|
||
}
|
||
#endregion
|
||
|
||
#region ACEI/ARB类
|
||
private void radio_isAceiAndArb_SelectedIndexChanged(object sender, EventArgs e)
|
||
{
|
||
radio_SelectedIndexChanged(sender, e, radio_isAceiAndArb, panel_C);
|
||
}
|
||
|
||
private void com_CDrugStatus1_SelectedValueChanged(object sender, EventArgs e)
|
||
{
|
||
com_SelectedValueChanged(sender, e, com_CDrugStatus1, panel_C1, panel_C2);
|
||
}
|
||
|
||
|
||
private void com_CDrugStatus2_SelectedValueChanged(object sender, EventArgs e)
|
||
{
|
||
com_SelectedValueChanged(sender, e, com_CDrugStatus2, panel_C3, panel_C4);
|
||
}
|
||
|
||
private void com_CDrugStatus3_SelectedIndexChanged(object sender, EventArgs e)
|
||
{
|
||
com_SelectedValueChanged(sender, e, com_CDrugStatus3, panel_C5, panel_C6);
|
||
}
|
||
|
||
private void lbl_C1_Click(object sender, EventArgs e)
|
||
{
|
||
if (panel_AceiAndArb2.Visible == false)
|
||
{
|
||
panel_AceiAndArb2.Visible = true;
|
||
}
|
||
else
|
||
{
|
||
panel_AceiAndArb3.Visible = true;
|
||
}
|
||
}
|
||
|
||
private void lbl_C2_Click(object sender, EventArgs e)
|
||
{
|
||
panel_AceiAndArb2.Visible = false;
|
||
}
|
||
|
||
private void lbl_C3_Click(object sender, EventArgs e)
|
||
{
|
||
panel_AceiAndArb3.Visible = false;
|
||
}
|
||
#endregion
|
||
|
||
#region ARNI
|
||
private void radio_isArni_SelectedIndexChanged(object sender, EventArgs e)
|
||
{
|
||
radio_SelectedIndexChanged(sender, e, radio_isArni, panel_D);
|
||
}
|
||
|
||
private void com_DDrugStatus1_SelectedValueChanged(object sender, EventArgs e)
|
||
{
|
||
com_SelectedValueChanged(sender, e, com_DDrugStatus1, panel_D1, panel_D2);
|
||
}
|
||
|
||
private void com_DDrugStatus2_SelectedValueChanged(object sender, EventArgs e)
|
||
{
|
||
com_SelectedValueChanged(sender, e, com_DDrugStatus2, panel_D3, panel_D4);
|
||
}
|
||
|
||
private void com_DDrugStatus3_SelectedValueChanged(object sender, EventArgs e)
|
||
{
|
||
com_SelectedValueChanged(sender, e, com_DDrugStatus3, panel_D5, panel_D6);
|
||
}
|
||
|
||
private void lbl_D1_Click(object sender, EventArgs e)
|
||
{
|
||
if (panel_Arni2.Visible == false)
|
||
{
|
||
panel_Arni2.Visible = true;
|
||
}
|
||
else
|
||
{
|
||
panel_Arni3.Visible = true;
|
||
}
|
||
}
|
||
|
||
private void lbl_D2_Click(object sender, EventArgs e)
|
||
{
|
||
panel_Arni2.Visible = false;
|
||
}
|
||
|
||
private void lbl_D3_Click(object sender, EventArgs e)
|
||
{
|
||
panel_Arni3.Visible = false;
|
||
}
|
||
#endregion
|
||
|
||
#region β受体阻滞剂
|
||
private void radio_isBetaBlocker_SelectedIndexChanged(object sender, EventArgs e)
|
||
{
|
||
radio_SelectedIndexChanged(sender, e, radio_isBetaBlocker, panel_E);
|
||
}
|
||
|
||
private void com_EDrugStatus1_SelectedValueChanged(object sender, EventArgs e)
|
||
{
|
||
com_SelectedValueChanged(sender, e, com_EDrugStatus1, panel_E1, panel_E2);
|
||
}
|
||
|
||
#endregion
|
||
|
||
#region 降糖药物
|
||
private void radio_isHypoglycemicDrugs_SelectedIndexChanged(object sender, EventArgs e)
|
||
{
|
||
radio_SelectedIndexChanged(sender, e, radio_isHypoglycemicDrugs, panel_F);
|
||
}
|
||
|
||
private void com_FDrugStatus1_SelectedValueChanged(object sender, EventArgs e)
|
||
{
|
||
com_SelectedValueChanged(sender, e, com_FDrugStatus1, panel_F1, panel_F2);
|
||
}
|
||
|
||
private void com_FDrugStatus2_SelectedValueChanged(object sender, EventArgs e)
|
||
{
|
||
com_SelectedValueChanged(sender, e, com_FDrugStatus2, panel_F3, panel_F4);
|
||
}
|
||
|
||
private void com_FDrugStatus3_SelectedValueChanged(object sender, EventArgs e)
|
||
{
|
||
com_SelectedValueChanged(sender, e, com_FDrugStatus3, panel_F5, panel_F6);
|
||
}
|
||
|
||
private void lbl_F1_Click(object sender, EventArgs e)
|
||
{
|
||
if (panel_HypoglycemicDrugs2.Visible == false)
|
||
{
|
||
panel_HypoglycemicDrugs2.Visible = true;
|
||
}
|
||
else
|
||
{
|
||
panel_HypoglycemicDrugs3.Visible = true;
|
||
}
|
||
}
|
||
|
||
private void lbl_F2_Click(object sender, EventArgs e)
|
||
{
|
||
panel_HypoglycemicDrugs2.Visible = false;
|
||
}
|
||
|
||
private void lbl_F3_Click(object sender, EventArgs e)
|
||
{
|
||
panel_HypoglycemicDrugs3.Visible = false;
|
||
}
|
||
#endregion
|
||
|
||
#region 抗凝
|
||
|
||
private void radio_isAnticoagulant_SelectedIndexChanged(object sender, EventArgs e)
|
||
{
|
||
radio_SelectedIndexChanged(sender, e, radio_isAnticoagulant, panel_J);
|
||
}
|
||
|
||
private void com_JDrugStatus1_SelectedValueChanged(object sender, EventArgs e)
|
||
{
|
||
com_SelectedValueChanged(sender, e, com_JDrugStatus1, panel_G1, panel_G2);
|
||
}
|
||
|
||
private void com_JDrugStatus2_SelectedValueChanged(object sender, EventArgs e)
|
||
{
|
||
com_SelectedValueChanged(sender, e, com_JDrugStatus2, panel_G3, panel_G4);
|
||
}
|
||
|
||
private void com_JDrugStatus3_SelectedValueChanged(object sender, EventArgs e)
|
||
{
|
||
com_SelectedValueChanged(sender, e, com_JDrugStatus3, panel_G5, panel_G6);
|
||
}
|
||
|
||
private void lbl_J1_Click(object sender, EventArgs e)
|
||
{
|
||
panelContro_Click(sender, e, panel_Anticoagulant2, panel_Anticoagulant3);
|
||
}
|
||
|
||
private void lbl_J2_Click(object sender, EventArgs e)
|
||
{
|
||
panelContro_Click2(sender, e, panel_Anticoagulant2);
|
||
}
|
||
|
||
private void lbl_J3_Click(object sender, EventArgs e)
|
||
{
|
||
panelContro_Click2(sender, e, panel_Anticoagulant3);
|
||
}
|
||
#endregion
|
||
|
||
#region 利尿剂
|
||
private void radio_isDiuretics_SelectedIndexChanged(object sender, EventArgs e)
|
||
{
|
||
radio_SelectedIndexChanged(sender, e, radio_isDiuretics, panel_O);
|
||
}
|
||
|
||
private void com_ODrugStatus1_SelectedValueChanged(object sender, EventArgs e)
|
||
{
|
||
com_SelectedValueChanged(sender, e, com_ODrugStatus1, panel_H1, panel_H2);
|
||
}
|
||
|
||
|
||
private void com_ODrugStatus2_SelectedValueChanged(object sender, EventArgs e)
|
||
{
|
||
com_SelectedValueChanged(sender, e, com_ODrugStatus3, panel_H3, panel_H4);
|
||
}
|
||
|
||
private void com_ODrugStatus3_SelectedValueChanged(object sender, EventArgs e)
|
||
{
|
||
com_SelectedValueChanged(sender, e, com_ODrugStatus2, panel_H5, panel_H6);
|
||
}
|
||
|
||
|
||
private void lbl_O1_Click(object sender, EventArgs e)
|
||
{
|
||
if (panel_Diuretics2.Visible == false)
|
||
{
|
||
panel_Diuretics2.Visible = true;
|
||
}
|
||
else
|
||
{
|
||
panel_Diuretics3.Visible = true;
|
||
}
|
||
}
|
||
|
||
private void lbl_O2_Click(object sender, EventArgs e)
|
||
{
|
||
panel_Diuretics2.Visible = false;
|
||
}
|
||
|
||
private void lbl_O3_Click(object sender, EventArgs e)
|
||
{
|
||
panel_Diuretics3.Visible = false;
|
||
}
|
||
#endregion
|
||
|
||
#region 公用方法
|
||
private void radio_SelectedIndexChanged(object sender, EventArgs e, DevExpress.XtraEditors.RadioGroup radio, DevExpress.XtraEditors.PanelControl panel)
|
||
{
|
||
if (radio.SelectedIndex == 1)
|
||
{
|
||
panel.Visible = true;
|
||
}
|
||
else
|
||
{
|
||
panel.Visible = false;
|
||
}
|
||
}
|
||
|
||
private void com_SelectedValueChanged(object sender, EventArgs e, ComboBox comboBox, DevExpress.XtraEditors.PanelControl panel, DevExpress.XtraEditors.PanelControl pane2)
|
||
{
|
||
if (comboBox.Text == "正在服用")
|
||
{
|
||
panel.Visible = true;
|
||
pane2.Visible = false;
|
||
}
|
||
else if (comboBox.Text == "已停药")
|
||
{
|
||
panel.Visible = false;
|
||
pane2.Visible = true;
|
||
}
|
||
else
|
||
{
|
||
panel.Visible = false;
|
||
pane2.Visible = false;
|
||
}
|
||
}
|
||
|
||
|
||
|
||
|
||
private void panelContro_Click(object sender, EventArgs e, DevExpress.XtraEditors.PanelControl panelControl, DevExpress.XtraEditors.PanelControl panelContro2)
|
||
{
|
||
if (panelControl.Visible == false)
|
||
{
|
||
panelControl.Visible = true;
|
||
}
|
||
else
|
||
{
|
||
panelContro2.Visible = true;
|
||
}
|
||
}
|
||
|
||
private void panelContro_Click2(object sender, EventArgs e, DevExpress.XtraEditors.PanelControl panelContro)
|
||
{
|
||
panelContro.Visible = false;
|
||
}
|
||
|
||
#endregion
|
||
|
||
|
||
/// <summary>
|
||
/// 获取数据
|
||
/// </summary>
|
||
/// <param name="registerId"></param>
|
||
/// <param name="month"></param>
|
||
async Task GetInfo(string registerId, string month)
|
||
{
|
||
FollowUpMedicationDTO dto = new FollowUpMedicationDTO();
|
||
string url = string.Format("api/service/T_Service_ChestPain_FollowUpInfo/GetFollowUpMedication?registerId={0}&month={1}", registerId, month);
|
||
dto = DBHelpClass.GetDateModel<FollowUpMedicationDTO>(url);
|
||
if (dto != null)
|
||
{
|
||
radio_isAntiplateletDrugs.EditValue = dto.isAntiplateletDrugs;
|
||
if (dto.antiplateletDrugsList != null && dto.antiplateletDrugsList.Count() > 0)
|
||
{
|
||
if (dto.antiplateletDrugsList.Count() == 1)
|
||
{
|
||
com_ADrugName1.Text = VauleTranTextOfName(dto.antiplateletDrugsList[0].type, dto.antiplateletDrugsList[0].name);
|
||
com_ADrugStatus1.Text = TranText(dto.antiplateletDrugsList[0].status);
|
||
if (com_ADrugStatus1.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.antiplateletDrugsList[0].reteTime))
|
||
com_ADrugRete_count1.Text = TranReteTime(dto.antiplateletDrugsList[0].reteTime);
|
||
com_ADrugRete_time1.Text = dto.antiplateletDrugsList[0].reteCount;
|
||
txt_ADrugdDose1.Text = dto.antiplateletDrugsList[0].dose;
|
||
}
|
||
if (com_ADrugStatus1.Text == "已停药" && !string.IsNullOrEmpty(dto.antiplateletDrugsList[0].stopMedicationDate))
|
||
time_A1.TimeValue = dto.antiplateletDrugsList[0].stopMedicationDate;
|
||
}
|
||
if (dto.antiplateletDrugsList.Count() == 2)
|
||
{
|
||
panel_isAntiplateletDrugs2.Visible = true;
|
||
com_ADrugName1.Text = VauleTranTextOfName(dto.antiplateletDrugsList[0].type, dto.antiplateletDrugsList[0].name);
|
||
com_ADrugStatus1.Text = TranText(dto.antiplateletDrugsList[0].status);
|
||
if (com_ADrugStatus1.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.antiplateletDrugsList[0].reteTime))
|
||
com_ADrugRete_count1.Text = TranReteTime(dto.antiplateletDrugsList[0].reteTime);
|
||
com_ADrugRete_time1.Text = dto.antiplateletDrugsList[0].reteCount;
|
||
txt_ADrugdDose1.Text = dto.antiplateletDrugsList[0].dose;
|
||
}
|
||
if (com_ADrugStatus1.Text == "已停药" && !string.IsNullOrEmpty(dto.antiplateletDrugsList[0].stopMedicationDate))
|
||
time_A1.TimeValue = dto.antiplateletDrugsList[0].stopMedicationDate;
|
||
com_ADrugName2.Text = VauleTranTextOfName(dto.antiplateletDrugsList[1].type, dto.antiplateletDrugsList[1].name);
|
||
com_ADrugStatus2.Text = TranText(dto.antiplateletDrugsList[1].status);
|
||
if (com_ADrugStatus2.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.antiplateletDrugsList[1].reteTime))
|
||
com_ADrugRete_count2.Text = TranReteTime(dto.antiplateletDrugsList[1].reteTime);
|
||
com_ADrugRete_time2.Text = dto.antiplateletDrugsList[1].reteCount;
|
||
txt_ADrugdDose2.Text = dto.antiplateletDrugsList[1].dose;
|
||
}
|
||
if (com_ADrugStatus2.Text == "已停药" && !string.IsNullOrEmpty(dto.antiplateletDrugsList[1].stopMedicationDate))
|
||
time_A2.TimeValue = dto.antiplateletDrugsList[1].stopMedicationDate;
|
||
|
||
}
|
||
if (dto.antiplateletDrugsList.Count() == 3)
|
||
{
|
||
panel_isAntiplateletDrugs2.Visible = true;
|
||
panel_isAntiplateletDrugs3.Visible = true;
|
||
com_ADrugName1.Text = VauleTranTextOfName(dto.antiplateletDrugsList[0].type, dto.antiplateletDrugsList[0].name);
|
||
com_ADrugStatus1.Text = TranText(dto.antiplateletDrugsList[0].status);
|
||
if (com_ADrugStatus1.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.antiplateletDrugsList[0].reteTime))
|
||
com_ADrugRete_count1.Text = TranReteTime(dto.antiplateletDrugsList[0].reteTime);
|
||
com_ADrugRete_time1.Text = dto.antiplateletDrugsList[0].reteCount;
|
||
txt_ADrugdDose1.Text = dto.antiplateletDrugsList[0].dose;
|
||
}
|
||
if (com_ADrugStatus1.Text == "已停药" && !string.IsNullOrEmpty(dto.antiplateletDrugsList[0].stopMedicationDate))
|
||
time_A1.TimeValue = dto.antiplateletDrugsList[0].stopMedicationDate;
|
||
com_ADrugName2.Text = VauleTranTextOfName(dto.antiplateletDrugsList[1].type, dto.antiplateletDrugsList[1].name);
|
||
com_ADrugStatus2.Text = TranText(dto.antiplateletDrugsList[1].status);
|
||
if (com_ADrugStatus2.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.antiplateletDrugsList[1].reteTime))
|
||
com_ADrugRete_count2.Text = TranReteTime(dto.antiplateletDrugsList[1].reteTime);
|
||
com_ADrugRete_time2.Text = dto.antiplateletDrugsList[1].reteCount;
|
||
txt_ADrugdDose2.Text = dto.antiplateletDrugsList[1].dose;
|
||
}
|
||
if (com_ADrugStatus2.Text == "已停药" && !string.IsNullOrEmpty(dto.antiplateletDrugsList[1].stopMedicationDate))
|
||
time_A2.TimeValue = dto.antiplateletDrugsList[1].stopMedicationDate;
|
||
|
||
com_ADrugName3.Text = VauleTranTextOfName(dto.antiplateletDrugsList[2].type, dto.antiplateletDrugsList[2].name);
|
||
com_ADrugStatus3.Text = TranText(dto.antiplateletDrugsList[2].status);
|
||
if (com_ADrugStatus3.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.antiplateletDrugsList[2].reteTime))
|
||
com_ADrugRete_count3.Text = TranReteTime(dto.antiplateletDrugsList[2].reteTime);
|
||
com_ADrugRete_time3.Text = dto.antiplateletDrugsList[2].reteCount;
|
||
txt_ADrugdDose3.Text = dto.antiplateletDrugsList[2].dose;
|
||
}
|
||
if (com_ADrugStatus3.Text == "已停药" && !string.IsNullOrEmpty(dto.antiplateletDrugsList[2].stopMedicationDate))
|
||
time_A3.TimeValue = dto.antiplateletDrugsList[2].stopMedicationDate;
|
||
}
|
||
}
|
||
|
||
radio_isLipidLoweringDrugs.EditValue = dto.isLipidLoweringDrugs;
|
||
if (dto.lipidLoweringDrugsList != null && dto.lipidLoweringDrugsList.Count() > 0)
|
||
{
|
||
if (dto.lipidLoweringDrugsList.Count() == 1)
|
||
{
|
||
com_BDrugName1.Text = VauleTranTextOfName(dto.lipidLoweringDrugsList[0].type, dto.lipidLoweringDrugsList[0].name);
|
||
com_BDrugStatus1.Text = TranText(dto.lipidLoweringDrugsList[0].status);
|
||
if (com_BDrugStatus1.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.lipidLoweringDrugsList[0].reteTime))
|
||
com_BDrugRete_count1.Text = TranReteTime(dto.lipidLoweringDrugsList[0].reteTime);
|
||
com_BDrugRete_time1.Text = dto.lipidLoweringDrugsList[0].reteCount;
|
||
txt_BDrugdDose1.Text = dto.lipidLoweringDrugsList[0].dose;
|
||
}
|
||
if (com_BDrugStatus1.Text == "已停药" && !string.IsNullOrEmpty(dto.lipidLoweringDrugsList[0].stopMedicationDate))
|
||
time_B1.TimeValue = dto.lipidLoweringDrugsList[0].stopMedicationDate;
|
||
}
|
||
if (dto.lipidLoweringDrugsList.Count() == 2)
|
||
{
|
||
panel_LipidLoweringDrugs2.Visible = true;
|
||
com_BDrugName1.Text = VauleTranTextOfName(dto.lipidLoweringDrugsList[0].type, dto.lipidLoweringDrugsList[0].name);
|
||
com_BDrugStatus1.Text = TranText(dto.lipidLoweringDrugsList[0].status);
|
||
if (com_BDrugStatus1.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.lipidLoweringDrugsList[0].reteTime))
|
||
com_BDrugRete_count1.Text = TranReteTime(dto.lipidLoweringDrugsList[0].reteTime);
|
||
com_BDrugRete_time1.Text = dto.lipidLoweringDrugsList[0].reteCount;
|
||
txt_BDrugdDose1.Text = dto.lipidLoweringDrugsList[0].dose;
|
||
}
|
||
if (com_BDrugStatus1.Text == "已停药" && !string.IsNullOrEmpty(dto.lipidLoweringDrugsList[0].stopMedicationDate))
|
||
time_B1.TimeValue = dto.lipidLoweringDrugsList[0].stopMedicationDate;
|
||
|
||
com_BDrugName2.Text = VauleTranTextOfName(dto.lipidLoweringDrugsList[1].type, dto.lipidLoweringDrugsList[1].name);
|
||
com_BDrugStatus2.Text = TranText(dto.lipidLoweringDrugsList[1].status);
|
||
if (com_BDrugStatus2.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.lipidLoweringDrugsList[1].reteTime))
|
||
com_BDrugRete_count2.Text = TranReteTime(dto.lipidLoweringDrugsList[1].reteTime);
|
||
com_BDrugRete_time2.Text = dto.lipidLoweringDrugsList[1].reteCount;
|
||
txt_BDrugdDose2.Text = dto.lipidLoweringDrugsList[1].dose;
|
||
}
|
||
if (com_BDrugStatus2.Text == "已停药" && !string.IsNullOrEmpty(dto.lipidLoweringDrugsList[1].stopMedicationDate))
|
||
time_B2.TimeValue = dto.lipidLoweringDrugsList[1].stopMedicationDate;
|
||
}
|
||
if (dto.lipidLoweringDrugsList.Count() == 3)
|
||
{
|
||
panel_LipidLoweringDrugs2.Visible = true;
|
||
panel_LipidLoweringDrugs3.Visible = true;
|
||
com_BDrugName1.Text = VauleTranTextOfName(dto.lipidLoweringDrugsList[0].type, dto.lipidLoweringDrugsList[0].name);
|
||
com_BDrugStatus1.Text = TranText(dto.lipidLoweringDrugsList[0].status);
|
||
if (com_BDrugStatus1.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.lipidLoweringDrugsList[0].reteTime))
|
||
com_BDrugRete_count1.Text = TranReteTime(dto.lipidLoweringDrugsList[0].reteTime);
|
||
com_BDrugRete_time1.Text = dto.lipidLoweringDrugsList[0].reteCount;
|
||
txt_BDrugdDose1.Text = dto.lipidLoweringDrugsList[0].dose;
|
||
}
|
||
if (com_BDrugStatus1.Text == "已停药" && !string.IsNullOrEmpty(dto.lipidLoweringDrugsList[0].stopMedicationDate))
|
||
time_B1.TimeValue = dto.lipidLoweringDrugsList[0].stopMedicationDate;
|
||
|
||
com_BDrugName2.Text = VauleTranTextOfName(dto.lipidLoweringDrugsList[1].type, dto.lipidLoweringDrugsList[1].name);
|
||
com_BDrugStatus2.Text = TranText(dto.lipidLoweringDrugsList[1].status);
|
||
if (com_BDrugStatus2.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.lipidLoweringDrugsList[1].reteTime))
|
||
com_BDrugRete_count2.Text = TranReteTime(dto.lipidLoweringDrugsList[1].reteTime);
|
||
com_BDrugRete_time2.Text = dto.lipidLoweringDrugsList[1].reteCount;
|
||
txt_BDrugdDose2.Text = dto.lipidLoweringDrugsList[1].dose;
|
||
}
|
||
if (com_BDrugStatus2.Text == "已停药" && !string.IsNullOrEmpty(dto.lipidLoweringDrugsList[1].stopMedicationDate))
|
||
time_B2.TimeValue = dto.lipidLoweringDrugsList[1].stopMedicationDate;
|
||
|
||
com_BDrugName3.Text = VauleTranTextOfName(dto.lipidLoweringDrugsList[2].type, dto.lipidLoweringDrugsList[2].name);
|
||
com_BDrugStatus3.Text = TranText(dto.lipidLoweringDrugsList[2].status);
|
||
if (com_BDrugStatus3.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.lipidLoweringDrugsList[2].reteTime))
|
||
com_BDrugRete_count3.Text = TranReteTime(dto.lipidLoweringDrugsList[2].reteTime);
|
||
com_BDrugRete_time3.Text = dto.lipidLoweringDrugsList[2].reteCount;
|
||
txt_BDrugdDose3.Text = dto.lipidLoweringDrugsList[2].dose;
|
||
}
|
||
if (com_BDrugStatus3.Text == "已停药" && !string.IsNullOrEmpty(dto.lipidLoweringDrugsList[2].stopMedicationDate))
|
||
time_B3.TimeValue = dto.lipidLoweringDrugsList[2].stopMedicationDate;
|
||
}
|
||
}
|
||
|
||
radio_isAceiAndArb.EditValue = dto.isAceiAndArb;
|
||
if (dto.aceiAndArbList != null && dto.aceiAndArbList.Count() > 0)
|
||
{
|
||
if (dto.aceiAndArbList.Count() == 1)
|
||
{
|
||
com_CDrugName1.Text = VauleTranTextOfName(dto.aceiAndArbList[0].type, dto.aceiAndArbList[0].name);
|
||
com_CDrugStatus1.Text = TranText(dto.aceiAndArbList[0].status);
|
||
if (com_CDrugStatus1.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.aceiAndArbList[0].reteTime))
|
||
com_CDrugRete_count1.Text = TranReteTime(dto.aceiAndArbList[0].reteTime);
|
||
com_CDrugRete_time1.Text = dto.aceiAndArbList[0].reteCount;
|
||
txt_CDrugdDose1.Text = dto.aceiAndArbList[0].dose;
|
||
}
|
||
if (com_CDrugStatus1.Text == "已停药" && !string.IsNullOrEmpty(dto.aceiAndArbList[0].stopMedicationDate))
|
||
time_C1.TimeValue = dto.aceiAndArbList[0].stopMedicationDate;
|
||
}
|
||
if (dto.aceiAndArbList.Count() == 2)
|
||
{
|
||
panel_AceiAndArb2.Visible = true;
|
||
com_CDrugName1.Text = VauleTranTextOfName(dto.aceiAndArbList[0].type, dto.aceiAndArbList[0].name);
|
||
com_CDrugStatus1.Text = TranText(dto.aceiAndArbList[0].status);
|
||
if (com_CDrugStatus1.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.aceiAndArbList[0].reteTime))
|
||
com_CDrugRete_count1.Text = TranReteTime(dto.aceiAndArbList[0].reteTime);
|
||
com_CDrugRete_time1.Text = dto.aceiAndArbList[0].reteCount;
|
||
txt_CDrugdDose1.Text = dto.aceiAndArbList[0].dose;
|
||
}
|
||
if (com_CDrugStatus1.Text == "已停药" && !string.IsNullOrEmpty(dto.aceiAndArbList[0].stopMedicationDate))
|
||
time_C1.TimeValue = dto.aceiAndArbList[0].stopMedicationDate;
|
||
|
||
com_CDrugName2.Text = VauleTranTextOfName(dto.aceiAndArbList[1].type, dto.aceiAndArbList[1].name);
|
||
com_CDrugStatus2.Text = TranText(dto.aceiAndArbList[1].status);
|
||
if (com_CDrugStatus2.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.aceiAndArbList[1].reteTime))
|
||
com_CDrugRete_count2.Text = TranReteTime(dto.aceiAndArbList[1].reteTime);
|
||
com_CDrugRete_time2.Text = dto.aceiAndArbList[1].reteCount;
|
||
txt_CDrugdDose2.Text = dto.aceiAndArbList[1].dose;
|
||
}
|
||
if (com_CDrugStatus2.Text == "已停药" && !string.IsNullOrEmpty(dto.aceiAndArbList[1].stopMedicationDate))
|
||
time_C2.TimeValue = dto.aceiAndArbList[1].stopMedicationDate;
|
||
|
||
}
|
||
if (dto.aceiAndArbList.Count() == 3)
|
||
{
|
||
panel_AceiAndArb2.Visible = true;
|
||
panel_AceiAndArb3.Visible = true;
|
||
com_CDrugName1.Text = VauleTranTextOfName(dto.aceiAndArbList[0].type, dto.aceiAndArbList[0].name);
|
||
com_CDrugStatus1.Text = TranText(dto.aceiAndArbList[0].status);
|
||
if (com_CDrugStatus1.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.aceiAndArbList[0].reteTime))
|
||
com_CDrugRete_count1.Text = TranReteTime(dto.aceiAndArbList[0].reteTime);
|
||
com_CDrugRete_time1.Text = dto.aceiAndArbList[0].reteCount;
|
||
txt_CDrugdDose1.Text = dto.aceiAndArbList[0].dose;
|
||
}
|
||
if (com_CDrugStatus1.Text == "已停药" && !string.IsNullOrEmpty(dto.aceiAndArbList[0].stopMedicationDate))
|
||
time_C1.TimeValue = dto.aceiAndArbList[0].stopMedicationDate;
|
||
|
||
com_CDrugName2.Text = VauleTranTextOfName(dto.aceiAndArbList[1].type, dto.aceiAndArbList[1].name);
|
||
com_CDrugStatus2.Text = TranText(dto.aceiAndArbList[1].status);
|
||
if (com_CDrugStatus2.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.aceiAndArbList[1].reteTime))
|
||
com_CDrugRete_count2.Text = TranReteTime(dto.aceiAndArbList[1].reteTime);
|
||
com_CDrugRete_time2.Text = dto.aceiAndArbList[1].reteCount;
|
||
txt_CDrugdDose2.Text = dto.aceiAndArbList[1].dose;
|
||
}
|
||
if (com_CDrugStatus2.Text == "已停药" && !string.IsNullOrEmpty(dto.aceiAndArbList[1].stopMedicationDate))
|
||
time_C2.TimeValue = dto.aceiAndArbList[1].stopMedicationDate;
|
||
|
||
com_CDrugName3.Text = VauleTranTextOfName(dto.aceiAndArbList[2].type, dto.aceiAndArbList[2].name);
|
||
com_CDrugStatus3.Text = TranText(dto.aceiAndArbList[2].status);
|
||
if (com_CDrugStatus3.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.aceiAndArbList[2].reteTime))
|
||
com_CDrugRete_count3.Text = TranReteTime(dto.aceiAndArbList[2].reteTime);
|
||
com_CDrugRete_time3.Text = dto.aceiAndArbList[2].reteCount;
|
||
txt_CDrugdDose3.Text = dto.aceiAndArbList[2].dose;
|
||
}
|
||
if (com_CDrugStatus3.Text == "已停药" && !string.IsNullOrEmpty(dto.aceiAndArbList[2].stopMedicationDate))
|
||
time_C3.TimeValue = dto.aceiAndArbList[2].stopMedicationDate;
|
||
}
|
||
}
|
||
|
||
radio_isArni.EditValue = dto.isArni;
|
||
if (dto.arniList != null && dto.arniList.Count() > 0)
|
||
{
|
||
if (dto.arniList.Count() == 1)
|
||
{
|
||
|
||
com_DDrugName1.Text = VauleTranTextOfName(dto.arniList[0].type, dto.arniList[0].name);
|
||
com_DDrugStatus1.Text = TranText(dto.arniList[0].status);
|
||
if (com_DDrugStatus1.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.arniList[0].reteTime))
|
||
com_DDrugRete_count1.Text = TranReteTime(dto.arniList[0].reteTime);
|
||
com_DDrugRete_time1.Text = dto.arniList[0].reteCount;
|
||
txt_DDrugdDose1.Text = dto.arniList[0].dose;
|
||
}
|
||
if (com_DDrugStatus1.Text == "已停药" && !string.IsNullOrEmpty(dto.arniList[0].stopMedicationDate))
|
||
time_D1.TimeValue = dto.arniList[0].stopMedicationDate;
|
||
}
|
||
|
||
if (dto.arniList.Count() == 2)
|
||
{
|
||
panel_Arni2.Visible = true;
|
||
com_DDrugName1.Text = VauleTranTextOfName(dto.arniList[0].type, dto.arniList[0].name);
|
||
com_DDrugStatus1.Text = TranText(dto.arniList[0].status);
|
||
if (com_DDrugStatus1.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.arniList[0].reteTime))
|
||
com_DDrugRete_count1.Text = TranReteTime(dto.arniList[0].reteTime);
|
||
com_DDrugRete_time1.Text = dto.arniList[0].reteCount;
|
||
txt_DDrugdDose1.Text = dto.arniList[0].dose;
|
||
}
|
||
if (com_DDrugStatus1.Text == "已停药" && !string.IsNullOrEmpty(dto.arniList[0].stopMedicationDate))
|
||
time_D1.TimeValue = dto.arniList[0].stopMedicationDate;
|
||
|
||
com_DDrugName2.Text = VauleTranTextOfName(dto.arniList[1].type, dto.arniList[1].name);
|
||
com_DDrugStatus2.Text = TranText(dto.arniList[1].status);
|
||
if (com_DDrugStatus2.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.arniList[1].reteTime))
|
||
com_DDrugRete_count2.Text = TranReteTime(dto.arniList[1].reteTime);
|
||
com_DDrugRete_time2.Text = dto.arniList[1].reteCount;
|
||
txt_DDrugdDose2.Text = dto.arniList[1].dose;
|
||
}
|
||
if (com_DDrugStatus2.Text == "已停药" && !string.IsNullOrEmpty(dto.arniList[1].stopMedicationDate))
|
||
time_D2.TimeValue = dto.arniList[1].stopMedicationDate;
|
||
}
|
||
|
||
if (dto.arniList.Count() == 3)
|
||
{
|
||
panel_Arni2.Visible = true;
|
||
panel_Arni3.Visible = true;
|
||
com_DDrugName1.Text = VauleTranTextOfName(dto.arniList[0].type, dto.arniList[0].name);
|
||
com_DDrugStatus1.Text = TranText(dto.arniList[0].status);
|
||
if (com_DDrugStatus1.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.arniList[0].reteTime))
|
||
com_DDrugRete_count1.Text = TranReteTime(dto.arniList[0].reteTime);
|
||
com_DDrugRete_time1.Text = dto.arniList[0].reteCount;
|
||
txt_DDrugdDose1.Text = dto.arniList[0].dose;
|
||
}
|
||
if (com_DDrugStatus1.Text == "已停药" && !string.IsNullOrEmpty(dto.arniList[0].stopMedicationDate))
|
||
time_D1.TimeValue = dto.arniList[0].stopMedicationDate;
|
||
|
||
com_DDrugName2.Text = VauleTranTextOfName(dto.arniList[1].type, dto.arniList[1].name);
|
||
com_DDrugStatus2.Text = TranText(dto.arniList[1].status);
|
||
if (com_DDrugStatus2.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.arniList[1].reteTime))
|
||
com_DDrugRete_count2.Text = TranReteTime(dto.arniList[1].reteTime);
|
||
com_DDrugRete_time2.Text = dto.arniList[1].reteCount;
|
||
txt_DDrugdDose2.Text = dto.arniList[1].dose;
|
||
}
|
||
if (com_DDrugStatus2.Text == "已停药" && !string.IsNullOrEmpty(dto.arniList[1].stopMedicationDate))
|
||
time_D2.TimeValue = dto.arniList[1].stopMedicationDate;
|
||
|
||
com_DDrugName3.Text = VauleTranTextOfName(dto.arniList[2].type, dto.arniList[2].name);
|
||
com_DDrugStatus3.Text = TranText(dto.arniList[2].status);
|
||
if (com_DDrugStatus3.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.arniList[2].reteTime))
|
||
com_DDrugRete_count3.Text = TranReteTime(dto.arniList[2].reteTime);
|
||
com_DDrugRete_time3.Text = dto.arniList[2].reteCount;
|
||
txt_DDrugdDose3.Text = dto.arniList[2].dose;
|
||
}
|
||
if (com_DDrugStatus3.Text == "已停药" && !string.IsNullOrEmpty(dto.arniList[2].stopMedicationDate))
|
||
time_D3.TimeValue = dto.arniList[2].stopMedicationDate;
|
||
}
|
||
}
|
||
|
||
radio_isBetaBlocker.EditValue = dto.isBetaBlocker;
|
||
if (dto.betaBlockerList != null && dto.betaBlockerList.Count() > 0)
|
||
{
|
||
com_EDrugName1.Text = VauleTranTextOfName(dto.betaBlockerList[0].type, dto.betaBlockerList[0].name);
|
||
com_EDrugStatus1.Text = TranText(dto.betaBlockerList[0].status);
|
||
if (com_EDrugStatus1.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.betaBlockerList[0].reteTime))
|
||
com_EDrugRete_count1.Text = TranReteTime(dto.betaBlockerList[0].reteTime);
|
||
com_EDrugRete_time1.Text = dto.betaBlockerList[0].reteCount;
|
||
txt_EDrugdDose1.Text = dto.betaBlockerList[0].dose;
|
||
}
|
||
if (com_EDrugStatus1.Text == "已停药" && !string.IsNullOrEmpty(dto.betaBlockerList[0].stopMedicationDate))
|
||
time_E1.TimeValue = dto.betaBlockerList[0].stopMedicationDate;
|
||
}
|
||
|
||
radio_isHypoglycemicDrugs.EditValue = dto.isHypoglycemicDrugs;
|
||
if (dto.hypoglycemicDrugsList != null && dto.hypoglycemicDrugsList.Count() > 0)
|
||
{
|
||
if (dto.hypoglycemicDrugsList.Count() == 1)
|
||
{
|
||
com_FDrugName1.Text = VauleTranTextOfName(dto.hypoglycemicDrugsList[0].type, dto.hypoglycemicDrugsList[0].name);
|
||
com_FDrugStatus1.Text = TranText(dto.hypoglycemicDrugsList[0].status);
|
||
if (com_FDrugStatus1.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.hypoglycemicDrugsList[0].reteTime))
|
||
com_FDrugRete_count1.Text = TranReteTime(dto.hypoglycemicDrugsList[0].reteTime);
|
||
com_FDrugRete_time1.Text = dto.hypoglycemicDrugsList[0].reteCount;
|
||
txt_FDrugdDose1.Text = dto.hypoglycemicDrugsList[0].dose;
|
||
}
|
||
if (com_FDrugStatus1.Text == "已停药" && !string.IsNullOrEmpty(dto.hypoglycemicDrugsList[0].stopMedicationDate))
|
||
time_F1.TimeValue = dto.hypoglycemicDrugsList[0].stopMedicationDate;
|
||
}
|
||
if (dto.hypoglycemicDrugsList.Count() == 2)
|
||
{
|
||
panel_HypoglycemicDrugs2.Visible = true;
|
||
com_FDrugName1.Text = VauleTranTextOfName(dto.hypoglycemicDrugsList[0].type, dto.hypoglycemicDrugsList[0].name);
|
||
com_FDrugStatus1.Text = TranText(dto.hypoglycemicDrugsList[0].status);
|
||
if (com_FDrugStatus1.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.hypoglycemicDrugsList[0].reteTime))
|
||
com_FDrugRete_count1.Text = TranReteTime(dto.hypoglycemicDrugsList[0].reteTime);
|
||
com_FDrugRete_time1.Text = dto.hypoglycemicDrugsList[0].reteCount;
|
||
txt_FDrugdDose1.Text = dto.hypoglycemicDrugsList[0].dose;
|
||
}
|
||
if (com_FDrugStatus1.Text == "已停药" && !string.IsNullOrEmpty(dto.hypoglycemicDrugsList[0].stopMedicationDate))
|
||
time_F1.TimeValue = dto.hypoglycemicDrugsList[0].stopMedicationDate;
|
||
|
||
com_FDrugName2.Text = VauleTranTextOfName(dto.hypoglycemicDrugsList[1].type, dto.hypoglycemicDrugsList[1].name);
|
||
com_FDrugStatus2.Text = TranText(dto.hypoglycemicDrugsList[1].status);
|
||
if (com_FDrugStatus2.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.hypoglycemicDrugsList[1].reteTime))
|
||
com_FDrugRete_count2.Text = TranReteTime(dto.hypoglycemicDrugsList[1].reteTime);
|
||
com_FDrugRete_time2.Text = dto.hypoglycemicDrugsList[1].reteCount;
|
||
txt_FDrugdDose2.Text = dto.hypoglycemicDrugsList[1].dose;
|
||
}
|
||
if (com_FDrugStatus2.Text == "已停药" && !string.IsNullOrEmpty(dto.hypoglycemicDrugsList[1].stopMedicationDate))
|
||
time_F2.TimeValue = dto.hypoglycemicDrugsList[1].stopMedicationDate;
|
||
|
||
}
|
||
if (dto.hypoglycemicDrugsList.Count() == 3)
|
||
{
|
||
panel_HypoglycemicDrugs2.Visible = true;
|
||
panel_HypoglycemicDrugs3.Visible = true;
|
||
com_FDrugName1.Text = VauleTranTextOfName(dto.hypoglycemicDrugsList[1].type, dto.hypoglycemicDrugsList[1].name);
|
||
com_FDrugStatus1.Text = TranText(dto.hypoglycemicDrugsList[0].status);
|
||
if (com_FDrugStatus1.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.hypoglycemicDrugsList[0].reteTime))
|
||
com_FDrugRete_count1.Text = TranReteTime(dto.hypoglycemicDrugsList[0].reteTime);
|
||
com_FDrugRete_time1.Text = dto.hypoglycemicDrugsList[0].reteCount;
|
||
txt_FDrugdDose1.Text = dto.hypoglycemicDrugsList[0].dose;
|
||
}
|
||
if (com_FDrugStatus1.Text == "已停药" && !string.IsNullOrEmpty(dto.hypoglycemicDrugsList[0].stopMedicationDate))
|
||
time_F1.TimeValue = dto.hypoglycemicDrugsList[0].stopMedicationDate;
|
||
|
||
com_FDrugName2.Text = VauleTranTextOfName(dto.hypoglycemicDrugsList[1].type, dto.hypoglycemicDrugsList[1].name);
|
||
com_FDrugStatus2.Text = TranText(dto.hypoglycemicDrugsList[1].status);
|
||
if (com_FDrugStatus2.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.hypoglycemicDrugsList[1].reteTime))
|
||
com_FDrugRete_count2.Text = TranReteTime(dto.hypoglycemicDrugsList[1].reteTime);
|
||
com_FDrugRete_time2.Text = dto.hypoglycemicDrugsList[1].reteCount;
|
||
txt_FDrugdDose2.Text = dto.hypoglycemicDrugsList[1].dose;
|
||
}
|
||
if (com_FDrugStatus2.Text == "已停药" && !string.IsNullOrEmpty(dto.hypoglycemicDrugsList[1].stopMedicationDate))
|
||
time_F2.TimeValue = dto.hypoglycemicDrugsList[1].stopMedicationDate;
|
||
|
||
com_FDrugName3.Text = VauleTranTextOfName(dto.hypoglycemicDrugsList[2].type, dto.hypoglycemicDrugsList[2].name);
|
||
com_FDrugStatus3.Text = TranText(dto.hypoglycemicDrugsList[2].status);
|
||
if (com_FDrugStatus3.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.hypoglycemicDrugsList[2].reteTime))
|
||
com_FDrugRete_count3.Text = TranReteTime(dto.hypoglycemicDrugsList[2].reteTime);
|
||
com_FDrugRete_time3.Text = dto.hypoglycemicDrugsList[2].reteCount;
|
||
txt_FDrugdDose3.Text = dto.hypoglycemicDrugsList[2].dose;
|
||
}
|
||
if (com_FDrugStatus3.Text == "已停药" && !string.IsNullOrEmpty(dto.hypoglycemicDrugsList[2].stopMedicationDate))
|
||
time_F3.TimeValue = dto.hypoglycemicDrugsList[2].stopMedicationDate;
|
||
}
|
||
}
|
||
|
||
radio_isAnticoagulant.EditValue = dto.isAnticoagulant;
|
||
if (dto.anticoagulantList != null && dto.anticoagulantList.Count() > 0)
|
||
{
|
||
if (dto.anticoagulantList.Count() == 1)
|
||
{
|
||
com_JDrugName1.Text = VauleTranTextOfName(dto.anticoagulantList[0].type, dto.anticoagulantList[0].name);
|
||
com_JDrugStatus1.Text = TranText(dto.anticoagulantList[0].status);
|
||
if (com_JDrugStatus1.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.anticoagulantList[0].reteTime))
|
||
com_JDrugRete_count1.Text = TranReteTime(dto.anticoagulantList[0].reteTime);
|
||
com_JDrugRete_time1.Text = dto.anticoagulantList[0].reteCount;
|
||
txt_JDrugdDose1.Text = dto.anticoagulantList[0].dose;
|
||
}
|
||
if (com_JDrugStatus1.Text == "已停药" && !string.IsNullOrEmpty(dto.anticoagulantList[0].stopMedicationDate))
|
||
time_J1.TimeValue = dto.anticoagulantList[0].stopMedicationDate;
|
||
}
|
||
if (dto.anticoagulantList.Count() == 2)
|
||
{
|
||
panel_Anticoagulant2.Visible = true;
|
||
com_JDrugName1.Text = VauleTranTextOfName(dto.anticoagulantList[0].type, dto.anticoagulantList[0].name);
|
||
com_JDrugStatus1.Text = TranText(dto.anticoagulantList[0].status);
|
||
if (com_JDrugStatus1.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.anticoagulantList[0].reteTime))
|
||
com_JDrugRete_count1.Text = TranReteTime(dto.anticoagulantList[0].reteTime);
|
||
com_JDrugRete_time1.Text = dto.anticoagulantList[0].reteCount;
|
||
txt_JDrugdDose1.Text = dto.anticoagulantList[0].dose;
|
||
}
|
||
if (com_JDrugStatus1.Text == "已停药" && !string.IsNullOrEmpty(dto.anticoagulantList[0].stopMedicationDate))
|
||
time_J1.TimeValue = dto.anticoagulantList[0].stopMedicationDate;
|
||
|
||
com_JDrugName2.Text = VauleTranTextOfName(dto.anticoagulantList[1].type, dto.anticoagulantList[1].name);
|
||
com_JDrugStatus2.Text = TranText(dto.anticoagulantList[1].status);
|
||
if (com_JDrugStatus2.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.anticoagulantList[1].reteTime))
|
||
com_JDrugRete_count2.Text = TranReteTime(dto.anticoagulantList[1].reteTime);
|
||
com_JDrugRete_time2.Text = dto.anticoagulantList[1].reteCount;
|
||
txt_JDrugdDose2.Text = dto.anticoagulantList[1].dose;
|
||
}
|
||
if (com_JDrugStatus2.Text == "已停药" && !string.IsNullOrEmpty(dto.anticoagulantList[1].stopMedicationDate))
|
||
time_J2.TimeValue = dto.anticoagulantList[1].stopMedicationDate;
|
||
|
||
}
|
||
if (dto.anticoagulantList.Count() == 3)
|
||
{
|
||
panel_Anticoagulant2.Visible = true;
|
||
panel_Anticoagulant3.Visible = true;
|
||
com_JDrugName1.Text = VauleTranTextOfName(dto.anticoagulantList[0].type, dto.anticoagulantList[0].name);
|
||
com_JDrugStatus1.Text = TranText(dto.anticoagulantList[0].status);
|
||
if (com_JDrugStatus1.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.anticoagulantList[0].reteTime))
|
||
com_JDrugRete_count1.Text = TranReteTime(dto.anticoagulantList[0].reteTime);
|
||
com_JDrugRete_time1.Text = dto.anticoagulantList[0].reteCount;
|
||
txt_JDrugdDose1.Text = dto.anticoagulantList[0].dose;
|
||
}
|
||
if (com_JDrugStatus1.Text == "已停药" && !string.IsNullOrEmpty(dto.anticoagulantList[0].stopMedicationDate))
|
||
time_J1.TimeValue = dto.anticoagulantList[0].stopMedicationDate;
|
||
|
||
com_JDrugName2.Text = VauleTranTextOfName(dto.anticoagulantList[1].type, dto.anticoagulantList[1].name);
|
||
com_JDrugStatus2.Text = TranText(dto.anticoagulantList[1].status);
|
||
if (com_JDrugStatus2.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.anticoagulantList[1].reteTime))
|
||
com_JDrugRete_count2.Text = TranReteTime(dto.anticoagulantList[1].reteTime);
|
||
com_JDrugRete_time2.Text = dto.anticoagulantList[1].reteCount;
|
||
txt_JDrugdDose2.Text = dto.anticoagulantList[1].dose;
|
||
}
|
||
if (com_JDrugStatus2.Text == "已停药" && !string.IsNullOrEmpty(dto.anticoagulantList[1].stopMedicationDate))
|
||
time_J2.TimeValue = dto.anticoagulantList[1].stopMedicationDate;
|
||
|
||
com_JDrugName3.Text = VauleTranTextOfName(dto.anticoagulantList[2].type, dto.anticoagulantList[2].name);
|
||
com_JDrugStatus3.Text = TranText(dto.anticoagulantList[2].status);
|
||
if (com_JDrugStatus3.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.anticoagulantList[2].reteTime))
|
||
com_JDrugRete_count3.Text = TranReteTime(dto.anticoagulantList[2].reteTime);
|
||
com_JDrugRete_time3.Text = dto.anticoagulantList[2].reteCount;
|
||
txt_JDrugdDose3.Text = dto.anticoagulantList[2].dose;
|
||
}
|
||
if (com_JDrugStatus3.Text == "已停药" && !string.IsNullOrEmpty(dto.anticoagulantList[2].stopMedicationDate))
|
||
time_J3.TimeValue = dto.anticoagulantList[2].stopMedicationDate;
|
||
|
||
}
|
||
}
|
||
|
||
radio_isDiuretics.EditValue = dto.isDiuretics;
|
||
if (dto.diureticsList != null && dto.diureticsList.Count() > 0)
|
||
{
|
||
if (dto.diureticsList.Count() == 1)
|
||
{
|
||
com_ODrugName1.Text = VauleTranTextOfName(dto.diureticsList[0].type, dto.diureticsList[0].name);
|
||
com_ODrugStatus1.Text = TranText(dto.diureticsList[0].status);
|
||
|
||
|
||
if (com_ODrugStatus1.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.diureticsList[0].reteTime))
|
||
com_ODrugRete_count1.Text = TranReteTime(dto.diureticsList[0].reteTime);
|
||
com_ODrugRete_time1.Text = dto.diureticsList[0].reteCount;
|
||
txt_ODrugdDose1.Text = dto.diureticsList[0].dose;
|
||
}
|
||
if (com_ODrugStatus1.Text == "已停药" && !string.IsNullOrEmpty(dto.diureticsList[0].stopMedicationDate))
|
||
time_O1.TimeValue = dto.diureticsList[0].stopMedicationDate;
|
||
}
|
||
if (dto.diureticsList.Count() == 2)
|
||
{
|
||
panel_Diuretics2.Visible = true;
|
||
com_ODrugName1.Text = VauleTranTextOfName(dto.diureticsList[0].type, dto.diureticsList[0].name);
|
||
com_ODrugStatus1.Text = TranText(dto.diureticsList[0].status);
|
||
if (com_ODrugStatus1.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.diureticsList[0].reteTime))
|
||
com_ODrugRete_count1.Text = TranReteTime(dto.diureticsList[0].reteTime);
|
||
com_ODrugRete_time1.Text = dto.diureticsList[0].reteCount;
|
||
txt_ODrugdDose1.Text = dto.diureticsList[0].dose;
|
||
}
|
||
if (com_ODrugStatus1.Text == "已停药" && !string.IsNullOrEmpty(dto.diureticsList[0].stopMedicationDate))
|
||
time_O1.TimeValue = dto.diureticsList[0].stopMedicationDate;
|
||
|
||
com_ODrugName2.Text = VauleTranTextOfName(dto.diureticsList[1].type, dto.diureticsList[1].name);
|
||
com_ODrugStatus2.Text = TranText(dto.diureticsList[1].status);
|
||
if (com_ODrugStatus2.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.diureticsList[1].reteTime))
|
||
com_ODrugRete_count2.Text = TranReteTime(dto.diureticsList[1].reteTime);
|
||
com_ODrugRete_time2.Text = dto.diureticsList[1].reteCount;
|
||
txt_ODrugdDose2.Text = dto.diureticsList[1].dose;
|
||
}
|
||
if (com_ODrugStatus2.Text == "已停药" && !string.IsNullOrEmpty(dto.diureticsList[1].stopMedicationDate))
|
||
time_O2.TimeValue = dto.diureticsList[1].stopMedicationDate;
|
||
}
|
||
if (dto.diureticsList.Count() == 3)
|
||
{
|
||
panel_Diuretics2.Visible = true;
|
||
panel_Diuretics3.Visible = true;
|
||
com_ODrugName1.Text = VauleTranTextOfName(dto.diureticsList[0].type, dto.diureticsList[0].name);
|
||
com_ODrugStatus1.Text = TranText(dto.diureticsList[0].status);
|
||
if (com_ODrugStatus1.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.diureticsList[0].reteTime))
|
||
com_ODrugRete_count1.Text = TranReteTime(dto.diureticsList[0].reteTime);
|
||
com_ODrugRete_time1.Text = dto.diureticsList[0].reteCount;
|
||
txt_ODrugdDose1.Text = dto.diureticsList[0].dose;
|
||
}
|
||
if (com_ODrugStatus1.Text == "已停药" && !string.IsNullOrEmpty(dto.diureticsList[0].stopMedicationDate))
|
||
time_O1.TimeValue = dto.diureticsList[0].stopMedicationDate;
|
||
|
||
com_ODrugName2.Text = VauleTranTextOfName(dto.diureticsList[1].type, dto.diureticsList[1].name);
|
||
com_ODrugStatus2.Text = TranText(dto.diureticsList[1].status);
|
||
if (com_ODrugStatus2.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.diureticsList[1].reteTime))
|
||
com_ODrugRete_count2.Text = TranReteTime(dto.diureticsList[1].reteTime);
|
||
com_ODrugRete_time2.Text = dto.diureticsList[1].reteCount;
|
||
txt_ODrugdDose2.Text = dto.diureticsList[1].dose;
|
||
}
|
||
if (com_ODrugStatus2.Text == "已停药" && !string.IsNullOrEmpty(dto.diureticsList[1].stopMedicationDate))
|
||
time_O2.TimeValue = dto.diureticsList[1].stopMedicationDate;
|
||
|
||
com_ODrugName3.Text = VauleTranTextOfName(dto.diureticsList[2].type, dto.diureticsList[2].name);
|
||
com_ODrugStatus3.Text = TranText(dto.diureticsList[2].status);
|
||
if (com_ODrugStatus3.Text == "正在服用")
|
||
{
|
||
if (!string.IsNullOrEmpty(dto.diureticsList[2].reteTime))
|
||
com_ODrugRete_count3.Text = TranReteTime(dto.diureticsList[2].reteTime);
|
||
com_ODrugRete_time3.Text = dto.diureticsList[2].reteCount;
|
||
txt_ODrugdDose3.Text = dto.diureticsList[2].dose;
|
||
}
|
||
if (com_ODrugStatus3.Text == "已停药" && !string.IsNullOrEmpty(dto.diureticsList[2].stopMedicationDate))
|
||
time_O3.TimeValue = dto.diureticsList[2].stopMedicationDate;
|
||
}
|
||
}
|
||
}
|
||
#region
|
||
//List<FollowUpMedicationInfoDTO> lst = DBHelpClass.GetList<FollowUpMedicationInfoDTO>(string.Format("api/base/T_Service_ChestPain_FollowUpInfo/GetFollowUpMedicationList?registerId={0}&month={1}", registerId, month));
|
||
//if (lst.Count() > 0)
|
||
//{
|
||
// List<FollowUpMedicationInfoDTO> ADrugs = lst.Where(t => t.type == "1").ToList();
|
||
// List<FollowUpMedicationInfoDTO> BDrugs = lst.Where(t => t.type == "2").ToList();
|
||
// List<FollowUpMedicationInfoDTO> CDrugs = lst.Where(t => t.type == "3").ToList();
|
||
// List<FollowUpMedicationInfoDTO> DDrugs = lst.Where(t => t.type == "4").ToList();
|
||
// List<FollowUpMedicationInfoDTO> EDrugs = lst.Where(t => t.type == "5").ToList();
|
||
// List<FollowUpMedicationInfoDTO> FDrugs = lst.Where(t => t.type == "6").ToList();
|
||
// List<FollowUpMedicationInfoDTO> JDrugs = lst.Where(t => t.type == "7").ToList();
|
||
// List<FollowUpMedicationInfoDTO> ODrugs = lst.Where(t => t.type == "8").ToList();
|
||
//
|
||
//}
|
||
#endregion
|
||
}
|
||
|
||
|
||
|
||
/// <summary>
|
||
/// 组件赋值1
|
||
/// </summary>
|
||
public void AssemblyAssignmentOne(ComboBox comboBox1, string name, ComboBox comboBox2, string state)
|
||
{
|
||
comboBox1.Text = name;
|
||
comboBox2.Text = TranText(state);
|
||
}
|
||
|
||
/// <summary>
|
||
/// 组件赋值2
|
||
/// </summary>
|
||
public void AssemblyAssignmentTwo(ComboBox comboBox1, string name, ComboBox comboBox2, string state)
|
||
{
|
||
comboBox1.Text = name;
|
||
comboBox2.Text = TranText(state);
|
||
}
|
||
|
||
|
||
|
||
/// <summary>
|
||
/// 转换文字
|
||
/// </summary>
|
||
/// <param name="str"></param>
|
||
/// <returns></returns>
|
||
public string TranText(string str)
|
||
{
|
||
string text = "";
|
||
if (str == "1") text = "正在服用";
|
||
if (str == "2") text = "已停药";
|
||
if (str == "3") text = "从未服用";
|
||
return text;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 转频次
|
||
/// </summary>
|
||
/// <param name="str"></param>
|
||
/// <returns></returns>
|
||
public string TranReteTime(string str)
|
||
{
|
||
string text = "";
|
||
if (str == "1") text = "每日";
|
||
if (str == "2") text = "每周";
|
||
if (str == "3") text = "每月";
|
||
return text;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 保存数据
|
||
/// </summary>
|
||
public void SaveFollowUpMedication(string status)
|
||
{
|
||
try
|
||
{
|
||
List<FollowUpMedicationDTO> list = new List<FollowUpMedicationDTO>();
|
||
FollowUpMedicationDTO dto = new FollowUpMedicationDTO();
|
||
dto.registerId = registerId;
|
||
dto.month = month;
|
||
dto.status = status;
|
||
|
||
dto.isAntiplateletDrugs = radio_isAntiplateletDrugs.EditValue != null ? radio_isAntiplateletDrugs.EditValue.ToString() : "";
|
||
dto.antiplateletDrugsList = new List<FollowUpMedicationInfoDTO>();
|
||
if (panel_A.Visible == true)
|
||
{
|
||
if (!string.IsNullOrEmpty(com_ADrugName1.Text) ||
|
||
!string.IsNullOrEmpty(com_ADrugStatus1.Text) ||
|
||
!string.IsNullOrEmpty(com_ADrugRete_time1.Text) ||
|
||
!string.IsNullOrEmpty(com_ADrugRete_count1.Text) ||
|
||
!string.IsNullOrEmpty(txt_ADrugdDose1.Text))
|
||
{
|
||
FollowUpMedicationInfoDTO m = new FollowUpMedicationInfoDTO();
|
||
GrabMedicationOne(m, "1", com_ADrugName1, com_ADrugStatus1);
|
||
if (panel_A1.Visible == true)
|
||
GrabMedicationTwo(m, com_ADrugRete_time1, com_ADrugRete_count1, txt_ADrugdDose1);
|
||
if (panel_A2.Visible == true)
|
||
GrabMedicationThress(m, time_A1);
|
||
dto.antiplateletDrugsList.Add(m);
|
||
}
|
||
if (panel_isAntiplateletDrugs2.Visible == true)
|
||
{
|
||
if (!string.IsNullOrEmpty(com_ADrugName2.Text) ||
|
||
!string.IsNullOrEmpty(com_ADrugStatus2.Text) ||
|
||
!string.IsNullOrEmpty(com_ADrugRete_time2.Text) ||
|
||
!string.IsNullOrEmpty(com_ADrugRete_count2.Text) ||
|
||
!string.IsNullOrEmpty(txt_ADrugdDose2.Text))
|
||
{
|
||
FollowUpMedicationInfoDTO m2 = new FollowUpMedicationInfoDTO();
|
||
GrabMedicationOne(m2, "1", com_ADrugName2, com_ADrugStatus2);
|
||
if (panel_A3.Visible == true)
|
||
GrabMedicationTwo(m2, com_ADrugRete_time2, com_ADrugRete_count2, txt_ADrugdDose2);
|
||
if (panel_A4.Visible == true)
|
||
GrabMedicationThress(m2, time_A2);
|
||
dto.antiplateletDrugsList.Add(m2);
|
||
}
|
||
}
|
||
if (panel_isAntiplateletDrugs3.Visible == true)
|
||
{
|
||
if (!string.IsNullOrEmpty(com_ADrugName3.Text) ||
|
||
!string.IsNullOrEmpty(com_ADrugStatus3.Text) ||
|
||
!string.IsNullOrEmpty(com_ADrugRete_time3.Text) ||
|
||
!string.IsNullOrEmpty(com_ADrugRete_count3.Text) ||
|
||
!string.IsNullOrEmpty(txt_ADrugdDose3.Text))
|
||
{
|
||
FollowUpMedicationInfoDTO m3 = new FollowUpMedicationInfoDTO();
|
||
GrabMedicationOne(m3, "1", com_ADrugName3, com_ADrugStatus3);
|
||
if (panel_A5.Visible == true)
|
||
GrabMedicationTwo(m3, com_ADrugRete_time3, com_ADrugRete_count3, txt_ADrugdDose3);
|
||
if (panel_A6.Visible == true)
|
||
GrabMedicationThress(m3, time_A3);
|
||
dto.antiplateletDrugsList.Add(m3);
|
||
}
|
||
}
|
||
}
|
||
|
||
dto.isLipidLoweringDrugs = radio_isLipidLoweringDrugs.EditValue != null ? radio_isLipidLoweringDrugs.EditValue.ToString() : "";
|
||
dto.lipidLoweringDrugsList = new List<FollowUpMedicationInfoDTO>();
|
||
if (panel_B.Visible == true)
|
||
{
|
||
if (!string.IsNullOrEmpty(com_BDrugName1.Text) ||
|
||
!string.IsNullOrEmpty(com_BDrugStatus1.Text) ||
|
||
!string.IsNullOrEmpty(com_BDrugRete_time1.Text) ||
|
||
!string.IsNullOrEmpty(com_BDrugRete_count1.Text) ||
|
||
!string.IsNullOrEmpty(txt_BDrugdDose1.Text))
|
||
{
|
||
FollowUpMedicationInfoDTO m = new FollowUpMedicationInfoDTO();
|
||
GrabMedicationOne(m, "2", com_BDrugName1, com_BDrugStatus1);
|
||
if (panel_B1.Visible == true)
|
||
GrabMedicationTwo(m, com_BDrugRete_time1, com_BDrugRete_count1, txt_BDrugdDose1);
|
||
if (panel_B2.Visible == true)
|
||
GrabMedicationThress(m, time_B1);
|
||
dto.lipidLoweringDrugsList.Add(m);
|
||
}
|
||
if (panel_LipidLoweringDrugs2.Visible == true)
|
||
{
|
||
if (!string.IsNullOrEmpty(com_BDrugName2.Text) ||
|
||
!string.IsNullOrEmpty(com_BDrugStatus2.Text) ||
|
||
!string.IsNullOrEmpty(com_BDrugRete_time2.Text) ||
|
||
!string.IsNullOrEmpty(com_BDrugRete_count2.Text) ||
|
||
!string.IsNullOrEmpty(txt_BDrugdDose2.Text))
|
||
{
|
||
FollowUpMedicationInfoDTO m2 = new FollowUpMedicationInfoDTO();
|
||
GrabMedicationOne(m2, "2", com_BDrugName2, com_BDrugStatus2);
|
||
if (panel_B3.Visible == true)
|
||
GrabMedicationTwo(m2, com_BDrugRete_time2, com_BDrugRete_count2, txt_BDrugdDose2);
|
||
if (panel_B4.Visible == true)
|
||
GrabMedicationThress(m2, time_B2);
|
||
dto.lipidLoweringDrugsList.Add(m2);
|
||
}
|
||
}
|
||
if (panel_LipidLoweringDrugs3.Visible == true)
|
||
{
|
||
if (!string.IsNullOrEmpty(com_BDrugName3.Text) ||
|
||
!string.IsNullOrEmpty(com_BDrugStatus3.Text) ||
|
||
!string.IsNullOrEmpty(com_BDrugRete_time3.Text) ||
|
||
!string.IsNullOrEmpty(com_BDrugRete_count3.Text) ||
|
||
!string.IsNullOrEmpty(txt_BDrugdDose3.Text))
|
||
{
|
||
FollowUpMedicationInfoDTO m3 = new FollowUpMedicationInfoDTO();
|
||
GrabMedicationOne(m3, "2", com_BDrugName3, com_BDrugStatus3);
|
||
if (panel_B5.Visible == true)
|
||
GrabMedicationTwo(m3, com_BDrugRete_time3, com_BDrugRete_count3, txt_BDrugdDose3);
|
||
if (panel_B6.Visible == true)
|
||
GrabMedicationThress(m3, time_B3);
|
||
dto.lipidLoweringDrugsList.Add(m3);
|
||
}
|
||
}
|
||
}
|
||
dto.isAceiAndArb = radio_isAceiAndArb.EditValue != null ? radio_isAceiAndArb.EditValue.ToString() : "";
|
||
dto.aceiAndArbList = new List<FollowUpMedicationInfoDTO>();
|
||
if (panel_C.Visible == true)
|
||
{
|
||
if (!string.IsNullOrEmpty(com_CDrugName1.Text) ||
|
||
!string.IsNullOrEmpty(com_CDrugStatus1.Text) ||
|
||
!string.IsNullOrEmpty(com_CDrugRete_time1.Text) ||
|
||
!string.IsNullOrEmpty(com_CDrugRete_count1.Text) ||
|
||
!string.IsNullOrEmpty(txt_CDrugdDose1.Text))
|
||
{
|
||
FollowUpMedicationInfoDTO m = new FollowUpMedicationInfoDTO();
|
||
GrabMedicationOne(m, "3", com_CDrugName1, com_CDrugStatus1);
|
||
if (panel_C1.Visible == true)
|
||
GrabMedicationTwo(m, com_CDrugRete_time1, com_CDrugRete_count1, txt_CDrugdDose1);
|
||
if (panel_C2.Visible == true)
|
||
GrabMedicationThress(m, time_C1);
|
||
dto.aceiAndArbList.Add(m);
|
||
}
|
||
if (panel_AceiAndArb2.Visible == true)
|
||
{
|
||
if (!string.IsNullOrEmpty(com_CDrugName2.Text) ||
|
||
!string.IsNullOrEmpty(com_CDrugStatus2.Text) ||
|
||
!string.IsNullOrEmpty(com_CDrugRete_time2.Text) ||
|
||
!string.IsNullOrEmpty(com_CDrugRete_count2.Text) ||
|
||
!string.IsNullOrEmpty(txt_CDrugdDose2.Text))
|
||
{
|
||
FollowUpMedicationInfoDTO m2 = new FollowUpMedicationInfoDTO();
|
||
GrabMedicationOne(m2, "3", com_CDrugName2, com_CDrugStatus2);
|
||
if (panel_C3.Visible == true)
|
||
GrabMedicationTwo(m2, com_CDrugRete_time2, com_CDrugRete_count2, txt_CDrugdDose2);
|
||
if (panel_C4.Visible == true)
|
||
GrabMedicationThress(m2, time_C2);
|
||
dto.aceiAndArbList.Add(m2);
|
||
}
|
||
}
|
||
if (panel_AceiAndArb3.Visible == true)
|
||
{
|
||
if (!string.IsNullOrEmpty(com_CDrugName3.Text) ||
|
||
!string.IsNullOrEmpty(com_CDrugStatus3.Text) ||
|
||
!string.IsNullOrEmpty(com_CDrugRete_time3.Text) ||
|
||
!string.IsNullOrEmpty(com_CDrugRete_count3.Text) ||
|
||
!string.IsNullOrEmpty(txt_CDrugdDose3.Text))
|
||
{
|
||
FollowUpMedicationInfoDTO m3 = new FollowUpMedicationInfoDTO();
|
||
GrabMedicationOne(m3, "3", com_CDrugName3, com_CDrugStatus3);
|
||
if (panel_C5.Visible == true)
|
||
GrabMedicationTwo(m3, com_CDrugRete_time3, com_CDrugRete_count3, txt_CDrugdDose3);
|
||
if (panel_C6.Visible == true)
|
||
GrabMedicationThress(m3, time_C3);
|
||
dto.aceiAndArbList.Add(m3);
|
||
}
|
||
}
|
||
}
|
||
|
||
dto.isArni = radio_isArni.EditValue != null ? radio_isArni.EditValue.ToString() : "";
|
||
dto.arniList = new List<FollowUpMedicationInfoDTO>();
|
||
if (panel_D.Visible == true)
|
||
{
|
||
if (!string.IsNullOrEmpty(com_DDrugName1.Text) ||
|
||
!string.IsNullOrEmpty(com_DDrugStatus1.Text) ||
|
||
!string.IsNullOrEmpty(com_DDrugRete_time1.Text) ||
|
||
!string.IsNullOrEmpty(com_DDrugRete_count1.Text) ||
|
||
!string.IsNullOrEmpty(txt_DDrugdDose1.Text))
|
||
{
|
||
FollowUpMedicationInfoDTO m = new FollowUpMedicationInfoDTO();
|
||
GrabMedicationOne(m, "8", com_DDrugName1, com_DDrugStatus1);
|
||
if (panel_D1.Visible == true)
|
||
GrabMedicationTwo(m, com_DDrugRete_time1, com_DDrugRete_count1, txt_DDrugdDose1);
|
||
if (panel_D2.Visible == true)
|
||
GrabMedicationThress(m, time_D1);
|
||
dto.arniList.Add(m);
|
||
}
|
||
if (panel_Arni2.Visible == true)
|
||
{
|
||
if (!string.IsNullOrEmpty(com_DDrugName2.Text) ||
|
||
!string.IsNullOrEmpty(com_DDrugStatus2.Text) ||
|
||
!string.IsNullOrEmpty(com_DDrugRete_time2.Text) ||
|
||
!string.IsNullOrEmpty(com_DDrugRete_count2.Text) ||
|
||
!string.IsNullOrEmpty(txt_DDrugdDose2.Text))
|
||
{
|
||
FollowUpMedicationInfoDTO m2 = new FollowUpMedicationInfoDTO();
|
||
GrabMedicationOne(m2, "8", com_DDrugName2, com_DDrugStatus2);
|
||
if (panel_D3.Visible == true)
|
||
GrabMedicationTwo(m2, com_DDrugRete_time2, com_DDrugRete_count2, txt_DDrugdDose2);
|
||
if (panel_D4.Visible == true)
|
||
GrabMedicationThress(m2, time_D2);
|
||
dto.arniList.Add(m2);
|
||
}
|
||
}
|
||
if (panel_Arni3.Visible == true)
|
||
{
|
||
if (!string.IsNullOrEmpty(com_DDrugName3.Text) ||
|
||
!string.IsNullOrEmpty(com_DDrugStatus3.Text) ||
|
||
!string.IsNullOrEmpty(com_DDrugRete_time3.Text) ||
|
||
!string.IsNullOrEmpty(com_DDrugRete_count3.Text) ||
|
||
!string.IsNullOrEmpty(txt_DDrugdDose3.Text))
|
||
{
|
||
FollowUpMedicationInfoDTO m3 = new FollowUpMedicationInfoDTO();
|
||
GrabMedicationOne(m3, "8", com_DDrugName3, com_DDrugStatus3);
|
||
if (panel_D5.Visible == true)
|
||
GrabMedicationTwo(m3, com_DDrugRete_time3, com_DDrugRete_count3, txt_DDrugdDose3);
|
||
if (panel_D6.Visible == true)
|
||
GrabMedicationThress(m3, time_D3);
|
||
dto.arniList.Add(m3);
|
||
}
|
||
}
|
||
}
|
||
|
||
dto.isBetaBlocker = radio_isBetaBlocker.EditValue != null ? radio_isBetaBlocker.EditValue.ToString() : "";
|
||
dto.betaBlockerList = new List<FollowUpMedicationInfoDTO>();
|
||
if (panel_E.Visible == true)
|
||
{
|
||
if (!string.IsNullOrEmpty(com_EDrugName1.Text) ||
|
||
!string.IsNullOrEmpty(com_EDrugStatus1.Text) ||
|
||
!string.IsNullOrEmpty(com_EDrugRete_time1.Text) ||
|
||
!string.IsNullOrEmpty(com_EDrugRete_count1.Text) ||
|
||
!string.IsNullOrEmpty(txt_EDrugdDose1.Text))
|
||
{
|
||
FollowUpMedicationInfoDTO m = new FollowUpMedicationInfoDTO();
|
||
GrabMedicationOne(m, "4", com_EDrugName1, com_EDrugStatus1);
|
||
if (panel_E1.Visible == true)
|
||
GrabMedicationTwo(m, com_EDrugRete_time1, com_EDrugRete_count1, txt_EDrugdDose1);
|
||
if (panel_E2.Visible == true)
|
||
GrabMedicationThress(m, time_E1);
|
||
dto.betaBlockerList.Add(m);
|
||
}
|
||
|
||
}
|
||
|
||
dto.isHypoglycemicDrugs = radio_isHypoglycemicDrugs.EditValue != null ? radio_isBetaBlocker.EditValue.ToString() : "";
|
||
dto.hypoglycemicDrugsList = new List<FollowUpMedicationInfoDTO>();
|
||
if (panel_F.Visible == true)
|
||
{
|
||
if (!string.IsNullOrEmpty(com_FDrugName1.Text) ||
|
||
!string.IsNullOrEmpty(com_FDrugStatus1.Text) ||
|
||
!string.IsNullOrEmpty(com_FDrugRete_time1.Text) ||
|
||
!string.IsNullOrEmpty(com_FDrugRete_count1.Text) ||
|
||
!string.IsNullOrEmpty(txt_FDrugdDose1.Text))
|
||
{
|
||
FollowUpMedicationInfoDTO m = new FollowUpMedicationInfoDTO();
|
||
GrabMedicationOne(m, "5", com_FDrugName1, com_FDrugStatus1);
|
||
if (panel_F1.Visible == true)
|
||
GrabMedicationTwo(m, com_FDrugRete_time1, com_FDrugRete_count1, txt_FDrugdDose1);
|
||
if (panel_F2.Visible == true)
|
||
GrabMedicationThress(m, time_F1);
|
||
dto.hypoglycemicDrugsList.Add(m);
|
||
}
|
||
if (panel_HypoglycemicDrugs2.Visible == true)
|
||
{
|
||
if (!string.IsNullOrEmpty(com_FDrugName2.Text) ||
|
||
!string.IsNullOrEmpty(com_FDrugStatus2.Text) ||
|
||
!string.IsNullOrEmpty(com_FDrugRete_time2.Text) ||
|
||
!string.IsNullOrEmpty(com_FDrugRete_count2.Text) ||
|
||
!string.IsNullOrEmpty(txt_FDrugdDose2.Text))
|
||
{
|
||
FollowUpMedicationInfoDTO m2 = new FollowUpMedicationInfoDTO();
|
||
GrabMedicationOne(m2, "5", com_FDrugName2, com_FDrugStatus2);
|
||
if (panel_F3.Visible == true)
|
||
GrabMedicationTwo(m2, com_FDrugRete_time2, com_FDrugRete_count2, txt_FDrugdDose2);
|
||
if (panel_F4.Visible == true)
|
||
GrabMedicationThress(m2, time_F2);
|
||
dto.hypoglycemicDrugsList.Add(m2);
|
||
}
|
||
}
|
||
if (panel_HypoglycemicDrugs3.Visible == true)
|
||
{
|
||
if (!string.IsNullOrEmpty(com_FDrugName3.Text) ||
|
||
!string.IsNullOrEmpty(com_FDrugStatus3.Text) ||
|
||
!string.IsNullOrEmpty(com_FDrugRete_time3.Text) ||
|
||
!string.IsNullOrEmpty(com_FDrugRete_count3.Text) ||
|
||
!string.IsNullOrEmpty(txt_FDrugdDose3.Text))
|
||
{
|
||
FollowUpMedicationInfoDTO m2 = new FollowUpMedicationInfoDTO();
|
||
GrabMedicationOne(m2, "5", com_FDrugName3, com_FDrugStatus3);
|
||
if (panel_F5.Visible == true)
|
||
GrabMedicationTwo(m2, com_FDrugRete_time3, com_FDrugRete_count3, txt_FDrugdDose3);
|
||
if (panel_F6.Visible == true)
|
||
GrabMedicationThress(m2, time_F3);
|
||
dto.hypoglycemicDrugsList.Add(m2);
|
||
}
|
||
}
|
||
}
|
||
dto.isAnticoagulant = radio_isAnticoagulant.EditValue != null ? radio_isAnticoagulant.EditValue.ToString() : "";
|
||
dto.anticoagulantList = new List<FollowUpMedicationInfoDTO>();
|
||
if (panel_J.Visible == true)
|
||
{
|
||
if (!string.IsNullOrEmpty(com_JDrugName1.Text) ||
|
||
!string.IsNullOrEmpty(com_JDrugStatus1.Text) ||
|
||
!string.IsNullOrEmpty(com_JDrugRete_time1.Text) ||
|
||
!string.IsNullOrEmpty(com_JDrugRete_count1.Text) ||
|
||
!string.IsNullOrEmpty(txt_JDrugdDose1.Text))
|
||
{
|
||
FollowUpMedicationInfoDTO m = new FollowUpMedicationInfoDTO();
|
||
GrabMedicationOne(m, "6", com_JDrugName1, com_JDrugStatus1);
|
||
if (panel_G1.Visible == true)
|
||
GrabMedicationTwo(m, com_JDrugRete_time1, com_JDrugRete_count1, txt_JDrugdDose1);
|
||
if (panel_G2.Visible == true)
|
||
GrabMedicationThress(m, time_J1);
|
||
dto.anticoagulantList.Add(m);
|
||
}
|
||
if (panel_Anticoagulant2.Visible == true)
|
||
{
|
||
if (!string.IsNullOrEmpty(com_JDrugName2.Text) ||
|
||
!string.IsNullOrEmpty(com_JDrugStatus2.Text) ||
|
||
!string.IsNullOrEmpty(com_JDrugRete_time2.Text) ||
|
||
!string.IsNullOrEmpty(com_JDrugRete_count2.Text) ||
|
||
!string.IsNullOrEmpty(txt_JDrugdDose2.Text))
|
||
{
|
||
FollowUpMedicationInfoDTO m2 = new FollowUpMedicationInfoDTO();
|
||
GrabMedicationOne(m2, "6", com_JDrugName2, com_JDrugStatus2);
|
||
if (panel_G3.Visible == true)
|
||
GrabMedicationTwo(m2, com_JDrugRete_time2, com_JDrugRete_count2, txt_JDrugdDose2);
|
||
if (panel_G4.Visible == true)
|
||
GrabMedicationThress(m2, time_J2);
|
||
dto.anticoagulantList.Add(m2);
|
||
}
|
||
}
|
||
if (panel_Anticoagulant3.Visible == true)
|
||
{
|
||
if (!string.IsNullOrEmpty(com_JDrugName3.Text) ||
|
||
!string.IsNullOrEmpty(com_JDrugStatus3.Text) ||
|
||
!string.IsNullOrEmpty(com_JDrugRete_time3.Text) ||
|
||
!string.IsNullOrEmpty(com_JDrugRete_count3.Text) ||
|
||
!string.IsNullOrEmpty(txt_JDrugdDose3.Text))
|
||
{
|
||
FollowUpMedicationInfoDTO m2 = new FollowUpMedicationInfoDTO();
|
||
GrabMedicationOne(m2, "6", com_JDrugName3, com_JDrugStatus3);
|
||
if (panel_G5.Visible == true)
|
||
GrabMedicationTwo(m2, com_JDrugRete_time3, com_JDrugRete_count3, txt_JDrugdDose3);
|
||
if (panel_G6.Visible == true)
|
||
GrabMedicationThress(m2, time_J3);
|
||
dto.anticoagulantList.Add(m2);
|
||
}
|
||
}
|
||
}
|
||
|
||
dto.isDiuretics = radio_isDiuretics.EditValue != null ? radio_isDiuretics.EditValue.ToString() : "";
|
||
dto.diureticsList = new List<FollowUpMedicationInfoDTO>();
|
||
if (panel_O.Visible == true)
|
||
{
|
||
if (!string.IsNullOrEmpty(com_ODrugName1.Text) ||
|
||
!string.IsNullOrEmpty(com_ODrugStatus1.Text) ||
|
||
!string.IsNullOrEmpty(com_ODrugRete_time1.Text) ||
|
||
!string.IsNullOrEmpty(com_ODrugRete_count1.Text) ||
|
||
!string.IsNullOrEmpty(txt_ODrugdDose1.Text))
|
||
{
|
||
FollowUpMedicationInfoDTO m = new FollowUpMedicationInfoDTO();
|
||
GrabMedicationOne(m, "7", com_ODrugName1, com_ODrugStatus1);
|
||
if (panel_H1.Visible == true)
|
||
GrabMedicationTwo(m, com_ODrugRete_time1, com_ODrugRete_count1, txt_ODrugdDose1);
|
||
if (panel_H2.Visible == true)
|
||
GrabMedicationThress(m, time_O1);
|
||
dto.diureticsList.Add(m);
|
||
}
|
||
if (panel_Diuretics2.Visible == true)
|
||
{
|
||
if (!string.IsNullOrEmpty(com_ODrugName2.Text) ||
|
||
!string.IsNullOrEmpty(com_ODrugStatus2.Text) ||
|
||
!string.IsNullOrEmpty(com_ODrugRete_time2.Text) ||
|
||
!string.IsNullOrEmpty(com_ODrugRete_count2.Text) ||
|
||
!string.IsNullOrEmpty(txt_ODrugdDose2.Text))
|
||
{
|
||
FollowUpMedicationInfoDTO m2 = new FollowUpMedicationInfoDTO();
|
||
GrabMedicationOne(m2, "7", com_ODrugName2, com_ODrugStatus2);
|
||
if (panel_H3.Visible == true)
|
||
GrabMedicationTwo(m2, com_ODrugRete_time2, com_ODrugRete_count2, txt_ODrugdDose2);
|
||
if (panel_H4.Visible == true)
|
||
GrabMedicationThress(m2, time_O2);
|
||
dto.diureticsList.Add(m2);
|
||
}
|
||
}
|
||
if (panel_Diuretics3.Visible == true)
|
||
{
|
||
if (!string.IsNullOrEmpty(com_ODrugName3.Text) ||
|
||
!string.IsNullOrEmpty(com_ODrugStatus3.Text) ||
|
||
!string.IsNullOrEmpty(com_ODrugRete_time3.Text) ||
|
||
!string.IsNullOrEmpty(com_ODrugRete_count3.Text) ||
|
||
!string.IsNullOrEmpty(txt_ODrugdDose3.Text))
|
||
{
|
||
FollowUpMedicationInfoDTO m2 = new FollowUpMedicationInfoDTO();
|
||
GrabMedicationOne(m2, "7", com_ODrugName3, com_ODrugStatus3);
|
||
if (panel_H5.Visible == true)
|
||
GrabMedicationTwo(m2, com_ODrugRete_time3, com_ODrugRete_count3, txt_ODrugdDose3);
|
||
if (panel_H6.Visible == true)
|
||
GrabMedicationThress(m2, time_O3);
|
||
dto.diureticsList.Add(m2);
|
||
}
|
||
}
|
||
}
|
||
|
||
list.Add(dto);
|
||
string Url = string.Empty;
|
||
Url = "api/service/T_Service_ChestPain_FollowUpInfo/SaveFollowUpMedication";
|
||
//初始化两个工厂
|
||
ClientFactory<FollowUpMedicationDTO> httpClient = new HttpClientFactory<FollowUpMedicationDTO>();
|
||
Client<FollowUpMedicationDTO> client = httpClient.VisitFactory();
|
||
//访问
|
||
ListEntity<FollowUpMedicationDTO> t = client.Post(Url, list);
|
||
if (t.Success)
|
||
{
|
||
JObject jo = (JObject)JsonConvert.DeserializeObject(t.DataString);
|
||
string msg = jo["Msg"].ToString();
|
||
if (!string.IsNullOrEmpty(msg))
|
||
{
|
||
MessageBox.Show(msg);
|
||
}
|
||
}
|
||
else
|
||
{
|
||
}
|
||
|
||
}
|
||
catch (Exception)
|
||
{
|
||
|
||
throw;
|
||
}
|
||
}
|
||
|
||
|
||
/// <summary>
|
||
/// 抓取药物数据1
|
||
/// </summary>
|
||
/// <param name="dto"></param>
|
||
/// <param name="type">药物类型:
|
||
/// 1:抗血小板药物 2:调脂药物 3:ACEI/ARB 类
|
||
/// 4:β受体阻滞剂 5:降糖药物 6:抗凝 7:利尿剂 8:ARNI
|
||
/// </param>
|
||
/// <param name="comboBox1"></param>
|
||
/// <param name="comboBox2"></param>
|
||
public void GrabMedicationOne(FollowUpMedicationInfoDTO dto, string type, ComboBox comboBox1, ComboBox comboBox2)
|
||
{
|
||
dto.type = type;
|
||
dto.registerId = registerId;
|
||
dto.month = month;
|
||
dto.name = TextTranValueOfName(type, comboBox1.Text);
|
||
dto.status = TextTranState(comboBox2.Text);
|
||
}
|
||
|
||
/// <summary>
|
||
/// 抓取药物数据2
|
||
/// </summary>
|
||
/// <param name="dto"></param>
|
||
/// <param name="comboBox1">频次</param>
|
||
/// <param name="comboBox2">次数</param>
|
||
/// <param name="textEdit">剂量</param>
|
||
public void GrabMedicationTwo(FollowUpMedicationInfoDTO dto, ComboBox comboBox1, ComboBox comboBox2, DevExpress.XtraEditors.TextEdit textEdit)
|
||
{
|
||
dto.reteCount = comboBox1.Text;
|
||
dto.reteTime = TextTranReteTime(comboBox2.Text);
|
||
dto.dose = textEdit.Text;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 抓取药物数据3
|
||
/// </summary>
|
||
/// <param name="dto"></param>
|
||
/// <param name="timeControl"></param>
|
||
public void GrabMedicationThress(FollowUpMedicationInfoDTO dto, TimeControl timeControl)
|
||
{
|
||
dto.stopMedicationDate = Convert.ToDateTime(timeControl.TimeValue).ToString("yyyy-MM-dd");
|
||
}
|
||
|
||
/// <summary>
|
||
/// 文字转值==药物名称
|
||
/// </summary>
|
||
/// <param name="type">1:抗血小板药物 2:调脂药物 3:ACEI/ARB 类 4:β受体阻滞剂 5:降糖药物 6:抗凝 7:利尿剂8:ARNI</param>
|
||
/// <param name="str"></param>
|
||
/// <returns></returns>
|
||
public string TextTranValueOfName(string type, string str)
|
||
{
|
||
string text = "";
|
||
switch (type)
|
||
{
|
||
case "1":
|
||
if (str == "阿司匹林") text = "1";
|
||
if (str == "氯吡格雷") text = "2";
|
||
if (str == "替格瑞洛") text = "3";
|
||
if (str == "其它药物") text = "99";
|
||
break;
|
||
case "2":
|
||
if (str == "阿托伐他汀") text = "1";
|
||
if (str == "瑞舒伐他汀") text = "2";
|
||
if (str == "洛伐他汀") text = "3";
|
||
if (str == "普伐他汀") text = "4";
|
||
if (str == "辛伐他汀") text = "5";
|
||
if (str == "氟伐他汀") text = "6";
|
||
if (str == "匹伐他汀") text = "7";
|
||
if (str == "依折麦布") text = "8";
|
||
if (str == "阿利西尤单抗") text = "9";
|
||
if (str == "依洛尤单抗") text = "10";
|
||
if (str == "其他") text = "99";
|
||
break;
|
||
case "3":
|
||
if (str == "贝那普利") text = "1";
|
||
if (str == "依那普利") text = "2";
|
||
if (str == "赖诺普利") text = "3";
|
||
if (str == "卡托普利") text = "4";
|
||
if (str == "福辛普利") text = "5";
|
||
if (str == "莫西普利") text = "6";
|
||
if (str == "培哚普利") text = "7";
|
||
if (str == "雷米普利") text = "8";
|
||
if (str == "缬沙坦") text = "9";
|
||
if (str == "氯沙坦") text = "10";
|
||
if (str == "厄贝沙坦") text = "11";
|
||
if (str == "坎地沙坦") text = "12";
|
||
if (str == "替米沙坦") text = "13";
|
||
if (str == "奥美沙坦") text = "14";
|
||
if (str == "沙库巴曲缬沙坦钠") text = "15";
|
||
if (str == "单片复方制剂") text = "16";
|
||
if (str == "其他(单药)") text = "99";
|
||
break;
|
||
case "4":
|
||
if (str == "酒石酸美托洛尔") text = "1";
|
||
if (str == "琥珀酸美托洛尔") text = "2";
|
||
if (str == "比索洛尔") text = "3";
|
||
if (str == "阿替洛尔") text = "4";
|
||
if (str == "普萘洛尔") text = "5";
|
||
if (str == "奈必洛尔") text = "6";
|
||
if (str == "卡维地洛") text = "7";
|
||
if (str == "其他") text = "99";
|
||
break;
|
||
case "5":
|
||
if (str == "磺脲类") text = "1";
|
||
if (str == "双胍类") text = "2";
|
||
if (str == "α糖苷酶抑制剂") text = "3";
|
||
if (str == "DPP-4抑制剂") text = "4";
|
||
if (str == "GLP-1受体激动剂") text = "5";
|
||
if (str == "SGLT-2抑制剂") text = "6";
|
||
if (str == "胰岛素及胰岛素类") text = "7";
|
||
if (str == "其他") text = "99";
|
||
break;
|
||
case "6":
|
||
if (str == "华法林") text = "1";
|
||
if (str == "达比加群酯") text = "2";
|
||
if (str == "利伐沙班") text = "3";
|
||
if (str == "阿哌沙班") text = "4";
|
||
if (str == "其他") text = "99";
|
||
break;
|
||
case "8":
|
||
if (str == "沙库巴曲缬沙坦钠") text = "1";
|
||
if (str == "其他") text = "99";
|
||
break;
|
||
case "7":
|
||
if (str == "袢利尿剂") text = "1";
|
||
if (str == "噻嗪类利尿剂") text = "2";
|
||
if (str == "保钾利尿剂") text = "3";
|
||
if (str == "精氨酸加压素受体拮抗剂") text = "4";
|
||
break;
|
||
}
|
||
return text;
|
||
}
|
||
|
||
|
||
/// <summary>
|
||
/// 值转文字==药物名称
|
||
/// </summary>
|
||
/// <returns></returns>
|
||
public string VauleTranTextOfName(string type, string str)
|
||
{
|
||
string text = "";
|
||
switch (type)
|
||
{
|
||
case "1":
|
||
if (str == "1") text = "阿司匹林";
|
||
if (str == "2") text = "氯吡格雷";
|
||
if (str == "3") text = "替格瑞洛";
|
||
if (str == "99") text = "其它药物";
|
||
break;
|
||
case "2":
|
||
if (str == "1") text = "阿托伐他汀";
|
||
if (str == "2") text = "瑞舒伐他汀";
|
||
if (str == "3") text = "洛伐他汀";
|
||
if (str == "4") text = "普伐他汀";
|
||
if (str == "5") text = "辛伐他汀";
|
||
if (str == "6") text = "氟伐他汀";
|
||
if (str == "7") text = "匹伐他汀";
|
||
if (str == "8") text = "依折麦布";
|
||
if (str == "9") text = "阿利西尤单抗";
|
||
if (str == "10") text = "依洛尤单抗";
|
||
if (str == "99") text = "其他";
|
||
break;
|
||
case "3":
|
||
if (str == "1") text = "贝那普利";
|
||
if (str == "2") text = "依那普利";
|
||
if (str == "3") text = "赖诺普利";
|
||
if (str == "4") text = "卡托普利";
|
||
if (str == "5") text = "福辛普利";
|
||
if (str == "6") text = "莫西普利";
|
||
if (str == "7") text = "培哚普利";
|
||
if (str == "8") text = "雷米普利";
|
||
if (str == "9") text = "缬沙坦";
|
||
if (str == "10") text = "氯沙坦";
|
||
if (str == "11") text = "厄贝沙坦";
|
||
if (str == "12") text = "坎地沙坦";
|
||
if (str == "13") text = "替米沙坦";
|
||
if (str == "14") text = "奥美沙坦";
|
||
if (str == "15") text = "沙库巴曲缬沙坦钠";
|
||
if (str == "16") text = "单片复方制剂";
|
||
if (str == "99") text = "其他(单药)";
|
||
break;
|
||
case "4":
|
||
if (str == "1") text = "酒石酸美托洛尔";
|
||
if (str == "2") text = "琥珀酸美托洛尔";
|
||
if (str == "3") text = "比索洛尔";
|
||
if (str == "4") text = "阿替洛尔";
|
||
if (str == "5") text = "普萘洛尔";
|
||
if (str == "6") text = "奈必洛尔";
|
||
if (str == "7") text = "卡维地洛";
|
||
if (str == "99") text = "其他";
|
||
break;
|
||
case "5":
|
||
if (str == "1") text = "磺脲类";
|
||
if (str == "2") text = "双胍类";
|
||
if (str == "3") text = "α糖苷酶抑制剂";
|
||
if (str == "4") text = "DPP-4抑制剂";
|
||
if (str == "5") text = "GLP-1受体激动剂";
|
||
if (str == "6") text = "SGLT-2抑制剂";
|
||
if (str == "7") text = "胰岛素及胰岛素类";
|
||
if (str == "99") text = "其他";
|
||
break;
|
||
case "6":
|
||
if (str == "1") text = "华法林";
|
||
if (str == "2") text = "达比加群酯";
|
||
if (str == "3") text = "利伐沙班";
|
||
if (str == "4") text = "阿哌沙班";
|
||
if (str == "99") text = "其他";
|
||
break;
|
||
case "8":
|
||
if (str == "1") text = "沙库巴曲缬沙坦钠";
|
||
if (str == "99") text = "其他";
|
||
break;
|
||
case "7":
|
||
if (str == "1") text = "袢利尿剂";
|
||
if (str == "2") text = "噻嗪类利尿剂";
|
||
if (str == "3") text = "保钾利尿剂";
|
||
if (str == "4") text = "精氨酸加压素受体拮抗剂";
|
||
break;
|
||
}
|
||
return text;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 文字转换状态
|
||
/// </summary>
|
||
/// <param name="str"></param>
|
||
/// <returns></returns>
|
||
public string TextTranState(string str)
|
||
{
|
||
string text = "";
|
||
if (str == "正在服用") text = "1";
|
||
if (str == "已停药") text = "2";
|
||
if (str == "从未服用") text = "3";
|
||
return text;
|
||
}
|
||
|
||
|
||
/// <summary>
|
||
/// 转频次
|
||
/// </summary>
|
||
/// <param name="str"></param>
|
||
/// <returns></returns>
|
||
public string TextTranReteTime(string str)
|
||
{
|
||
string text = "";
|
||
if (str == "每日") text = "1";
|
||
if (str == "每周") text = "2";
|
||
if (str == "每月") text = "3";
|
||
return text;
|
||
}
|
||
|
||
|
||
}
|
||
} |