StableVersion4.3/HL_FristAidPlatform_Apoplexy/Screen/Form_Screen.cs

801 lines
31 KiB
C#
Raw Normal View History

2024-03-11 09:47:34 +08:00
using DevExpress.XtraEditors;
using DevExpress.XtraLayout;
using DevExpress.XtraTab;
using HL_FristAidPlatform_DTO;
using HL_FristAidPlatform_Print;
using HL_FristAidPlatform_Public;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using NPOI.SS.Formula.Functions;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Drawing.Printing;
using System.IO;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace HL_FristAidPlatform_Apoplexy
{
public partial class Form_Screen : XtraForm
{
public string patientGuid;
public string flag;
public int type = 1;
public DateTime dt;
public string HeartDiseaseType;
public string name;
public string age;
public string gender;
public string interveneName;
public Form_ApoplexyHighRiskScreening_InformedConsent form_ApoplexyHighRisk;
public UC_TCD TCD;
public UC_Proposal Proposal;
public UC_Info Info;
public UC_LifeStyle LifeStyle;
public UC_FamilyHistory FamilyHistory;
public UC_MedicalHistory MedicalHistory;
public UC_PhysicaAndECG PhysicaAndECG;
public UC_Laboratory Laboratory;
public UC_Vascular Vascular;
public UC_Operation Operation;
/// <summary>
/// 文本框历史记录
/// </summary>
private TextBoxRemind remind = null;
public Form_Screen(string _patientGuid, string _flag, string _name, string _age, string _gender)
{
InitializeComponent();
patientGuid = _patientGuid;
flag = _flag;
name = _name;
age = _age;
gender = _gender;
}
private void Form_Screen_Load(object sender, EventArgs e)
{
lbl_name.Text = name;
lbl_Age.Text = age;
lbl_Gender.Text = gender == "1" ? "男" : "女";
GetSceenIntegrity();
UCInfoButtonCheckStatus();
Info = new UC_Info(patientGuid, flag);
Info.Dock = DockStyle.Fill;
panel_Content.Controls.Add(Info);
}
public void UCInfoButtonCheckStatus()
{
if (type == 1)
{
tablePanel_Button.Columns[2].Style = DevExpress.Utils.Layout.TablePanelEntityStyle.Relative;
tablePanel_Button.Columns[2].Width = 20;
tablePanel_Button.Columns[2].Visible = true;
}
else
{
tablePanel_Button.Columns[2].Style = DevExpress.Utils.Layout.TablePanelEntityStyle.Absolute;
tablePanel_Button.Columns[2].Width = 1;
tablePanel_Button.Columns[2].Visible = false;
}
}
private void textBox_TextChanged(object sender, EventArgs e)
{
string text = ((TextBox)sender).Text.Trim();
if (text != "")
{
remind.Remind(text);
}
}
/// <summary>
/// 根据患者GUID获取筛查表中内容填报完成度
/// </summary>
public void GetSceenIntegrity()
{
SceenIntegrityDTO dto = new SceenIntegrityDTO();
string url = string.Format("api/service/T_Service_ApoplexyScreen/GetSceenIntegrity?guid={0}", patientGuid);
dto = DBHelpClass.GetDateModel<SceenIntegrityDTO>(url);
if (dto != null)
{
ChangeFeildAndColor(dto.Info, lbl_Info1);
ChangeFeildAndColor(dto.Lifestyle, lbl_Info2);
ChangeFeildAndColor(dto.Familyhistory, lbl_Info3);
ChangeFeildAndColor(dto.Medicalhistory, lbl_Info4);
ChangeFeildAndColor(dto.PhysicaAndecg, lbl_Info5);
ChangeFeildAndColor(dto.Laboratory, lbl_Info6);
ChangeFeildAndColor(dto.TCD, lbl_Info7);
ChangeFeildAndColor(dto.Cervical, lbl_Info8);
ChangeFeildAndColor(dto.Operation, lbl_Info9);
ChangeFeildAndColor(dto.Proposal, lbl_Info10);
}
}
/// <summary>
/// 完整度效果
/// </summary>
/// <param name="value"></param>
/// <param name="label"></param>
public void ChangeFeildAndColor(string value, LabelControl label)
{
if (!string.IsNullOrEmpty(value))
{
if (value == "1")
{
label.Text = "✓";
label.ForeColor = Color.FromArgb(63, 233, 85);
}
if (value == "0")
{
label.Text = "";
label.ForeColor = Color.FromArgb(255, 132, 0);
}
}
else
{
label.Text = "";
label.ForeColor = Color.FromArgb(255, 132, 0);
}
}
private void simpleButton3_Click(object sender, EventArgs e)
{
if (type == 1)
Info.SaveScreenInfo(0);
if (type == 2)
LifeStyle.SaveScreenLifeStyle();
if (type == 3)
FamilyHistory.SaveScreenFamilyHistory();
if (type == 4)
MedicalHistory.SaveScreenPastHistory();
if (type == 5)
PhysicaAndECG.SaveScreenPhysicalFitness();
if (type == 6)
Laboratory.SaveScreenLaboratory();
if (type == 7)
TCD.SaveScreenTCD();
if (type == 8)
Vascular.SaveScreenCervical();
if (type == 9)
Operation.SaveScreenAngiopathy();
if (type == 10)
Proposal.SaveScreenProposal();
GetSceenIntegrity();
}
/// <summary>
/// 提交
/// </summary>
/// <param name="model"></param>
/// <param name="list"></param>
/// <param name="url"></param>
private void PostMethod<T>(T model, List<T> list, string url)
{
//初始化两个工厂
ClientFactory<T> httpClient = new HttpClientFactory<T>();
Client<T> client = httpClient.VisitFactory();
//访问
ListEntity<T> t = client.Post(url, list);
if (t.Success)
{
if (!string.IsNullOrEmpty(t.DataString))
{
if (t.DataString.Contains("Success"))
{
JObject jo = (JObject)JsonConvert.DeserializeObject(t.DataString);
string msg = jo["Msg"].ToString();
if (!string.IsNullOrEmpty(msg))
{
XtraMessageBox.Show(msg);
}
}
else
{
string msg1 = t.DataString.Replace("/", "").Replace(@"\", "").Replace("\"", "");
XtraMessageBox.Show(msg1);
}
}
else
{
XtraMessageBox.Show("保存失败");
}
}
}
public void ChangeColorMenu(PanelControl panel)
{
panel.Appearance.BackColor = Color.FromArgb(45, 140, 240);
}
public void RrecoverColorMenu(PanelControl panel)
{
panel.Appearance.BackColor = Color.FromArgb(92, 173, 255);
}
#region 菜单切换变色
private void picture_info_Click(object sender, EventArgs e)
{
ChangeColorMenu(panel_info);
RrecoverColorMenu(panel_lifestyle);
RrecoverColorMenu(panel_familyhistory);
RrecoverColorMenu(panel_medicalhistory);
RrecoverColorMenu(panel_physicaAndecg);
RrecoverColorMenu(panel_laboratory);
RrecoverColorMenu(panel_vascular);
RrecoverColorMenu(panel_operation);
RrecoverColorMenu(panel_TCD);
RrecoverColorMenu(panel_Proposal);
RrecoverColorMenu(panel_InformedConsent);
ShowxtraTabControl();
type = 1;
panel_Content.Controls.Clear();
UCInfoButtonCheckStatus();
GetSceenIntegrity();
Info = new UC_Info(patientGuid, flag);
Info.Dock = DockStyle.Fill;
panel_Content.Controls.Add(Info);
}
private void lbl__info_Click(object sender, EventArgs e)
{
ChangeColorMenu(panel_info);
RrecoverColorMenu(panel_lifestyle);
RrecoverColorMenu(panel_familyhistory);
RrecoverColorMenu(panel_medicalhistory);
RrecoverColorMenu(panel_physicaAndecg);
RrecoverColorMenu(panel_laboratory);
RrecoverColorMenu(panel_vascular);
RrecoverColorMenu(panel_operation);
RrecoverColorMenu(panel_TCD);
RrecoverColorMenu(panel_Proposal);
RrecoverColorMenu(panel_InformedConsent);
ShowxtraTabControl();
type = 1;
panel_Content.Controls.Clear();
UCInfoButtonCheckStatus();
GetSceenIntegrity();
Info = new UC_Info(patientGuid, flag);
Info.Dock = DockStyle.Fill;
panel_Content.Controls.Add(Info);
}
private void picture_lifestyle_Click(object sender, EventArgs e)
{
ChangeColorMenu(panel_lifestyle);
RrecoverColorMenu(panel_info);
RrecoverColorMenu(panel_familyhistory);
RrecoverColorMenu(panel_medicalhistory);
RrecoverColorMenu(panel_physicaAndecg);
RrecoverColorMenu(panel_laboratory);
RrecoverColorMenu(panel_vascular);
RrecoverColorMenu(panel_operation);
RrecoverColorMenu(panel_TCD);
RrecoverColorMenu(panel_Proposal);
RrecoverColorMenu(panel_InformedConsent);
ShowxtraTabControl();
type = 2;
panel_Content.Controls.Clear();
UCInfoButtonCheckStatus();
GetSceenIntegrity();
LifeStyle = new UC_LifeStyle(patientGuid, flag);
LifeStyle.Dock = DockStyle.Fill;
panel_Content.Controls.Add(LifeStyle);
}
private void lbl_lifestyle_Click(object sender, EventArgs e)
{
ChangeColorMenu(panel_lifestyle);
RrecoverColorMenu(panel_info);
RrecoverColorMenu(panel_familyhistory);
RrecoverColorMenu(panel_medicalhistory);
RrecoverColorMenu(panel_physicaAndecg);
RrecoverColorMenu(panel_laboratory);
RrecoverColorMenu(panel_vascular);
RrecoverColorMenu(panel_operation);
RrecoverColorMenu(panel_TCD);
RrecoverColorMenu(panel_Proposal);
RrecoverColorMenu(panel_InformedConsent);
ShowxtraTabControl();
type = 2;
panel_Content.Controls.Clear();
UCInfoButtonCheckStatus();
GetSceenIntegrity();
LifeStyle = new UC_LifeStyle(patientGuid, flag);
LifeStyle.Dock = DockStyle.Fill;
panel_Content.Controls.Add(LifeStyle);
}
private void picture_familyhistory_Click(object sender, EventArgs e)
{
ChangeColorMenu(panel_familyhistory);
RrecoverColorMenu(panel_lifestyle);
RrecoverColorMenu(panel_info);
RrecoverColorMenu(panel_medicalhistory);
RrecoverColorMenu(panel_physicaAndecg);
RrecoverColorMenu(panel_laboratory);
RrecoverColorMenu(panel_vascular);
RrecoverColorMenu(panel_operation);
RrecoverColorMenu(panel_TCD);
RrecoverColorMenu(panel_Proposal);
RrecoverColorMenu(panel_InformedConsent);
ShowxtraTabControl();
type = 3;
panel_Content.Controls.Clear();
UCInfoButtonCheckStatus();
GetSceenIntegrity();
FamilyHistory = new UC_FamilyHistory(patientGuid, flag);
FamilyHistory.Dock = DockStyle.Fill;
panel_Content.Controls.Add(FamilyHistory);
}
private void lbl_familyhistory_Click(object sender, EventArgs e)
{
ChangeColorMenu(panel_familyhistory);
RrecoverColorMenu(panel_lifestyle);
RrecoverColorMenu(panel_info);
RrecoverColorMenu(panel_medicalhistory);
RrecoverColorMenu(panel_physicaAndecg);
RrecoverColorMenu(panel_laboratory);
RrecoverColorMenu(panel_vascular);
RrecoverColorMenu(panel_operation);
RrecoverColorMenu(panel_TCD);
RrecoverColorMenu(panel_Proposal);
RrecoverColorMenu(panel_InformedConsent);
ShowxtraTabControl();
type = 3;
panel_Content.Controls.Clear();
UCInfoButtonCheckStatus();
GetSceenIntegrity();
FamilyHistory = new UC_FamilyHistory(patientGuid, flag);
FamilyHistory.Dock = DockStyle.Fill;
panel_Content.Controls.Add(FamilyHistory);
}
private void picture_medicalhistory_Click(object sender, EventArgs e)
{
ChangeColorMenu(panel_medicalhistory);
RrecoverColorMenu(panel_lifestyle);
RrecoverColorMenu(panel_familyhistory);
RrecoverColorMenu(panel_info);
RrecoverColorMenu(panel_physicaAndecg);
RrecoverColorMenu(panel_laboratory);
RrecoverColorMenu(panel_vascular);
RrecoverColorMenu(panel_operation);
RrecoverColorMenu(panel_TCD);
RrecoverColorMenu(panel_Proposal);
RrecoverColorMenu(panel_InformedConsent);
ShowxtraTabControl();
GetSceenIntegrity();
type = 4;
panel_Content.Controls.Clear();
UCInfoButtonCheckStatus();
MedicalHistory = new UC_MedicalHistory(patientGuid);
MedicalHistory.Dock = DockStyle.Fill;
panel_Content.Controls.Add(MedicalHistory);
}
private void lbl_medicalhistory_Click(object sender, EventArgs e)
{
ChangeColorMenu(panel_medicalhistory);
RrecoverColorMenu(panel_lifestyle);
RrecoverColorMenu(panel_familyhistory);
RrecoverColorMenu(panel_info);
RrecoverColorMenu(panel_physicaAndecg);
RrecoverColorMenu(panel_laboratory);
RrecoverColorMenu(panel_vascular);
RrecoverColorMenu(panel_operation);
RrecoverColorMenu(panel_TCD);
RrecoverColorMenu(panel_Proposal);
RrecoverColorMenu(panel_InformedConsent);
ShowxtraTabControl();
type = 4;
panel_Content.Controls.Clear();
UCInfoButtonCheckStatus();
GetSceenIntegrity();
MedicalHistory = new UC_MedicalHistory(patientGuid);
MedicalHistory.Dock = DockStyle.Fill;
panel_Content.Controls.Add(MedicalHistory);
}
private void picture_physicaAndecg_Click(object sender, EventArgs e)
{
ChangeColorMenu(panel_physicaAndecg);
RrecoverColorMenu(panel_lifestyle);
RrecoverColorMenu(panel_familyhistory);
RrecoverColorMenu(panel_medicalhistory);
RrecoverColorMenu(panel_info);
RrecoverColorMenu(panel_laboratory);
RrecoverColorMenu(panel_vascular);
RrecoverColorMenu(panel_operation);
RrecoverColorMenu(panel_TCD);
RrecoverColorMenu(panel_Proposal);
RrecoverColorMenu(panel_InformedConsent);
ShowxtraTabControl();
GetSceenIntegrity();
type = 5;
panel_Content.Controls.Clear();
UCInfoButtonCheckStatus();
PhysicaAndECG = new UC_PhysicaAndECG(patientGuid, flag);
PhysicaAndECG.Dock = DockStyle.Fill;
panel_Content.Controls.Add(PhysicaAndECG);
}
private void lbl_physicaAndecg_Click(object sender, EventArgs e)
{
ChangeColorMenu(panel_physicaAndecg);
RrecoverColorMenu(panel_lifestyle);
RrecoverColorMenu(panel_familyhistory);
RrecoverColorMenu(panel_medicalhistory);
RrecoverColorMenu(panel_info);
RrecoverColorMenu(panel_laboratory);
RrecoverColorMenu(panel_vascular);
RrecoverColorMenu(panel_operation);
RrecoverColorMenu(panel_TCD);
RrecoverColorMenu(panel_Proposal);
RrecoverColorMenu(panel_InformedConsent);
ShowxtraTabControl();
GetSceenIntegrity();
type = 5;
panel_Content.Controls.Clear();
UCInfoButtonCheckStatus();
PhysicaAndECG = new UC_PhysicaAndECG(patientGuid, flag);
PhysicaAndECG.Dock = DockStyle.Fill;
panel_Content.Controls.Add(PhysicaAndECG);
}
private void picture_laboratory_Click(object sender, EventArgs e)
{
ChangeColorMenu(panel_laboratory);
RrecoverColorMenu(panel_lifestyle);
RrecoverColorMenu(panel_familyhistory);
RrecoverColorMenu(panel_medicalhistory);
RrecoverColorMenu(panel_physicaAndecg);
RrecoverColorMenu(panel_info);
RrecoverColorMenu(panel_vascular);
RrecoverColorMenu(panel_operation);
RrecoverColorMenu(panel_TCD);
RrecoverColorMenu(panel_Proposal);
RrecoverColorMenu(panel_InformedConsent);
ShowxtraTabControl();
GetSceenIntegrity();
type = 6;
panel_Content.Controls.Clear();
UCInfoButtonCheckStatus();
Laboratory = new UC_Laboratory(patientGuid, flag);
Laboratory.Dock = DockStyle.Fill;
panel_Content.Controls.Add(Laboratory);
}
private void lbl_laboratory_Click(object sender, EventArgs e)
{
ChangeColorMenu(panel_laboratory);
RrecoverColorMenu(panel_lifestyle);
RrecoverColorMenu(panel_familyhistory);
RrecoverColorMenu(panel_medicalhistory);
RrecoverColorMenu(panel_physicaAndecg);
RrecoverColorMenu(panel_info);
RrecoverColorMenu(panel_vascular);
RrecoverColorMenu(panel_operation);
RrecoverColorMenu(panel_TCD);
RrecoverColorMenu(panel_Proposal);
RrecoverColorMenu(panel_InformedConsent);
ShowxtraTabControl();
GetSceenIntegrity();
type = 6;
panel_Content.Controls.Clear();
UCInfoButtonCheckStatus();
Laboratory = new UC_Laboratory(patientGuid, flag);
Laboratory.Dock = DockStyle.Fill;
panel_Content.Controls.Add(Laboratory);
}
private void picture_vascular_Click(object sender, EventArgs e)
{
ChangeColorMenu(panel_vascular);
RrecoverColorMenu(panel_lifestyle);
RrecoverColorMenu(panel_familyhistory);
RrecoverColorMenu(panel_medicalhistory);
RrecoverColorMenu(panel_physicaAndecg);
RrecoverColorMenu(panel_laboratory);
RrecoverColorMenu(panel_info);
RrecoverColorMenu(panel_operation);
RrecoverColorMenu(panel_TCD);
RrecoverColorMenu(panel_Proposal);
RrecoverColorMenu(panel_InformedConsent);
ShowxtraTabControl();
GetSceenIntegrity();
type = 8;
panel_Content.Controls.Clear();
UCInfoButtonCheckStatus();
Vascular = new UC_Vascular(patientGuid, flag);
Vascular.Dock = DockStyle.Fill;
panel_Content.Controls.Add(Vascular);
}
private void lbl_vascular_Click(object sender, EventArgs e)
{
ChangeColorMenu(panel_vascular);
RrecoverColorMenu(panel_lifestyle);
RrecoverColorMenu(panel_familyhistory);
RrecoverColorMenu(panel_medicalhistory);
RrecoverColorMenu(panel_physicaAndecg);
RrecoverColorMenu(panel_laboratory);
RrecoverColorMenu(panel_info);
RrecoverColorMenu(panel_operation);
RrecoverColorMenu(panel_TCD);
RrecoverColorMenu(panel_Proposal);
RrecoverColorMenu(panel_InformedConsent);
ShowxtraTabControl();
GetSceenIntegrity();
type = 8;
panel_Content.Controls.Clear();
UCInfoButtonCheckStatus();
Vascular = new UC_Vascular(patientGuid, flag);
Vascular.Dock = DockStyle.Fill;
panel_Content.Controls.Add(Vascular);
}
private void picture_operation_Click(object sender, EventArgs e)
{
ChangeColorMenu(panel_operation);
RrecoverColorMenu(panel_lifestyle);
RrecoverColorMenu(panel_familyhistory);
RrecoverColorMenu(panel_medicalhistory);
RrecoverColorMenu(panel_physicaAndecg);
RrecoverColorMenu(panel_laboratory);
RrecoverColorMenu(panel_vascular);
RrecoverColorMenu(panel_info);
RrecoverColorMenu(panel_TCD);
RrecoverColorMenu(panel_Proposal);
RrecoverColorMenu(panel_InformedConsent);
ShowxtraTabControl();
GetSceenIntegrity();
type = 9;
panel_Content.Controls.Clear();
UCInfoButtonCheckStatus();
Operation = new UC_Operation(patientGuid, flag);
Operation.Dock = DockStyle.Fill;
panel_Content.Controls.Add(Operation);
}
private void lbl_operation_Click(object sender, EventArgs e)
{
ChangeColorMenu(panel_operation);
RrecoverColorMenu(panel_lifestyle);
RrecoverColorMenu(panel_familyhistory);
RrecoverColorMenu(panel_medicalhistory);
RrecoverColorMenu(panel_physicaAndecg);
RrecoverColorMenu(panel_laboratory);
RrecoverColorMenu(panel_vascular);
RrecoverColorMenu(panel_info);
RrecoverColorMenu(panel_TCD);
RrecoverColorMenu(panel_Proposal);
RrecoverColorMenu(panel_InformedConsent);
ShowxtraTabControl();
GetSceenIntegrity();
type = 9;
panel_Content.Controls.Clear();
UCInfoButtonCheckStatus();
Operation = new UC_Operation(patientGuid, flag);
Operation.Dock = DockStyle.Fill;
panel_Content.Controls.Add(Operation);
}
#endregion
private void picture_InformedConsent_Click(object sender, EventArgs e)
{
ChangeColorMenu(panel_InformedConsent);
RrecoverColorMenu(panel_lifestyle);
RrecoverColorMenu(panel_familyhistory);
RrecoverColorMenu(panel_medicalhistory);
RrecoverColorMenu(panel_physicaAndecg);
RrecoverColorMenu(panel_laboratory);
RrecoverColorMenu(panel_vascular);
RrecoverColorMenu(panel_operation);
RrecoverColorMenu(panel_TCD);
RrecoverColorMenu(panel_Proposal);
RrecoverColorMenu(panel_info);
panel_Content.Controls.Clear();
panel_Content.Visible = false;
tablePanel_Button.Visible = false;
if (!ShowChildrenForm("Form_ApoplexyHighRiskScreening_InformedConsent"))
{
form_ApoplexyHighRisk = new Form_ApoplexyHighRiskScreening_InformedConsent("", "", "", "", patientGuid);
form_ApoplexyHighRisk.WindowState = FormWindowState.Normal;
form_ApoplexyHighRisk.MdiParent = this;
form_ApoplexyHighRisk.TopLevel = false;// 将子窗体设置为非顶级控件
form_ApoplexyHighRisk.FormBorderStyle = FormBorderStyle.None;//设置无边框k
form_ApoplexyHighRisk.Dock = DockStyle.None; //容器大小随着调整窗体大小自动变化
form_ApoplexyHighRisk.Show();
}
}
private bool ShowChildrenForm(string p_ChildrenFormText)
{
int i;
//依次检测当前窗体的子窗体
for (i = 0; i < MdiChildren.Length; i++)
{
//判断当前子窗体的Text属性值是否与传入的字符串值相同
if (MdiChildren[i].Name == p_ChildrenFormText)
{
//如果值相同则表示此子窗体为想要调用的子窗体激活此子窗体并返回true值
MdiChildren[i].Activate();
return true;
}
}
//如果没有相同的值则表示要调用的子窗体还没有被打开返回false值
return false;
}
public void MdiChildrenClose()
{
//关闭所有已经打开的子窗体
if (MdiChildren.Length > 0)
{
foreach (Form myForm in this.MdiChildren)
{
myForm.Close();
}
}
}
/// <summary>
/// 关闭窗体显示卡片
/// </summary>
public void ShowxtraTabControl()
{
if (form_ApoplexyHighRisk != null)
form_ApoplexyHighRisk.Close();
panel_Content.Visible = true;
tablePanel_Button.Visible = true;
}
private void lbl_InformedConsent_Click(object sender, EventArgs e)
{
ChangeColorMenu(panel_InformedConsent);
RrecoverColorMenu(panel_lifestyle);
RrecoverColorMenu(panel_familyhistory);
RrecoverColorMenu(panel_medicalhistory);
RrecoverColorMenu(panel_physicaAndecg);
RrecoverColorMenu(panel_laboratory);
RrecoverColorMenu(panel_vascular);
RrecoverColorMenu(panel_operation);
RrecoverColorMenu(panel_TCD);
RrecoverColorMenu(panel_Proposal);
RrecoverColorMenu(panel_info);
panel_Content.Visible = false;
tablePanel_Button.Visible = false;
if (!ShowChildrenForm("Form_ApoplexyHighRiskScreening_InformedConsent"))
{
form_ApoplexyHighRisk = new Form_ApoplexyHighRiskScreening_InformedConsent("", "", "", "", patientGuid);
form_ApoplexyHighRisk.WindowState = FormWindowState.Normal;
form_ApoplexyHighRisk.MdiParent = this;
form_ApoplexyHighRisk.TopLevel = false;// 将子窗体设置为非顶级控件
form_ApoplexyHighRisk.FormBorderStyle = FormBorderStyle.None;//设置无边框k
form_ApoplexyHighRisk.Dock = DockStyle.None; //容器大小随着调整窗体大小自动变化
form_ApoplexyHighRisk.Show();
}
}
private void picture_TCD_Click(object sender, EventArgs e)
{
ChangeColorMenu(panel_TCD);
RrecoverColorMenu(panel_lifestyle);
RrecoverColorMenu(panel_familyhistory);
RrecoverColorMenu(panel_medicalhistory);
RrecoverColorMenu(panel_physicaAndecg);
RrecoverColorMenu(panel_laboratory);
RrecoverColorMenu(panel_vascular);
RrecoverColorMenu(panel_operation);
RrecoverColorMenu(panel_InformedConsent);
RrecoverColorMenu(panel_Proposal);
RrecoverColorMenu(panel_info);
ShowxtraTabControl();
type = 7;
panel_Content.Controls.Clear();
UCInfoButtonCheckStatus();
TCD = new UC_TCD(patientGuid);
TCD.Dock = DockStyle.Fill;
panel_Content.Controls.Add(TCD);
}
private void lbl_TCD_Click(object sender, EventArgs e)
{
ChangeColorMenu(panel_TCD);
RrecoverColorMenu(panel_lifestyle);
RrecoverColorMenu(panel_familyhistory);
RrecoverColorMenu(panel_medicalhistory);
RrecoverColorMenu(panel_physicaAndecg);
RrecoverColorMenu(panel_laboratory);
RrecoverColorMenu(panel_vascular);
RrecoverColorMenu(panel_operation);
RrecoverColorMenu(panel_InformedConsent);
RrecoverColorMenu(panel_Proposal);
RrecoverColorMenu(panel_info);
ShowxtraTabControl();
type = 7;
panel_Content.Controls.Clear();
UCInfoButtonCheckStatus();
TCD = new UC_TCD(patientGuid);
TCD.Dock = DockStyle.Fill;
panel_Content.Controls.Add(TCD);
}
private void picture_Proposal_Click(object sender, EventArgs e)
{
ChangeColorMenu(panel_Proposal);
RrecoverColorMenu(panel_lifestyle);
RrecoverColorMenu(panel_familyhistory);
RrecoverColorMenu(panel_medicalhistory);
RrecoverColorMenu(panel_physicaAndecg);
RrecoverColorMenu(panel_laboratory);
RrecoverColorMenu(panel_vascular);
RrecoverColorMenu(panel_operation);
RrecoverColorMenu(panel_TCD);
RrecoverColorMenu(panel_InformedConsent);
RrecoverColorMenu(panel_info);
ShowxtraTabControl();
type = 10;
panel_Content.Controls.Clear();
UCInfoButtonCheckStatus();
Proposal = new UC_Proposal(patientGuid);
Proposal.Dock = DockStyle.Fill;
panel_Content.Controls.Add(Proposal);
}
private void lbl_Proposal_Click(object sender, EventArgs e)
{
ChangeColorMenu(panel_Proposal);
RrecoverColorMenu(panel_lifestyle);
RrecoverColorMenu(panel_familyhistory);
RrecoverColorMenu(panel_medicalhistory);
RrecoverColorMenu(panel_physicaAndecg);
RrecoverColorMenu(panel_laboratory);
RrecoverColorMenu(panel_vascular);
RrecoverColorMenu(panel_operation);
RrecoverColorMenu(panel_TCD);
RrecoverColorMenu(panel_InformedConsent);
RrecoverColorMenu(panel_info);
ShowxtraTabControl();
type = 10;
panel_Content.Controls.Clear();
UCInfoButtonCheckStatus();
Proposal = new UC_Proposal(patientGuid);
Proposal.Dock = DockStyle.Fill;
panel_Content.Controls.Add(Proposal);
}
private void simpleButton4_Click(object sender, EventArgs e)
{
DialogResult dr = XtraMessageBox.Show("是否确定增加复筛次数?", "", MessageBoxButtons.YesNo, MessageBoxIcon.Information);
if (dr == DialogResult.Yes)
{
Info.SaveScreenInfo(1);
GetSceenIntegrity();
}
else
{
return;
}
}
}
}