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_GongzuozhizeBLL
{
IOA_GongzuozhizeDAL iOA_GongzuozhizeDAL = null;
public OA_GongzuozhizeBLL()
{
iOA_GongzuozhizeDAL = Factory.GetDALByInterfaceName(DALInterface.IOA_GongzuozhizeDAL) as IOA_GongzuozhizeDAL;
}
///
/// 添加
///
///
///
public bool InsertModel(Model.OA_Gongzuozhize model)
{
return iOA_GongzuozhizeDAL.InserModel(model);
}
///
/// 更新
///
///
///
public bool UpdateModel(Model.OA_Gongzuozhize model)
{
return iOA_GongzuozhizeDAL.UpdateModel(model);
}
///
/// 删除
///
///
///
public bool DeleteModel(Model.OA_Gongzuozhize model)
{
return iOA_GongzuozhizeDAL.DeleteModel(model);
}
///
/// 根据编号获得信息
///
/// 编号
///
public OA_Gongzuozhize GetModelByKeyid(int? Keyid)
{
return iOA_GongzuozhizeDAL.GetModelByKeyid(Keyid);
}
///
/// 分页查询
///
///
///
public IEnumerable SelectModelPage(Infrastructure.Query.Pagination pagination, Guid _MemberId, string Gongzuozhize, int? Zerenren)
{
return iOA_GongzuozhizeDAL.SelectModelPage(pagination, _MemberId, Gongzuozhize, Zerenren);
}
///
/// 查询全部
///
///
///
public IEnumerable SelectAllModel(Query query)
{
return iOA_GongzuozhizeDAL.SelectAllModel( query);
}
///
/// 检测物品是否重复
///
///
///
///
///
public int IsExitsName(int? Zerenren, int? Keyid)
{
return iOA_GongzuozhizeDAL.IsExitsName( Zerenren, Keyid);
}
}
}