コード例 #1
0
        public virtual object Clone(Dictionary <object, object> clonedObjects, bool includePrimaryKey)
        {
            LiveInstData cloned = new LiveInstData();

            clonedObjects.Add(this, cloned);
            if (includePrimaryKey)
            {
                cloned._liveInstDataPK = this._liveInstDataPK;
            }
            cloned._insCode         = this._insCode;
            cloned._estimatedEPS    = this._estimatedEPS;
            cloned._zTitad          = this._zTitad;
            cloned._flow            = this._flow;
            cloned._minYear         = this._minYear;
            cloned._maxYear         = this._maxYear;
            cloned._qTotTran5JAvg   = this._qTotTran5JAvg;
            cloned._sectorPE        = this._sectorPE;
            cloned._kAjCapValCpsIdx = this._kAjCapValCpsIdx;
            cloned._priceMin        = this._priceMin;
            cloned._priceMax        = this._priceMax;
            cloned._dEven           = this._dEven;
            cloned._status          = this._status;
            cloned._priceYesterday  = this._priceYesterday;
            cloned._last            = this._last;
            cloned._count           = this._count;
            cloned._pdrCotVal       = this._pdrCotVal;
            cloned._pClosing        = this._pClosing;
            cloned._vol             = this._vol;
            cloned._val             = this._val;
            cloned._bVal            = this._bVal;
            cloned._nAV             = this._nAV;
            cloned._nAVDate         = this._nAVDate;
            cloned._pSGelStaMin     = this._pSGelStaMin;
            cloned._pSGelStaMax     = this._pSGelStaMax;


            return(cloned);
        }
コード例 #2
0
        public virtual bool Equals(object other, List <object> checked_objects)
        {
            if (checked_objects.Contains(this))
            {
                return(true);
            }

            checked_objects.Add(this);

            LiveInstData casted_other = other as LiveInstData;

            if (casted_other == null)
            {
                checked_objects.Remove(this);
                return(false);
            }

            if (!Typing.IsEquals(this.LiveInstDataPK, casted_other.LiveInstDataPK))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.InsCode, casted_other.InsCode))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.EstimatedEPS, casted_other.EstimatedEPS))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.ZTitad, casted_other.ZTitad))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.Flow, casted_other.Flow))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.MinYear, casted_other.MinYear))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.MaxYear, casted_other.MaxYear))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.QTotTran5JAvg, casted_other.QTotTran5JAvg))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.SectorPE, casted_other.SectorPE))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.KAjCapValCpsIdx, casted_other.KAjCapValCpsIdx))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.PriceMin, casted_other.PriceMin))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.PriceMax, casted_other.PriceMax))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.DEven, casted_other.DEven))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.Status, casted_other.Status))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.PriceYesterday, casted_other.PriceYesterday))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.Last, casted_other.Last))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.Count, casted_other.Count))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.PdrCotVal, casted_other.PdrCotVal))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.PClosing, casted_other.PClosing))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.Vol, casted_other.Vol))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.Val, casted_other.Val))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.BVal, casted_other.BVal))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.NAV, casted_other.NAV))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.NAVDate, casted_other.NAVDate))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.PSGelStaMin, casted_other.PSGelStaMin))
            {
                checked_objects.Remove(this);
                return(false);
            }
            if (!Typing.IsEquals(this.PSGelStaMax, casted_other.PSGelStaMax))
            {
                checked_objects.Remove(this);
                return(false);
            }
            checked_objects.Remove(this);

            return(true);
        }