public CViewDetail FindByTable(Guid FW_Table_id) { List <CBaseObject> lstObj = GetList(); foreach (CBaseObject obj in lstObj) { CViewDetail vd = (CViewDetail)obj; if (vd.FW_Table_id == FW_Table_id) { return(vd); } } return(null); }
public int CompareTo(object obj) { int res = 0; try { CViewDetail sObj = (CViewDetail)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); }