예제 #1
0
            //---------------------------------------------------------------------------------------------------------
            /// <summary>
            /// Копирование параметров с указанного объекта
            /// </summary>
            /// <param name="source_object">Объект источник с которого будут скопированы параметры</param>
            //---------------------------------------------------------------------------------------------------------
            public override void CopyParameters(System.Object source_object)
            {
                if (source_object != null && source_object is CFinancingEntity)
                {
                    CFinancingEntity source = source_object as CFinancingEntity;

                    Name              = source.mName;
                    Subject           = source.mSubject;
                    Number            = source.mNumber;
                    Group             = source.mGroup;
                    SubGroup          = source.mSubGroup;
                    VillageSettlement = source.mVillageSettlement;
                    YearExecution     = source.mYearExecution;

                    Subject = source.mSubject;
                    Value   = source.mValue;

                    Executor = source.mExecutor;

                    PriceLocal    = source.mLocalBudget;
                    PriceRegional = source.mRegionalBudget;
                    PriceFederal  = source.mFederalBudget;
                    PriceExtra    = source.mExtraBudget;

                    NotCalculation = source.mNotCalculation;
                }
            }
예제 #2
0
            //---------------------------------------------------------------------------------------------------------
            /// <summary>
            /// Получение копии объекта
            /// </summary>
            /// <returns>Копия объекта</returns>
            //---------------------------------------------------------------------------------------------------------
            public override System.Object Clone()
            {
                CFinancingEntity clone = new CFinancingEntity();

                clone.mName              = mName;
                clone.mNumber            = mNumber;
                clone.mGroup             = mGroup;
                clone.mSubGroup          = mSubGroup;
                clone.mVillageSettlement = mVillageSettlement;
                clone.mYearExecution     = mYearExecution;

                clone.mSubject = mSubject;
                clone.mValue   = mValue;

                clone.mExecutor = mExecutor;

                clone.mLocalBudget    = mLocalBudget;
                clone.mRegionalBudget = mRegionalBudget;
                clone.mFederalBudget  = mFederalBudget;
                clone.mExtraBudget    = mExtraBudget;

                clone.mNotCalculation = mNotCalculation;
                return(clone);
            }
예제 #3
0
 //---------------------------------------------------------------------------------------------------------
 /// <summary>
 /// Сравнение объектов для упорядочивания
 /// </summary>
 /// <param name="other">Сравниваемый объект</param>
 /// <returns>Статус сравнения объектов</returns>
 //---------------------------------------------------------------------------------------------------------
 public Int32 CompareTo(CFinancingEntity other)
 {
     return(mName.CompareTo(other.Name));
 }