public override object Clone()
        {
            ArticleConfigDetail cloneMaster = (ArticleConfigDetail)this.MemberwiseClone();

            cloneMaster.InternalCode = this.InternalCode;
            cloneMaster.InternalGang = this.InternalGang;
            cloneMaster.InternalRole = this.InternalRole;
            cloneMaster.InternalType = this.InternalType;
            cloneMaster.InternalBind = this.InternalBind;
            cloneMaster.InternalName = this.InternalName;
            cloneMaster.InternalPath = this.InternalPath.ToList();
            cloneMaster.InternalStub = CloneUtils <ConfigStub> .CloneOrNull(this.InternalStub);

            return(cloneMaster);
        }
Ejemplo n.º 2
0
        public DetailItem CreateDetailItem(IArticleMasterCollection masterStore, DetailCode symbolCode,
                                           DetailName symbolName, MasterCode symbolRole, DetailGang symbolGang,
                                           DetailType symbolType, DetailBind symbolBind,
                                           TaxingBehaviour taxingType, HealthBehaviour healthType, SocialBehaviour socialType,
                                           params DetailCode[] symbolPath)
        {
            MasterItem elementNode = masterStore.FindArticleConfig(symbolRole);

            DetailItem elementItem = new ArticleConfigDetail(symbolCode, symbolName,
                                                             symbolGang, symbolType, symbolBind,
                                                             taxingType, healthType, socialType,
                                                             symbolPath);

            MasterStub elementStub = elementNode.CloneMasterStub(
                symbolCode, symbolRole, symbolGang,
                symbolType, symbolBind,
                taxingType, healthType, socialType);

            elementItem.SetSymbolRole(symbolRole, elementStub);

            return(elementItem);
        }