StableVersion4.3/HL_FristAidPlatform_Bussiness/Base/T_Base_PreliminaryDiagnosis...

84 lines
3.0 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_Base_PreliminaryDiagnosisBLL
{
private IT_Base_PreliminaryDiagnosis IService = new T_Base_PreliminaryDiagnosisDB();
public MessageModel<T_Base_PreliminaryDiagnosis> Add(T_Base_PreliminaryDiagnosis model)
{
if (IService.Add(model))
{
return new MessageModel<T_Base_PreliminaryDiagnosis> { Success = true, Msg = "操作成功" };
}
else
{
return new MessageModel<T_Base_PreliminaryDiagnosis> { Success = false, Msg = "操作失败" };
}
}
public MessageModel<T_Base_PreliminaryDiagnosis> Update(T_Base_PreliminaryDiagnosis model)
{
if (IService.Update(model) > 0)
{
return new MessageModel<T_Base_PreliminaryDiagnosis> { Success = true, Msg = "操作成功" };
}
else
{
return new MessageModel<T_Base_PreliminaryDiagnosis> { Success = false, Msg = "操作失败" };
}
}
public MessageModel<T_Base_PreliminaryDiagnosis> Delete(long id)
{
if (IService.Delete(id))
{
return new MessageModel<T_Base_PreliminaryDiagnosis> { Success = true, Msg = "操作成功" };
}
else
{
return new MessageModel<T_Base_PreliminaryDiagnosis> { Success = false, Msg = "操作失败" };
}
}
public T_Base_PreliminaryDiagnosis Get(long id)
{
return IService.Get(id);
}
public TableModel<T_Base_PreliminaryDiagnosisModel> GetPageList(int pageIndex, int pageSize, string keyWord, int isEnable)
{
return IService.GetPageList(pageIndex, pageSize, keyWord, isEnable);
}
public TableModel<T_Base_PreliminaryDiagnosis> GetListBySystemModuleID(long systemModuleID, int isDiagnosis = 1, int isOutCome = 1)
{
return IService.GetListBySystemModuleID(systemModuleID, isDiagnosis, isOutCome);
}
/// <summary>
/// 逻辑删除
/// </summary>
/// <param name="id">编号</param>
/// <param name="isEnable">标记:0取消删除 1删除</param>
/// <returns></returns>
public MessageModel<T_Base_PreliminaryDiagnosis> LogicalDelete(long id, int isEnable)
{
if (IService.LogicalDelete(id, isEnable) > 0)
{
return new MessageModel<T_Base_PreliminaryDiagnosis> { Success = true, Msg = "操作成功" };
}
else
{
return new MessageModel<T_Base_PreliminaryDiagnosis> { Success = false, Msg = "操作失败" };
}
}
}
}