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 OA_PropertyCateBLL
{
IOA_PropertyCateDAL iOA_PropertyCateDAL = null;
public OA_PropertyCateBLL()
{
iOA_PropertyCateDAL = Factory.GetDALByInterfaceName(DALInterface.IOA_PropertyCateDAL) as IOA_PropertyCateDAL;
}
///
/// 添加
///
///
///
public bool InsertModel(Model.OA_PropertyCate model)
{
return iOA_PropertyCateDAL.InserModel(model);
}
///
/// 更新
///
///
///
public bool UpdateModel(Model.OA_PropertyCate model)
{
return iOA_PropertyCateDAL.UpdateModel(model);
}
///
/// 删除
///
///
///
public bool DeleteModel(Model.OA_PropertyCate model)
{
return iOA_PropertyCateDAL.DeleteModel(model);
}
///
/// 根据编号获得信息
///
/// 编号
///
public OA_PropertyCate GetModelByKeyid(int? Keyid)
{
return iOA_PropertyCateDAL.GetModelByKeyid(Keyid);
}
///
/// 分页查询
///
///
///
public IEnumerable SelectModelPage(Infrastructure.Query.Pagination pagination,Guid _MemberId,string _Name,int? _Status,DateTime? _BeginLastUpdateTime,DateTime? _EndLastUpdateTime,string _Operator,string _Remark)
{
return iOA_PropertyCateDAL.SelectModelPage(pagination, _MemberId, _Name, _Status,_BeginLastUpdateTime,_EndLastUpdateTime, _Operator, _Remark);
}
///
/// 检测物品分类是否重复
///
///
///
///
///
public int IsExitsName(string Name, Guid MemberId, string Keyid)
{
return iOA_PropertyCateDAL.IsExitsName(Name,MemberId,Keyid);
}
}
}