StableVersion4.3/HL_FristAidPlatform_Bussiness/Service/T_Service_Apoplexy_CEACZBLL.cs

60 lines
1.9 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>
/// CEA/CAS 手术操作表CEACZ
/// </summary>
public class T_Service_Apoplexy_CEACZBLL
{
private IT_Service_Apoplexy_CEACZ IService = new T_Service_Apoplexy_CEACZDB();
public T_Service_Apoplexy_CEACZ Add(T_Service_Apoplexy_CEACZ model)
{
return IService.Add(model);
}
public MessageModel<T_Service_Apoplexy_CEACZ> Update(T_Service_Apoplexy_CEACZ model)
{
if (IService.Update(model) > 0)
{
return new MessageModel<T_Service_Apoplexy_CEACZ> { Success = true, Msg = "操作成功" };
}
else
{
return new MessageModel<T_Service_Apoplexy_CEACZ> { Success = false, Msg = "操作失败" };
}
}
public MessageModel<T_Service_Apoplexy_CEACZ> Delete(int id)
{
if (IService.Delete(id))
{
return new MessageModel<T_Service_Apoplexy_CEACZ> { Success = true, Msg = "操作成功" };
}
else
{
return new MessageModel<T_Service_Apoplexy_CEACZ> { Success = false, Msg = "操作失败" };
}
}
public T_Service_Apoplexy_CEACZ Get(long id)
{
return IService.Get(id);
}
public TableModel<T_Service_Apoplexy_CEACZ> GetPageList(int pageIndex, int pageSize)
{
return IService.GetPageList(pageIndex, pageSize);
}
public TableModel<T_Service_Apoplexy_CEACZ> GetByPatientGuidAndReportType(string patientGuid, int reportType)
{
return IService.GetByPatientGuidAndReportType(patientGuid, reportType);
}
}
}