public virtual int CompareTo(EmployeeWeekTimeRecording week) { int i = EmployeeID.CompareTo(week.EmployeeID); if (i == 0) { i = week.WeekBegin.CompareTo(week.WeekBegin); } return(i); }
public int CompareTo(EmployeeAllIn entity) { Debug.Assert(entity != null); int i = EmployeeID.CompareTo(entity.EmployeeID); if (i == 0) { i = DateTime.Compare(BeginTime, entity.BeginTime); } return(i); }
public virtual int CompareTo(EmployeeContract entity) { if (entity == null) { return(-1); } int i = EmployeeID.CompareTo(entity.EmployeeID); if (i == 0) { i = ContractBegin.CompareTo(entity.ContractBegin); } return(i); }
public virtual int CompareTo(EmployeeRelation entity) { if (entity == null) { return(-1); } int i = EmployeeID.CompareTo(entity.EmployeeID); if (i == 0) { i = BeginTime.CompareTo(entity.BeginTime); } return(i); }
public int CompareTo(EmployeeTimeRange entity) { int i = EmployeeID.CompareTo(entity.EmployeeID); if (i == 0) { if ((i = Date.CompareTo(entity.Date)) == 0) { return(Begin - entity.Begin); } else { return(i); } } else { return(i); } }
public int CompareTo(Employee other) => EmployeeID.CompareTo(other.EmployeeID);
/// <summary> /// method to compare EmployeeID. /// </summary> public int CompareTo(Employee obj1) { return(EmployeeID.CompareTo(obj1.EmployeeID)); }