private List <string> GetIsPastProbation() { var eList = new List <String>(); IOrderedQueryable <FW_Employees> ees = from c in _dc.FW_Employees where c.Active == true orderby c.NickName select c; foreach (FW_Employees ee in ees) { if (!ee.IsInProbation) { continue; } var swd = new EmployeeStartWorkingDate(ee.EmployeeNumber); if (DateTime.Today >= swd.StartWorkingDate.AddMonths(ee.ProbationPeriod)) { string ni = ee.NickName + " --- " + ee.EmployeeNumber.ToString(); eList.Add(ni); } } return(eList); }
private DateTime GetEmployeeProbationEndingDate() { var d1 = new DateTime(2099, 1, 1); if (_ee != null) { var swd = new EmployeeStartWorkingDate(_ee.EmployeeNumber); d1 = swd.StartWorkingDate.AddMonths(_ee.ProbationPeriod); } return(d1); }