AgGateway.ADAPT.ISOv4Plugin.Loaders.ProductMixLoader.LoadProductMix C# (CSharp) Метод

LoadProductMix() приватный Метод

private LoadProductMix ( XmlNode inputNode, string &productId ) : AgGateway.ADAPT.ApplicationDataModel.Products.ProductMix
inputNode System.Xml.XmlNode
productId string
Результат AgGateway.ADAPT.ApplicationDataModel.Products.ProductMix
        private ProductMix LoadProductMix(XmlNode inputNode, out string productId)
        {
            productId = string.Empty;
            if (!IsProductMix(inputNode))
                return null;

            var productMix = GetProduct(inputNode);

            // Required fields. Do not proceed if they are missing
            productId = inputNode.GetXmlNodeValue("@A");
            productMix.Description = inputNode.GetXmlNodeValue("@B");
            if (productId == null || productMix.Description == null)
                return null;

            LoadTotalQuantity(inputNode, productMix);
            if (!LoadProductComponents(inputNode.SelectNodes("PRN"), productMix))
                return null;

            _taskDocument.LoadLinkedIds(productId, productMix.Id);
            return productMix;
        }