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_WageManageBLL { IOA_WageManageDAL iOA_WageManageDAL = null; public OA_WageManageBLL() { iOA_WageManageDAL = Factory.GetDALByInterfaceName(DALInterface.IOA_WageManageDAL) as IOA_WageManageDAL; } /// /// 添加 /// /// /// public bool InsertModel(Model.OA_WageManage model) { return iOA_WageManageDAL.InserModel(model); } /// /// 更新 /// /// /// public bool UpdateModel(Model.OA_WageManage model) { return iOA_WageManageDAL.UpdateModel(model); } /// /// 删除 /// /// /// public bool DeleteModel(Model.OA_WageManage model) { return iOA_WageManageDAL.DeleteModel(model); } /// /// 根据编号获得信息 /// /// 编号 /// public OA_WageManage GetModelByKeyid(int? Keyid) { return iOA_WageManageDAL.GetModelByKeyid(Keyid); } /// /// 根据员工会员编号获得信息 /// /// 编号 /// public OA_WageManage GetModelByMemberId(Guid MemberId) { return iOA_WageManageDAL.GetModelByMemberId(MemberId); } /// /// 分页查询 /// /// /// public IEnumerable SelectModelPage(Infrastructure.Query.Pagination pagination,Guid _FirmId,Guid _MemberId,string _SW_Type,string _SW_Process,decimal? _SW_BasicSalary,string _SW_BasicSalaryType,string _SW_WorkAge,decimal? _SW_PieceMoney,decimal? _SW_OutputMoneyCommission,decimal? _SW_ProfitCommission,decimal? _SW_WorkAgeMoney,decimal? _SW_Allowance,decimal? _SW_LateDeductions,decimal? _SW_LeaveEarlyDeductions,decimal? _SW_AbsentDeductions,decimal? _SW_LeaveDeductions,decimal? _SW_SocialSecurityComment,decimal? _SW_SocialSecurityYou,bool _SW_IsDel,int? _OrderNum,DateTime? _BeginLastUpdateTime,DateTime? _EndLastUpdateTime,string _Operator) { return iOA_WageManageDAL.SelectModelPage(pagination, _FirmId, _MemberId, _SW_Type, _SW_Process, _SW_BasicSalary, _SW_BasicSalaryType, _SW_WorkAge, _SW_PieceMoney, _SW_OutputMoneyCommission, _SW_ProfitCommission, _SW_WorkAgeMoney, _SW_Allowance, _SW_LateDeductions, _SW_LeaveEarlyDeductions, _SW_AbsentDeductions, _SW_LeaveDeductions, _SW_SocialSecurityComment, _SW_SocialSecurityYou, _SW_IsDel, _OrderNum,_BeginLastUpdateTime,_EndLastUpdateTime, _Operator); } /// /// 分页查询 /// /// /// public IEnumerable SelectModelPage(Infrastructure.Query.Pagination pagination, Guid _FirmId, int? _SW_Process, string _SW_Type, int? DepartMentId, string StaffName, string StaffStatus) { return iOA_WageManageDAL.SelectModelPage(pagination, _FirmId, _SW_Process, _SW_Type, DepartMentId, StaffName, StaffStatus); } } }