using System;
|
using CY.Infrastructure.Domain;
|
using CY.Infrastructure.Common;
|
namespace CY.Model
|
{
|
/// <summary>
|
///员工工资表
|
/// </summary>
|
[Serializable]
|
public partial class OA_WagesRecord : IAggregateRoot
|
{
|
public OA_WagesRecord()
|
{
|
}
|
|
#region Model
|
|
private int? _keyid;
|
private Guid _firmid;
|
private Guid _memberid;
|
private DateTime? _startbelongstime;
|
private DateTime? _endbelongstime;
|
private int? _workday;
|
private decimal? _basicwage;
|
private decimal? _senioritywage;
|
private decimal? _outputcommission;
|
private decimal? _profitcommission;
|
private decimal? _othercommission;
|
private decimal? _performancetotal;
|
private decimal? _overtimepay;
|
private decimal? _rewardmoney;
|
private decimal? _punishmentmoney;
|
private decimal? _allowance;
|
private decimal? _aggregatepaychecks;
|
private decimal? _attendance;
|
private decimal? _askforleave;
|
private decimal? _educedtotal;
|
private decimal? _unit;
|
private decimal? _personal;
|
private decimal? _willpaytax;
|
private decimal? _amountwagcards;
|
private string _accountingsituation;
|
private DateTime? _lastupdatetime;
|
private string _operator;
|
|
/// <summary>
|
/// Keyid
|
/// </summary>
|
public int? Keyid
|
{
|
get
|
{
|
return _keyid;
|
}
|
set
|
{
|
_keyid = value;
|
}
|
}
|
/// <summary>
|
/// 厂商编号
|
/// </summary>
|
public Guid FirmId
|
{
|
get
|
{
|
return _firmid;
|
}
|
set
|
{
|
_firmid = value;
|
}
|
}
|
/// <summary>
|
/// 员工编号
|
/// </summary>
|
public Guid MemberId
|
{
|
get
|
{
|
return _memberid;
|
}
|
set
|
{
|
_memberid = value;
|
}
|
}
|
/// <summary>
|
/// 所属时间(开始)
|
/// </summary>
|
public DateTime? StartBelongsTime
|
{
|
get
|
{
|
return _startbelongstime;
|
}
|
set
|
{
|
_startbelongstime = value;
|
}
|
}
|
/// <summary>
|
/// 所属时间(结束)
|
/// </summary>
|
public DateTime? EndBelongsTime
|
{
|
get
|
{
|
return _endbelongstime;
|
}
|
set
|
{
|
_endbelongstime = value;
|
}
|
}
|
/// <summary>
|
/// 工作天数
|
/// </summary>
|
public int? WorkDay
|
{
|
get
|
{
|
return _workday;
|
}
|
set
|
{
|
_workday = value;
|
}
|
}
|
/// <summary>
|
/// 基本工资
|
/// </summary>
|
public decimal? BasicWage
|
{
|
get
|
{
|
return _basicwage;
|
}
|
set
|
{
|
_basicwage = value;
|
}
|
}
|
/// <summary>
|
/// 工龄工资
|
/// </summary>
|
public decimal? SeniorityWage
|
{
|
get
|
{
|
return _senioritywage;
|
}
|
set
|
{
|
_senioritywage = value;
|
}
|
}
|
/// <summary>
|
/// 产值提成
|
/// </summary>
|
public decimal? Outputcommission
|
{
|
get
|
{
|
return _outputcommission;
|
}
|
set
|
{
|
_outputcommission = value;
|
}
|
}
|
/// <summary>
|
/// 利润提成
|
/// </summary>
|
public decimal? ProfitCommission
|
{
|
get
|
{
|
return _profitcommission;
|
}
|
set
|
{
|
_profitcommission = value;
|
}
|
}
|
/// <summary>
|
/// 其它提成
|
/// </summary>
|
public decimal? OtherCommission
|
{
|
get
|
{
|
return _othercommission;
|
}
|
set
|
{
|
_othercommission = value;
|
}
|
}
|
/// <summary>
|
/// 绩效合计
|
/// </summary>
|
public decimal? PerformanceTotal
|
{
|
get
|
{
|
return _performancetotal;
|
}
|
set
|
{
|
_performancetotal = value;
|
}
|
}
|
/// <summary>
|
/// 加班工资
|
/// </summary>
|
public decimal? OvertimePay
|
{
|
get
|
{
|
return _overtimepay;
|
}
|
set
|
{
|
_overtimepay = value;
|
}
|
}
|
/// <summary>
|
/// 奖励
|
/// </summary>
|
public decimal? RewardMoney
|
{
|
get
|
{
|
return _rewardmoney;
|
}
|
set
|
{
|
_rewardmoney = value;
|
}
|
}
|
/// <summary>
|
/// 其它扣款
|
/// </summary>
|
public decimal? PunishmentMoney
|
{
|
get
|
{
|
return _punishmentmoney;
|
}
|
set
|
{
|
_punishmentmoney = value;
|
}
|
}
|
/// <summary>
|
/// 津贴
|
/// </summary>
|
public decimal? Allowance
|
{
|
get
|
{
|
return _allowance;
|
}
|
set
|
{
|
_allowance = value;
|
}
|
}
|
/// <summary>
|
/// 合计应领工资
|
/// </summary>
|
public decimal? AggregatePaychecks
|
{
|
get
|
{
|
return _aggregatepaychecks;
|
}
|
set
|
{
|
_aggregatepaychecks = value;
|
}
|
}
|
/// <summary>
|
/// 出勤
|
/// </summary>
|
public decimal? Attendance
|
{
|
get
|
{
|
return _attendance;
|
}
|
set
|
{
|
_attendance = value;
|
}
|
}
|
/// <summary>
|
/// 请假
|
/// </summary>
|
public decimal? AskForLeave
|
{
|
get
|
{
|
return _askforleave;
|
}
|
set
|
{
|
_askforleave = value;
|
}
|
}
|
/// <summary>
|
/// 应扣工资合计
|
/// </summary>
|
public decimal? EducedTotal
|
{
|
get
|
{
|
return _educedtotal;
|
}
|
set
|
{
|
_educedtotal = value;
|
}
|
}
|
/// <summary>
|
/// 社保(单位)
|
/// </summary>
|
public decimal? Unit
|
{
|
get
|
{
|
return _unit;
|
}
|
set
|
{
|
_unit = value;
|
}
|
}
|
/// <summary>
|
/// 社保(个人)
|
/// </summary>
|
public decimal? Personal
|
{
|
get
|
{
|
return _personal;
|
}
|
set
|
{
|
_personal = value;
|
}
|
}
|
/// <summary>
|
/// 代缴个税
|
/// </summary>
|
public decimal? WillPayTax
|
{
|
get
|
{
|
return _willpaytax;
|
}
|
set
|
{
|
_willpaytax = value;
|
}
|
}
|
/// <summary>
|
/// 工资卡余额
|
/// </summary>
|
public decimal? AmountWagCards
|
{
|
get
|
{
|
return _amountwagcards;
|
}
|
set
|
{
|
_amountwagcards = value;
|
}
|
}
|
/// <summary>
|
/// 核算情况
|
/// </summary>
|
public string AccountingSituation
|
{
|
get
|
{
|
return _accountingsituation;
|
}
|
set
|
{
|
_accountingsituation = value;
|
}
|
}
|
/// <summary>
|
/// 最后修改时间
|
/// </summary>
|
public DateTime? LastUpdateTime
|
{
|
get
|
{
|
return _lastupdatetime;
|
}
|
set
|
{
|
_lastupdatetime = value;
|
}
|
}
|
/// <summary>
|
/// 操作人
|
/// </summary>
|
public string Operator
|
{
|
get
|
{
|
return _operator;
|
}
|
set
|
{
|
_operator = value;
|
}
|
}
|
|
/// <summary>
|
/// 员工名称
|
/// </summary>
|
public string StaffName
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 员工编号
|
/// </summary>
|
public Guid StaffMemberId
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 部门名称
|
/// </summary>
|
public string DepartmentName
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 员工状态
|
/// </summary>
|
public string StaffStatus
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 离职时间
|
/// </summary>
|
public DateTime? SM_EndWorkTime
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 基本工资
|
/// </summary>
|
public decimal? SW_BasicSalary
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 员工工龄
|
/// </summary>
|
public int? SW_WorkAge
|
{
|
get;
|
set;
|
}
|
/// <summary>
|
/// 员工工龄工资
|
/// </summary>
|
public decimal? SW_WorkAgeMoney
|
{
|
get;
|
set;
|
}
|
#endregion Model
|
|
#region Visiter
|
|
/// <summary>
|
/// 属性访问器
|
/// </summary>
|
/// <param name="name">属性名</param>
|
/// <param name="index">索引</param>
|
/// <param name="isChange">是否将指定属性设置为传入值</param>
|
/// <param name="value">需要赋予的值</param>
|
/// <returns>与名称对应的属性值</returns>
|
public object Visiter(string name, int? index = -1, bool isChange = false, object value = null)
|
{
|
object theValue = null;
|
if ("Keyid".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 1)
|
{
|
this.Keyid = isChange ? MyConvert.ConvertToInt(value) : Keyid;
|
theValue = this.Keyid;
|
}
|
else if ("FirmId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2)
|
{
|
this.FirmId = isChange ? MyConvert.ConvertToGuid(value) : FirmId;
|
theValue = this.FirmId;
|
}
|
else if ("MemberId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3)
|
{
|
this.MemberId = isChange ? MyConvert.ConvertToGuid(value) : MemberId;
|
theValue = this.MemberId;
|
}
|
else if ("StartBelongsTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4)
|
{
|
this.StartBelongsTime = isChange ? MyConvert.ConvertToDateTime(value) : StartBelongsTime;
|
theValue = this.StartBelongsTime;
|
}
|
else if ("EndBelongsTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5)
|
{
|
this.EndBelongsTime = isChange ? MyConvert.ConvertToDateTime(value) : EndBelongsTime;
|
theValue = this.EndBelongsTime;
|
}
|
else if ("WorkDay".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6)
|
{
|
this.WorkDay = isChange ? MyConvert.ConvertToInt(value) : WorkDay;
|
theValue = this.WorkDay;
|
}
|
else if ("BasicWage".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7)
|
{
|
this.BasicWage = isChange ? MyConvert.ConvertToDecimal(value) : BasicWage;
|
theValue = this.BasicWage;
|
}
|
else if ("SeniorityWage".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8)
|
{
|
this.SeniorityWage = isChange ? MyConvert.ConvertToDecimal(value) : SeniorityWage;
|
theValue = this.SeniorityWage;
|
}
|
else if ("Outputcommission".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9)
|
{
|
this.Outputcommission = isChange ? MyConvert.ConvertToDecimal(value) : Outputcommission;
|
theValue = this.Outputcommission;
|
}
|
else if ("ProfitCommission".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10)
|
{
|
this.ProfitCommission = isChange ? MyConvert.ConvertToDecimal(value) : ProfitCommission;
|
theValue = this.ProfitCommission;
|
}
|
else if ("OtherCommission".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11)
|
{
|
this.OtherCommission = isChange ? MyConvert.ConvertToDecimal(value) : OtherCommission;
|
theValue = this.OtherCommission;
|
}
|
else if ("PerformanceTotal".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12)
|
{
|
this.PerformanceTotal = isChange ? MyConvert.ConvertToDecimal(value) : PerformanceTotal;
|
theValue = this.PerformanceTotal;
|
}
|
else if ("OvertimePay".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13)
|
{
|
this.OvertimePay = isChange ? MyConvert.ConvertToDecimal(value) : OvertimePay;
|
theValue = this.OvertimePay;
|
}
|
else if ("RewardMoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14)
|
{
|
this.RewardMoney = isChange ? MyConvert.ConvertToDecimal(value) : RewardMoney;
|
theValue = this.RewardMoney;
|
}
|
else if ("PunishmentMoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15)
|
{
|
this.PunishmentMoney = isChange ? MyConvert.ConvertToDecimal(value) : PunishmentMoney;
|
theValue = this.PunishmentMoney;
|
}
|
else if ("Allowance".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 16)
|
{
|
this.Allowance = isChange ? MyConvert.ConvertToDecimal(value) : Allowance;
|
theValue = this.Allowance;
|
}
|
else if ("AggregatePaychecks".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 17)
|
{
|
this.AggregatePaychecks = isChange ? MyConvert.ConvertToDecimal(value) : AggregatePaychecks;
|
theValue = this.AggregatePaychecks;
|
}
|
else if ("Attendance".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 18)
|
{
|
this.Attendance = isChange ? MyConvert.ConvertToDecimal(value) : Attendance;
|
theValue = this.Attendance;
|
}
|
else if ("AskForLeave".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 19)
|
{
|
this.AskForLeave = isChange ? MyConvert.ConvertToDecimal(value) : AskForLeave;
|
theValue = this.AskForLeave;
|
}
|
else if ("EducedTotal".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 20)
|
{
|
this.EducedTotal = isChange ? MyConvert.ConvertToDecimal(value) : EducedTotal;
|
theValue = this.EducedTotal;
|
}
|
else if ("Unit".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 21)
|
{
|
this.Unit = isChange ? MyConvert.ConvertToDecimal(value) : Unit;
|
theValue = this.Unit;
|
}
|
else if ("Personal".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 22)
|
{
|
this.Personal = isChange ? MyConvert.ConvertToDecimal(value) : Personal;
|
theValue = this.Personal;
|
}
|
else if ("WillPayTax".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 23)
|
{
|
this.WillPayTax = isChange ? MyConvert.ConvertToDecimal(value) : WillPayTax;
|
theValue = this.WillPayTax;
|
}
|
else if ("AmountWagCards".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 24)
|
{
|
this.AmountWagCards = isChange ? MyConvert.ConvertToDecimal(value) : AmountWagCards;
|
theValue = this.AmountWagCards;
|
}
|
else if ("AccountingSituation".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 25)
|
{
|
this.AccountingSituation = isChange ? MyConvert.ConvertToString(value) : AccountingSituation;
|
theValue = this.AccountingSituation;
|
}
|
else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 26)
|
{
|
this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime;
|
theValue = this.LastUpdateTime;
|
}
|
else if ("Operator".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 27)
|
{
|
this.Operator = isChange ? MyConvert.ConvertToString(value) : Operator;
|
theValue = this.Operator;
|
}
|
else if ("StaffName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 28)
|
{
|
this.StaffName = isChange ? MyConvert.ConvertToString(value) : StaffName;
|
theValue = this.StaffName;
|
}
|
else if ("DepartmentName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 29)
|
{
|
this.DepartmentName = isChange ? MyConvert.ConvertToString(value) : DepartmentName;
|
theValue = this.DepartmentName;
|
}
|
else if ("StaffMemberId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 30)
|
{
|
this.StaffMemberId = isChange ? MyConvert.ConvertToGuid(value) : StaffMemberId;
|
theValue = this.StaffMemberId;
|
}
|
else if ("StaffStatus".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 31)
|
{
|
this.StaffStatus = isChange ? MyConvert.ConvertToString(value) : StaffStatus;
|
theValue = this.StaffStatus;
|
}
|
else if ("SM_EndWorkTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 32)
|
{
|
this.SM_EndWorkTime = isChange ? MyConvert.ConvertToDateTime(value) : SM_EndWorkTime;
|
theValue = this.SM_EndWorkTime;
|
}
|
else if ("SW_BasicSalary".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 33)
|
{
|
this.SW_BasicSalary = isChange ? MyConvert.ConvertToDecimal(value) : SW_BasicSalary;
|
theValue = this.SW_BasicSalary;
|
}
|
else if ("SW_WorkAge".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 34)
|
{
|
this.SW_WorkAge = isChange ? MyConvert.ConvertToInt32(value) : SW_WorkAge;
|
theValue = this.SW_WorkAge;
|
}
|
else if ("SW_WorkAgeMoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 35)
|
{
|
this.SW_WorkAgeMoney = isChange ? MyConvert.ConvertToDecimal(value) : SW_WorkAgeMoney;
|
theValue = this.SW_WorkAgeMoney;
|
}
|
return theValue;
|
}
|
|
#endregion Visiter
|
}
|
}
|