66 lines
2.0 KiB
C#
66 lines
2.0 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_Apoplexy_ZYYWBLL
|
|
{
|
|
private IT_Service_Apoplexy_ZYYW IService = new T_Service_Apoplexy_ZYYWDB();
|
|
|
|
public T_Service_Apoplexy_ZYYW Add(T_Service_Apoplexy_ZYYW model)
|
|
{
|
|
return IService.Add(model);
|
|
}
|
|
|
|
public MessageModel<T_Service_Apoplexy_ZYYW> Delete(int id)
|
|
{
|
|
if (IService.Delete(id))
|
|
{
|
|
return new MessageModel<T_Service_Apoplexy_ZYYW> { Success = true, Msg = "操作成功" };
|
|
}
|
|
else
|
|
{
|
|
return new MessageModel<T_Service_Apoplexy_ZYYW> { Success = false, Msg = "操作失败" };
|
|
}
|
|
}
|
|
|
|
public T_Service_Apoplexy_ZYYW Get(long guid)
|
|
{
|
|
return IService.Get(guid);
|
|
}
|
|
|
|
public TableModel<T_Service_Apoplexy_ZYYW> GetPageList(int pageIndex, int pageSize)
|
|
{
|
|
return IService.GetPageList(pageIndex, pageSize);
|
|
}
|
|
|
|
public MessageModel<T_Service_Apoplexy_ZYYW> Update(T_Service_Apoplexy_ZYYW model)
|
|
{
|
|
if (IService.Update(model))
|
|
{
|
|
return new MessageModel<T_Service_Apoplexy_ZYYW> { Success = true, Msg = "操作成功" };
|
|
}
|
|
else
|
|
{
|
|
return new MessageModel<T_Service_Apoplexy_ZYYW> { Success = false, Msg = "操作失败" };
|
|
}
|
|
}
|
|
public TableModel<T_Service_Apoplexy_ZYYW> GetByPatientGuid(string patientGuid)
|
|
{
|
|
return IService.GetByPatientGuid(patientGuid);
|
|
}
|
|
public TableModel<T_Service_Apoplexy_ZYYW> GetModelByReport(string where)
|
|
{
|
|
return IService.GetModelByReport(where);
|
|
}
|
|
|
|
|
|
public T_Service_Apoplexy_ZYYW GetOfPatientGuid(string patientGuid)
|
|
{
|
|
return IService.GetOfPatientGuid(patientGuid);
|
|
}
|
|
}
|
|
}
|