using System; using CY.Infrastructure.Domain; using CY.Infrastructure.Common; namespace CY.Model { /// ///工资管理 /// [Serializable] public partial class OA_WageManage : IAggregateRoot { public OA_WageManage() { } #region Model private int? _keyid; private Guid _firmid; private Guid _memberid; private string _sw_type; private string _sw_process; private decimal? _sw_basicsalary; private string _sw_basicsalarytype; private string _sw_workage; private decimal? _sw_piecemoney; private decimal? _sw_outputmoneycommission; private decimal? _sw_profitcommission; private decimal? _sw_workagemoney; private decimal? _sw_allowance; private decimal? _sw_latedeductions; private decimal? _sw_leaveearlydeductions; private decimal? _sw_absentdeductions; private decimal? _sw_leavedeductions; private decimal? _sw_socialsecuritycomment; private decimal? _sw_socialsecurityyou; private bool _sw_isdel; private int? _ordernum; private DateTime? _lastupdatetime; private string _operator; /// /// 主键--标识ID /// 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 string SW_Type { get { return _sw_type; } set { _sw_type = value; } } /// /// 从事工序 /// public string SW_Process { get { return _sw_process; } set { _sw_process = value; } } /// /// 底薪 /// public decimal? SW_BasicSalary { get { return _sw_basicsalary; } set { _sw_basicsalary = value; } } /// /// 底薪类型 /// public string SW_BasicSalaryType { get { return _sw_basicsalarytype; } set { _sw_basicsalarytype = value; } } /// /// 工龄 /// public string SW_WorkAge { get { return _sw_workage; } set { _sw_workage = value; } } /// /// 计件工资 /// public decimal? SW_PieceMoney { get { return _sw_piecemoney; } set { _sw_piecemoney = value; } } /// /// 产值提成 /// public decimal? SW_OutputMoneyCommission { get { return _sw_outputmoneycommission; } set { _sw_outputmoneycommission = value; } } /// /// 利润提成 /// public decimal? SW_ProfitCommission { get { return _sw_profitcommission; } set { _sw_profitcommission = value; } } /// /// 工龄工资 /// public decimal? SW_WorkAgeMoney { get { return _sw_workagemoney; } set { _sw_workagemoney = value; } } /// /// 津贴 /// public decimal? SW_Allowance { get { return _sw_allowance; } set { _sw_allowance = value; } } /// /// 迟到扣款 /// public decimal? SW_LateDeductions { get { return _sw_latedeductions; } set { _sw_latedeductions = value; } } /// /// 早退扣款 /// public decimal? SW_LeaveEarlyDeductions { get { return _sw_leaveearlydeductions; } set { _sw_leaveearlydeductions = value; } } /// /// 旷工扣款 /// public decimal? SW_AbsentDeductions { get { return _sw_absentdeductions; } set { _sw_absentdeductions = value; } } /// /// 请假扣款 /// public decimal? SW_LeaveDeductions { get { return _sw_leavedeductions; } set { _sw_leavedeductions = value; } } /// /// 单位应付社保 /// public decimal? SW_SocialSecurityComment { get { return _sw_socialsecuritycomment; } set { _sw_socialsecuritycomment = value; } } /// /// 个人应付社保 /// public decimal? SW_SocialSecurityYou { get { return _sw_socialsecurityyou; } set { _sw_socialsecurityyou = value; } } /// /// 任务目标 /// public decimal? SW_MissionMoney { get; set; } /// /// 提成比例 /// public int? SW_MissionRate { get; set; } /// /// 是否删除 /// public bool SW_IsDel { get { return _sw_isdel; } set { _sw_isdel = value; } } /// /// 排序 /// public int? OrderNum { get { return _ordernum; } set { _ordernum = value; } } /// /// 最后修改时间 /// public DateTime? LastUpdateTime { get { return _lastupdatetime; } set { _lastupdatetime = value; } } /// /// 操作人 /// public string Operator { get { return _operator; } set { _operator = value; } } /// /// 部门名称 /// public string DepartmentName { get; set; } /// /// 员工姓名 /// public string StaffName { get; set; } /// /// 员工编号 /// public Guid StaffId { get; set; } /// /// 员工状态 /// public string Status { get; set; } /// /// 员工离职时间 /// public DateTime? SM_EndWorkTime { 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 ("SW_Type".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4) { this.SW_Type = isChange ? MyConvert.ConvertToString(value) : SW_Type; theValue = this.SW_Type; } else if ("SW_Process".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5) { this.SW_Process = isChange ? MyConvert.ConvertToString(value) : SW_Process; theValue = this.SW_Process; } else if ("SW_BasicSalary".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6) { this.SW_BasicSalary = isChange ? MyConvert.ConvertToDecimal(value) : SW_BasicSalary; theValue = this.SW_BasicSalary; } else if ("SW_BasicSalaryType".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7) { this.SW_BasicSalaryType = isChange ? MyConvert.ConvertToString(value) : SW_BasicSalaryType; theValue = this.SW_BasicSalaryType; } else if ("SW_WorkAge".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8) { this.SW_WorkAge = isChange ? MyConvert.ConvertToString(value) : SW_WorkAge; theValue = this.SW_WorkAge; } else if ("SW_PieceMoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9) { this.SW_PieceMoney = isChange ? MyConvert.ConvertToDecimal(value) : SW_PieceMoney; theValue = this.SW_PieceMoney; } else if ("SW_OutputMoneyCommission".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10) { this.SW_OutputMoneyCommission = isChange ? MyConvert.ConvertToDecimal(value) : SW_OutputMoneyCommission; theValue = this.SW_OutputMoneyCommission; } else if ("SW_ProfitCommission".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11) { this.SW_ProfitCommission = isChange ? MyConvert.ConvertToDecimal(value) : SW_ProfitCommission; theValue = this.SW_ProfitCommission; } else if ("SW_WorkAgeMoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12) { this.SW_WorkAgeMoney = isChange ? MyConvert.ConvertToDecimal(value) : SW_WorkAgeMoney; theValue = this.SW_WorkAgeMoney; } else if ("SW_Allowance".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13) { this.SW_Allowance = isChange ? MyConvert.ConvertToDecimal(value) : SW_Allowance; theValue = this.SW_Allowance; } else if ("SW_LateDeductions".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14) { this.SW_LateDeductions = isChange ? MyConvert.ConvertToDecimal(value) : SW_LateDeductions; theValue = this.SW_LateDeductions; } else if ("SW_LeaveEarlyDeductions".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15) { this.SW_LeaveEarlyDeductions = isChange ? MyConvert.ConvertToDecimal(value) : SW_LeaveEarlyDeductions; theValue = this.SW_LeaveEarlyDeductions; } else if ("SW_AbsentDeductions".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 16) { this.SW_AbsentDeductions = isChange ? MyConvert.ConvertToDecimal(value) : SW_AbsentDeductions; theValue = this.SW_AbsentDeductions; } else if ("SW_LeaveDeductions".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 17) { this.SW_LeaveDeductions = isChange ? MyConvert.ConvertToDecimal(value) : SW_LeaveDeductions; theValue = this.SW_LeaveDeductions; } else if ("SW_SocialSecurityComment".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 18) { this.SW_SocialSecurityComment = isChange ? MyConvert.ConvertToDecimal(value) : SW_SocialSecurityComment; theValue = this.SW_SocialSecurityComment; } else if ("SW_SocialSecurityYou".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 19) { this.SW_SocialSecurityYou = isChange ? MyConvert.ConvertToDecimal(value) : SW_SocialSecurityYou; theValue = this.SW_SocialSecurityYou; } else if ("SW_IsDel".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 20) { this.SW_IsDel = isChange ? MyConvert.ConvertToBoolean(value) : SW_IsDel; theValue = this.SW_IsDel; } else if ("OrderNum".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 21) { this.OrderNum = isChange ? MyConvert.ConvertToInt(value) : OrderNum; theValue = this.OrderNum; } else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 22) { this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime; theValue = this.LastUpdateTime; } else if ("Operator".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 23) { this.Operator = isChange ? MyConvert.ConvertToString(value) : Operator; theValue = this.Operator; } else if ("DepartmentName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 24) { this.DepartmentName = isChange ? MyConvert.ConvertToString(value) : DepartmentName; theValue = this.DepartmentName; } else if ("StaffName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 25) { this.StaffName = isChange ? MyConvert.ConvertToString(value) : StaffName; theValue = this.StaffName; } else if ("StaffId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 26) { this.StaffId = isChange ? MyConvert.ConvertToGuid(value) : StaffId; theValue = this.StaffId; } else if ("Status".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 27) { this.Status = isChange ? MyConvert.ConvertToString(value) : Status; theValue = this.Status; } else if ("SM_EndWorkTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 28) { this.SM_EndWorkTime = isChange ? MyConvert.ConvertToDateTime(value) : SM_EndWorkTime; theValue = this.SM_EndWorkTime; } else if ("SW_MissionMoney".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 29) { this.SW_MissionMoney = isChange ? MyConvert.ConvertToDecimal(value) : SW_MissionMoney; theValue = this.SW_MissionMoney; } else if ("SW_MissionRate".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 30) { this.SW_MissionRate = isChange ? MyConvert.ConvertToInt(value) : SW_MissionRate; theValue = this.SW_MissionRate; } return theValue; } #endregion Visiter } }