public List <MasterStructure> processNestedBom(IEnumerable <NestedBomStructure> theList)
        {
            List <MasterStructure> returnList = new List <MasterStructure>();

            foreach (NestedBomStructure thePart in theList)
            {
                MasterStructure theAddingObj = new MasterStructure();
                theAddingObj.parentPart = thePart.amPartNumber;

                returnList.Add(theAddingObj);
            }
            throw new Exception("function not complete ProcessNestedBom Line 66 oif MasterStructure");
            return(null);
            //return returnList;
        }
        public List <MasterStructure> processStdBom(IEnumerable <StdBomStructures> theList)
        {
            List <MasterStructure> returnList = new List <MasterStructure>();

            foreach (StdBomStructures thePart in theList)
            {
                // items of type 4 are comments that hsouldnt be in the system. leave them alone
                //if (thePart.ItemType != 4) {
                MasterStructure theAddingObj = new MasterStructure();
                theAddingObj.parentPart     = thePart.BillNo;
                theAddingObj.parentRevision = thePart.Revision;
                theAddingObj.partNumber     = thePart.ComponentItemCode;
                theAddingObj.parentPartName = thePart.billName;
                //theAddingObj.revisionLevel = thePart.getComponentRevision();
                theAddingObj.bomQuantity = thePart.QuantityPerBill;
                theAddingObj.comments    = thePart.ComponentDesc;
                returnList.Add(theAddingObj);
                Console.WriteLine(theAddingObj);
                //}
            }
            this.ProcessedBom = returnList;
            return(returnList);
        }