605 lines
26 KiB
C#
605 lines
26 KiB
C#
using DevExpress.XtraEditors;
|
||
using HL_FristAidPlatform_DTO;
|
||
using HL_FristAidPlatform_Public;
|
||
using System;
|
||
using System.Collections.Generic;
|
||
using System.Data;
|
||
using System.Windows.Forms;
|
||
|
||
namespace HL_FristAidPlatform_ChestPain.Part
|
||
{
|
||
public partial class UC_EmergencyTriage : UserControl, ISave
|
||
{
|
||
#region 变量
|
||
/// <summary>
|
||
/// 当前病人编号(GUID)
|
||
/// </summary>
|
||
private string Cur_PatientGuid;
|
||
|
||
/// <summary>
|
||
/// 胸痛院前信息 V2.1
|
||
/// </summary>
|
||
private DataTable Cur_FirstAIDInfoDT = new DataTable();
|
||
|
||
/// <summary>
|
||
/// 胸痛诊疗 V2.1
|
||
/// </summary>
|
||
private DataTable Cur_TreatmentInfoDT = new DataTable();
|
||
|
||
/// <summary>
|
||
/// 心电图 V2.1
|
||
/// </summary>
|
||
private DataTable Cur_ECGDT = new DataTable();
|
||
|
||
/// <summary>
|
||
/// 首份心电图文件 V2.1
|
||
/// </summary>
|
||
private string FristECG_FileStr = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 首份心电图文件类型 V2.1
|
||
/// </summary>
|
||
private string FristECG_FileType = string.Empty;
|
||
|
||
/// <summary>
|
||
/// 等待窗体
|
||
/// </summary>
|
||
private Loading loading = new Loading();
|
||
#endregion 变量
|
||
|
||
/// <summary>
|
||
/// 急诊分诊
|
||
/// </summary>
|
||
/// <param name="_patientGuid">病人编号(GUID)</param>
|
||
public UC_EmergencyTriage(string _patientGuid)
|
||
{
|
||
InitializeComponent();
|
||
Cur_PatientGuid = _patientGuid;
|
||
}
|
||
|
||
/// <summary>
|
||
/// 加载
|
||
/// </summary>
|
||
/// <param name="sender"></param>
|
||
/// <param name="e"></param>
|
||
private void UC_EmergencyTriage_Load(object sender, EventArgs e)
|
||
{
|
||
//减小tableLayoutPanel绘制时闪烁的情况
|
||
table_JZFZ.GetType().GetProperty("DoubleBuffered", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).SetValue(table_JZFZ, true, null);
|
||
|
||
BindInfo(Cur_PatientGuid);
|
||
}
|
||
|
||
#region 绑定
|
||
/// <summary>
|
||
/// 绑定业务数据
|
||
/// </summary>
|
||
/// <param name="PatientGuid">患者编号(GUID)</param>
|
||
private void BindInfo(string PatientGuid)
|
||
{
|
||
//绑定急救信息
|
||
BindPrehospital(PatientGuid);
|
||
}
|
||
|
||
/// <summary>
|
||
/// 绑定急救信息
|
||
/// </summary>
|
||
/// <param name="PatientGuid">患者编号(GUID)</param>
|
||
private void BindPrehospital(string PatientGuid)
|
||
{
|
||
try
|
||
{
|
||
if (!string.IsNullOrEmpty(PatientGuid))
|
||
{
|
||
#region 院前信息
|
||
Cur_FirstAIDInfoDT = DBHelpClass.Get(string.Format("api/service/T_Service_ChestPain_FirstAIDInfo/GetByPatientGuid?patientGuid={0}", PatientGuid));
|
||
|
||
if (Cur_FirstAIDInfoDT != null && Cur_FirstAIDInfoDT.Rows.Count > 0)
|
||
{
|
||
//来院方式代码 0:未选;参考字典表T_Base_HospitalMode
|
||
string CW_Coming_Way_Code = PublicClass.ToString(Cur_FirstAIDInfoDT.Rows[0]["CW_Coming_Way_Code"], "");
|
||
radioGroup_CW_Coming_Way_Code.EditValue = CW_Coming_Way_Code;
|
||
|
||
//3:自行来院
|
||
if (CW_Coming_Way_Code == "3")
|
||
{
|
||
//自行來院
|
||
radioGroup_CW_Coming_Way_Code_ZXLY.EditValue = CW_Coming_Way_Code;
|
||
//到达本院大门时间
|
||
time_CW_ZXLY_Arrived_Hospital_Time.TimeValue = Cur_FirstAIDInfoDT.Rows[0]["CW_ZXLY_Arrived_Hospital_Time"].ToString();
|
||
//首次医疗接触时间
|
||
time_CW_ZXLY_First_MC_Time.TimeValue = Cur_FirstAIDInfoDT.Rows[0]["CW_ZXLY_First_MC_Time"].ToString();
|
||
//首诊医师接诊时间
|
||
time_CW_ZXLY_First_Doctor_Time.TimeValue = Cur_FirstAIDInfoDT.Rows[0]["CW_ZXLY_First_Doctor_Time"].ToString();
|
||
//医护人员
|
||
txt_CW_ZXLY_First_Doctor_Name.Text = PublicClass.ToString(Cur_FirstAIDInfoDT.Rows[0]["CW_ZXLY_First_Doctor_Name"], "");
|
||
}
|
||
//4:院内发病
|
||
else if (CW_Coming_Way_Code == "4")
|
||
{
|
||
//院内发病
|
||
radioGroup_CW_Coming_Way_Code_YNFB.EditValue = CW_Coming_Way_Code;
|
||
//发病科室
|
||
txt_CW_YNFB_Attack_Department.Text = PublicClass.ToString(Cur_FirstAIDInfoDT.Rows[0]["CW_YNFB_Attack_Department"], "");
|
||
//首次医疗接触时间
|
||
time_CW_YNFB_First_MC_Time.TimeValue = Cur_FirstAIDInfoDT.Rows[0]["CW_YNFB_First_MC_Time"].ToString();
|
||
//床位医院接触时间
|
||
time_CW_YNFB_Consultation_Time.TimeValue = Cur_FirstAIDInfoDT.Rows[0]["CW_YNFB_Consultation_Time"].ToString();
|
||
//离开科室时间
|
||
time_CW_YNFB_Leave_Department_Time.TimeValue = Cur_FirstAIDInfoDT.Rows[0]["CW_YNFB_Leave_Department_Time"].ToString();
|
||
//医护人员
|
||
txt_CW_YNFB_First_Doctor_Name.Text = PublicClass.ToString(Cur_FirstAIDInfoDT.Rows[0]["CW_YNFB_First_Doctor_Name"], "");
|
||
}
|
||
|
||
//分诊去向 1:至胸痛诊室 (急诊内科);2:至急救科抢救室;3:至导管室
|
||
radioGroup_DirectionOfTriage.EditValue = PublicClass.ToString(Cur_FirstAIDInfoDT.Rows[0]["DirectionOfTriage"], "");
|
||
//分诊护士
|
||
txt_TriageNurse.Text = PublicClass.ToString(Cur_FirstAIDInfoDT.Rows[0]["TriageNurse"], "");
|
||
}
|
||
#endregion
|
||
}
|
||
}
|
||
catch (Exception ex)
|
||
{
|
||
PublicClass.WriteErrorLog(this.Text, "绑定急救信息:\r\n" + ex);
|
||
}
|
||
}
|
||
#endregion 绑定
|
||
|
||
#region 保存
|
||
/// <summary>
|
||
/// 实现统一保存接口
|
||
/// </summary>
|
||
public void Save()
|
||
{
|
||
if (!string.IsNullOrEmpty(Cur_PatientGuid))
|
||
{
|
||
loading.ShowMessage("请稍后", "正在保存数据...");
|
||
if (!Save_FirstAIDInfo())
|
||
{
|
||
loading.HideMessage();
|
||
XtraMessageBox.Show("保存急救信息失败,请重试!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Error);
|
||
return;
|
||
}
|
||
|
||
loading.HideMessage();
|
||
XtraMessageBox.Show("保存急诊分诊信息成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||
|
||
//保存成功后重新加载 以便更新操作标记
|
||
BindInfo(Cur_PatientGuid);
|
||
}
|
||
}
|
||
|
||
/// <summary>
|
||
/// 保存 急救信息
|
||
/// </summary>
|
||
private bool Save_FirstAIDInfo()
|
||
{
|
||
try
|
||
{
|
||
string Url = string.Empty;
|
||
|
||
#region 保存院前信息
|
||
List<T_Service_ChestPain_FirstAIDInfoDTO> list_model = new List<T_Service_ChestPain_FirstAIDInfoDTO>();
|
||
T_Service_ChestPain_FirstAIDInfoDTO model = new T_Service_ChestPain_FirstAIDInfoDTO();
|
||
|
||
//存在则修改 否则新增
|
||
if (Cur_FirstAIDInfoDT != null && Cur_FirstAIDInfoDT.Rows.Count > 0)
|
||
{
|
||
Url = "api/service/T_Service_ChestPain_FirstAIDInfo/UpdateNotNullColumns";
|
||
model.ID = PublicClass.ToInt64(Cur_FirstAIDInfoDT.Rows[0]["ID"], -1);
|
||
model.GUID = Cur_FirstAIDInfoDT.Rows[0]["GUID"].ToString();
|
||
model.DeleteFlag = PublicClass.ToInt32(Cur_FirstAIDInfoDT.Rows[0]["DeleteFlag"], -1);
|
||
|
||
model.CreatorID = PublicClass.ToInt64(Cur_FirstAIDInfoDT.Rows[0]["CreatorID"], 0);
|
||
model.EditorID = Information.User.ID;
|
||
model.Editor = Information.User.FullName;
|
||
model.EditTime = PublicClass.DateTimeNow();
|
||
|
||
#region 非string类型的赋值为原始数据
|
||
model.DeleteFlag = PublicClass.ToInt32(Cur_FirstAIDInfoDT.Rows[0]["DeleteFlag"], -1);
|
||
#endregion
|
||
}
|
||
else
|
||
{
|
||
Url = "api/service/T_Service_ChestPain_FirstAIDInfo/AddNotNullColumns";
|
||
model.GUID = Guid.NewGuid().ToString();
|
||
model.DeleteFlag = 0;
|
||
|
||
model.CreatorID = Information.User.ID;
|
||
model.Creator = Information.User.FullName;
|
||
model.CreationDate = PublicClass.DateTimeNow();
|
||
}
|
||
|
||
//患者编号(GUID)
|
||
model.PatientGuid = Cur_PatientGuid;
|
||
|
||
//来院方式代码 0:未选;参考字典表T_Base_HospitalMode
|
||
string CW_Coming_Way_Code = PublicClass.ToString(radioGroup_CW_Coming_Way_Code.EditValue, "");
|
||
if (string.IsNullOrEmpty(CW_Coming_Way_Code))
|
||
{
|
||
//没有选择到达方式时判断是否为自行來院
|
||
CW_Coming_Way_Code = PublicClass.ToString(radioGroup_CW_Coming_Way_Code_ZXLY.EditValue, "");
|
||
|
||
if (string.IsNullOrEmpty(CW_Coming_Way_Code))
|
||
{
|
||
//没有选择自行來院时判断是否院内发病
|
||
CW_Coming_Way_Code = PublicClass.ToString(radioGroup_CW_Coming_Way_Code_YNFB.EditValue, "");
|
||
}
|
||
}
|
||
model.CW_Coming_Way_Code = CW_Coming_Way_Code;
|
||
|
||
if (CW_Coming_Way_Code == "3")
|
||
{
|
||
//到达本院大门时间
|
||
model.CW_ZXLY_Arrived_Hospital_Time = time_CW_ZXLY_Arrived_Hospital_Time.TimeValue;
|
||
PublicClassForDataBase.UpdateTime_ChestPain(Cur_PatientGuid, time_CW_ZXLY_Arrived_Hospital_Time.TimeValue, PublicClassForDataBase.Config1007);
|
||
|
||
//首次医疗接触时间
|
||
model.CW_ZXLY_First_MC_Time = time_CW_ZXLY_First_MC_Time.TimeValue;
|
||
PublicClassForDataBase.UpdateTime_ChestPain(Cur_PatientGuid, time_CW_ZXLY_First_MC_Time.TimeValue, PublicClassForDataBase.Config1003);
|
||
|
||
//首诊医师接诊时间
|
||
model.CW_ZXLY_First_Doctor_Time = time_CW_ZXLY_First_Doctor_Time.TimeValue;
|
||
PublicClassForDataBase.UpdateTime_ChestPain(Cur_PatientGuid, time_CW_ZXLY_First_Doctor_Time.TimeValue, PublicClassForDataBase.Config1008);
|
||
|
||
//医护人员
|
||
model.CW_ZXLY_First_Doctor_Name = txt_CW_ZXLY_First_Doctor_Name.Text;
|
||
}
|
||
//4:院内发病
|
||
else if (CW_Coming_Way_Code == "4")
|
||
{
|
||
//发病科室
|
||
model.CW_YNFB_Attack_Department = txt_CW_YNFB_Attack_Department.Text;
|
||
|
||
//首次医疗接触时间
|
||
model.CW_YNFB_First_MC_Time = time_CW_YNFB_First_MC_Time.TimeValue;
|
||
PublicClassForDataBase.UpdateTime_ChestPain(Cur_PatientGuid, time_CW_YNFB_First_MC_Time.TimeValue, PublicClassForDataBase.Config1003);
|
||
|
||
//床位医院接触时间
|
||
model.CW_YNFB_Consultation_Time = time_CW_YNFB_Consultation_Time.TimeValue;
|
||
PublicClassForDataBase.UpdateTime_ChestPain(Cur_PatientGuid, time_CW_YNFB_Consultation_Time.TimeValue, PublicClassForDataBase.Config1034);
|
||
|
||
//离开科室时间
|
||
model.CW_YNFB_Leave_Department_Time = time_CW_YNFB_Leave_Department_Time.TimeValue;
|
||
PublicClassForDataBase.UpdateTime_ChestPain(Cur_PatientGuid, time_CW_YNFB_Leave_Department_Time.TimeValue, PublicClassForDataBase.Config1035);
|
||
|
||
//医护人员
|
||
model.CW_YNFB_First_Doctor_Name = txt_CW_YNFB_First_Doctor_Name.Text;
|
||
}
|
||
|
||
//分诊去向 1:至胸痛诊室 (急诊内科);2:至急救科抢救室;3:至导管室
|
||
model.DirectionOfTriage = PublicClass.ToString(radioGroup_DirectionOfTriage.EditValue, "");
|
||
//分诊护士
|
||
model.TriageNurse = txt_TriageNurse.Text;
|
||
|
||
list_model.Add(model);
|
||
|
||
//初始化两个工厂
|
||
ClientFactory<T_Service_ChestPain_FirstAIDInfoDTO> httpClient = new HttpClientFactory<T_Service_ChestPain_FirstAIDInfoDTO>();
|
||
Client<T_Service_ChestPain_FirstAIDInfoDTO> client = httpClient.VisitFactory();
|
||
#endregion
|
||
|
||
//访问
|
||
return client.Post(Url, list_model).Success;
|
||
}
|
||
catch (Exception ex)
|
||
{
|
||
PublicClass.WriteErrorLog(this.Text, "保存 院前信息:\r\n" + ex);
|
||
return false;
|
||
}
|
||
}
|
||
#endregion 保存
|
||
|
||
#region 心电图相关
|
||
/// <summary>
|
||
/// 绑定心电图
|
||
/// 一张直接查看,多张显示列表
|
||
/// </summary>
|
||
/// <param name="type">1:120心电图;2:转院心电图;3:院内心电图</param>
|
||
//private void Bind_ECGList(int type)
|
||
//{
|
||
// try
|
||
// {
|
||
// string Url = string.Format("api/service/T_Service_ChestPain_ECG/GetByPatientGuid?patientGuid={0}&ecgType={1}", Cur_PatientGuid, type);
|
||
// Cur_ECGDT = DBHelpClass.Get(Url);
|
||
// if (Cur_ECGDT != null && Cur_ECGDT.Rows.Count > 0)
|
||
// {
|
||
// lbl_ECGNumber_YN.Tag = Cur_ECGDT.Rows[0]["ID"].ToString();
|
||
// txt_ECGNumber_YN.Tag = Cur_ECGDT.Rows[0]["GUID"].ToString();
|
||
// txt_ECGNumber_YN.Text = string.Format("共上传【{0}】份心电图", Cur_ECGDT.Rows.Count);
|
||
// txt_ECGNumber_YN.ForeColor = Color.LimeGreen;
|
||
// btn_Upload_ECG_YN.Enabled = false;
|
||
// //心电图时间
|
||
// time_ECG_Time_YN.TimeValue = Cur_ECGDT.Rows[0]["ECG_Time"].ToString();
|
||
// //心电图诊断时间
|
||
// time_ECG_Diagnose_Time_YN.TimeValue = Cur_ECGDT.Rows[0]["ECG_Diagnose_Time"].ToString();
|
||
// //心电图文件
|
||
// FristECG_FileStr = Cur_ECGDT.Rows[0]["ECGImageFiles"].ToString();
|
||
// //文件类型
|
||
// FristECG_FileType = Cur_ECGDT.Rows[0]["ECGImageType"].ToString();
|
||
// }
|
||
// else
|
||
// {
|
||
// txt_ECGNumber_YN.Text = "当前还未上传心电图";
|
||
// txt_ECGNumber_YN.ForeColor = Color.Red;
|
||
// btn_Upload_ECG_YN.Enabled = true;
|
||
|
||
// txt_ECGNumber_YN.Text = "当前还未上传心电图";
|
||
// txt_ECGNumber_YN.ForeColor = Color.Red;
|
||
// btn_Upload_ECG_YN.Enabled = true;
|
||
// FristECG_FileStr = "";
|
||
// FristECG_FileType = "";
|
||
// }
|
||
// }
|
||
// catch (Exception ex)
|
||
// {
|
||
// PublicClass.WriteErrorLog(this.Text, "绑定心电图:\r\n" + ex);
|
||
// }
|
||
//}
|
||
|
||
/// <summary>
|
||
/// 上传首份心电图 120
|
||
/// </summary>
|
||
/// <param name="sender"></param>
|
||
/// <param name="e"></param>
|
||
//private void btn_Upload_ECG_YN_Click(object sender, EventArgs e)
|
||
//{
|
||
// UploadEcg(1);
|
||
//}
|
||
|
||
/// <summary>
|
||
/// 上传首份心电图 转院
|
||
/// </summary>
|
||
/// <param name="sender"></param>
|
||
/// <param name="e"></param>
|
||
//private void btn_Upload_ECG_ZZ_Click(object sender, EventArgs e)
|
||
//{
|
||
// UploadEcg(2);
|
||
//}
|
||
|
||
/// <summary>
|
||
/// 保存首份心电图
|
||
/// </summary>
|
||
/// <param name="type">1:120心电图;2:转院心电图;3:院内心电图</param>
|
||
//private void UploadEcg(int type)
|
||
//{
|
||
|
||
// #region 验证
|
||
// if (string.IsNullOrEmpty(time_ECG_Time_YN.TimeValue))
|
||
// {
|
||
// XtraMessageBox.Show("请填写首份心电图时间!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||
// time_ECG_Time_YN.Focus();
|
||
// return;
|
||
// }
|
||
// if (string.IsNullOrEmpty(time_ECG_Diagnose_Time_YN.TimeValue))
|
||
// {
|
||
// XtraMessageBox.Show("请填写首份心电图诊断时间!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||
// time_ECG_Diagnose_Time_YN.Focus();
|
||
// return;
|
||
// }
|
||
// #endregion
|
||
|
||
// #region 上传后直接保存
|
||
// OpenFileDialog openFileDialog = new OpenFileDialog();
|
||
// openFileDialog.Filter = "Image Files(*.JPG;*.PNG;*.JPEG;;*.BMP)|*.JPG;*.PNG;;*.BMP;*.JPEG";
|
||
// openFileDialog.RestoreDirectory = true;
|
||
// if (openFileDialog.ShowDialog() == DialogResult.OK)
|
||
// {
|
||
// loading.ShowMessage("请稍后", "正在为您上传心电图...");
|
||
// try
|
||
// {
|
||
// int Config109 = PublicClass.ToInt32(PublicClassForDataBase.Config109, 5);
|
||
// string FileName = openFileDialog.FileName;
|
||
// if (PublicClass.GetFileSize(FileName) <= Config109)
|
||
// {
|
||
// FileInfo file = new FileInfo(FileName);
|
||
// Bitmap bitmap = new Bitmap(FileName);
|
||
// FristECG_FileType = file.Extension;
|
||
|
||
// if (FristECG_FileType.ToLower() == ".png")
|
||
// {
|
||
// FristECG_FileStr = PublicClass.Png2String(bitmap);
|
||
// }
|
||
// else
|
||
// {
|
||
// FristECG_FileStr = PublicClass.Jpeg2String(bitmap);
|
||
// }
|
||
|
||
// //if (Save_ECG(FristECG_FileStr, type))
|
||
// //{
|
||
// // loading.HideMessage();
|
||
// // XtraMessageBox.Show("上传首份心电图成功!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||
|
||
// // //重新绑定心电图 避免删除图片后显示不正确
|
||
// // //Bind_ECGList(type);
|
||
// //}
|
||
// }
|
||
// else
|
||
// {
|
||
// loading.HideMessage();
|
||
// XtraMessageBox.Show(string.Format("选择的文件大小超出了限制,请将文件控制在{0}兆以内!", Config109), "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
|
||
// }
|
||
// }
|
||
// catch (Exception)
|
||
// {
|
||
// loading.HideMessage();
|
||
// XtraMessageBox.Show("上传心电图!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
||
// }
|
||
// }
|
||
// #endregion
|
||
//}
|
||
|
||
/// <summary>
|
||
/// 保存首份心电图
|
||
/// </summary>
|
||
/// <param name="imageStr">图片</param>
|
||
/// <param name="type">1:120心电图 2:转院心电图</param>
|
||
/// <returns></returns>
|
||
//private bool Save_ECG(string imageStr, int type)
|
||
//{
|
||
// try
|
||
// {
|
||
// if (!string.IsNullOrEmpty(imageStr))
|
||
// {
|
||
// string Url = string.Empty;
|
||
|
||
// #region 保存首份心电图
|
||
// List<T_Service_ChestPain_ECGDTO> list = new List<T_Service_ChestPain_ECGDTO>();
|
||
// T_Service_ChestPain_ECGDTO model = new T_Service_ChestPain_ECGDTO();
|
||
|
||
// //存在则修改 否则新增
|
||
// if (Cur_ECGDT != null && Cur_ECGDT.Rows.Count > 0)
|
||
// {
|
||
// Url = "api/service/T_Service_ChestPain_ECG/UpdateNotNullColumns";
|
||
// model.ID = PublicClass.ToInt64(lbl_ECGNumber_YN.Tag, -1);
|
||
// model.GUID = txt_ECGNumber_YN.Tag.ToString();
|
||
// model.DeleteFlag = PublicClass.ToInt32(Cur_ECGDT.Rows[0]["DeleteFlag"], -1);
|
||
|
||
// model.CreatorID = PublicClass.ToInt64(Cur_ECGDT.Rows[0]["CreatorID"], 0);
|
||
// model.Creator = Cur_ECGDT.Rows[0]["Creator"].ToString();
|
||
// model.CreationDate = Cur_ECGDT.Rows[0]["CreationDate"].ToString();
|
||
// model.EditorID = Information.User.ID;
|
||
// model.Editor = Information.User.FullName;
|
||
// model.EditTime = PublicClass.DateTimeNow();
|
||
|
||
// model.ECG_Type = Cur_ECGDT.Rows[0]["ECG_Type"].ToString();
|
||
// }
|
||
// else
|
||
// {
|
||
// Url = "api/service/T_Service_ChestPain_ECG/AddNotNullColumns";
|
||
// model.GUID = Guid.NewGuid().ToString();
|
||
// model.DeleteFlag = 0;
|
||
// model.ECG_Type = "3";
|
||
|
||
// model.CreatorID = Information.User.ID;
|
||
// model.Creator = Information.User.FullName;
|
||
// model.CreationDate = PublicClass.DateTimeNow();
|
||
// }
|
||
// model.PatientGuid = Cur_PatientGuid;
|
||
|
||
// model.ECG_Time = time_ECG_Time_YN.TimeValue;
|
||
// PublicClassForDataBase.UpdateTime_ChestPain(Cur_PatientGuid, time_ECG_Time_YN.TimeValue, PublicClassForDataBase.Config1004);
|
||
|
||
// model.ECG_Diagnose_Time = time_ECG_Diagnose_Time_YN.TimeValue;
|
||
// PublicClassForDataBase.UpdateTime_ChestPain(Cur_PatientGuid, time_ECG_Diagnose_Time_YN.TimeValue, PublicClassForDataBase.Config1006);
|
||
|
||
// model.ECGImageFiles = Convert.FromBase64String(imageStr);
|
||
// model.ECGImageType = FristECG_FileType;
|
||
|
||
// list.Add(model);
|
||
|
||
// //初始化两个工厂
|
||
// ClientFactory<T_Service_ChestPain_ECGDTO> httpClient = new HttpClientFactory<T_Service_ChestPain_ECGDTO>();
|
||
// Client<T_Service_ChestPain_ECGDTO> client = httpClient.VisitFactory();
|
||
// #endregion
|
||
|
||
// //访问
|
||
// return client.Post(Url, list).Success;
|
||
// }
|
||
// else
|
||
// {
|
||
// return false;
|
||
// }
|
||
// }
|
||
// catch (Exception ex)
|
||
// {
|
||
// PublicClass.WriteErrorLog(this.Text, "保存首份心电图:\r\n" + ex);
|
||
// return false;
|
||
// }
|
||
//}
|
||
|
||
/// <summary>
|
||
/// 管理更多心电图
|
||
/// </summary>
|
||
/// <param name="sender"></param>
|
||
/// <param name="e"></param>
|
||
//private void btn_Upload_MoreECG_YN_Click(object sender, EventArgs e)
|
||
//{
|
||
// Form_ChestPain_ECG frm = new Form_ChestPain_ECG(Cur_PatientGuid);
|
||
// frm.ShowDialog();
|
||
//}
|
||
#endregion
|
||
|
||
#region 控件显示隐藏
|
||
/// <summary>
|
||
/// 到达方式
|
||
/// </summary>
|
||
/// <param name="sender"></param>
|
||
/// <param name="e"></param>
|
||
//private void radioGroup_CW_Coming_Way_Code_SelectedIndexChanged(object sender, EventArgs e)
|
||
//{
|
||
// string EditValue = PublicClass.ToString(radioGroup_CW_Coming_Way_Code.EditValue, "");
|
||
// if (!string.IsNullOrEmpty(EditValue))
|
||
// {
|
||
// //自行來院 如果有值将赋予为空值
|
||
// string ZZLY = PublicClass.ToString(radioGroup_CW_Coming_Way_Code_ZXLY.EditValue, "");
|
||
// if (!string.IsNullOrEmpty(ZZLY))
|
||
// {
|
||
// radioGroup_CW_Coming_Way_Code_ZXLY.EditValue = "";
|
||
// }
|
||
|
||
// //自行來院 如果有值将赋予为空值
|
||
// string YNFB = PublicClass.ToString(radioGroup_CW_Coming_Way_Code_YNFB.EditValue, "");
|
||
// if (!string.IsNullOrEmpty(YNFB))
|
||
// {
|
||
// radioGroup_CW_Coming_Way_Code_YNFB.EditValue = "";
|
||
// }
|
||
// }
|
||
//}
|
||
|
||
/// <summary>
|
||
/// 自行來院
|
||
/// </summary>
|
||
/// <param name="sender"></param>
|
||
/// <param name="e"></param>
|
||
//private void radioGroup_CW_Coming_Way_Code_ZXLY_SelectedIndexChanged(object sender, EventArgs e)
|
||
// {
|
||
// string EditValue = PublicClass.ToString(radioGroup_CW_Coming_Way_Code_ZXLY.EditValue, "");
|
||
// if (!string.IsNullOrEmpty(EditValue))
|
||
// {
|
||
// //到达方式 如果有值将赋予为空值
|
||
// string Way_Code = PublicClass.ToString(radioGroup_CW_Coming_Way_Code.EditValue, "");
|
||
// if (!string.IsNullOrEmpty(Way_Code))
|
||
// {
|
||
// radioGroup_CW_Coming_Way_Code.EditValue = "";
|
||
// }
|
||
|
||
// //自行來院 如果有值将赋予为空值
|
||
// string ZXLY = PublicClass.ToString(radioGroup_CW_Coming_Way_Code_YNFB.EditValue, "");
|
||
// if (!string.IsNullOrEmpty(ZXLY))
|
||
// {
|
||
// radioGroup_CW_Coming_Way_Code_YNFB.EditValue = "";
|
||
// }
|
||
// }
|
||
// }
|
||
|
||
/// <summary>
|
||
/// 院内发病
|
||
/// </summary>
|
||
/// <param name="sender"></param>
|
||
/// <param name="e"></param>
|
||
//private void radioGroup_CW_Coming_Way_Code_YNFB_SelectedIndexChanged(object sender, EventArgs e)
|
||
//{
|
||
// string EditValue = PublicClass.ToString(radioGroup_CW_Coming_Way_Code_YNFB.EditValue, "");
|
||
// if (!string.IsNullOrEmpty(EditValue))
|
||
// {
|
||
// //到达方式 如果有值将赋予为空值
|
||
// string Way_Code = PublicClass.ToString(radioGroup_CW_Coming_Way_Code.EditValue, "");
|
||
// if (!string.IsNullOrEmpty(Way_Code))
|
||
// {
|
||
// radioGroup_CW_Coming_Way_Code.EditValue = "";
|
||
// }
|
||
|
||
// //自行來院 如果有值将赋予为空值
|
||
// string ZXLY = PublicClass.ToString(radioGroup_CW_Coming_Way_Code_ZXLY.EditValue, "");
|
||
// if (!string.IsNullOrEmpty(ZXLY))
|
||
// {
|
||
// radioGroup_CW_Coming_Way_Code_ZXLY.EditValue = "";
|
||
// }
|
||
// }
|
||
//}
|
||
#endregion 控件显示隐藏
|
||
}
|
||
}
|