365 lines
14 KiB
C#
365 lines
14 KiB
C#
using DevExpress.XtraEditors;
|
|
using DevExpress.XtraLayout;
|
|
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.Linq;
|
|
using System.Text;
|
|
using System.Text.RegularExpressions;
|
|
using System.Threading.Tasks;
|
|
using System.Windows.Forms;
|
|
|
|
namespace HL_FristAidPlatform_Apoplexy
|
|
{
|
|
public partial class Form_Intervene : XtraForm
|
|
{
|
|
public string patientGuid;
|
|
public string flag;
|
|
public int type = 1;
|
|
public DateTime dt;
|
|
public string name;
|
|
public string age;
|
|
public string gender;
|
|
public string screenName;
|
|
|
|
public UC_Info Info;
|
|
public UC_LifeStyle LifeStyle;
|
|
public UC_FamilyHistory FamilyHistory;
|
|
public UC_IntervenePastHistory MedicalHistory;
|
|
public UC_PhysicaAndECG PhysicaAndECG;
|
|
public UC_Laboratory Laboratory;
|
|
public UC_InterveneVascular Vascular;
|
|
public UC_Operation Operation;
|
|
public Form_Intervene(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" ? "男" : "女";
|
|
Info = new UC_Info(patientGuid, flag);
|
|
Info.Dock = DockStyle.Fill;
|
|
panel_Content.Controls.Add(Info);
|
|
}
|
|
|
|
|
|
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);
|
|
}
|
|
|
|
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);
|
|
type = 1;
|
|
panel_Content.Controls.Clear();
|
|
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);
|
|
type = 1;
|
|
panel_Content.Controls.Clear();
|
|
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); ;
|
|
type = 2;
|
|
panel_Content.Controls.Clear();
|
|
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); ;
|
|
type = 2;
|
|
panel_Content.Controls.Clear();
|
|
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);
|
|
type = 3;
|
|
panel_Content.Controls.Clear();
|
|
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);
|
|
type = 3;
|
|
panel_Content.Controls.Clear();
|
|
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);
|
|
type = 4;
|
|
panel_Content.Controls.Clear();
|
|
MedicalHistory = new UC_IntervenePastHistory(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);
|
|
type = 4;
|
|
panel_Content.Controls.Clear();
|
|
MedicalHistory = new UC_IntervenePastHistory(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);
|
|
type = 5;
|
|
panel_Content.Controls.Clear();
|
|
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);
|
|
type = 5;
|
|
panel_Content.Controls.Clear();
|
|
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);
|
|
type = 6;
|
|
panel_Content.Controls.Clear();
|
|
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);
|
|
type = 6;
|
|
panel_Content.Controls.Clear();
|
|
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);
|
|
type = 7;
|
|
panel_Content.Controls.Clear();
|
|
Vascular = new UC_InterveneVascular(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);
|
|
type = 7;
|
|
panel_Content.Controls.Clear();
|
|
Vascular = new UC_InterveneVascular(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);
|
|
type = 8;
|
|
panel_Content.Controls.Clear();
|
|
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);
|
|
type = 8;
|
|
panel_Content.Controls.Clear();
|
|
Operation = new UC_Operation(patientGuid, flag);
|
|
Operation.Dock = DockStyle.Fill;
|
|
panel_Content.Controls.Add(Operation);
|
|
}
|
|
|
|
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.SaveIntervenePastHistory();
|
|
if (type == 5)
|
|
PhysicaAndECG.SaveScreenPhysicalFitness();
|
|
if (type == 6)
|
|
Laboratory.SaveScreenLaboratory();
|
|
if (type == 7)
|
|
Vascular.SaveScreenCervical();
|
|
if (type == 8)
|
|
Operation.SaveScreenAngiopathy();
|
|
}
|
|
}
|
|
}
|