StableVersion4.3/HL_FristAidPlatform_Bussiness/Service/T_Service_Apoplexy_JKJYBLL.cs

60 lines
1.8 KiB
C#

using HL_FristAidPlatform_DataBase;
using HL_FristAidPlatform_Help;
using HL_FristAidPlatform_IDataBase;
using HL_FristAidPlatform_Models;
namespace HL_FristAidPlatform_Bussiness
{
/// <summary>
/// 健康教育记录
/// </summary>
public class T_Service_Apoplexy_JKJYBLL
{
private IT_Service_Apoplexy_JKJY IService = new T_Service_Apoplexy_JKJYDB();
public T_Service_Apoplexy_JKJY Add(T_Service_Apoplexy_JKJY model)
{
return IService.Add(model);
}
public MessageModel<T_Service_Apoplexy_JKJY> Update(T_Service_Apoplexy_JKJY model)
{
if (IService.Update(model) > 0)
{
return new MessageModel<T_Service_Apoplexy_JKJY> { Success = true, Msg = "操作成功" };
}
else
{
return new MessageModel<T_Service_Apoplexy_JKJY> { Success = false, Msg = "操作失败" };
}
}
public MessageModel<T_Service_Apoplexy_JKJY> Delete(int id)
{
if (IService.Delete(id))
{
return new MessageModel<T_Service_Apoplexy_JKJY> { Success = true, Msg = "操作成功" };
}
else
{
return new MessageModel<T_Service_Apoplexy_JKJY> { Success = false, Msg = "操作失败" };
}
}
public T_Service_Apoplexy_JKJY Get(long id)
{
return IService.Get(id);
}
public TableModel<T_Service_Apoplexy_JKJY> GetPageList(int pageIndex, int pageSize)
{
return IService.GetPageList(pageIndex, pageSize);
}
public TableModel<T_Service_Apoplexy_JKJY> GetByPatientGuidAndReportType(string patientGuid, int reportType)
{
return IService.GetByPatientGuidAndReportType(patientGuid, reportType);
}
}
}