199 lines
11 KiB
C#
199 lines
11 KiB
C#
using DevExpress.XtraEditors;
|
|
using HL_FristAidPlatform_DTO;
|
|
using HL_FristAidPlatform_Public;
|
|
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_Apoplexy
|
|
{
|
|
public partial class UserControl_Part3 : UserControl
|
|
{
|
|
string PatientGuid;
|
|
ApoplexyBasicinformationDTO basicinformationDTO;
|
|
public UserControl_Part3(string _PatientGuid)
|
|
{
|
|
InitializeComponent();
|
|
PatientGuid = _PatientGuid;
|
|
}
|
|
|
|
private void UserControl_Part3_Load(object sender, EventArgs e)
|
|
{
|
|
basicinformationDTO = DBHelpClass.GetDateModel<ApoplexyBasicinformationDTO>(string.Format("api/service/T_Service_Apoplexy_ArchivesCases/GetByPatientGuid?PatientGuid={0}", PatientGuid));
|
|
if (basicinformationDTO != null)
|
|
{
|
|
radioGroup_RYNIHSSYN.EditValue = basicinformationDTO.RYNIHSSYN;
|
|
textEdit_RYNIHSS.Text = basicinformationDTO.RYNIHSS;
|
|
radioGroup_RYTunYanYN.EditValue = basicinformationDTO.RYTunYanYN;
|
|
textEdit_RYTunYan.Text = basicinformationDTO.RYTunYan;
|
|
textEdit_LEGLU.Text = basicinformationDTO.LEGLU;
|
|
textEdit_LEGLU2H.Text = basicinformationDTO.LEGLU2H;
|
|
textEdit_LEHbA1c.Text = basicinformationDTO.LEHbA1c;
|
|
textEdit_LETG.Text = basicinformationDTO.LETG;
|
|
textEdit_LETCHO.Text = basicinformationDTO.LETCHO;
|
|
textEdit_LELDLC.Text = basicinformationDTO.LELDLC;
|
|
textEdit_LEHDLC.Text = basicinformationDTO.LEHDLC;
|
|
textEdit_LEHomocysteine.Text = basicinformationDTO.LEHomocysteine;
|
|
textEdit_LEInr.Text = basicinformationDTO.LEInr;
|
|
textEdit_LENxhm.Text = basicinformationDTO.LENxhm;
|
|
textEdit_LEAst.Text = basicinformationDTO.LEAst;
|
|
textEdit_LEAlt.Text = basicinformationDTO.LEAlt;
|
|
textEdit_LEXqjg.Text = basicinformationDTO.LEXqjg;
|
|
textEdit_LEXqnsd.Text = basicinformationDTO.LEXqnsd;
|
|
textEdit_LENs.Text = basicinformationDTO.LENs;
|
|
textEdit_LEXxb.Text = basicinformationDTO.LEXxb;
|
|
textEdit_LEXhdb.Text = basicinformationDTO.LEXhdb;
|
|
textEdit_LEBxb.Text = basicinformationDTO.LEBxb;
|
|
textEdit_LECFydb.Text = basicinformationDTO.LECFydb;
|
|
textEdit_LEGmCFydb.Text = basicinformationDTO.LEGmCFydb;
|
|
PublicClass.SetItemChecked(checkedListBoxControl_ECGLeiXing, basicinformationDTO.ECGLeiXing, ';');
|
|
radioGroup_ECGResult.EditValue = basicinformationDTO.ECGResult;
|
|
PublicClass.SetItemChecked(checkedListBoxControl_ECGType, basicinformationDTO.ECGType, ';');
|
|
textEdit_ECGTypeQiTa.Text = basicinformationDTO.ECGTypeQiTa;
|
|
PublicClass.SetItemChecked(checkedListBoxControl_YXJieGou, basicinformationDTO.YXJieGou, ';');
|
|
textEdit_YXJieGouQiTa.Text = basicinformationDTO.LSDrink;
|
|
PublicClass.SetItemChecked(checkedListBoxControl_YXJCJieGuo, basicinformationDTO.YXJCJieGuo, ';');
|
|
textEdit_YXJCJieGuoQiTa.Text = basicinformationDTO.YXJCJieGuoQiTa;
|
|
PublicClass.SetItemChecked(checkedListBoxControl_YXJbXgCheck, basicinformationDTO.YXJbXgCheck, ';');
|
|
|
|
radioGroup_YXXzCheck.EditValue = basicinformationDTO.YXXzCheck;
|
|
radioGroup_YXXzLJz.EditValue = basicinformationDTO.YXXzLJz;
|
|
radioGroup_YXXzLQb.EditValue = basicinformationDTO.YXXzLQb;
|
|
radioGroup_YXXzLJn.EditValue = basicinformationDTO.YXXzLJn;
|
|
radioGroup_YXXzLSg.EditValue = basicinformationDTO.YXXzLSg;
|
|
radioGroup_YXXzLZdm.EditValue = basicinformationDTO.YXXzLZdm;
|
|
radioGroup_YXXzRJz.EditValue = basicinformationDTO.YXXzRJz;
|
|
radioGroup_YXXzRQb.EditValue = basicinformationDTO.YXXzRQb;
|
|
radioGroup_YXXzRJn.EditValue = basicinformationDTO.YXXzRJn;
|
|
radioGroup_YXXzRSg.EditValue = basicinformationDTO.YXXzRSg;
|
|
radioGroup_YXXzRZdm.EditValue = basicinformationDTO.YXXzRZdm;
|
|
PublicClass.SetItemChecked(checkedListBoxControl_YXLNXGCheck, basicinformationDTO.YXLNXGCheck, ';');
|
|
textEdit_YXLNXGCheckQiTa.Text = basicinformationDTO.YXLNXGCheckQiTa;
|
|
radioGroup_YXSevenCheck.EditValue = basicinformationDTO.YXSevenCheck;
|
|
PublicClass.SetItemChecked(checkedListBoxControl_YXJCCheck, basicinformationDTO.YXJCCheck, ';');
|
|
textEdit_YXJCCheckQiTa.Text = basicinformationDTO.YXJCCheckQiTa;
|
|
radioGroup_YXLICAXZL.EditValue = basicinformationDTO.YXLICAXZL;
|
|
radioGroup_YXLACAXZL.EditValue = basicinformationDTO.YXLACAXZL;
|
|
radioGroup_YXLMCAXZL.EditValue = basicinformationDTO.YXLMCAXZL;
|
|
radioGroup_YXLPCAXZL.EditValue = basicinformationDTO.YXLPCAXZL;
|
|
radioGroup_YXLVAXZL.EditValue = basicinformationDTO.YXLVAXZL;
|
|
radioGroup_YXRICAXZL.EditValue = basicinformationDTO.YXRICAXZL;
|
|
radioGroup_YXRACAXZL.EditValue = basicinformationDTO.YXRACAXZL;
|
|
radioGroup_YXRMCAXZL.EditValue = basicinformationDTO.YXRMCAXZL;
|
|
radioGroup_YXRPCAXZL.EditValue = basicinformationDTO.YXRPCAXZL;
|
|
radioGroup_YXRVAXZL.EditValue = basicinformationDTO.YXRVAXZL;
|
|
radioGroup_YXBAXZL.EditValue = basicinformationDTO.YXBAXZL;
|
|
}
|
|
}
|
|
|
|
public void save()
|
|
{
|
|
string Url = "api/service/T_Service_Apoplexy_ArchivesCases/Update";
|
|
List<ApoplexyBasicinformationDTO> list = new List<ApoplexyBasicinformationDTO>();
|
|
ApoplexyBasicinformationDTO model = new ApoplexyBasicinformationDTO();
|
|
//model = basicinformationDTO;
|
|
model.GUID = PatientGuid;
|
|
model.RYNIHSSYN = radioGroup_RYNIHSSYN.EditValue + "";
|
|
model.RYNIHSS = textEdit_RYNIHSS.Text;
|
|
model.RYTunYanYN = radioGroup_RYTunYanYN.EditValue + "";
|
|
model.RYTunYan = textEdit_RYTunYan.Text;
|
|
model.LEGLU = textEdit_LEGLU.Text;
|
|
model.LEGLU2H = textEdit_LEGLU2H.Text;
|
|
model.LEHbA1c = textEdit_LEHbA1c.Text;
|
|
model.LETG = textEdit_LETG.Text;
|
|
model.LETCHO = textEdit_LETCHO.Text;
|
|
model.LELDLC = textEdit_LELDLC.Text;
|
|
model.LEHDLC = textEdit_LEHDLC.Text;
|
|
model.LEHomocysteine = textEdit_LEHomocysteine.Text;
|
|
model.LEInr = textEdit_LEInr.Text;
|
|
model.LENxhm = textEdit_LENxhm.Text;
|
|
model.LEAst = textEdit_LEAst.Text;
|
|
model.LEAlt = textEdit_LEAlt.Text;
|
|
model.LEXqjg = textEdit_LEXqjg.Text;
|
|
model.LEXqnsd = textEdit_LEXqnsd.Text;
|
|
model.LENs = textEdit_LENs.Text;
|
|
model.LEXxb = textEdit_LEXxb.Text;
|
|
model.LEXhdb = textEdit_LEXhdb.Text;
|
|
model.LEBxb = textEdit_LEBxb.Text;
|
|
model.LECFydb = textEdit_LECFydb.Text;
|
|
model.LEGmCFydb = textEdit_LEGmCFydb.Text;
|
|
string SyndromeNumber;
|
|
string Syndrome;
|
|
PublicClass.GetCheckedListBoxItemValues(checkedListBoxControl_ECGLeiXing, ";", out SyndromeNumber, out Syndrome);
|
|
model.ECGLeiXing = SyndromeNumber;
|
|
model.ECGResult = radioGroup_ECGResult.EditValue + "";
|
|
string SyndromeNumber1;
|
|
string Syndrome1;
|
|
PublicClass.GetCheckedListBoxItemValues(checkedListBoxControl_ECGType, ";", out SyndromeNumber1, out Syndrome1);
|
|
model.ECGType = SyndromeNumber1;
|
|
model.ECGTypeQiTa = textEdit_ECGTypeQiTa.Text;
|
|
string SyndromeNumber2;
|
|
string Syndrome2;
|
|
PublicClass.GetCheckedListBoxItemValues(checkedListBoxControl_YXJieGou, ";", out SyndromeNumber2, out Syndrome2);
|
|
model.YXJieGou = SyndromeNumber2;
|
|
model.LSDrink = textEdit_YXJieGouQiTa.Text;
|
|
string SyndromeNumber3;
|
|
string Syndrome3;
|
|
PublicClass.GetCheckedListBoxItemValues(checkedListBoxControl_YXJCJieGuo, ";", out SyndromeNumber3, out Syndrome3);
|
|
model.YXJCJieGuo = SyndromeNumber3;
|
|
model.YXJCJieGuoQiTa = textEdit_YXJCJieGuoQiTa.Text;
|
|
string SyndromeNumber4;
|
|
string Syndrome4;
|
|
PublicClass.GetCheckedListBoxItemValues(checkedListBoxControl_YXJbXgCheck, ";", out SyndromeNumber4, out Syndrome4);
|
|
model.YXJbXgCheck = SyndromeNumber4;
|
|
model.YXXzCheck = radioGroup_YXXzCheck.EditValue + "";
|
|
model.YXXzLJz = radioGroup_YXXzLJz.EditValue + "";
|
|
model.YXXzLQb = radioGroup_YXXzLQb.EditValue + "";
|
|
model.YXXzLJn = radioGroup_YXXzLJn.EditValue + "";
|
|
model.YXXzLSg = radioGroup_YXXzLSg.EditValue + "";
|
|
model.YXXzLZdm = radioGroup_YXXzLZdm.EditValue + "";
|
|
model.YXXzRJz = radioGroup_YXXzRJz.EditValue + "";
|
|
model.YXXzRQb = radioGroup_YXXzRQb.EditValue + "";
|
|
model.YXXzRJn = radioGroup_YXXzRJn.EditValue + "";
|
|
model.YXXzRSg = radioGroup_YXXzRSg.EditValue + "";
|
|
model.YXXzRZdm = radioGroup_YXXzRZdm.EditValue + "";
|
|
string SyndromeNumber5;
|
|
string Syndrome5;
|
|
PublicClass.GetCheckedListBoxItemValues(checkedListBoxControl_YXLNXGCheck, ";", out SyndromeNumber5, out Syndrome5);
|
|
model.YXLNXGCheck = SyndromeNumber5;
|
|
model.YXLNXGCheckQiTa = textEdit_YXLNXGCheckQiTa.Text;
|
|
model.YXSevenCheck = radioGroup_YXSevenCheck.EditValue + "";
|
|
string SyndromeNumber6;
|
|
string Syndrome6;
|
|
PublicClass.GetCheckedListBoxItemValues(checkedListBoxControl_YXJCCheck, ";", out SyndromeNumber6, out Syndrome6);
|
|
model.YXJCCheck = SyndromeNumber6;
|
|
model.YXJCCheckQiTa = textEdit_YXJCCheckQiTa.Text;
|
|
model.YXLICAXZL = radioGroup_YXLICAXZL.EditValue + "";
|
|
model.YXLACAXZL = radioGroup_YXLACAXZL.EditValue + "";
|
|
model.YXLMCAXZL = radioGroup_YXLMCAXZL.EditValue + "";
|
|
model.YXLPCAXZL = radioGroup_YXLPCAXZL.EditValue + "";
|
|
model.YXLVAXZL = radioGroup_YXLVAXZL.EditValue + "";
|
|
model.YXRICAXZL = radioGroup_YXRICAXZL.EditValue + "";
|
|
model.YXRACAXZL = radioGroup_YXRACAXZL.EditValue + "";
|
|
model.YXRMCAXZL = radioGroup_YXRMCAXZL.EditValue + "";
|
|
model.YXRPCAXZL = radioGroup_YXRPCAXZL.EditValue + "";
|
|
model.YXRVAXZL = radioGroup_YXRVAXZL.EditValue + "";
|
|
model.YXBAXZL = radioGroup_YXBAXZL.EditValue + "";
|
|
list.Add(model);
|
|
ClientFactory<ApoplexyBasicinformationDTO> httpClient = new HttpClientFactory<ApoplexyBasicinformationDTO>();
|
|
Client<ApoplexyBasicinformationDTO> client = httpClient.VisitFactory();
|
|
//访问
|
|
ListEntity<ApoplexyBasicinformationDTO> t = client.Post(Url, list);
|
|
if (t.Success)
|
|
{
|
|
XtraMessageBox.Show("保存成功!");
|
|
}
|
|
else
|
|
{
|
|
XtraMessageBox.Show("保存失败!");
|
|
}
|
|
}
|
|
}
|
|
}
|