55 lines
2.0 KiB
C#
55 lines
2.0 KiB
C#
using HL_FristAidPlatform_DataBase;
|
|
using HL_FristAidPlatform_Help;
|
|
using HL_FristAidPlatform_Help.Model;
|
|
using HL_FristAidPlatform_IDataBase;
|
|
using HL_FristAidPlatform_Models;
|
|
using System;
|
|
|
|
namespace HL_FristAidPlatform_Bussiness
|
|
{
|
|
public class FirstAidPatientBLL
|
|
{
|
|
IFirstAidPatientService service = new FirstAidPatientService();
|
|
|
|
/// <summary>
|
|
/// 更新患者院前基本信息
|
|
/// </summary>
|
|
/// <param name="patient"></param>
|
|
/// <param name="info"></param>
|
|
/// <returns></returns>
|
|
public MessageModel<bool> UpdateFirstAidPatientsInfo(UpdateFirstAidPatientsModel model)
|
|
{
|
|
T_Service_Patient patient = new T_Service_Patient();
|
|
patient.GUID = model.PatientGUID;
|
|
patient.Name = model.Name;
|
|
patient.Gender = model.Gender;
|
|
patient.Address = model.Address;
|
|
patient.Age = model.Age;
|
|
patient.MobilePhone = model.MobilePhone;
|
|
patient.Nation = model.Nation;
|
|
patient.IdentityCard = model.IdentityCard;
|
|
patient.Attack_Address = model.Attack_Address;
|
|
//patient.SystemModuleID = model.SystemModelId;
|
|
|
|
T_Service_FirstAid_PatientInfo info = new T_Service_FirstAid_PatientInfo();
|
|
info.GUID = model.FPGUID;
|
|
info.PathogenyGUID = model.PathogenyGUID;
|
|
info.TransportAddress = model.TransportAddress;
|
|
info.ChiefComplaint = model.ChiefComplaint;
|
|
info.MedicalHistory = model.MedicalHistory;
|
|
info.AllergyHistory = model.AllergyHistory;
|
|
info.DisposalRecord = model.DisposalRecord;
|
|
info.Attack_Time = Convert.ToDateTime(model.Attack_Time)+"";
|
|
|
|
if (service.UpdateFirstAidPatientsInfo(patient, info))
|
|
{
|
|
return new MessageModel<bool> { Success = true, Msg = "操作成功" };
|
|
}
|
|
else
|
|
{
|
|
return new MessageModel<bool> { Success = true, Msg = "失败" };
|
|
}
|
|
}
|
|
}
|
|
}
|