public BaseEmoloyee(IRSEmployee employee) { this.Employee = employee; hireMonth = dtYear.Subtract(employee.HireDate).Days / 30.5; EmployeeList = Context.HealthbillingList.Where(p => p.EinfoID == employee.EinfoID).ToList(); if (EmployeeList.Count > 1 && EmployeeList.Count < 12) { //Healthbilling没有12笔员工的记录则自动填满,以方便后面处理. ReadProperty rp = new ReadProperty(); var tmp = rp.month.Except(EmployeeList.Select(p => p.Month)).ToList(); var eId = EmployeeList.FirstOrDefault().EinfoID; foreach (var e in tmp) { EmployeeList.Add(new HealthbillingKeyValue() { EinfoID = eId, Month = e, Value = 0, TextField14 = string.Format("Text{0}", rp.code14[e - 1].ToString()), TextField15 = string.Format("Text{0}", rp.code15[e - 1].ToString()), TextField16 = string.Format("Text{0}", rp.code16[e - 1].ToString()), }); } } }
public OnJobLessEmoloyee(IRSEmployee emp) : base(emp) { }
public UnJobGreaterEmoloyee(IRSEmployee emp) : base(emp) { }