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_StaffPostCategoryBLL
|
{
|
IOA_StaffPostCategoryDAL iOA_StaffPostCategoryDAL = null;
|
|
public OA_StaffPostCategoryBLL()
|
{
|
iOA_StaffPostCategoryDAL = Factory.GetDALByInterfaceName(DALInterface.IOA_StaffPostCategoryDAL) as IOA_StaffPostCategoryDAL;
|
}
|
|
/// <summary>
|
/// 添加
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public bool InsertModel(Model.OA_StaffPostCategory model)
|
{
|
return iOA_StaffPostCategoryDAL.InserModel(model);
|
}
|
|
/// <summary>
|
/// 更新
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public bool UpdateModel(Model.OA_StaffPostCategory model)
|
{
|
|
return iOA_StaffPostCategoryDAL.UpdateModel(model);
|
}
|
|
/// <summary>
|
/// 删除
|
/// </summary>
|
/// <param name="model"></param>
|
/// <returns></returns>
|
public bool DeleteModel(Model.OA_StaffPostCategory model)
|
{
|
|
return iOA_StaffPostCategoryDAL.DeleteModel(model);
|
}
|
|
/// <summary>
|
/// 根据编号获得信息
|
/// </summary>
|
/// <param name="Keyid">编号</param>
|
/// <returns></returns>
|
public OA_StaffPostCategory GetModelByKeyid(int? Keyid)
|
{
|
return iOA_StaffPostCategoryDAL.GetModelByKeyid(Keyid);
|
}
|
|
/// <summary>
|
/// 分页查询
|
/// </summary>
|
/// <param name="pagination"></param>
|
/// <returns></returns>
|
public IEnumerable<Model.OA_StaffPostCategory> SelectModelPage(Infrastructure.Query.Pagination pagination,Guid _Memberid,string _PC_Name,int? _OrderNum,DateTime? _BeginLastUpdateTime,DateTime? _EndLastUpdateTime,string _Operator)
|
{
|
return iOA_StaffPostCategoryDAL.SelectModelPage(pagination, _Memberid, _PC_Name, _OrderNum,_BeginLastUpdateTime,_EndLastUpdateTime, _Operator);
|
}
|
}
|
}
|