using System; using CY.Infrastructure.Domain; using CY.Infrastructure.Common; namespace CY.Model { /// ///员工工资表 /// [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; /// /// Keyid /// public int? Keyid { get { return _keyid; } set { _keyid = value; } } /// /// 厂商编号 /// public Guid FirmId { get { return _firmid; } set { _firmid = value; } } /// /// 员工编号 /// public Guid MemberId { get { return _memberid; } set { _memberid = value; } } /// /// 所属时间(开始) /// public DateTime? StartBelongsTime { get { return _startbelongstime; } set { _startbelongstime = value; } } /// /// 所属时间(结束) /// public DateTime? EndBelongsTime { get { return _endbelongstime; } set { _endbelongstime = value; } } /// /// 工作天数 /// public int? WorkDay { get { return _workday; } set { _workday = value; } } /// /// 基本工资 /// public decimal? BasicWage { get { return _basicwage; } set { _basicwage = value; } } /// /// 工龄工资 /// public decimal? SeniorityWage { get { return _senioritywage; } set { _senioritywage = value; } } /// /// 产值提成 /// public decimal? Outputcommission { get { return _outputcommission; } set { _outputcommission = value; } } /// /// 利润提成 /// public decimal? ProfitCommission { get { return _profitcommission; } set { _profitcommission = value; } } /// /// 其它提成 /// public decimal? OtherCommission { get { return _othercommission; } set { _othercommission = value; } } /// /// 绩效合计 /// public decimal? PerformanceTotal { get { return _performancetotal; } set { _performancetotal = value; } } /// /// 加班工资 /// public decimal? OvertimePay { get { return _overtimepay; } set { _overtimepay = value; } } /// /// 奖励 /// public decimal? RewardMoney { get { return _rewardmoney; } set { _rewardmoney = value; } } /// /// 其它扣款 /// public decimal? PunishmentMoney { get { return _punishmentmoney; } set { _punishmentmoney = value; } } /// /// 津贴 /// public decimal? Allowance { get { return _allowance; } set { _allowance = value; } } /// /// 合计应领工资 /// public decimal? AggregatePaychecks { get { return _aggregatepaychecks; } set { _aggregatepaychecks = value; } } /// /// 出勤 /// public decimal? Attendance { get { return _attendance; } set { _attendance = value; } } /// /// 请假 /// public decimal? AskForLeave { get { return _askforleave; } set { _askforleave = value; } } /// /// 应扣工资合计 /// public decimal? EducedTotal { get { return _educedtotal; } set { _educedtotal = value; } } /// /// 社保(单位) /// public decimal? Unit { get { return _unit; } set { _unit = value; } } /// /// 社保(个人) /// public decimal? Personal { get { return _personal; } set { _personal = value; } } /// /// 代缴个税 /// public decimal? WillPayTax { get { return _willpaytax; } set { _willpaytax = value; } } /// /// 工资卡余额 /// public decimal? AmountWagCards { get { return _amountwagcards; } set { _amountwagcards = value; } } /// /// 核算情况 /// public string AccountingSituation { get { return _accountingsituation; } set { _accountingsituation = value; } } /// /// 最后修改时间 /// public DateTime? LastUpdateTime { get { return _lastupdatetime; } set { _lastupdatetime = value; } } /// /// 操作人 /// public string Operator { get { return _operator; } set { _operator = value; } } /// /// 员工名称 /// public string StaffName { get; set; } /// /// 员工编号 /// public Guid StaffMemberId { get; set; } /// /// 部门名称 /// public string DepartmentName { get; set; } /// /// 员工状态 /// public string StaffStatus { get; set; } /// /// 离职时间 /// public DateTime? SM_EndWorkTime { get; set; } /// /// 基本工资 /// public decimal? SW_BasicSalary { get; set; } /// /// 员工工龄 /// public int? SW_WorkAge { get; set; } /// /// 员工工龄工资 /// public decimal? SW_WorkAgeMoney { get; set; } #endregion Model #region Visiter /// /// 属性访问器 /// /// 属性名 /// 索引 /// 是否将指定属性设置为传入值 /// 需要赋予的值 /// 与名称对应的属性值 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 } }