147 lines
4.9 KiB
C#
147 lines
4.9 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_CertificationVersionBLL
|
|
{
|
|
private IT_Base_CertificationVersion IService = new T_Base_CertificationVersionDB();
|
|
|
|
#region 增
|
|
/// <summary>
|
|
/// 增加一条数据
|
|
/// </summary>
|
|
/// <param name="model">实体</param>
|
|
/// <returns></returns>
|
|
public MessageModel<T_Base_CertificationVersion> Add(T_Base_CertificationVersion model)
|
|
{
|
|
if (IService.Add(model))
|
|
{
|
|
return new MessageModel<T_Base_CertificationVersion> { Success = true, Msg = "操作成功" };
|
|
}
|
|
else
|
|
{
|
|
return new MessageModel<T_Base_CertificationVersion> { Success = false, Msg = "操作失败" };
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 新增 仅更新赋值的字段
|
|
/// </summary>
|
|
/// <param name="model"></param>
|
|
/// <returns></returns>
|
|
public MessageModel<T_Base_CertificationVersion> AddNotNullColumns(T_Base_CertificationVersion model)
|
|
{
|
|
if (IService.AddNotNullColumns(model) > 0)
|
|
{
|
|
return new MessageModel<T_Base_CertificationVersion> { Success = true, Msg = "操作成功" };
|
|
}
|
|
else
|
|
{
|
|
return new MessageModel<T_Base_CertificationVersion> { Success = false, Msg = "操作失败" };
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region 删
|
|
/// <summary>
|
|
/// 删除一条数据
|
|
/// </summary>
|
|
/// <param name="ID">主键</param>
|
|
/// <returns></returns>
|
|
public MessageModel<T_Base_CertificationVersion> Delete(long ID)
|
|
{
|
|
if (IService.Delete(ID))
|
|
{
|
|
return new MessageModel<T_Base_CertificationVersion> { Success = true, Msg = "操作成功" };
|
|
}
|
|
else
|
|
{
|
|
return new MessageModel<T_Base_CertificationVersion> { Success = false, Msg = "操作失败" };
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 逻辑删除
|
|
/// </summary>
|
|
/// <param name="model">实体类</param>
|
|
/// <returns></returns>
|
|
public MessageModel<T_Base_CertificationVersion> LogicalDelete(T_Base_CertificationVersion model)
|
|
{
|
|
if (IService.LogicalDelete(model) > 0)
|
|
{
|
|
return new MessageModel<T_Base_CertificationVersion> { Success = true, Msg = "操作成功" };
|
|
}
|
|
else
|
|
{
|
|
return new MessageModel<T_Base_CertificationVersion> { Success = false, Msg = "操作失败" };
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region 改
|
|
/// <summary>
|
|
/// 更新一条数据
|
|
/// </summary>
|
|
/// <param name="model">实体</param>
|
|
/// <returns></returns>
|
|
public MessageModel<T_Base_CertificationVersion> Update(T_Base_CertificationVersion model)
|
|
{
|
|
if (IService.Update(model))
|
|
{
|
|
return new MessageModel<T_Base_CertificationVersion> { Success = true, Msg = "操作成功" };
|
|
}
|
|
else
|
|
{
|
|
return new MessageModel<T_Base_CertificationVersion> { Success = false, Msg = "操作失败" };
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 仅更新赋值的字段
|
|
/// </summary>
|
|
/// <param name="model">实体类</param>
|
|
/// <returns></returns>
|
|
public MessageModel<T_Base_CertificationVersion> UpdateNotNullColumns(T_Base_CertificationVersion model)
|
|
{
|
|
if (IService.UpdateNotNullColumns(model) > 0)
|
|
{
|
|
return new MessageModel<T_Base_CertificationVersion> { Success = true, Msg = "操作成功" };
|
|
}
|
|
else
|
|
{
|
|
return new MessageModel<T_Base_CertificationVersion> { Success = false, Msg = "操作失败" };
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region 查
|
|
/// <summary>
|
|
/// 得到一个对象实体
|
|
/// </summary>
|
|
/// <param name="ID">主键</param>
|
|
/// <returns></returns>
|
|
public T_Base_CertificationVersion GetModel(long ID)
|
|
{
|
|
return IService.GetModel(ID);
|
|
}
|
|
|
|
/// <summary>
|
|
/// 获得数据列表
|
|
/// </summary>
|
|
/// <param name="systemModuleID">所属系统模块</param>
|
|
/// <param name="keyWord">关键词</param>
|
|
/// <returns></returns>
|
|
public TableModel<T_Base_CertificationVersion> GetList(long systemModuleID, string keyWord)
|
|
{
|
|
return IService.GetList(systemModuleID, keyWord);
|
|
}
|
|
#endregion
|
|
}
|
|
}
|