//更新正式调整记录 public void UpdateToFormalRecord() { GradeSalaryAdjust gsa = GetGradeSalaryAdjust(this.薪酬体系, this.职等, this.期号, 0); if (gsa == null) { gsa = AddGradeSalaryAdjust(this.薪酬体系, this.职等, this.期号, 0); } this.CopyWatchMember(gsa); gsa.Save(); }
public static GradeSalaryAdjust AddGradeSalaryAdjust(string salaryPlan, string grade, int period, int type) { GradeSalaryAdjust item = GetGradeSalaryAdjust(salaryPlan, grade, period, type); if (item == null) { item = new GradeSalaryAdjust(); item.标识 = Guid.NewGuid(); item.薪酬体系 = salaryPlan; item.职等 = grade; item.期号 = period; item.类型 = type; JobGrade jobGrade = JobGrade.GetJobGrade(salaryPlan, grade); if (jobGrade != null) { item.职等数 = jobGrade.职等数; item.对比的职等 = jobGrade.对比的职等; item.序号 = jobGrade.序号; } item.Save(); } return(item); }