971 lines
32 KiB
C#
971 lines
32 KiB
C#
using DevExpress.XtraEditors;
|
||
using HL_FristAidPlatform_DTO;
|
||
using HL_FristAidPlatform_Public;
|
||
using Newtonsoft.Json;
|
||
using Newtonsoft.Json.Linq;
|
||
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_Trauma.Page
|
||
{
|
||
public partial class UCOtherAIS : UserControl
|
||
{
|
||
string _guid = "";
|
||
string issguid;
|
||
int num1 = 0;
|
||
int num2 = 0;
|
||
int num3 = 0;
|
||
int num4 = 0;
|
||
int num5 = 0;
|
||
int num6 = 0;
|
||
int num7 = 0;
|
||
int num8 = 0;
|
||
int num9 = 0;
|
||
int num10 = 0;
|
||
int sum = 0;
|
||
|
||
T_Service_Trauma_SurfaceOthersAISDTO SurfaceOthersAISDTO = new T_Service_Trauma_SurfaceOthersAISDTO();
|
||
public UCOtherAIS()
|
||
{
|
||
InitializeComponent();
|
||
}
|
||
|
||
public UCOtherAIS(string patientGuid, string _issguid)
|
||
{
|
||
InitializeComponent();
|
||
_guid = patientGuid;
|
||
issguid = _issguid;
|
||
}
|
||
|
||
public string SaveOtherAISInfo()
|
||
{
|
||
string resMsg = "";
|
||
try
|
||
{
|
||
SurfaceOthersAISDTO.PatientGuid = _guid;
|
||
SurfaceOthersAISDTO.ISSGUID = issguid;
|
||
SurfaceOthersAISDTO.CreatorID = Information.User.ID;
|
||
//HeadAISDTO.HeadAISSum = sum + "";
|
||
List<int> lists = new List<int>();
|
||
lists.Add(num1);
|
||
lists.Add(num2);
|
||
lists.Add(num3);
|
||
lists.Add(num4);
|
||
lists.Add(num5);
|
||
lists.Add(num6);
|
||
lists.Add(num7);
|
||
lists.Add(num8);
|
||
lists.Add(num9);
|
||
lists.Add(num10);
|
||
SurfaceOthersAISDTO.SurfaceOthersAISSum = PublicClass.getMAX(lists) + "";
|
||
|
||
List<T_Service_Trauma_SurfaceOthersAISDTO> SurfaceOthersAISDTOs = new List<T_Service_Trauma_SurfaceOthersAISDTO>();
|
||
|
||
string Url = string.Format("api/service/T_Service_Trauma_Assessment/SaveSurfaceOthersAIS");
|
||
|
||
ClientFactory<T_Service_Trauma_SurfaceOthersAISDTO> httpClient = new HttpClientFactory<T_Service_Trauma_SurfaceOthersAISDTO>();
|
||
Client<T_Service_Trauma_SurfaceOthersAISDTO> client = httpClient.VisitFactory();
|
||
|
||
SurfaceOthersAISDTOs.Add(SurfaceOthersAISDTO);
|
||
//访问
|
||
ListEntity<T_Service_Trauma_SurfaceOthersAISDTO> t = client.Post(Url, SurfaceOthersAISDTOs);
|
||
|
||
|
||
if (t.Success)
|
||
{
|
||
//XtraMessageBox.Show("保存成功");
|
||
JObject jo = (JObject)JsonConvert.DeserializeObject(t.DataString);
|
||
string msg = jo["Msg"].ToString();
|
||
resMsg = jo["ResultMsg"] + "";
|
||
|
||
if (!string.IsNullOrEmpty(resMsg))
|
||
{
|
||
issguid = resMsg;
|
||
}
|
||
if (!string.IsNullOrEmpty(msg))
|
||
{
|
||
XtraMessageBox.Show(msg);
|
||
}
|
||
}
|
||
else
|
||
{
|
||
XtraMessageBox.Show("保存失败");
|
||
}
|
||
}
|
||
catch (Exception ex)
|
||
{
|
||
PublicClass.WriteErrorLog(this.Text, "保存皮肤其他AIS信息:\r\n" + ex);
|
||
}
|
||
return resMsg;
|
||
}
|
||
|
||
private void UCOtherAIS_Load(object sender, EventArgs e)
|
||
{
|
||
try
|
||
{
|
||
tabPane7.SelectedPage = tabNavigationPage15;
|
||
|
||
DataTable dt = DBHelpClass.GetDataRow(string.Format("api/service/T_Service_Trauma_Assessment/GetSurfaceOthersAISByPatientGuid?PatientGuid={0}&ISSGUID={1}", _guid, issguid));
|
||
if (dt != null && dt.Rows.Count > 0)
|
||
{
|
||
if (!string.IsNullOrEmpty(dt.Rows[0]["Scalp"].ToString()))
|
||
{
|
||
int temp = int.Parse(dt.Rows[0]["Scalp"].ToString());
|
||
|
||
if (temp == 3)
|
||
{
|
||
checkEdit9.Checked = true;
|
||
}
|
||
if (temp == 2)
|
||
{
|
||
checkEdit8.Checked = true;
|
||
}
|
||
if (temp == 1)
|
||
{
|
||
checkEdit7.Checked = true;
|
||
}
|
||
}
|
||
|
||
if (!string.IsNullOrEmpty(dt.Rows[0]["FacialSkin"].ToString()))
|
||
{
|
||
int temp = int.Parse(dt.Rows[0]["FacialSkin"].ToString());
|
||
|
||
if (temp == 3)
|
||
{
|
||
checkEdit3.Checked = true;
|
||
}
|
||
if (temp == 2)
|
||
{
|
||
checkEdit2.Checked = true;
|
||
}
|
||
if (temp == 1)
|
||
{
|
||
checkEdit1.Checked = true;
|
||
}
|
||
}
|
||
|
||
if (!string.IsNullOrEmpty(dt.Rows[0]["NeckAndAbdomenSkin"].ToString()))
|
||
{
|
||
int temp = int.Parse(dt.Rows[0]["NeckAndAbdomenSkin"].ToString());
|
||
|
||
if (temp == 3)
|
||
{
|
||
checkEdit15.Checked = true;
|
||
}
|
||
if (temp == 2)
|
||
{
|
||
checkEdit14.Checked = true;
|
||
}
|
||
if (temp == 1)
|
||
{
|
||
checkEdit13.Checked = true;
|
||
}
|
||
}
|
||
|
||
if (!string.IsNullOrEmpty(dt.Rows[0]["LimbsAndButtocksSkin"].ToString()))
|
||
{
|
||
int temp = int.Parse(dt.Rows[0]["LimbsAndButtocksSkin"].ToString());
|
||
|
||
if (temp == 3)
|
||
{
|
||
checkEdit21.Checked = true;
|
||
}
|
||
if (temp == 2)
|
||
{
|
||
checkEdit20.Checked = true;
|
||
}
|
||
if (temp == 1)
|
||
{
|
||
checkEdit19.Checked = true;
|
||
}
|
||
}
|
||
|
||
if (!string.IsNullOrEmpty(dt.Rows[0]["Burn"].ToString()))
|
||
{
|
||
int temp = int.Parse(dt.Rows[0]["Burn"].ToString());
|
||
|
||
if (temp == 6)
|
||
{
|
||
checkEdit30.Checked = true;
|
||
}
|
||
if (temp == 5)
|
||
{
|
||
checkEdit29.Checked = true;
|
||
}
|
||
if (temp == 4)
|
||
{
|
||
checkEdit28.Checked = true;
|
||
}
|
||
if (temp == 3)
|
||
{
|
||
checkEdit27.Checked = true;
|
||
}
|
||
if (temp == 2)
|
||
{
|
||
checkEdit26.Checked = true;
|
||
}
|
||
if (temp == 1)
|
||
{
|
||
checkEdit25.Checked = true;
|
||
}
|
||
}
|
||
|
||
if (!string.IsNullOrEmpty(dt.Rows[0]["Frostbite"].ToString()))
|
||
{
|
||
int temp = int.Parse(dt.Rows[0]["Frostbite"].ToString());
|
||
|
||
if (temp == 3)
|
||
{
|
||
checkEdit33.Checked = true;
|
||
}
|
||
if (temp == 2)
|
||
{
|
||
checkEdit32.Checked = true;
|
||
}
|
||
if (temp == 1)
|
||
{
|
||
checkEdit31.Checked = true;
|
||
}
|
||
}
|
||
|
||
if (!string.IsNullOrEmpty(dt.Rows[0]["Asphyxia"].ToString()))
|
||
{
|
||
int temp = int.Parse(dt.Rows[0]["Asphyxia"].ToString());
|
||
|
||
if (temp == 5)
|
||
{
|
||
checkEdit41.Checked = true;
|
||
}
|
||
if (temp == 4)
|
||
{
|
||
checkEdit40.Checked = true;
|
||
}
|
||
if (temp == 3)
|
||
{
|
||
checkEdit39.Checked = true;
|
||
}
|
||
}
|
||
|
||
if (!string.IsNullOrEmpty(dt.Rows[0]["Drowning"].ToString()))
|
||
{
|
||
int temp = int.Parse(dt.Rows[0]["Drowning"].ToString());
|
||
|
||
if (temp == 6)
|
||
{
|
||
checkEdit48.Checked = true;
|
||
}
|
||
if (temp == 4)
|
||
{
|
||
checkEdit46.Checked = true;
|
||
}
|
||
if (temp == 3)
|
||
{
|
||
checkEdit45.Checked = true;
|
||
}
|
||
}
|
||
|
||
if (!string.IsNullOrEmpty(dt.Rows[0]["ElectricInjury"].ToString()))
|
||
{
|
||
int temp = int.Parse(dt.Rows[0]["ElectricInjury"].ToString());
|
||
|
||
if (temp == 5)
|
||
{
|
||
checkEdit53.Checked = true;
|
||
}
|
||
if (temp == 3)
|
||
{
|
||
checkEdit51.Checked = true;
|
||
}
|
||
if (temp == 2)
|
||
{
|
||
checkEdit50.Checked = true;
|
||
}
|
||
}
|
||
|
||
if (!string.IsNullOrEmpty(dt.Rows[0]["PrimaryHypothermia"].ToString()))
|
||
{
|
||
int temp = int.Parse(dt.Rows[0]["PrimaryHypothermia"].ToString());
|
||
|
||
if (temp == 5)
|
||
{
|
||
checkEdit59.Checked = true;
|
||
}
|
||
if (temp == 4)
|
||
{
|
||
checkEdit58.Checked = true;
|
||
}
|
||
if (temp == 3)
|
||
{
|
||
checkEdit57.Checked = true;
|
||
}
|
||
if (temp == 2)
|
||
{
|
||
checkEdit56.Checked = true;
|
||
}
|
||
if (temp == 1)
|
||
{
|
||
checkEdit55.Checked = true;
|
||
}
|
||
}
|
||
}
|
||
|
||
}
|
||
catch (Exception ex)
|
||
{
|
||
PublicClass.WriteErrorLog(this.Text, "加载皮肤其他AIS信息:\r\n" + ex);
|
||
}
|
||
}
|
||
|
||
#region Scalp
|
||
private void checkEdit9_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.Scalp = "";
|
||
if (checkEdit9.Checked == true)
|
||
{
|
||
checkEdit8.Checked = false;
|
||
checkEdit7.Checked = false;
|
||
num1 = 3;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.Scalp = num1 + "";
|
||
}
|
||
else
|
||
{
|
||
num1 = 0;
|
||
}
|
||
}
|
||
|
||
private void checkEdit8_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.Scalp = "";
|
||
if (checkEdit8.Checked == true)
|
||
{
|
||
checkEdit9.Checked = false;
|
||
checkEdit7.Checked = false;
|
||
num1 = 2;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.Scalp = num1 + "";
|
||
}
|
||
else
|
||
{
|
||
num1 = 0;
|
||
}
|
||
}
|
||
|
||
private void checkEdit7_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.Scalp = "";
|
||
if (checkEdit7.Checked == true)
|
||
{
|
||
checkEdit9.Checked = false;
|
||
checkEdit8.Checked = false;
|
||
num1 = 1;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.Scalp = num1 + "";
|
||
}
|
||
else
|
||
{
|
||
num1 = 0;
|
||
}
|
||
}
|
||
|
||
|
||
#endregion
|
||
#region 面部皮肤
|
||
private void checkEdit3_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.FacialSkin = "";
|
||
if (checkEdit3.Checked == true)
|
||
{
|
||
checkEdit2.Checked = false;
|
||
checkEdit1.Checked = false;
|
||
num2 = 3;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.FacialSkin = num2 + "";
|
||
}
|
||
else
|
||
{
|
||
num2 = 0;
|
||
}
|
||
}
|
||
|
||
private void checkEdit2_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.FacialSkin = "";
|
||
if (checkEdit2.Checked == true)
|
||
{
|
||
checkEdit3.Checked = false;
|
||
checkEdit1.Checked = false;
|
||
num2 = 2;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.FacialSkin = num2 + "";
|
||
}
|
||
else
|
||
{
|
||
num2 = 0;
|
||
}
|
||
}
|
||
|
||
private void checkEdit1_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.FacialSkin = "";
|
||
if (checkEdit1.Checked == true)
|
||
{
|
||
checkEdit3.Checked = false;
|
||
checkEdit2.Checked = false;
|
||
num2 = 1;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.FacialSkin = num2 + "";
|
||
}
|
||
else
|
||
{
|
||
num2 = 0;
|
||
}
|
||
}
|
||
#endregion
|
||
|
||
#region 颈部腹部皮肤
|
||
private void checkEdit15_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.NeckAndAbdomenSkin = "";
|
||
if (checkEdit15.Checked == true)
|
||
{
|
||
checkEdit14.Checked = false;
|
||
checkEdit13.Checked = false;
|
||
num3 = 3;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.NeckAndAbdomenSkin = num3 + "";
|
||
}
|
||
else
|
||
{
|
||
num3 = 0;
|
||
}
|
||
}
|
||
|
||
private void checkEdit14_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.NeckAndAbdomenSkin = "";
|
||
if (checkEdit14.Checked == true)
|
||
{
|
||
checkEdit15.Checked = false;
|
||
checkEdit13.Checked = false;
|
||
num3 = 2;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.NeckAndAbdomenSkin = num3 + "";
|
||
}
|
||
else
|
||
{
|
||
num3 = 0;
|
||
}
|
||
}
|
||
|
||
private void checkEdit13_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.NeckAndAbdomenSkin = "";
|
||
if (checkEdit13.Checked == true)
|
||
{
|
||
checkEdit15.Checked = false;
|
||
checkEdit14.Checked = false;
|
||
num3 = 1;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.NeckAndAbdomenSkin = num3 + "";
|
||
}
|
||
else
|
||
{
|
||
num3 = 0;
|
||
}
|
||
}
|
||
#endregion
|
||
#region 四肢臀部皮肤
|
||
private void checkEdit21_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.LimbsAndButtocksSkin = "";
|
||
if (checkEdit21.Checked == true)
|
||
{
|
||
checkEdit20.Checked = false;
|
||
checkEdit19.Checked = false;
|
||
num4 = 3;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.LimbsAndButtocksSkin = num4 + "";
|
||
}
|
||
else
|
||
{
|
||
num4 = 0;
|
||
}
|
||
}
|
||
|
||
private void checkEdit20_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.LimbsAndButtocksSkin = "";
|
||
if (checkEdit20.Checked == true)
|
||
{
|
||
checkEdit21.Checked = false;
|
||
checkEdit19.Checked = false;
|
||
num4 = 2;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.LimbsAndButtocksSkin = num4 + "";
|
||
}
|
||
else
|
||
{
|
||
num4 = 0;
|
||
}
|
||
}
|
||
|
||
private void checkEdit19_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.LimbsAndButtocksSkin = "";
|
||
if (checkEdit19.Checked == true)
|
||
{
|
||
checkEdit21.Checked = false;
|
||
checkEdit20.Checked = false;
|
||
num4 = 1;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.LimbsAndButtocksSkin = num4 + "";
|
||
}
|
||
else
|
||
{
|
||
num4 = 0;
|
||
}
|
||
}
|
||
|
||
#endregion
|
||
#region 烧伤
|
||
private void checkEdit30_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.Burn = "";
|
||
if (checkEdit30.Checked == true)
|
||
{
|
||
checkEdit29.Checked = false;
|
||
checkEdit28.Checked = false;
|
||
checkEdit27.Checked = false;
|
||
checkEdit26.Checked = false;
|
||
checkEdit25.Checked = false;
|
||
num5 = 6;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.Burn = num5 + "";
|
||
}
|
||
else
|
||
{
|
||
num5 = 0;
|
||
}
|
||
}
|
||
|
||
private void checkEdit29_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.Burn = "";
|
||
if (checkEdit29.Checked == true)
|
||
{
|
||
checkEdit30.Checked = false;
|
||
checkEdit28.Checked = false;
|
||
checkEdit27.Checked = false;
|
||
checkEdit26.Checked = false;
|
||
checkEdit25.Checked = false;
|
||
num5 = 5;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.Burn = num5 + "";
|
||
}
|
||
else
|
||
{
|
||
num5 = 0;
|
||
}
|
||
}
|
||
|
||
private void checkEdit28_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.Burn = "";
|
||
if (checkEdit28.Checked == true)
|
||
{
|
||
checkEdit30.Checked = false;
|
||
checkEdit29.Checked = false;
|
||
checkEdit27.Checked = false;
|
||
checkEdit26.Checked = false;
|
||
checkEdit25.Checked = false;
|
||
num5 = 4;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.Burn = num5 + "";
|
||
}
|
||
else
|
||
{
|
||
num5 = 0;
|
||
}
|
||
}
|
||
|
||
private void checkEdit27_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.Burn = "";
|
||
if (checkEdit27.Checked == true)
|
||
{
|
||
checkEdit30.Checked = false;
|
||
checkEdit29.Checked = false;
|
||
checkEdit28.Checked = false;
|
||
checkEdit26.Checked = false;
|
||
checkEdit25.Checked = false;
|
||
num5 = 3;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.Burn = num5 + "";
|
||
}
|
||
else
|
||
{
|
||
num5 = 0;
|
||
}
|
||
}
|
||
|
||
private void checkEdit26_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.Burn = "";
|
||
if (checkEdit26.Checked == true)
|
||
{
|
||
checkEdit30.Checked = false;
|
||
checkEdit29.Checked = false;
|
||
checkEdit28.Checked = false;
|
||
checkEdit27.Checked = false;
|
||
checkEdit25.Checked = false;
|
||
num5 = 2;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.Burn = num5 + "";
|
||
}
|
||
else
|
||
{
|
||
num5 = 0;
|
||
}
|
||
}
|
||
|
||
private void checkEdit25_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.Burn = "";
|
||
if (checkEdit25.Checked == true)
|
||
{
|
||
checkEdit30.Checked = false;
|
||
checkEdit29.Checked = false;
|
||
checkEdit28.Checked = false;
|
||
checkEdit27.Checked = false;
|
||
checkEdit26.Checked = false;
|
||
num5 = 1;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.Burn = num5 + "";
|
||
}
|
||
else
|
||
{
|
||
num5 = 0;
|
||
}
|
||
}
|
||
|
||
#endregion
|
||
#region 冻伤
|
||
private void checkEdit33_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.Frostbite = "";
|
||
if (checkEdit33.Checked == true)
|
||
{
|
||
checkEdit32.Checked = false;
|
||
checkEdit31.Checked = false;
|
||
num6 = 3;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.Frostbite = num6 + "";
|
||
}
|
||
else
|
||
{
|
||
num6 = 0;
|
||
}
|
||
}
|
||
|
||
private void checkEdit32_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.Frostbite = "";
|
||
if (checkEdit32.Checked == true)
|
||
{
|
||
checkEdit33.Checked = false;
|
||
checkEdit31.Checked = false;
|
||
num6 = 2;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.Frostbite = num6 + "";
|
||
}
|
||
else
|
||
{
|
||
num6 = 0;
|
||
}
|
||
}
|
||
|
||
private void checkEdit31_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.Frostbite = "";
|
||
if (checkEdit31.Checked == true)
|
||
{
|
||
checkEdit33.Checked = false;
|
||
checkEdit32.Checked = false;
|
||
num6 = 1;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.Frostbite = num6 + "";
|
||
}
|
||
else
|
||
{
|
||
num6 = 0;
|
||
}
|
||
}
|
||
|
||
#endregion
|
||
#region 窒息
|
||
private void checkEdit41_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.Asphyxia = "";
|
||
if (checkEdit41.Checked == true)
|
||
{
|
||
checkEdit40.Checked = false;
|
||
checkEdit39.Checked = false;
|
||
num7 = 5;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.Asphyxia = num7 + "";
|
||
}
|
||
else
|
||
{
|
||
num7 = 0;
|
||
}
|
||
}
|
||
|
||
private void checkEdit40_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.Asphyxia = "";
|
||
if (checkEdit40.Checked == true)
|
||
{
|
||
checkEdit41.Checked = false;
|
||
checkEdit39.Checked = false;
|
||
num7 = 4;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.Asphyxia = num7 + "";
|
||
}
|
||
else
|
||
{
|
||
num7 = 0;
|
||
}
|
||
}
|
||
|
||
private void checkEdit39_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.Asphyxia = "";
|
||
if (checkEdit39.Checked == true)
|
||
{
|
||
checkEdit41.Checked = false;
|
||
checkEdit40.Checked = false;
|
||
num7 = 3;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.Asphyxia = num7 + "";
|
||
}
|
||
else
|
||
{
|
||
num7 = 0;
|
||
}
|
||
}
|
||
|
||
#endregion
|
||
#region 溺水
|
||
private void checkEdit48_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.Drowning = "";
|
||
if (checkEdit48.Checked == true)
|
||
{
|
||
checkEdit46.Checked = false;
|
||
checkEdit45.Checked = false;
|
||
num8 = 6;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.Drowning = num8 + "";
|
||
}
|
||
else
|
||
{
|
||
num8 = 0;
|
||
}
|
||
}
|
||
|
||
private void checkEdit46_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.Drowning = "";
|
||
if (checkEdit46.Checked == true)
|
||
{
|
||
checkEdit48.Checked = false;
|
||
checkEdit45.Checked = false;
|
||
num8 = 4;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.Drowning = num8 + "";
|
||
}
|
||
else
|
||
{
|
||
num8 = 0;
|
||
}
|
||
}
|
||
|
||
private void checkEdit45_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.Drowning = "";
|
||
if (checkEdit45.Checked == true)
|
||
{
|
||
checkEdit48.Checked = false;
|
||
checkEdit46.Checked = false;
|
||
num8 = 3;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.Drowning = num8 + "";
|
||
}
|
||
else
|
||
{
|
||
num8 = 0;
|
||
}
|
||
}
|
||
|
||
#endregion
|
||
#region 高压电击伤
|
||
private void checkEdit53_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.ElectricInjury = "";
|
||
if (checkEdit53.Checked == true)
|
||
{
|
||
checkEdit51.Checked = false;
|
||
checkEdit50.Checked = false;
|
||
num9 = 5;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.ElectricInjury = num9 + "";
|
||
}
|
||
else
|
||
{
|
||
num9 = 0;
|
||
}
|
||
}
|
||
|
||
private void checkEdit51_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.ElectricInjury = "";
|
||
if (checkEdit51.Checked == true)
|
||
{
|
||
checkEdit53.Checked = false;
|
||
checkEdit50.Checked = false;
|
||
num9 = 3;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.ElectricInjury = num9 + "";
|
||
}
|
||
else
|
||
{
|
||
num9 = 0;
|
||
}
|
||
}
|
||
|
||
private void checkEdit50_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.ElectricInjury = "";
|
||
if (checkEdit50.Checked == true)
|
||
{
|
||
checkEdit53.Checked = false;
|
||
checkEdit51.Checked = false;
|
||
num9 = 2;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.ElectricInjury = num9 + "";
|
||
}
|
||
else
|
||
{
|
||
num9 = 0;
|
||
}
|
||
}
|
||
|
||
#endregion
|
||
#region 原发低体温
|
||
private void checkEdit59_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.PrimaryHypothermia = "";
|
||
if (checkEdit59.Checked == true)
|
||
{
|
||
checkEdit58.Checked = false;
|
||
checkEdit57.Checked = false;
|
||
checkEdit56.Checked = false;
|
||
checkEdit55.Checked = false;
|
||
num10 = 5;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.PrimaryHypothermia = num10 + "";
|
||
}
|
||
else
|
||
{
|
||
num10 = 0;
|
||
}
|
||
}
|
||
|
||
private void checkEdit58_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.PrimaryHypothermia = "";
|
||
if (checkEdit58.Checked == true)
|
||
{
|
||
checkEdit59.Checked = false;
|
||
checkEdit57.Checked = false;
|
||
checkEdit56.Checked = false;
|
||
checkEdit55.Checked = false;
|
||
num10 = 4;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.PrimaryHypothermia = num10 + "";
|
||
}
|
||
else
|
||
{
|
||
num10 = 0;
|
||
}
|
||
}
|
||
|
||
private void checkEdit57_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.PrimaryHypothermia = "";
|
||
if (checkEdit57.Checked == true)
|
||
{
|
||
checkEdit59.Checked = false;
|
||
checkEdit58.Checked = false;
|
||
checkEdit56.Checked = false;
|
||
checkEdit55.Checked = false;
|
||
num10 = 3;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.PrimaryHypothermia = num10 + "";
|
||
}
|
||
else
|
||
{
|
||
num10 = 0;
|
||
}
|
||
}
|
||
|
||
private void checkEdit56_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.PrimaryHypothermia = "";
|
||
if (checkEdit56.Checked == true)
|
||
{
|
||
checkEdit59.Checked = false;
|
||
checkEdit58.Checked = false;
|
||
checkEdit57.Checked = false;
|
||
checkEdit55.Checked = false;
|
||
num10 = 2;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.PrimaryHypothermia = num10 + "";
|
||
}
|
||
else
|
||
{
|
||
num10 = 0;
|
||
}
|
||
}
|
||
|
||
private void checkEdit55_CheckedChanged(object sender, EventArgs e)
|
||
{
|
||
SurfaceOthersAISDTO.PrimaryHypothermia = "";
|
||
if (checkEdit55.Checked == true)
|
||
{
|
||
checkEdit59.Checked = false;
|
||
checkEdit58.Checked = false;
|
||
checkEdit57.Checked = false;
|
||
checkEdit56.Checked = false;
|
||
num10 = 1;
|
||
sum = num1 + num2 + num3 + num4 + num5 + num6 + num7 + num8 + num9 + num10;
|
||
SurfaceOthersAISDTO.PrimaryHypothermia = num10 + "";
|
||
}
|
||
else
|
||
{
|
||
num10 = 0;
|
||
}
|
||
}
|
||
|
||
#endregion
|
||
}
|
||
}
|