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_KeyCodeBLL
|
{
|
ISoft_KeyCodeDAL iSoft_KeyCodeDAL = null;
|
|
public Soft_KeyCodeBLL()
|
{
|
iSoft_KeyCodeDAL = Factory.GetDALByInterfaceName(DALInterface.ISoft_KeyCodeDAL) as ISoft_KeyCodeDAL;
|
}
|
|
/// <summary>
|
/// 添加
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public bool InsertModel(Model.Soft_KeyCode model)
|
{
|
return iSoft_KeyCodeDAL.InserModel(model);
|
}
|
|
/// <summary>
|
/// 更新
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public bool UpdateModel(Model.Soft_KeyCode model)
|
{
|
|
return iSoft_KeyCodeDAL.UpdateModel(model);
|
}
|
|
/// <summary>
|
/// 删除
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public bool DeleteModel(Model.Soft_KeyCode model)
|
{
|
|
return iSoft_KeyCodeDAL.DeleteModel(model);
|
}
|
|
/// <summary>
|
/// 根据编号获得信息
|
/// </summary>
|
/// <param name="Keyid">编号</param>
|
/// <returns></returns>
|
public Soft_KeyCode GetModelByKeyid(int? Keyid)
|
{
|
return iSoft_KeyCodeDAL.GetModelByKeyid(Keyid);
|
}
|
|
/// <summary>
|
/// 分页查询
|
/// </summary>
|
/// <param name="pagination"></param>
|
/// <returns></returns>
|
public IEnumerable<Model.Soft_KeyCode> SelectModelPage(Infrastructure.Query.Pagination pagination, int? _KeySoftId, string _KeySoftName, string _KeyCode, int? _KeyStatus, int? _KeyProxyId, DateTime? _BeginKeyCreatTime, DateTime? _EndKeyCreatTime, DateTime? _BeginKeyOutTime, DateTime? _EndKeyOutTime, DateTime? _BeginKeyUseTime, DateTime? _EndKeyUseTime, string _KeyUseIP, int? _KeyClientId, string _KeyClientName, DateTime? _BeginLastUpdateTime, DateTime? _EndLastUpdateTime, string _Operator, string _KeyWord, int? _txtKeyVersion)
|
{
|
return iSoft_KeyCodeDAL.SelectModelPage(pagination, _KeySoftId, _KeySoftName, _KeyCode, _KeyStatus, _KeyProxyId, _BeginKeyCreatTime, _EndKeyCreatTime, _BeginKeyOutTime, _EndKeyOutTime, _BeginKeyUseTime, _EndKeyUseTime, _KeyUseIP, _KeyClientId, _KeyClientName, _BeginLastUpdateTime, _EndLastUpdateTime, _Operator, _KeyWord, _txtKeyVersion);
|
}
|
}
|
}
|