StableVersion4.3/HL_FristAidPlatform_FollowUp/Form_PatientGCS.cs

97 lines
2.7 KiB
C#
Raw Permalink Normal View History

2024-03-11 09:47:34 +08:00
using DevExpress.XtraEditors;
using HL_FristAidPlatform_DTO;
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 Form_PatientGCS : XtraForm
{
public int flag;
public int r1;
public int r2;
public int r3;
//设置委托
public delegate void TextEventHandler(string strText, PatientGCSDTO dto);
public TextEventHandler TextHandler;
PatientGCSDTO dto;
public Form_PatientGCS()
{
InitializeComponent();
}
public Form_PatientGCS(int _flag)
{
InitializeComponent();
flag = _flag;
}
private void Form_PatientGCS_Load(object sender, EventArgs e)
{
radioGroup1.SelectedIndex = -1;
radioGroup2.SelectedIndex = -1;
radioGroup3.SelectedIndex = -1;
dto = new PatientGCSDTO();
}
private void radioGroup1_SelectedIndexChanged(object sender, EventArgs e)
{
if (radioGroup1.SelectedIndex != -1)
{
r1 = radioGroup1.SelectedIndex + 1;
labelControl5.Text = (r1 + r2 + r3) + "";
dto.EyesOpenScore = r1;
}
}
private void radioGroup2_SelectedIndexChanged(object sender, EventArgs e)
{
if (radioGroup2.SelectedIndex != -1)
{
r2 = radioGroup2.SelectedIndex + 1;
labelControl5.Text = (r1 + r2 + r3) + "";
dto.VerbalResponseScore = r2;
}
}
private void radioGroup3_SelectedIndexChanged(object sender, EventArgs e)
{
if (radioGroup3.SelectedIndex != -1)
{
r3 = radioGroup3.SelectedIndex + 1;
labelControl5.Text = (r1 + r2 + r3) + "";
dto.LimbExerciseScore = r3;
}
}
private void simpleButton1_Click(object sender, EventArgs e)
{
if (flag == 0)
{
Form_FollowUpDetail_FollowUpEvaluation evaluation;
evaluation = (Form_FollowUpDetail_FollowUpEvaluation)this.Owner;
evaluation.RefreshGCS(labelControl5.Text);
}
if (flag == 1)
{
Form_FollowUpDetail_FollowUpLeaveHospitalManage evaluation;
evaluation = (Form_FollowUpDetail_FollowUpLeaveHospitalManage)this.Owner;
evaluation.RefreshGCS(labelControl5.Text);
}
this.Close();
}
}
}