public virtual int CompareTo(EmployeeWeekTimeRecording week)
        {
            int i = EmployeeID.CompareTo(week.EmployeeID);

            if (i == 0)
            {
                i = week.WeekBegin.CompareTo(week.WeekBegin);
            }
            return(i);
        }
Exemple #2
0
        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);
        }
Exemple #3
0
        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);
        }
Exemple #4
0
        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);
        }
Exemple #5
0
        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);
            }
        }
Exemple #6
0
 public int CompareTo(Employee other) => EmployeeID.CompareTo(other.EmployeeID);
Exemple #7
0
 /// <summary>
 /// method to compare EmployeeID.
 /// </summary>
 public int CompareTo(Employee obj1)
 {
     return(EmployeeID.CompareTo(obj1.EmployeeID));
 }