Esempio n. 1
0
        public int Compare(object x, object y)
        {
            EPayScale left  = (EPayScale)x;
            EPayScale right = (EPayScale)y;

            if (left.SchemeCode.Equals(right.SchemeCode))
            {
                return(left.Capacity.CompareTo(right.Capacity));
            }

            return(left.SchemeCode.CompareTo(right.SchemeCode));
        }
Esempio n. 2
0
 public static EPayScale GetObject(DatabaseConnection dbConn, object ID)
 {
     if (ID is int)
     {
         EPayScale obj = new EPayScale();
         obj.PayScaleID = (int)ID;
         if (db.select(dbConn, obj))
         {
             return(obj);
         }
     }
     return(null);
 }