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