76 lines
2.5 KiB
C#
76 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_Base_TimeAxisGroupBLL
|
|
{
|
|
private IT_Base_TimeAxisGroup IService = new T_Base_TimeAxisGroupDB();
|
|
|
|
public MessageModel<T_Base_TimeAxisGroup> Add(T_Base_TimeAxisGroup model)
|
|
{
|
|
if (IService.Add(model))
|
|
{
|
|
return new MessageModel<T_Base_TimeAxisGroup> { Success = true, Msg = "操作成功" };
|
|
}
|
|
else
|
|
{
|
|
return new MessageModel<T_Base_TimeAxisGroup> { Success = false, Msg = "操作失败" };
|
|
}
|
|
}
|
|
|
|
public MessageModel<T_Base_TimeAxisGroup> Delete(int id)
|
|
{
|
|
if (IService.Delete(id))
|
|
{
|
|
return new MessageModel<T_Base_TimeAxisGroup> { Success = true, Msg = "操作成功" };
|
|
}
|
|
else
|
|
{
|
|
return new MessageModel<T_Base_TimeAxisGroup> { Success = false, Msg = "操作失败" };
|
|
}
|
|
}
|
|
|
|
public T_Base_TimeAxisGroup Get(int id)
|
|
{
|
|
return IService.Get(id);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获得数据列表
|
|
/// </summary>
|
|
/// <param name="keyWord">关键词</param>
|
|
/// <param name="systemModuleID">模块ID</param>
|
|
/// <param name="deleteFlag">删除标记</param>
|
|
/// <returns></returns>
|
|
public TableModel<T_Base_TimeAxisGroupModel> GetList(string keyWord, int systemModuleID, int deleteFlag)
|
|
{
|
|
return IService.GetList(keyWord, systemModuleID, deleteFlag);
|
|
}
|
|
|
|
public MessageModel<T_Base_TimeAxisGroup> Update(T_Base_TimeAxisGroup model)
|
|
{
|
|
if (IService.Update(model))
|
|
{
|
|
return new MessageModel<T_Base_TimeAxisGroup> { Success = true, Msg = "操作成功" };
|
|
}
|
|
else
|
|
{
|
|
return new MessageModel<T_Base_TimeAxisGroup> { Success = false, Msg = "操作失败" };
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 根据系统模块编号数据列表
|
|
/// </summary>
|
|
/// <param name="systemModuleID">系统模块编号</param>
|
|
/// <returns></returns>
|
|
public TableModel<T_Base_TimeAxisGroup> GetListBySystemModuleID(long systemModuleID)
|
|
{
|
|
return IService.GetListBySystemModuleID(systemModuleID);
|
|
}
|
|
}
|
|
}
|