AIMS/AIMSControls/OperationAfter/frmPatientStateTree.cs
2023-08-16 22:32:16 +08:00

194 lines
12 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using AIMSBLL;
using DocumentManagement;
using System;
using System.Data;
using System.Drawing;
using System.Windows.Forms;
namespace AIMS.OperationAfter.UI
{
public partial class frmPatientStateTree : Form
{
public frmPatientStateTree()
{
InitializeComponent();
//申请手术
panel2.BackgroundImage = global::AIMSControls.Properties.Resources.GCSYH;
panel9.BackgroundImage = global::AIMSControls.Properties.Resources.GCSAS_GRAY_;
label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(195)))), ((int)(((byte)(193)))), ((int)(((byte)(193)))));
panel14.BackgroundImage = global::AIMSControls.Properties.Resources.GCSNOTPASS;
//术前排程
panel3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(195)))), ((int)(((byte)(193)))), ((int)(((byte)(193)))));
panel12.BackgroundImage = global::AIMSControls.Properties.Resources.GCSSQPC_GRAY_;
label18.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(195)))), ((int)(((byte)(193)))), ((int)(((byte)(193)))));
panel18.BackgroundImage = global::AIMSControls.Properties.Resources.GCSNOTPASS;
//术前访视
panel10.BackgroundImage = global::AIMSControls.Properties.Resources.GCSSQFS_GRAY_;
panel4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(195)))), ((int)(((byte)(193)))), ((int)(((byte)(193)))));
label4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(195)))), ((int)(((byte)(193)))), ((int)(((byte)(193)))));
panel17.BackgroundImage = global::AIMSControls.Properties.Resources.GCSUNRATED;
//麻醉计划
label5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(195)))), ((int)(((byte)(193)))), ((int)(((byte)(193)))));
panel11.BackgroundImage = global::AIMSControls.Properties.Resources.GCSAP_GRAY_;
panel6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(195)))), ((int)(((byte)(193)))), ((int)(((byte)(193)))));
panel19.BackgroundImage = global::AIMSControls.Properties.Resources.GCSNotDevelop;
//麻醉知情同意书
panel5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(195)))), ((int)(((byte)(193)))), ((int)(((byte)(193)))));
panel26.BackgroundImage = global::AIMSControls.Properties.Resources.GCSAGREED_GRAY_;
label6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(195)))), ((int)(((byte)(193)))), ((int)(((byte)(193)))));
panel20.BackgroundImage = global::AIMSControls.Properties.Resources.GCDONTS;
//术后随访
panel23.BackgroundImage = global::AIMSControls.Properties.Resources.GCSYHRIG;
panel15.BackgroundImage = global::AIMSControls.Properties.Resources.GCSSH_GRAY_;
label8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(195)))), ((int)(((byte)(193)))), ((int)(((byte)(193)))));
panel22.BackgroundImage = global::AIMSControls.Properties.Resources.GCSNOTFOLLOW;
}
public int ApplyId = 1;
public string ASA1 = "";
public string ASA2 = "Ⅱ";
public string ASA3 = "Ⅲ";
public string ASA4 = "IV";
public string ASA5 = "V";
public string ASA6 = "VI";
private void frmPatientStateTree_Load(object sender, EventArgs e)
{
if (ApplyId != 0)
{
DataTable patientdt = BOperationApply.SelectOperationInformationByWhere(" ApplyId=" + ApplyId);
labelpatientifo.Text = patientdt.Rows[0]["PatientName"].ToString() + " " + patientdt.Rows[0]["Sex"].ToString() + " " + patientdt.Rows[0]["Age"].ToString();
label1.Text = patientdt.Rows[0]["ApplyDiagnoseInfoName"].ToString();
label19.Text = patientdt.Rows[0]["OperationInfoName"].ToString();
lbDpt.Text = patientdt.Rows[0]["PatientDept"].ToString();
SQAPPLY(patientdt);
SQFS(patientdt);
SQPC(patientdt);
DataTable dt = DocumentDAL.GetPatientDoc(patientdt.Rows[0]["PatientId"].ToString());
if (dt.Rows.Count > 0)
{
for (int i = 0; i < dt.Rows.Count; i++)
{
if (dt.Rows[i]["XmlFileName"].ToString().Contains("手术患者术前术后访视单") || dt.Rows[i]["XmlFileName"].ToString().Contains("术前访视"))
{
//label13.Text = "";
panel11.BackgroundImage = global::AIMSControls.Properties.Resources.GCSAP;
label5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(86)))), ((int)(((byte)(164)))));
panel6.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(3)))), ((int)(((byte)(86)))), ((int)(((byte)(164)))));
panel19.BackgroundImage = global::AIMSControls.Properties.Resources.GCSADevelop;
}
if (dt.Rows[i]["XmlFileName"].ToString().Contains("麻醉知情同意书") || dt.Rows[i]["XmlFileName"].ToString().Contains("知情同意书"))
{
//label14.Text = "";
panel26.BackgroundImage = global::AIMSControls.Properties.Resources.GCSAGREED;
panel5.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(145)))), ((int)(((byte)(205)))));
panel20.BackgroundImage = global::AIMSControls.Properties.Resources.GCSASigned;
label6.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(1)))), ((int)(((byte)(145)))), ((int)(((byte)(205)))));
}
if (dt.Rows[i]["XmlFileName"].ToString().Contains("术后访视"))
{
//label16.Text = "";
label8.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(252)))), ((int)(((byte)(242)))), ((int)(((byte)(7)))));
panel23.BackgroundImage = global::AIMSControls.Properties.Resources.GCSYYELLOW;
panel15.BackgroundImage = global::AIMSControls.Properties.Resources.GCSSH;
panel22.BackgroundImage = global::AIMSControls.Properties.Resources.GCSHaveFollow;
}
}
}
panel7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(195)))), ((int)(((byte)(193)))), ((int)(((byte)(193)))));
panel24.BackgroundImage = global::AIMSControls.Properties.Resources.GCSSZA_GRAY_;
label7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(195)))), ((int)(((byte)(193)))), ((int)(((byte)(193)))));
panel25.BackgroundImage = global::AIMSControls.Properties.Resources.GCDONTS;
panel8.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(195)))), ((int)(((byte)(193)))), ((int)(((byte)(193)))));
panel13.BackgroundImage = global::AIMSControls.Properties.Resources.GCSAR_GRAY_;
label9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(195)))), ((int)(((byte)(193)))), ((int)(((byte)(193)))));
panel21.BackgroundImage = global::AIMSControls.Properties.Resources.GCSNOTPASS;
for (int i = 0; i < patientdt.Rows.Count; i++)
{
if (patientdt.Rows[i]["RecoverId"].ToString() == "1")
{
label17.Text = patientdt.Rows[0]["InRoomTime"].ToString();
panel25.BackgroundImage = global::AIMSControls.Properties.Resources.GCSASigned;
panel24.BackgroundImage = global::AIMSControls.Properties.Resources.GCSSZMZ;
panel7.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(4)))), ((int)(((byte)(186)))), ((int)(((byte)(159)))));
}
if (patientdt.Rows[i]["RecoverId"].ToString() == "2")
{
panel8.BackColor = Color.Lime;
label9.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(143)))), ((int)(((byte)(249)))), ((int)(((byte)(1)))));
panel13.BackgroundImage = global::AIMSControls.Properties.Resources.GCSAR;
label15.Text = patientdt.Rows[i]["InRoomTime"].ToString();
panel21.BackgroundImage = global::AIMSControls.Properties.Resources.GCSPASS;
}
}
}
}
/// <summary>
/// 术前访视
/// </summary>
/// <param name="patientdt"></param>
private void SQFS(DataTable patientdt)
{
label4.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(93)))), ((int)(((byte)(40)))), ((int)(((byte)(158)))));
panel10.BackgroundImage = global::AIMSControls.Properties.Resources.GCSSQFS;
panel4.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(93)))), ((int)(((byte)(40)))), ((int)(((byte)(158)))));
if (patientdt.Rows[0]["ASALevelName"].ToString() == ASA1)
{
panel17.BackgroundImage = global::AIMSControls.Properties.Resources.GCSCLASSP1;
}
else if (patientdt.Rows[0]["ASALevelName"].ToString() == ASA2)
{
panel17.BackgroundImage = global::AIMSControls.Properties.Resources.GCSCLASSP2;
}
else if (patientdt.Rows[0]["ASALevelName"].ToString() == ASA3)
{
panel17.BackgroundImage = global::AIMSControls.Properties.Resources.GCSCLASSP3;
}
else if (patientdt.Rows[0]["ASALevelName"].ToString() == ASA4)
{
panel17.BackgroundImage = global::AIMSControls.Properties.Resources.GCSCLASSP4;
}
else if (patientdt.Rows[0]["ASALevelName"].ToString() == ASA5)
{
panel17.BackgroundImage = global::AIMSControls.Properties.Resources.GCSCLASSP5;
}
else if (patientdt.Rows[0]["ASALevelName"].ToString() == ASA6)
{
panel17.BackgroundImage = global::AIMSControls.Properties.Resources.GCSCLASSP6;
}
}
/// <summary>
/// 术前排程
/// </summary>
/// <param name="patientdt"></param>
private void SQPC(DataTable patientdt)
{
label12.Text = patientdt.Rows[0]["OrderOperationTime"].ToString();
panel18.BackgroundImage = global::AIMSControls.Properties.Resources.GCSPASS;
panel12.BackgroundImage = global::AIMSControls.Properties.Resources.GCSSQPC;
panel3.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(167)))), ((int)(((byte)(46)))), ((int)(((byte)(146)))));
label18.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(167)))), ((int)(((byte)(46)))), ((int)(((byte)(146)))));
}
/// <summary>
/// 术前申请
/// </summary>
/// <param name="patientdt"></param>
private void SQAPPLY(DataTable patientdt)
{
label10.Text = patientdt.Rows[0]["ApplyTime"].ToString();
label3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(228)))), ((int)(((byte)(21)))), ((int)(((byte)(131)))));
panel14.BackgroundImage = global::AIMSControls.Properties.Resources.GCSPASS;
panel9.BackgroundImage = global::AIMSControls.Properties.Resources.GCSAS;
panel2.BackgroundImage = global::AIMSControls.Properties.Resources.GCSYPink;
}
}
}