Ejemplo n.º 1
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);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Return the detail string according to the desired detail level.
 /// </summary>
 public String GetDetail(DetailCode detailCode)
 {
     if (detailCode == DetailCode.SimpleDetail)
     {
         return(GetSimpleDetail());
     }
     else if (detailCode == DetailCode.SimpleFormatDetail)
     {
         return(GetSimplifiedFormattedDetail());
     }
     else if (detailCode == DetailCode.FullDetail)
     {
         return(GetFullDetail());
     }
     else if (detailCode == DetailCode.FullFormatedDetail)
     {
         return(GetFullFormattedDetail());
     }
     else
     {
         return(GetSimpleDetail());
     }
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Return the detail string according to the desired detail level.
 /// </summary>
 public String GetDetail(DetailCode detailCode)
 {
     if (detailCode == DetailCode.SimpleDetail)
     {
         return GetSimpleDetail();
     }
     else if (detailCode == DetailCode.SimpleFormatDetail)
     {
         return GetSimplifiedFormattedDetail();
     }
     else if (detailCode == DetailCode.FullDetail)
     {
         return GetFullDetail();
     }
     else if (detailCode == DetailCode.FullFormatedDetail)
     {
         return GetFullFormattedDetail();
     }
     else
     {
         return GetSimpleDetail();
     }
 }