StableVersion4.3/HL_FristAidPlatform_Bussiness/Service/T_Service_120FirstAidBLL.cs

82 lines
2.8 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using HL_FristAidPlatform_DataBase;
using HL_FristAidPlatform_Help;
using HL_FristAidPlatform_IDataBase;
using HL_FristAidPlatform_Models;
namespace HL_FristAidPlatform_Bussiness
{
/// <summary>
/// 120急救信息
/// </summary>
public class T_Service_120FirstAidBLL
{
private IT_Service_120FirstAid IService = new T_Service_120FirstAidDB();
public T_Service_120FirstAid Add(T_Service_120FirstAid model)
{
return IService.Add(model);
}
public MessageModel<T_Service_120FirstAid> Delete(int id)
{
if (IService.Delete(id))
{
return new MessageModel<T_Service_120FirstAid> { Success = true, Msg = "操作成功" };
}
else
{
return new MessageModel<T_Service_120FirstAid> { Success = false, Msg = "操作失败" };
}
}
public T_Service_120FirstAid Get(long guid)
{
return IService.Get(guid);
}
/// <summary>
/// 获得数据列表
/// </summary>
/// <param name="pageIndex">起始页</param>
/// <param name="pageSize">每页大小</param>
/// <param name="hospitalGuid">所属院区GUID</param>
/// <param name="startTime">开始时间(创建)</param>
/// <param name="endTime">结束时间(创建)</param>
/// <param name="status">任务状态1派发任务2已出发3到达现场4离开现场5任务完成 -1查询全部</param>
/// <param name="keyWord">关键词</param>
/// <returns></returns>
public string GetPageList(int pageIndex, int pageSize, string hospitalGuid, string startTime, string endTime, int status, string keyWord)
{
return IService.GetPageList(pageIndex, pageSize, hospitalGuid, startTime, endTime, status, keyWord);
}
public MessageModel<T_Service_120FirstAid> Update(T_Service_120FirstAid model)
{
if (IService.Update(model))
{
return new MessageModel<T_Service_120FirstAid> { Success = true, Msg = "操作成功" };
}
else
{
return new MessageModel<T_Service_120FirstAid> { Success = false, Msg = "操作失败" };
}
}
public TableModel<T_Service_120FirstAid> GetByPatientGuid(string patientGuid)
{
return IService.GetByPatientGuid(patientGuid);
}
/// <summary>
/// 获取急救调度任务单信息
/// </summary>
/// <param name="patientGuid">患者编号(GUID)</param>
/// <returns></returns>
public string GetDispatchOrderInfo(string patientGuid)
{
return IService.GetDispatchOrderInfo(patientGuid);
}
}
}