Example #1
0
 public CStatItem FindByColumn(Guid FW_Table_id, Guid FW_Column_id)
 {
     GetList();
     foreach (CBaseObject obj in m_lstObj)
     {
         CStatItem StatItem = (CStatItem)obj;
         if (StatItem.FW_Table_id == FW_Table_id &&
             StatItem.FW_Column_id == FW_Column_id)
         {
             return(StatItem);
         }
     }
     return(null);
 }
Example #2
0
        public int CompareTo(object obj)
        {
            int res = 0;

            try
            {
                CStatItem sObj = (CStatItem)obj;
                if (this.Idx > sObj.Idx)
                {
                    res = 1;
                }
                else if (this.Idx < sObj.Idx)
                {
                    res = -1;
                }
            }
            catch (Exception ex)
            {
                throw new Exception("比较异常", ex.InnerException);
            }
            return(res);
        }