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;
}
///
/// 添加
///
///
///
public bool InsertModel(Model.Soft_KeyCode model)
{
return iSoft_KeyCodeDAL.InserModel(model);
}
///
/// 更新
///
///
///
public bool UpdateModel(Model.Soft_KeyCode model)
{
return iSoft_KeyCodeDAL.UpdateModel(model);
}
///
/// 删除
///
///
///
public bool DeleteModel(Model.Soft_KeyCode model)
{
return iSoft_KeyCodeDAL.DeleteModel(model);
}
///
/// 根据编号获得信息
///
/// 编号
///
public Soft_KeyCode GetModelByKeyid(int? Keyid)
{
return iSoft_KeyCodeDAL.GetModelByKeyid(Keyid);
}
///
/// 分页查询
///
///
///
public IEnumerable 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);
}
}
}