339 lines
13 KiB
C#
339 lines
13 KiB
C#
using DevExpress.XtraEditors;
|
|
using HL_FristAidPlatform_DTO;
|
|
using HL_FristAidPlatform_Public;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Windows.Forms;
|
|
|
|
namespace HL_FristAidPlatform_EMRS
|
|
{
|
|
public partial class Form_PatientInfoNIHSS : XtraForm
|
|
{
|
|
private string _patientGUID;
|
|
/// <summary>
|
|
/// 意识水平
|
|
/// </summary>
|
|
private int levelScore;
|
|
|
|
/// <summary>
|
|
/// 意识水平提问
|
|
/// </summary>
|
|
public int questionScore;
|
|
|
|
/// <summary>
|
|
/// 意识水平指令
|
|
/// </summary>
|
|
public int instructScore;
|
|
|
|
/// <summary>
|
|
/// 凝视
|
|
/// </summary>
|
|
public int gazeScore;
|
|
|
|
/// <summary>
|
|
/// 视野
|
|
/// </summary>
|
|
public int viewScore;
|
|
|
|
/// <summary>
|
|
/// 面瘫
|
|
/// </summary>
|
|
public int pacioplegiaScore;
|
|
|
|
/// <summary>
|
|
/// 左上肢运动
|
|
/// </summary>
|
|
public int lTopLimbScore;
|
|
|
|
/// <summary>
|
|
/// 右上肢运动
|
|
/// </summary>
|
|
public int rTopLimbScore;
|
|
|
|
/// <summary>
|
|
/// 左下肢运动
|
|
/// </summary>
|
|
public int lUpperLimbScore;
|
|
|
|
/// <summary>
|
|
/// 右下肢运动
|
|
/// </summary>
|
|
public int rUpperLimbScore;
|
|
|
|
/// <summary>
|
|
/// 共济失调
|
|
/// </summary>
|
|
public int ataxiaScore;
|
|
|
|
/// <summary>
|
|
/// 感觉
|
|
/// </summary>
|
|
public int senseScore;
|
|
|
|
/// <summary>
|
|
/// 语言
|
|
/// </summary>
|
|
public int languageScore;
|
|
|
|
/// <summary>
|
|
/// 构音障碍
|
|
/// </summary>
|
|
public int dysarthriaScore;
|
|
|
|
/// <summary>
|
|
/// 忽视症
|
|
/// </summary>
|
|
public int neglectScore;
|
|
|
|
/// <summary>
|
|
/// 总分
|
|
/// </summary>
|
|
public int totalScore;
|
|
public Form_PatientInfoNIHSS(string patientGUID)
|
|
{
|
|
InitializeComponent();
|
|
_patientGUID = patientGUID;
|
|
|
|
}
|
|
|
|
protected override CreateParams CreateParams
|
|
{
|
|
get
|
|
{
|
|
CreateParams cp = base.CreateParams;
|
|
cp.ExStyle |= 0x02000000; // 用双缓冲绘制窗口的所有子控件
|
|
return cp;
|
|
}
|
|
}
|
|
private void Form_PatientInfoNIHSS_Load(object sender, EventArgs e)
|
|
{
|
|
this.SuspendLayout();
|
|
radioGroup7.SelectedIndex = -1;
|
|
radioGroup14.SelectedIndex = -1;
|
|
radioGroup1.SelectedIndex = -1;
|
|
radioGroup2.SelectedIndex = -1;
|
|
radioGroup3.SelectedIndex = -1;
|
|
radioGroup4.SelectedIndex = -1;
|
|
radioGroup5.SelectedIndex = -1;
|
|
radioGroup6.SelectedIndex = -1;
|
|
radioGroup8.SelectedIndex = -1;
|
|
radioGroup16.SelectedIndex = -1;
|
|
radioGroup15.SelectedIndex = -1;
|
|
radioGroup11.SelectedIndex = -1;
|
|
radioGroup12.SelectedIndex = -1;
|
|
radioGroup13.SelectedIndex = -1;
|
|
radioGroup18.SelectedIndex = -1;
|
|
|
|
}
|
|
|
|
private void radioGroup1_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
if (radioGroup1.SelectedIndex != -1)
|
|
{
|
|
levelScore = radioGroup1.SelectedIndex;
|
|
lbl_TotalScore.Text = (levelScore + questionScore + instructScore + viewScore + gazeScore + pacioplegiaScore + lTopLimbScore + rTopLimbScore + lUpperLimbScore + rUpperLimbScore + ataxiaScore + senseScore + languageScore + dysarthriaScore + neglectScore).ToString();
|
|
}
|
|
|
|
|
|
}
|
|
|
|
private void radioGroup2_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
if (radioGroup2.SelectedIndex != -1)
|
|
{
|
|
questionScore = radioGroup2.SelectedIndex;
|
|
lbl_TotalScore.Text = (levelScore + questionScore + instructScore + viewScore + gazeScore + pacioplegiaScore + lTopLimbScore + rTopLimbScore + lUpperLimbScore + rUpperLimbScore + ataxiaScore + senseScore + languageScore + dysarthriaScore + neglectScore).ToString();
|
|
}
|
|
|
|
}
|
|
|
|
private void radioGroup4_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
if (radioGroup4.SelectedIndex != -1)
|
|
{
|
|
instructScore = radioGroup4.SelectedIndex;
|
|
lbl_TotalScore.Text = (levelScore + questionScore + instructScore + viewScore + gazeScore + pacioplegiaScore + lTopLimbScore + rTopLimbScore + lUpperLimbScore + rUpperLimbScore + ataxiaScore + senseScore + languageScore + dysarthriaScore + neglectScore).ToString();
|
|
}
|
|
|
|
}
|
|
|
|
private void radioGroup3_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
if (radioGroup3.SelectedIndex != -1)
|
|
{
|
|
gazeScore = radioGroup3.SelectedIndex;
|
|
lbl_TotalScore.Text = (levelScore + questionScore + instructScore + viewScore + gazeScore + pacioplegiaScore + lTopLimbScore + rTopLimbScore + lUpperLimbScore + rUpperLimbScore + ataxiaScore + senseScore + languageScore + dysarthriaScore + neglectScore).ToString();
|
|
}
|
|
|
|
}
|
|
|
|
private void radioGroup8_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
if (radioGroup8.SelectedIndex != -1)
|
|
{
|
|
viewScore = radioGroup8.SelectedIndex;
|
|
lbl_TotalScore.Text = (levelScore + questionScore + instructScore + viewScore + gazeScore + pacioplegiaScore + lTopLimbScore + rTopLimbScore + lUpperLimbScore + rUpperLimbScore + ataxiaScore + senseScore + languageScore + dysarthriaScore + neglectScore).ToString();
|
|
}
|
|
|
|
}
|
|
|
|
private void radioGroup7_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
if (radioGroup7.SelectedIndex != -1)
|
|
{
|
|
pacioplegiaScore = radioGroup7.SelectedIndex;
|
|
lbl_TotalScore.Text = (levelScore + questionScore + instructScore + viewScore + gazeScore + pacioplegiaScore + lTopLimbScore + rTopLimbScore + lUpperLimbScore + rUpperLimbScore + ataxiaScore + senseScore + languageScore + dysarthriaScore + neglectScore).ToString();
|
|
}
|
|
|
|
}
|
|
|
|
//private void radioGroup1_SelectedIndexChanged(object sender, EventArgs e)
|
|
//{
|
|
// if (radioGroup1.SelectedIndex != -1)
|
|
// {
|
|
// lTopLimbScore = radioGroup6.SelectedIndex;
|
|
// lbl_TotalScore.Text = (levelScore + questionScore + instructScore + viewScore + gazeScore + pacioplegiaScore + lTopLimbScore + rTopLimbScore + lUpperLimbScore + rUpperLimbScore + ataxiaScore + senseScore + languageScore + dysarthriaScore + neglectScore).ToString();
|
|
// }
|
|
|
|
//}
|
|
|
|
private void radioGroup5_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
if (radioGroup5.SelectedIndex != -1)
|
|
{
|
|
rTopLimbScore = radioGroup5.SelectedIndex;
|
|
lbl_TotalScore.Text = (levelScore + questionScore + instructScore + viewScore + gazeScore + pacioplegiaScore + lTopLimbScore + rTopLimbScore + lUpperLimbScore + rUpperLimbScore + ataxiaScore + senseScore + languageScore + dysarthriaScore + neglectScore).ToString();
|
|
}
|
|
|
|
}
|
|
|
|
private void radioGroup15_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
if (radioGroup15.SelectedIndex != -1)
|
|
{
|
|
lUpperLimbScore = radioGroup15.SelectedIndex;
|
|
lbl_TotalScore.Text = (levelScore + questionScore + instructScore + viewScore + gazeScore + pacioplegiaScore + lTopLimbScore + rTopLimbScore + lUpperLimbScore + rUpperLimbScore + ataxiaScore + senseScore + languageScore + dysarthriaScore + neglectScore).ToString();
|
|
}
|
|
|
|
}
|
|
|
|
private void radioGroup16_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
if (radioGroup16.SelectedIndex != -1)
|
|
{
|
|
rUpperLimbScore = radioGroup16.SelectedIndex;
|
|
lbl_TotalScore.Text = (levelScore + questionScore + instructScore + viewScore + gazeScore + pacioplegiaScore + lTopLimbScore + rTopLimbScore + lUpperLimbScore + rUpperLimbScore + ataxiaScore + senseScore + languageScore + dysarthriaScore + neglectScore).ToString();
|
|
}
|
|
|
|
}
|
|
|
|
private void radioGroup13_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
switch (radioGroup13.SelectedIndex)
|
|
{
|
|
case 0:
|
|
ataxiaScore = 0;
|
|
break;
|
|
case 1:
|
|
ataxiaScore = 1;
|
|
break;
|
|
case 2:
|
|
ataxiaScore = 2;
|
|
break;
|
|
case 3:
|
|
ataxiaScore = 9;
|
|
break;
|
|
}
|
|
lbl_TotalScore.Text = (levelScore + questionScore + instructScore + viewScore + gazeScore + pacioplegiaScore + lTopLimbScore + rTopLimbScore + lUpperLimbScore + rUpperLimbScore + ataxiaScore + senseScore + languageScore + dysarthriaScore + neglectScore).ToString();
|
|
}
|
|
|
|
private void radioGroup14_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
if (radioGroup14.SelectedIndex != -1)
|
|
{
|
|
senseScore = radioGroup14.SelectedIndex;
|
|
lbl_TotalScore.Text = (levelScore + questionScore + instructScore + viewScore + gazeScore + pacioplegiaScore + lTopLimbScore + rTopLimbScore + lUpperLimbScore + rUpperLimbScore + ataxiaScore + senseScore + languageScore + dysarthriaScore + neglectScore).ToString();
|
|
}
|
|
|
|
}
|
|
|
|
private void radioGroup18_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
if (radioGroup18.SelectedIndex != -1)
|
|
{
|
|
languageScore = radioGroup18.SelectedIndex;
|
|
lbl_TotalScore.Text = (levelScore + questionScore + instructScore + viewScore + gazeScore + pacioplegiaScore + lTopLimbScore + rTopLimbScore + lUpperLimbScore + rUpperLimbScore + ataxiaScore + senseScore + languageScore + dysarthriaScore + neglectScore).ToString();
|
|
}
|
|
|
|
}
|
|
|
|
private void radioGroup11_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
if (radioGroup11.SelectedIndex != -1)
|
|
{
|
|
dysarthriaScore = radioGroup18.SelectedIndex;
|
|
lbl_TotalScore.Text = (levelScore + questionScore + instructScore + viewScore + gazeScore + pacioplegiaScore + lTopLimbScore + rTopLimbScore + lUpperLimbScore + rUpperLimbScore + ataxiaScore + senseScore + languageScore + dysarthriaScore + neglectScore).ToString();
|
|
}
|
|
|
|
}
|
|
|
|
private void radioGroup12_SelectedIndexChanged(object sender, EventArgs e)
|
|
{
|
|
switch (radioGroup12.SelectedIndex)
|
|
{
|
|
case 0:
|
|
neglectScore = 0;
|
|
break;
|
|
case 1:
|
|
neglectScore = 1;
|
|
break;
|
|
case 2:
|
|
neglectScore = 3;
|
|
break;
|
|
}
|
|
lbl_TotalScore.Text = (levelScore + questionScore + instructScore + viewScore + gazeScore + pacioplegiaScore + lTopLimbScore + rTopLimbScore + lUpperLimbScore + rUpperLimbScore + ataxiaScore + senseScore + languageScore + dysarthriaScore + neglectScore).ToString();
|
|
}
|
|
|
|
private void simpleButton1_Click(object sender, EventArgs e)
|
|
{
|
|
List<FirstAid_PatientNIHSSDTO> list = new List<FirstAid_PatientNIHSSDTO>();
|
|
FirstAid_PatientNIHSSDTO dto = new FirstAid_PatientNIHSSDTO();
|
|
dto.CreateUser = Information.User.ID;
|
|
dto.PatientGUID = _patientGUID;
|
|
dto.LevelScore = levelScore;
|
|
dto.QuestionScore = questionScore;
|
|
dto.InstructScore = instructScore;
|
|
dto.ViewScore = viewScore;
|
|
dto.GazeScore = gazeScore;
|
|
dto.PacioplegiaScore = pacioplegiaScore;
|
|
dto.LTopLimbScore = lTopLimbScore;
|
|
dto.RTopLimbScore = rTopLimbScore;
|
|
dto.LUpperLimbScore = lUpperLimbScore;
|
|
dto.RUpperLimbScore = rUpperLimbScore;
|
|
dto.AtaxiaScore = ataxiaScore;
|
|
dto.SenseScore = senseScore;
|
|
dto.LanguageScore = languageScore;
|
|
dto.DysarthriaScore = dysarthriaScore;
|
|
dto.NeglectScore = neglectScore;
|
|
dto.TotalScore = int.Parse(lbl_TotalScore.Text);
|
|
|
|
list.Add(dto);
|
|
string Url = string.Empty;
|
|
Url = "api/service/FirstAid_PatientScore/AddNIHSS";
|
|
|
|
//初始化两个工厂
|
|
ClientFactory<FirstAid_PatientNIHSSDTO> httpClient = new HttpClientFactory<FirstAid_PatientNIHSSDTO>();
|
|
Client<FirstAid_PatientNIHSSDTO> client = httpClient.VisitFactory();
|
|
|
|
if (client.Post(Url, list).Success)
|
|
{
|
|
XtraMessageBox.Show("保存成功", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information);
|
|
Form_EMRInfo info;
|
|
info = (Form_EMRInfo)this.Owner;
|
|
info.ParentInfo(_patientGUID);
|
|
this.Close();
|
|
}
|
|
}
|
|
}
|
|
}
|