Ejemplo n.º 1
0
        private static SKUCutfiller SKUCutfiller(CutfillerMaterialxML xmlDocument, Document parent, Entities edc, List <String> warnings)
        {
            SKUCutfiller _ret = new SKUCutfiller()
            {
                ProductType  = ProductType.Cutfiller,
                BlendPurpose = String.IsNullOrEmpty(xmlDocument.BlendPurpose) ? String.Empty : xmlDocument.BlendPurpose
            };

            if (!_ret.ProcessData(String.Empty, String.Empty, edc, warnings))
            {
                return(null);
            }
            SKUGetFromXML.UpdateSKUCommonPart(_ret, xmlDocument, parent);
            return(_ret);
        }
Ejemplo n.º 2
0
        private static SKUCigarette SKUCigarette(CigarettesMaterialxML xmlDocument, Document parent, Entities edc, List <String> warnings)
        {
            bool         _menthol = xmlDocument.IsMenthol;
            SKUCigarette _ret     = new SKUCigarette()
            {
                ProductType     = ProductType.Cigarette,
                Brand           = xmlDocument.Brand_Description,
                Family          = xmlDocument.Family_Des,
                Menthol         = xmlDocument.Menthol,
                MentholMaterial = _menthol,
                PrimeMarket     = xmlDocument.Prime_Market,
            };

            if (!_ret.ProcessData(xmlDocument.Cigarette_Length, xmlDocument.Filter_Segment_Length, edc, warnings))
            {
                return(null);
            }
            SKUGetFromXML.UpdateSKUCommonPart(_ret, xmlDocument, parent);
            return(_ret);
        }