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_WagePieceRecordBLL { IOA_WagePieceRecordDAL iOA_WagePieceRecordDAL = null; public OA_WagePieceRecordBLL() { iOA_WagePieceRecordDAL = Factory.GetDALByInterfaceName(DALInterface.IOA_WagePieceRecordDAL) as IOA_WagePieceRecordDAL; } /// /// 添加 /// /// /// public bool InsertModel(Model.OA_WagePieceRecord model) { return iOA_WagePieceRecordDAL.InserModel(model); } /// /// 更新 /// /// /// public bool UpdateModel(Model.OA_WagePieceRecord model) { return iOA_WagePieceRecordDAL.UpdateModel(model); } /// /// 删除 /// /// /// public bool DeleteModel(Model.OA_WagePieceRecord model) { return iOA_WagePieceRecordDAL.DeleteModel(model); } /// /// 根据编号获得信息 /// /// 编号 /// public OA_WagePieceRecord GetModelByKeyid(int? Keyid) { return iOA_WagePieceRecordDAL.GetModelByKeyid(Keyid); } /// /// 分页查询 /// /// /// public IEnumerable SelectModelPage(Infrastructure.Query.Pagination pagination, Guid _FirmId, Guid _MemberId, DateTime? _BeginStartWorkTime, DateTime? _EndStartWorkTime, DateTime? _BeginEndWorkTime, DateTime? _EndEndWorkTime, string _Process, string _Unit, string _JobPerformance, decimal? _PieceworkWages, DateTime? _BeginLastUpdateTime, DateTime? _EndLastUpdateTime, string _Operator) { return iOA_WagePieceRecordDAL.SelectModelPage(pagination, _FirmId, _MemberId, _BeginStartWorkTime, _EndStartWorkTime, _BeginEndWorkTime, _EndEndWorkTime, _Process, _Unit, _JobPerformance, _PieceworkWages, _BeginLastUpdateTime, _EndLastUpdateTime, _Operator); } /// /// 分页查询 /// /// /// public IEnumerable SelectModelPage(Infrastructure.Query.Pagination pagination, Guid _FirmId, int? _DepartmentId, string _StaffName, DateTime? _BeginStartWorkTime, DateTime? _EndStartWorkTime, string _Process) { return iOA_WagePieceRecordDAL.SelectModelPage(pagination, _FirmId, _DepartmentId, _StaffName, _BeginStartWorkTime, _EndStartWorkTime, _Process); } /// /// 分页查询 /// /// /// public IEnumerable SelectModelPage(Infrastructure.Query.Pagination pagination, Guid _FirmId, int? _DepartmentId, string _StaffName) { return iOA_WagePieceRecordDAL.SelectModelPage(pagination, _FirmId, _DepartmentId, _StaffName); } } }