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_WorkPlanBll
{
IOA_WorkPlanDAL iOA_WorkPlanDAL = null;
public OA_WorkPlanBll()
{
iOA_WorkPlanDAL = Factory.GetDALByInterfaceName(DALInterface.IOA_WorkPlanDAL) as IOA_WorkPlanDAL;
}
///
/// 添加
///
///
///
public bool InsertModel(Model.OA_WorkPlan model)
{
return iOA_WorkPlanDAL.InserModel(model);
}
///
/// 添加
///
///
///
public int InserModelAndGetId(Model.OA_WorkPlan model)
{
return iOA_WorkPlanDAL.InserModelAndGetId(model);
}
///
/// 更新
///
///
///
public bool UpdateModel(Model.OA_WorkPlan model)
{
return iOA_WorkPlanDAL.UpdateModel(model);
}
///
/// 删除
///
///
///
public bool DeleteModel(Model.OA_WorkPlan model, string trueName)
{
return iOA_WorkPlanDAL.DeleteModel(model, trueName);
}
///
/// 根据编号获得信息
///
/// 编号
///
public OA_WorkPlan GetModelByKeyid(int? Keyid)
{
return iOA_WorkPlanDAL.GetModelByKeyid(Keyid);
}
///
/// 分页查询
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
///
public IEnumerable SelectModelPage(Infrastructure.Query.Pagination pagination, Guid MemberId, Guid SentStaffId, Guid ReciveStaffId, int? PlanType, int? PlanDataType, string PlanTitle, DateTime? BeginPlanStartTime, DateTime? EndPlanStartTime, DateTime? BeginPlanRunTime, DateTime? EndPlanRunTime, string PlanPeople, int? PlanStatus, int? ApprovalStatus, int? EvaluationStatus, int? RewardType, string RewardContent= null, string PlanContent = null, string BaocunStatus = null)
{
return iOA_WorkPlanDAL.SelectModelPage(pagination, MemberId, SentStaffId, ReciveStaffId, PlanType, PlanDataType, PlanTitle, BeginPlanStartTime, EndPlanStartTime, BeginPlanRunTime, EndPlanRunTime, PlanPeople, PlanStatus, ApprovalStatus, EvaluationStatus, RewardType, RewardContent, PlanContent, BaocunStatus);
}
///
/// 分页查询-工资统计
///
///
///
///
///
///
public IEnumerable SelectModelPageByWage(Infrastructure.Query.Pagination pagination, Guid MemberId, string PlanPeople, string StatisticsTime)
{
return iOA_WorkPlanDAL.SelectModelPageByWage(pagination, MemberId, PlanPeople, StatisticsTime);
}
}
}