57 lines
1.9 KiB
C#
57 lines
1.9 KiB
C#
|
using HL_FristAidPlatform_DataBase;
|
|||
|
using HL_FristAidPlatform_Help;
|
|||
|
using HL_FristAidPlatform_IDataBase;
|
|||
|
using HL_FristAidPlatform_Models;
|
|||
|
|
|||
|
namespace HL_FristAidPlatform_Bussiness
|
|||
|
{
|
|||
|
public class T_Service_Trauma_PrehospitalBLL
|
|||
|
{
|
|||
|
private IT_Service_Trauma_Prehospital IService = new T_Service_Trauma_PrehospitalDB();
|
|||
|
|
|||
|
public T_Service_Trauma_Prehospital Add(T_Service_Trauma_Prehospital model)
|
|||
|
{
|
|||
|
return IService.Add(model);
|
|||
|
}
|
|||
|
|
|||
|
public MessageModel<T_Service_Trauma_Prehospital> Delete(int id)
|
|||
|
{
|
|||
|
if (IService.Delete(id))
|
|||
|
{
|
|||
|
return new MessageModel<T_Service_Trauma_Prehospital> { Success = true, Msg = "操作成功" };
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
return new MessageModel<T_Service_Trauma_Prehospital> { Success = false, Msg = "操作失败" };
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public T_Service_Trauma_Prehospital Get(long guid)
|
|||
|
{
|
|||
|
return IService.Get(guid);
|
|||
|
}
|
|||
|
|
|||
|
public TableModel<T_Service_Trauma_Prehospital> GetPageList(int pageIndex, int pageSize)
|
|||
|
{
|
|||
|
return IService.GetPageList(pageIndex, pageSize);
|
|||
|
}
|
|||
|
|
|||
|
public MessageModel<T_Service_Trauma_Prehospital> Update(T_Service_Trauma_Prehospital model)
|
|||
|
{
|
|||
|
if (IService.Update(model) > 0)
|
|||
|
{
|
|||
|
return new MessageModel<T_Service_Trauma_Prehospital> { Success = true, Msg = "操作成功" };
|
|||
|
}
|
|||
|
else
|
|||
|
{
|
|||
|
return new MessageModel<T_Service_Trauma_Prehospital> { Success = false, Msg = "操作失败" };
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
public TableModel<T_Service_Trauma_Prehospital> GetByPatientGuidAndReportType(string patientGuid, int reportType)
|
|||
|
{
|
|||
|
return IService.GetByPatientGuidAndReportType(patientGuid, reportType);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|