username@email.com
2021-09-02 9da546cd8de37882147f19f6f090544476bfe5ae
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
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;
        }
 
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool InsertModel(Model.OA_WagesRecord model)
        {
            return iOA_WagesRecordDAL.InserModel(model);
        }
 
        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool UpdateModel(Model.OA_WagesRecord model)
        {
 
            return iOA_WagesRecordDAL.UpdateModel(model);
        }
 
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public bool DeleteModel(Model.OA_WagesRecord model)
        {
 
            return iOA_WagesRecordDAL.DeleteModel(model);
        }
 
        /// <summary>
        /// 根据编号获得信息
        /// </summary>
        /// <param name="Keyid">编号</param>
        /// <returns></returns>
        public OA_WagesRecord GetModelByKeyid(int? Keyid)
        {
            return iOA_WagesRecordDAL.GetModelByKeyid(Keyid);
        }
 
        /// <summary>
        /// 分页查询
        /// </summary>
        /// <param name="pagination"></param>
        /// <returns></returns>
        public IEnumerable<Model.OA_WagesRecord> 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);
        }
 
        /// <summary>
        /// 分页查询
        /// </summary>
        /// <param name="pagination"></param>
        /// <returns></returns>
        public IEnumerable<Model.OA_WagesRecord> 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);
        }
 
        /// <summary>
        /// 工资历史记录
        /// </summary>
        /// <param name="pagination"></param>
        /// <returns></returns>
        public IEnumerable<Model.OA_WagesRecord> 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);
        }
 
        /// <summary>
        /// 核算工资
        /// </summary>
        /// <param name="m_OA_WagesRecordList"></param>
        /// <returns></returns>
        public bool AccountingWage(List<OA_WagesRecord> m_OA_WagesRecordList)
        {
            return iOA_WagesRecordDAL.AccountingWage(m_OA_WagesRecordList);
        }
    }
}