Beispiel #1
0
        public static List <ProductDto> BuildProducts(List <ProductDto> _products)
        {
            foreach (var productDto in _products)
            {
                foreach (var subAssemblyDto in productDto.SubAssemblies)
                {
                    // hydrate a new class based on the makefile name
                    var sub = SubAssemblyBase.FactoryNew(subAssemblyDto.MakeFile, subAssemblyDto.SubAssemblyID);
                    sub.SubAssemblyWidth  = subAssemblyDto.W.GetValueOrDefault();
                    sub.SubAssemblyHieght = subAssemblyDto.H.GetValueOrDefault();
                    sub.SubAssemblyDepth  = subAssemblyDto.D.GetValueOrDefault();
                    sub.Name           = subAssemblyDto.SubAssemblyName;
                    sub.ParentAssembly = productDto;
                    sub.Build();

                    ///TODO  create componentDTO and mapper
                }
            }

            return(_products);
        }
Beispiel #2
0
 public MultipointActive(decimal height, SubAssemblyBase parent)
 {
     this.m_parts  = new List <Part>();
     this.m_parent = parent;
     PickMultiPoint(height);
 }
Beispiel #3
0
 public HoppeCasement25mm(decimal height, SubAssemblyBase parent)
 {
     this.m_parts  = new List <Part>();
     this.m_parent = parent;
     Build(height);
 }
Beispiel #4
0
 public MultipointPassive(decimal height, SubAssemblyBase parent)
 {
     this.m_Components = new List <Component>();
     this.m_parent     = parent;
     PickMultiPoint(height);
 }