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_WagesRecordBLL
{
IOA_WagesRecordDAL iOA_WagesRecordDAL = null;
public OA_WagesRecordBLL()
{
iOA_WagesRecordDAL = Factory.GetDALByInterfaceName(DALInterface.IOA_WagesRecordDAL) as IOA_WagesRecordDAL;
}
///
/// 添加
///
///
///
public bool InsertModel(Model.OA_WagesRecord model)
{
return iOA_WagesRecordDAL.InserModel(model);
}
///
/// 更新
///
///
///
public bool UpdateModel(Model.OA_WagesRecord model)
{
return iOA_WagesRecordDAL.UpdateModel(model);
}
///
/// 删除
///
///
///
public bool DeleteModel(Model.OA_WagesRecord model)
{
return iOA_WagesRecordDAL.DeleteModel(model);
}
///
/// 根据编号获得信息
///
/// 编号
///
public OA_WagesRecord GetModelByKeyid(int? Keyid)
{
return iOA_WagesRecordDAL.GetModelByKeyid(Keyid);
}
///
/// 分页查询
///
///
///
public IEnumerable SelectModelPage(Infrastructure.Query.Pagination pagination, Guid _FirmId, Guid _MemberId, DateTime? _BeginStartBelongsTime, DateTime? _EndStartBelongsTime, DateTime? _BeginEndBelongsTime, DateTime? _EndEndBelongsTime, int? _WorkDay, decimal? _BasicWage, decimal? _SeniorityWage, decimal? _Outputcommission, decimal? _ProfitCommission, decimal? _OtherCommission, decimal? _PerformanceTotal, decimal? _OvertimePay, decimal? _RewardMoney, decimal? _PunishmentMoney, decimal? _Allowance, decimal? _AggregatePaychecks, decimal? _Attendance, decimal? _AskForLeave, decimal? _EducedTotal, decimal? _Unit, decimal? _Personal, decimal? _WillPayTax, decimal? _AmountWagCards, string _AccountingSituation, DateTime? _BeginLastUpdateTime, DateTime? _EndLastUpdateTime, string _Operator)
{
return iOA_WagesRecordDAL.SelectModelPage(pagination, _FirmId, _MemberId, _BeginStartBelongsTime, _EndStartBelongsTime, _BeginEndBelongsTime, _EndEndBelongsTime, _WorkDay, _BasicWage, _SeniorityWage, _Outputcommission, _ProfitCommission, _OtherCommission, _PerformanceTotal, _OvertimePay, _RewardMoney, _PunishmentMoney, _Allowance, _AggregatePaychecks, _Attendance, _AskForLeave, _EducedTotal, _Unit, _Personal, _WillPayTax, _AmountWagCards, _AccountingSituation, _BeginLastUpdateTime, _EndLastUpdateTime, _Operator);
}
///
/// 分页查询
///
///
///
public IEnumerable SelectModelPage(Infrastructure.Query.Pagination pagination, Guid _FirmId, Guid _MemberId, int? DepartmentId, string StaffName, DateTime? _BeginStartBelongsTime, DateTime? _EndStartBelongsTime)
{
return iOA_WagesRecordDAL.SelectModelPage(pagination, _FirmId, _MemberId, DepartmentId, StaffName, _BeginStartBelongsTime, _EndStartBelongsTime);
}
///
/// 工资历史记录
///
///
///
public IEnumerable SelectAllModelPage(Infrastructure.Query.Pagination pagination, Guid _FirmId, Guid _MemberId, int? DepartmentId, string StaffName, DateTime? _BeginStartBelongsTime, DateTime? _EndStartBelongsTime)
{
return iOA_WagesRecordDAL.SelectAllModelPage(pagination, _FirmId, _MemberId, DepartmentId, StaffName, _BeginStartBelongsTime, _EndStartBelongsTime);
}
///
/// 核算工资
///
///
///
public bool AccountingWage(List m_OA_WagesRecordList)
{
return iOA_WagesRecordDAL.AccountingWage(m_OA_WagesRecordList);
}
}
}