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_VersionBLL
|
{
|
ISoft_VersionDAL iSoft_VersionDAL = null;
|
|
public Soft_VersionBLL()
|
{
|
iSoft_VersionDAL = Factory.GetDALByInterfaceName(DALInterface.ISoft_VersionDAL) as ISoft_VersionDAL;
|
}
|
|
/// <summary>
|
/// 添加
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public bool InsertModel(Model.Soft_Version model)
|
{
|
return iSoft_VersionDAL.InserModel(model);
|
}
|
|
/// <summary>
|
/// 更新
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public bool UpdateModel(Model.Soft_Version model)
|
{
|
|
return iSoft_VersionDAL.UpdateModel(model);
|
}
|
|
/// <summary>
|
/// 删除
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public bool DeleteModel(Model.Soft_Version model)
|
{
|
|
return iSoft_VersionDAL.DeleteModel(model);
|
}
|
|
/// <summary>
|
/// 根据编号获得信息
|
/// </summary>
|
/// <param name="Keyid">编号</param>
|
/// <returns></returns>
|
public Soft_Version GetModelByKeyid(int? Keyid)
|
{
|
return iSoft_VersionDAL.GetModelByKeyid(Keyid);
|
}
|
|
/// <summary>
|
/// 分页查询
|
/// </summary>
|
/// <param name="pagination"></param>
|
/// <returns></returns>
|
public IEnumerable<Model.Soft_Version> SelectModelPage(Infrastructure.Query.Pagination pagination,int? _SoftTypeId,string _SoftName,string _SoftVersion,string _SoftStoreAddress,string _SoftUrl,string _SoftContent,DateTime? _BeginSoftCreatTime,DateTime? _EndSoftCreatTime,DateTime? _BeginSoftUpCount,DateTime? _EndSoftUpCount,DateTime? _BeginLastUpdateTime,DateTime? _EndLastUpdateTime,string _Operator)
|
{
|
return iSoft_VersionDAL.SelectModelPage(pagination, _SoftTypeId, _SoftName, _SoftVersion, _SoftStoreAddress, _SoftUrl, _SoftContent,_BeginSoftCreatTime,_EndSoftCreatTime,_BeginSoftUpCount,_EndSoftUpCount,_BeginLastUpdateTime,_EndLastUpdateTime, _Operator);
|
}
|
}
|
}
|