Пример #1
0
        public CColumnInViewDetail FindByColumn(Guid FW_Column_id)
        {
            List <CBaseObject> lstObj = GetList();

            foreach (CBaseObject obj in lstObj)
            {
                CColumnInViewDetail civd = (CColumnInViewDetail)obj;
                if (civd.FW_Column_id == FW_Column_id)
                {
                    return(civd);
                }
            }
            return(null);
        }
Пример #2
0
        public int NewIdx()
        {
            int iNexIdx = -1;
            List <CBaseObject> lstObj = GetList();

            foreach (CBaseObject obj in lstObj)
            {
                CColumnInViewDetail civd = (CColumnInViewDetail)obj;
                if (civd.Idx > iNexIdx)
                {
                    iNexIdx = civd.Idx;
                }
            }
            return(iNexIdx + 1);
        }
Пример #3
0
        public int CompareTo(object obj)
        {
            int res = 0;

            try
            {
                CColumnInViewDetail sObj = (CColumnInViewDetail)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);
        }