using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using CY.IDAL;
|
using CY.Model;
|
using AbstractFactory;
|
using CY.IBaseDAL;
|
using CY.Infrastructure.DESEncrypt;
|
using CY.Infrastructure.Query;
|
|
namespace CY.BLL
|
{
|
public class Soft_ManageBLL
|
{
|
ISoft_ManageDAL iSoft_ManageDAL = null;
|
|
public Soft_ManageBLL()
|
{
|
iSoft_ManageDAL = Factory.GetDALByInterfaceName(DALInterface.ISoft_ManageDAL) as ISoft_ManageDAL;
|
}
|
|
/// <summary>
|
/// 添加
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public bool InsertModel(Model.Soft_Manage model)
|
{
|
return iSoft_ManageDAL.InserModel(model);
|
}
|
|
/// <summary>
|
/// 更新
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public bool UpdateModel(Model.Soft_Manage model)
|
{
|
|
return iSoft_ManageDAL.UpdateModel(model);
|
}
|
|
/// <summary>
|
/// 删除
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public bool DeleteModel(Model.Soft_Manage model)
|
{
|
|
return iSoft_ManageDAL.DeleteModel(model);
|
}
|
|
/// <summary>
|
/// 根据编号获得信息
|
/// </summary>
|
/// <param name="Keyid">编号</param>
|
/// <returns></returns>
|
public Soft_Manage GetModelByKeyid(int? Keyid)
|
{
|
return iSoft_ManageDAL.GetModelByKeyid(Keyid);
|
}
|
|
/// <summary>
|
/// 分页查询
|
/// </summary>
|
/// <param name="pagination"></param>
|
/// <returns></returns>
|
public IEnumerable<Model.Soft_Manage> SelectModelPage(Infrastructure.Query.Pagination pagination, string _SoftName, int? _SoftPrice, string _SoftContent, DateTime? _BeginLastUpdateTime, DateTime? _EndLastUpdateTime, string _Operator)
|
{
|
return iSoft_ManageDAL.SelectModelPage(pagination, _SoftName, _SoftPrice, _SoftContent, _BeginLastUpdateTime, _EndLastUpdateTime, _Operator);
|
}
|
}
|
}
|