60 lines
1.9 KiB
C#
60 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
|
||
{
|
||
/// <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);
|
||
}
|
||
}
|
||
}
|