StableVersion4.3/HL_FristAidPlatform_Bussiness/Service/T_Service_FollowUp_ChestPai...

67 lines
2.5 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_FollowUp_ChestPainBLL
{
private IT_Service_FollowUp_ChestPain IService = new T_Service_FollowUp_ChestPainDB();
public MessageModel<T_Service_FollowUp_ChestPain> Add(T_Service_FollowUp_ChestPain model)
{
if (IService.Add(model))
{
return new MessageModel<T_Service_FollowUp_ChestPain> { Success = true, Msg = "操作成功" };
}
else
{
return new MessageModel<T_Service_FollowUp_ChestPain> { Success = false, Msg = "操作失败" };
}
}
public MessageModel<T_Service_FollowUp_ChestPain> Delete(int id)
{
if (IService.Delete(id))
{
return new MessageModel<T_Service_FollowUp_ChestPain> { Success = true, Msg = "操作成功" };
}
else
{
return new MessageModel<T_Service_FollowUp_ChestPain> { Success = false, Msg = "操作失败" };
}
}
public T_Service_FollowUp_ChestPain Get(string guid)
{
return IService.Get(guid);
}
public TableModel<T_Service_FollowUp_ChestPain> GetPageList(int pageIndex, int pageSize)
{
return IService.GetPageList(pageIndex, pageSize);
}
public TableModel<T_Service_FollowUp_ChestPain> GetPageList(int pageIndex, int pageSize, string pGuid)
{
return IService.GetPageList(pageIndex, pageSize, pGuid);
}
public MessageModel<T_Service_FollowUp_ChestPain> Update(T_Service_FollowUp_ChestPain model)
{
if (IService.Update(model))
{
return new MessageModel<T_Service_FollowUp_ChestPain> { Success = true, Msg = "操作成功" };
}
else
{
return new MessageModel<T_Service_FollowUp_ChestPain> { Success = false, Msg = "操作失败" };
}
}
public TableModel<T_Service_FollowUp_ChestPain_Patient> GetModelByFollowUp(string key, string startTime, string endTime, int state, int pageIndex, int pageSize, long SystemModuleID, string hospitalGuid)
{
return IService.GetModelByFollowUp(key, startTime, endTime, state, pageIndex, pageSize, SystemModuleID, hospitalGuid);
}
}
}