82 lines
2.8 KiB
C#
82 lines
2.8 KiB
C#
|
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);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|