コード例 #1
0
ファイル: Nailer3Side.cs プロジェクト: linusaurus/Knoodle-3.0
        //Bill of Material
        public override void Build()
        {
            Part part;

            #region Nail Fin Perimeter

            // Top Nailer ^^
            part = new Part(922, "Top Nail Fin", this, 1, m_subAssemblyWidth + (1.280m * 2.0m));
            part.PartGroupType = "Nailer";
            part.PartLabel     = "";
            m_parts.Add(part);

            // Left Nailer <<--
            part = new Part(922, "Left Nail Fin", this, 1, m_subAssemblyHieght + (1.280m));
            part.PartGroupType = "Nailer";
            part.PartLabel     = "";
            m_parts.Add(part);

            // Right Nailer -->>
            part = new Part(922, "Right Nail Fin", this, 1, m_subAssemblyHieght + (1.280m));
            part.PartGroupType = "Nailer";
            part.PartLabel     = "";
            m_parts.Add(part);

            #endregion

            #region Labor

            part = new LPart("AttachmentHours", this, 0.0m, 80.0m);
            m_parts.Add(part);
            //0 Attachment

            #endregion
        }
コード例 #2
0
        //Bill of Material
        public override void Build()
        {
            Part   part;
            string partleader = this.Parent.UnitID + "." + this.CreateID.ToString();

            FrameWorks.Makes.System3000.Helper.SliderOXXHelper helper = new FrameWorks.Makes.System3000.Helper.SliderOXXHelper(3, 1, m_subAssemblyWidth);

            #region Frame

            // Split Jamb
            part = new Part(810, "Split Jamb", this, 1, m_subAssemblyHieght * 4.0m);
            part.PartGroupType  = "Frame-Parts";
            part.PartLabel      = "";
            part.PartIdentifier = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            // Split Head
            part = new Part(810, "Split Head", this, 1, helper.TopTrackLength);
            part.PartGroupType  = "Frame-Parts";
            part.PartLabel      = "";
            part.PartIdentifier = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            // Bottom Track
            part = new Part(215, "Bottom Track", this, 1, helper.FloorTrackLength);
            part.PartGroupType  = "Frame-Parts";
            part.PartLabel      = "";
            part.PartIdentifier = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            // Top Track
            part = new Part(1416, "Top Track", this, 1, helper.FloorTrackLength);
            part.PartGroupType  = "Frame-Parts";
            part.PartLabel      = "";
            part.PartIdentifier = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            // Head Hanger
            part = new Part(2096, "Head Hanger", this, 1, helper.FloorTrackLength * 2.0m);
            part.PartGroupType  = "Frame-Parts";
            part.PartLabel      = "";
            part.PartIdentifier = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            #endregion

            #region Labor

            part = new LPart("MetalHours", this, 9.0m, 80.0m);
            m_parts.Add(part);
            //1 Receive: 1 Handle: 1.5 Cut: 1.5 Machine: 2 Weld & Assemble: 1 Hardware Prep: 1 NailFin

            part = new LPart("FinishHours", this, 4.0m, 80.0m);
            m_parts.Add(part);
            //2 SandLineGrain: 2 Finish



            #endregion
        }
コード例 #3
0
ファイル: Nailer3side.cs プロジェクト: linusaurus/Knoodle-3.0
        //Bill of Material
        public override void Build()
        {
            Part   part;
            string partleader = this.Parent.UnitID + "." + this.CreateID.ToString();


            #region NailFin



            //NailerLeft

            part = new Part(3308, "NailerLeft", this, 1, m_subAssemblyHieght + 1.250m * 2.0m);
            part.PartGroupType = "NailFin-Parts";
            part.PartLabel     = "1)MiterEnds";

            m_parts.Add(part);



            // NailerRight

            part = new Part(3308, "NailerRight", this, 1, m_subAssemblyHieght + 1.250m * 2.0m);
            part.PartGroupType = "NailFin-Parts";
            part.PartLabel     = "1)MiterEnds";

            m_parts.Add(part);



            // NailerTop

            part = new Part(3308, "NailerTop", this, 1, m_subAssemblyWidth + 1.250m * 2.0m);
            part.PartGroupType = "NailFin-Parts";
            part.PartLabel     = "1)MiterEnds";

            m_parts.Add(part);



            #endregion


            #region Labor

            part = new LPart("MetalHours", this, 8.0m, 80.0m);
            this.m_parts.Add(part);
            //1 Receive: 1 Handle: 1 Cut: 1 Machine: 2 Weld & Assemble: 1 Hardware Prep: 1 NailFin

            part = new LPart("Finish", this, (this.Area * 0.025m) + 2.0m, 80.0m);
            this.m_parts.Add(part);
            //1.0 Sand Linegrain: 1.0 Finish:

            part = new LPart("PaintAno", this, (this.Area * 0.065m) + 0.0005m, 80.0m);
            this.m_parts.Add(part);
            // .0005 hours + 0.065 Area

            #endregion
        }
コード例 #4
0
        public override void Build()
        {
            FrameWorks.Part part;
            #region Case

            // Left Side
            part               = new Part(2878, "LSide", this, 1, this.SubAssemblyHieght, SubAssemblyDepth);
            part.PartThick     = 0.75m;
            part.PartGroupType = "Case";
            this.Parts.Add(part);

            // Right Side
            part               = new Part(2878, "RSide", this, 1, this.SubAssemblyHieght, SubAssemblyDepth);
            part.PartThick     = 0.75m;
            part.PartGroupType = "Case";
            this.Parts.Add(part);

            // Bottom
            part               = new Part(2878, "Bottom ", this, 1, this.SubAssemblyWidth - 1.5m, SubAssemblyDepth);
            part.PartThick     = 0.75m;
            part.PartGroupType = "Case";
            this.Parts.Add(part);
            //Top
            part               = new Part(2878, "Top", this, 1, this.SubAssemblyWidth - 1.5m, SubAssemblyDepth);
            part.PartThick     = 0.75m;
            part.PartGroupType = "Case";
            this.Parts.Add(part);
            // Back
            part               = new Part(2880, "Back", this, 1, this.SubAssemblyHieght - 1.0m);
            part.PartWidth     = this.SubAssemblyWidth - 1.0m;
            part.PartThick     = 0.25m;
            part.PartGroupType = "Case";
            this.Parts.Add(part);

            // Test
            part               = new Part(795, "Extrusion", this, 1, this.SubAssemblyHieght - 1.0m);
            part.PartWidth     = this.SubAssemblyWidth - 1.0m;
            part.PartThick     = 1.25m;
            part.PartGroupType = "Case";
            this.Parts.Add(part);


            this.Parts.Add(new Part(2893, "21-Runner", this, 1, 22.0m));

            #endregion

            #region Labor

            part = new LPart("Drafting", this, 1.5m, 85.0m);
            this.Parts.Add(part);
            #endregion

            foreach (FrameWorks.Part p in this.Parts)
            {
                // needed to tickle the cost forcing calculation
                decimal d = p.Area;
                m_calculatedCost += p.CalculatedCost;
            }
        }
コード例 #5
0
ファイル: Nailer.cs プロジェクト: linusaurus/Knoodle-4
        //Bill of Material
        public override void Build()
        {
            Part   part;
            string partleader = this.Parent.UnitID + "." + this.CreateID.ToString();

            #region Nail Fin Perimeter


            // Top Nailer ^^
            part = new Part(922, "Top Nail Fin", this, 1, m_subAssemblyWidth + (1.280m * 2.0m));
            part.PartGroupType  = "Nailer-Parts";
            part.PartLabel      = "";
            part.PartIdentifier = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            // Bot Nailer ||
            part = new Part(922, "Bottom Nail Fin", this, 1, m_subAssemblyWidth + (1.280m * 2.0m));
            part.PartGroupType  = "Nailer-Parts";
            part.PartLabel      = "";
            part.PartIdentifier = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            // Left Nailer <<--
            part = new Part(922, "Left Nail Fin", this, 1, m_subAssemblyHieght + (1.280m * 2.0m));
            part.PartGroupType  = "Nailer-Parts";
            part.PartLabel      = "";
            part.PartIdentifier = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            // Right Nailer -->>
            part = new Part(922, "Right Nail Fin", this, 1, m_subAssemblyHieght + (1.280m * 2.0m));
            part.PartGroupType  = "Nailer-Parts";
            part.PartLabel      = "";
            part.PartIdentifier = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);



            #endregion

            #region Labor



            part = new LPart("AttachmentHours", this, 0.0m, 80.0m);
            m_parts.Add(part);
            //0 Attachment



            #endregion
        }
コード例 #6
0
        //Bill of Material
        public override void Build()
        {
            Part part;

            decimal pweight = FrameWorks.Functions.PanelWieghtS2000(m_subAssemblyWidth, m_subAssemblyHieght);

            string labelStileR  = string.Empty;
            string labelStileL  = string.Empty;
            string labelTopRail = string.Empty;
            string labelBotRail = string.Empty;


            #region Sash


            // StileL <<--
            part = new Part(2951, "StileL", this, 1, m_subAssemblyHieght);
            part.PartGroupType = "Sash-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = labelStileL;

            m_parts.Add(part);


            // StileR -->>
            part = new Part(2951, "StileR", this, 1, m_subAssemblyHieght);
            part.PartGroupType = "Sash-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = labelStileR;

            m_parts.Add(part);


            // RailT ^^
            part = new Part(2951, "RailT", this, 1, m_subAssemblyWidth);
            part.PartGroupType = "Sash-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = labelTopRail;

            m_parts.Add(part);


            // RailB ||
            part = new Part(2951, "RailB", this, 1, m_subAssemblyWidth);
            part.PartGroupType = "Sash-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = labelBotRail;

            m_parts.Add(part);


            #endregion

            #region Filler


            part               = new Part(2975, "Filler-Left", this, 1, m_subAssemblyHieght);
            part.PartThick     = .75m;
            part.PartWidth     = 1.814m;
            part.PartGroupType = "Filler-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);

            part               = new Part(2974, "Filler-Right", this, 1, m_subAssemblyHieght);
            part.PartThick     = .75m;
            part.PartWidth     = 1.814m;
            part.PartGroupType = "Filler-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);

            part               = new Part(2975, "Filler-Top", this, 1, m_subAssemblyWidth);
            part.PartThick     = .75m;
            part.PartWidth     = 1.814m;
            part.PartGroupType = "Filler-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);

            part               = new Part(2975, "Filler-Bottom", this, 1, m_subAssemblyWidth);
            part.PartThick     = .75m;
            part.PartWidth     = 1.814m;
            part.PartGroupType = "Filler-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            #endregion

            #region Stop


            // StopFrontLeft
            part = new Part(809, "StopFrontLeft", this, 1, m_subAssemblyHieght - 2 * 1.3125m);
            part.PartGroupType = "Stop-Parts";
            part.PartLabel     = "MiterEnds";

            m_parts.Add(part);



            // StopRearLeft
            part = new Part(809, "StopRearLeft", this, 1, m_subAssemblyHieght - 2 * 1.3125m);
            part.PartGroupType = "Stop-Parts";
            part.PartLabel     = "MiterEnds";

            m_parts.Add(part);



            // StopFrontRight
            part = new Part(809, "StopFrontRight", this, 1, m_subAssemblyHieght - 2 * 1.3125m);
            part.PartGroupType = "Stop-Parts";
            part.PartLabel     = "MiterEnds";

            m_parts.Add(part);



            // StopRearRight
            part = new Part(809, "StopRearRight", this, 1, m_subAssemblyHieght - 2 * 1.3125m);
            part.PartGroupType = "Stop-Parts";
            part.PartLabel     = "MiterEnds";

            m_parts.Add(part);



            // StopFrontTop
            part = new Part(809, "StopFrontTop", this, 1, m_subAssemblyWidth - 2 * 1.3125m);
            part.PartGroupType = "Stop-Parts";
            part.PartLabel     = "MiterEnds";

            m_parts.Add(part);



            // StopRearTop
            part = new Part(809, "StopRearTop", this, 1, m_subAssemblyWidth - 2 * 1.3125m);
            part.PartGroupType = "Stop-Parts";
            part.PartLabel     = "MiterEnds";

            m_parts.Add(part);



            // StopFrontBot
            string crap;
            crap = Functions.StopWeepMachining(m_subAssemblyWidth - 2 * 1.3125m);
            part = new Part(809, "StopFrontBot", this, 1, m_subAssemblyWidth - 2 * 1.3125m);
            part.PartGroupType = "Stop-Parts";
            part.PartLabel     = "1)MiterEnds" + "\r\n" +
                                 "2)" + crap;

            m_parts.Add(part);



            // StopRearBot
            part = new Part(809, "StopRearBot", this, 1, m_subAssemblyWidth - 2 * 1.3125m);
            part.PartGroupType = "Stop-Parts";
            part.PartLabel     = "MiterEnds";

            m_parts.Add(part);



            #endregion

            #region Glass

            //Glass Panel
            part = new Part(2828);

            part.FunctionalName    = "Glass";
            part.PartGroupType     = "Glass-Parts";
            part.Qnty              = 1;
            part.PartName          = "PartName";
            part.PartLabel         = "";
            part.ContainerAssembly = this;
            part.PartWidth         = m_subAssemblyWidth - (1.625m * 2.0m);
            part.PartLength        = m_subAssemblyHieght - (1.625m * 2.0m);

            m_parts.Add(part);

            #endregion

            #region Seal/Weatherstripping


            decimal peri = Functions.Perimeter(m_subAssemblyHieght, m_subAssemblyWidth);

            //Sash Edge Seal
            part = new Part(2274, "Edge Seal", this, 1, peri * 2.0m);
            part.PartGroupType = "Seal-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);

            peri = Functions.Perimeter(m_subAssemblyHieght - 1.53125m, m_subAssemblyWidth - 1.53125m);

            //Glazing Seals
            part = new Part(2772, "Glazing Seal", this, 1, peri * 2.0m);
            part.PartGroupType = "Seal-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            #endregion

            #region HardWare Logic


            // Assembly Braces
            part = new Part(1117, "Assembly Braces", this, 8, 0.0m);
            part.PartGroupType = "Hardware-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            //LockHoppe
            FrameWorks.Makes.System3000.HoppeCasement25mm hoppe = new FrameWorks.Makes.System3000.HoppeCasement25mm(m_subAssemblyHieght, this);
            foreach (Part innerpart in hoppe.Parts)
            {
                //inner
                this.Parts.Add(innerpart);
            }



            #endregion

            #region Labor


            part = new LPart("Design", this, 4.0m, 80.0m);
            m_parts.Add(part);
            //Collect Information on Sizes: Measure: Provide Information for Approval: Order: Supervision

            part = new LPart("Draft", this, 3.0m, 80.0m);
            m_parts.Add(part);
            //Typical Drawings

            part = new LPart("MetalHours", this, 12.0m, 80.0m);
            m_parts.Add(part);
            //1 Recieve: 1 Handle: 1 CutSash: 1 CutGlassStop: 1.5 Machine: 1.5 Hardware Prep: 1 Mount Hardware: 4 Weld:

            part = new LPart("Finish", this, 4.0m, 80.0m);
            m_parts.Add(part);
            //2 Sand Linegrain: 2 Finish:

            part = new LPart("PatinaMat", this, this.m_perimeter, 1.62m);
            m_parts.Add(part);
            //$1.62 per inch

            part = new LPart("Glazing", this, (this.Area * .10m) + 4.5m, 80.0m);
            m_parts.Add(part);
            //0.5 Order: 0.5 Recieve: 1.0 Inspect/Reject: 0.5 Store/Handle: 0.5 SetGlass/Shim&Calk: 0.5 Set GlassStop: 0.5 GlazingSeals

            part = new LPart("Prehang", this, (this.Area * .10m) + 3.0m, 80.0m);
            m_parts.Add(part);
            //2 FitSash into Frame: 1 Mount Weather Strips/Seals

            part = new LPart("Stage", this, 1.0m, 80.0m);
            m_parts.Add(part);
            //1 Stage

            part = new LPart("Load", this, 1.0m, 80.0m);
            m_parts.Add(part);
            //1 Load

            #endregion
        }
コード例 #7
0
        //Bill of Material
        public override void Build()
        {
            Part   part;
            string partleader = this.Parent.UnitID + "." + this.CreateID.ToString();



            #region Frame


            // JambRight -->>
            part                   = new Part(3395);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght;
            part.FunctionalName    = "JambR";
            part.PartLabel         = "";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);


            // JambLeft <<--
            part                   = new Part(3395);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght;
            part.FunctionalName    = "JambL";
            part.PartLabel         = "";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);


            // Head ^^
            part                   = new Part(3395);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth;
            part.FunctionalName    = "Head";
            part.PartLabel         = "";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);


            // Sill ||
            part                   = new Part(3395);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth;
            part.FunctionalName    = "Sill";
            part.PartLabel         = "";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);


            #endregion


            #region Stops

            // StopRight
            part                   = new Part(3396);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght - (0.625m * 2.0m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopRight";
            part.PartLabel         = "Miter Ends";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            // StopLeft
            part                   = new Part(3396);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght - (0.625m * 2.0m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopLeft";
            part.PartLabel         = "Miter Ends";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            // StopTop
            part                   = new Part(3396);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth - (0.625m * 2.0m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopTop";
            part.PartLabel         = "Miter Ends";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            // StopBot
            string crap;
            crap                   = FrameWorks.Functions.StopWeepMachining(m_subAssemblyWidth - 2.0m * .625m);
            part                   = new Part(3396);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth - (0.625m * 2.0m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopBot";
            part.PartLabel         = "1) Miter Ends" + "\r\n" +
                                     "2)" + crap;
            part.PartIdentifier = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            #endregion


            #region Glass


            //Glass Panel

            part = new Part(3392);

            part.FunctionalName    = "PatternGlass";
            part.PartGroupType     = "Glass-Parts";
            part.Qnty              = 1;
            part.ContainerAssembly = this;

            part.PartWidth  = m_subAssemblyWidth - (0.96875m * 2.0m);
            part.PartLength = m_subAssemblyHieght - (0.96875m * 2.0m);

            m_parts.Add(part);



            #endregion


            #region GlazingSeal


            decimal peri = FrameWorks.Functions.Perimeter(m_subAssemblyHieght - 1, m_subAssemblyWidth - 1);


            //Glazing Seals
            part = new Part(2772, "Glazing Seal", this, 1, peri * 2);
            part.PartGroupType = "GlazingSeal-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            #endregion


            #region Hardware


            #endregion


            #region Labor

            part = new LPart("Design", this, 4.0m, 80.0m);
            m_parts.Add(part);
            // Measure: Collect Information on Sizes from Contractor:
            // Provide Information for Approval:
            // Samples Correspondence: Ordering: Supervision

            part = new LPart("Draft", this, 3.0m, 80.0m);
            m_parts.Add(part);
            //Typical Drawings: Supervision

            part = new LPart("MetalHours", this, 8.0m, 80.0m);
            m_parts.Add(part);
            //1 Receive: 1 Handle: 1 Cut: 1 Machine: 2 Weld & Assemble: 1 Hardware Prep: 1 NailFin

            part = new LPart("GlazingHours", this, (this.Area * 0.1m) + 4.5m, 80.0m);
            m_parts.Add(part);
            //.5 Recieve: 1.0 InspectReject: .5 StoreHandle: 1.0 GlazeShimCalk: .5 SetGlassStop: 05 InsertGasket

            part = new LPart("FinishHours", this, 4.0m, 80.0m);
            m_parts.Add(part);
            //2 SandLineGrain: 2 Finish

            part = new LPart("Stage", this, 0.5m, 80.0m);
            m_parts.Add(part);
            //.5 Stage

            part = new LPart("Load", this, 1.0m, 80.0m);
            m_parts.Add(part);
            //1 Load



            #endregion
        }
コード例 #8
0
        //Bill of Material
        public override void Build()
        {
            Part   part;
            string partleader = this.Parent.UnitID + "." + this.CreateID.ToString();



            //Fuction for Radius Head
            decimal arcLength = FrameWorks.Functions.ArcLength(Convert.ToDouble(m_subAssemblyWidth), Convert.ToDouble(m_subAssemblyDepth));



            #region Frame



            // HeadArched ^^
            part = new Part(3394, "HeadArched", this, 1, arcLength + (2 * strechGrip));
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "1)StretchForm" + "\r\n" +
                                 "2)MachineCenterPN:911";

            m_parts.Add(part);



            // JambL <<--
            part = new Part(3394, "JambL", this, 1, m_subAssemblyHieght - m_subAssemblyWidth / 2);
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "1)MiterBottom";

            m_parts.Add(part);


            // JambR -->>
            part = new Part(3394, "JambR", this, 1, m_subAssemblyHieght - m_subAssemblyWidth / 2);
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "1)MiterBottom";

            m_parts.Add(part);


            // Sill ||
            part = new Part(3394, "Sill", this, 1, m_subAssemblyWidth);
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "Machine Center PN:911";

            m_parts.Add(part);



            #endregion


            #region T_Astragal_RadTop


            //Astragal_RadTop

            part = new Part(3399, "T_Astragal_RadTop", this, 1, m_subAssemblyHieght - astragalCut * 2.0m);
            part.PartGroupType = "T_Astragal_RadTop";
            part.PartLabel     = "";

            m_parts.Add(part);


            #endregion


            #region Hardware-Parts


            //LockLogic

            int hardwarecount = 1;
            if (m_subAssemblyHieght < 48.0m)
            {
                hardwarecount = 1;
            }
            else
            {
                hardwarecount = 2;
            }


            // Lock
            part = new Part(1709, "Lock", this, hardwarecount, 0m);
            part.PartGroupType = "Hardware-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            //Get the size of the tiebar partNo--
            decimal tieBarLength = FrameWorks.Functions.S2000TieBar(m_subAssemblyHieght);

            //check is sash even requires a tiebar
            if (tieBarLength != 0)
            {
                // Tie Bars
                part = new Part(3625, "Tie Bars", this, 1, tieBarLength);
                part.PartGroupType = "Hardware-Parts";
                part.PartLabel     = "";

                m_parts.Add(part);
            }


            // SupportBlockL
            part = new Part(2995, "SupportBlockL", this, 1, 0.0m);
            part.PartGroupType = "Hardware-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);



            // SupportBlockR
            part = new Part(2995, "SupportBlockR", this, 1, 0.0m);
            part.PartGroupType = "Hardware-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            // FlushBoltTop
            part = new Part(911, "FlushBoltTop", this, 1, 0.0m);
            part.PartGroupType = "Hardware-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            // FlushBoltBot
            part = new Part(911, "FlushBoltBot", this, 1, 0.0m);
            part.PartGroupType = "Hardware-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);



            #endregion


            #region Labor

            part = new LPart("MetalHours", this, 8.0m, 80.0m);
            this.m_parts.Add(part);
            //1 Receive: 1 Handle: 1 Cut: 1 Machine: 2 Weld & Assemble: 1 Hardware Prep: 1 NailFin

            part = new LPart("Finish", this, (this.Area * 0.025m) + 2.0m, 80.0m);
            this.m_parts.Add(part);
            //1.0 Sand Linegrain: 1.0 Finish:

            part = new LPart("PaintAno", this, (this.Area * 0.065m) + 0.0005m, 80.0m);
            this.m_parts.Add(part);
            // .0005 hours + 0.065 Area

            #endregion
        }
コード例 #9
0
        //Bill of Material
        public override void Build()
        {
            Part part;

            decimal pweight = FrameWorks.Functions.PanelWieghtS2000(m_subAssemblyWidth, m_subAssemblyHieght);

            string labelStileR  = string.Empty;
            string labelStileL  = string.Empty;
            string labelTopRail = string.Empty;
            string labelBotRail = string.Empty;



            #region Sash


            // TTStileL <<--
            part = new Part(3452, "TTStileL", this, 1, m_subAssemblyHieght);
            part.PartGroupType = "Sash-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = labelStileL = "1)MiterEnds" + "r\n" +
                                               "2)MachineKeeper";

            m_parts.Add(part);



            // TTStileR -->>
            part = new Part(3452, "TTStileR", this, 1, m_subAssemblyHieght);
            part.PartGroupType = "Sash-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = labelStileR = "MiterEnds";

            m_parts.Add(part);



            // TTRailT ^^
            part = new Part(3452, "TTRailT", this, 1, m_subAssemblyWidth);
            part.PartGroupType = "Sash-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = labelTopRail = "1)MiterEnds";

            m_parts.Add(part);


            // TTRailB ||
            part = new Part(3452, "TTRailB", this, 1, m_subAssemblyWidth);
            part.PartGroupType = "Sash-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = labelBotRail = "1)MiterEnds";

            m_parts.Add(part);



            #endregion


            #region Hardware


            // HingeTTUR
            part = new Part(911, "HingeTTUR", this, 1, 0.0m);
            part.PartGroupType = "Hardware";
            part.PartLabel     = "";

            m_parts.Add(part);


            // HingeTTLR
            part = new Part(911, "HingeTTLR", this, 1, 0.0m);
            part.PartGroupType = "Hardware";
            part.PartLabel     = "";

            m_parts.Add(part);


            #endregion


            #region GlassStop



            // Stop-L #3396
            part = new Part(3396, "GlassStop-L", this, 1, m_subAssemblyHieght - 2 * 1.9375m);
            part.PartGroupType = "GlassStop-Parts";
            part.PartLabel     = "MiterEnds";

            m_parts.Add(part);



            // Stop-R #3396
            part = new Part(3396, "GlassStop-R", this, 1, m_subAssemblyHieght - 2 * 1.9375m);
            part.PartGroupType = "GlassStop-Parts";
            part.PartLabel     = "MiterEnds";

            m_parts.Add(part);



            // Stop-T #3396

            part = new Part(3396, "GlassStop-T", this, 1, m_subAssemblyWidth - 2 * 1.9375m);
            part.PartGroupType = "GlassStop-Parts";
            part.PartLabel     = "MiterEnds";

            m_parts.Add(part);



            // Stop-B #3396

            string crap;
            crap = FrameWorks.Functions.StopWeepMachining(m_subAssemblyWidth - 2 * 1.9375m);
            part = new Part(3396, "GlassStop-B", this, 1, m_subAssemblyWidth - 2 * 1.9375m);
            part.PartGroupType = "GlassStop-Parts";
            part.PartLabel     = "1)MiterEnds" + "\r\n" +
                                 "2)" + crap;

            m_parts.Add(part);



            #endregion


            #region Glass

            //Glass Panel
            part = new Part(3392);
            part.FunctionalName    = "Glass";
            part.PartGroupType     = "Glass-Parts";
            part.Qnty              = 1;
            part.ContainerAssembly = this;
            part.PartWidth         = m_subAssemblyWidth - (2.2497m * 2.0m);
            part.PartLength        = m_subAssemblyHieght - (2.2497m * 2.0m);

            m_parts.Add(part);

            #endregion


            #region Seal/Weatherstripping


            decimal peri = FrameWorks.Functions.Perimeter(m_subAssemblyHieght - 1.8246m, m_subAssemblyWidth - 1.8246m);

            //Sash Edge Seal
            part = new Part(2274, "Edge Seal", this, 1, peri * 2.0m);
            part.PartGroupType = "Seal-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);

            peri = FrameWorks.Functions.Perimeter(m_subAssemblyHieght - 4.6152m, m_subAssemblyWidth - 4.6152m);

            //Glazing Seals
            part = new Part(2772, "Glazing Seal", this, 1, peri * 2.0m);
            part.PartGroupType = "Seal-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);



            #endregion


            #region Labor


            part = new LPart("Design", this, 4.0m, 80.0m);
            m_parts.Add(part);
            //Collect Information on Sizes: Measure: Provide Information for Approval: Order: Supervision

            part = new LPart("Draft", this, 3.0m, 80.0m);
            m_parts.Add(part);
            //Typical Drawings

            part = new LPart("MetalHours", this, 8.0m, 80.0m);
            m_parts.Add(part);
            //1 Recieve: 1 Handle: 1 CutSash: 1 CutGlassStop: 1.5 Machine: 1.5 Hardware Prep: 1 Mount Hardware:


            part = new LPart("Finish", this, 4.0m, 80.0m);
            m_parts.Add(part);
            //2 Sand Linegrain: 2 Finish:

            part = new LPart("GlazingHours", this, (this.Area * 0.17m) + 1.5m, 80.0m);
            m_parts.Add(part);
            //.5 Recieve: .5 InspectReject: .5 StoreHandle: * .17 Hrs Per Square Ft:

            part = new LPart("Prehang", this, (this.Area * .10m) + 3.0m, 80.0m);
            m_parts.Add(part);
            //2 FitSash into Frame: 1 Mount Weather Strips/Seals

            part = new LPart("Stage", this, 1.0m, 80.0m);
            m_parts.Add(part);
            //1 Stage

            part = new LPart("Load", this, 1.0m, 80.0m);
            m_parts.Add(part);
            //1 Load


            #endregion
        }
コード例 #10
0
        //Bill of Material
        public override void Build()
        {
            Part   part;
            string partleader = this.Parent.UnitID + "." + this.CreateID.ToString();



            #region Frame-Parts



            // Head2 ^^
            part = new Part(3618, "Head2", this, 1, m_subAssemblyWidth - frameReduce * 2.0m);
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "1)MiterEnds\r\n" +
                                 "2)[1987.m]Position 0rigin Shoot Strike";

            m_parts.Add(part);


            // Head4 ^^
            part = new Part(3619, "Head4", this, 1, m_subAssemblyWidth - frameReduce * 2.0m);
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "1)MiterEnds";

            m_parts.Add(part);



            // JambL2 <<--
            decimal doorPanel = decimal.Zero;

            doorPanel = this.Parent.SubAssemblies[0].SubAssemblyHieght;

            part = new Part(3618, "JambL2", this, 1, m_subAssemblyHieght - frameReduce);
            part.PartGroupType = "Frame-Parts";
            decimal step = (doorPanel - 15.0m);
            step /= Convert.ToDecimal((FrameWorks.Functions.HingeCount(doorPanel) - 1));
            step  = Math.Round(step, 4);
            string msg = "";
            part.PartLabel = "1) MiterTop\r\n" +
                             "2) [911.m]Cope Jamb Bottom->\r\n" +
                             "3) Position 0rigin TOU @ ->" + (7.5m + 0.875m).ToString() + "\r\n" +
                             FrameWorks.Functions.HingeCount(doorPanel).ToString() + "@<" + step.ToString() + ">O.C.";

            m_parts.Add(part);



            // JambR2 -->>
            part = new Part(3618, "JambR2", this, 1, m_subAssemblyHieght - frameReduce);
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "1)MiterTop\r\n" +
                                 "2)[1962.m]Position 0rigin Strike Plate\r\n" +
                                 "3)Cope Jamb Bottom";

            m_parts.Add(part);



            // JambL4 <<--
            part = new Part(3619, "JambL4", this, 1, m_subAssemblyHieght - frameReduce);
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "1)MiterTop\r\n" +
                                 "2)Cope Jamb Bottom";

            m_parts.Add(part);



            // JambR4 -->>
            part = new Part(3619, "JambR4", this, 1, m_subAssemblyHieght - frameReduce);
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "1)MiterTop\r\n" +
                                 "2)Cope Jamb Bottom";

            m_parts.Add(part);



            #endregion


            #region HardWare



            // Strike Plate
            part = new Part(3903, "Strike Plate", this, 1, 0.0m);
            part.PartGroupType = "Hardware-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);



            // Shoot Strike
            part = new Part(1987, "Shoot Strike", this, 2, 0.0m);
            part.PartGroupType = "Hardware-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);



            #endregion


            #region Seal/Weatherstripping


            //Sash Edge Seal
            part = new Part(2274, "Edge Seal", this, 1, m_subAssemblyHieght * 2 + m_subAssemblyWidth);
            part.PartGroupType = "Seal-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);



            #endregion


            #region Labor

            part = new LPart("MetalHours", this, 8.0m, 80.0m);
            this.m_parts.Add(part);
            //1 Receive: 1 Handle: 1 Cut: 1 Machine: 2 Weld & Assemble: 1 Hardware Prep: 1 NailFin

            part = new LPart("Finish", this, (this.Area * 0.025m) + 2.0m, 80.0m);
            this.m_parts.Add(part);
            //1.0 Sand Linegrain: 1.0 Finish:

            part = new LPart("PaintAno", this, (this.Area * 0.065m) + 0.0005m, 80.0m);
            this.m_parts.Add(part);
            // .0005 hours + 0.065 Area

            #endregion
        }
コード例 #11
0
        //Bill of Material
        public override void Build()
        {
            Part   part;
            string partleader = this.Parent.UnitID + "." + this.CreateID.ToString();



            //Fuction for Radius Head
            decimal arcLength = FrameWorks.Functions.ArcLength(Convert.ToDouble(m_subAssemblyWidth), Convert.ToDouble(m_subAssemblyDepth));



            #region NailFin



            //NailerLeft
            part = new Part(3308, "NailerLeft", this, 1, (m_subAssemblyHieght + 1.250m * 2.0m) - m_subAssemblyWidth / 2);
            part.PartGroupType = "NailFin-Parts";
            part.PartLabel     = "1)MiterEnds";

            m_parts.Add(part);



            // NailerRight
            part = new Part(3308, "NailerRight", this, 1, (m_subAssemblyHieght + 1.250m * 2.0m) - m_subAssemblyWidth / 2);
            part.PartGroupType = "NailFin-Parts";
            part.PartLabel     = "1)MiterEnds";

            m_parts.Add(part);



            // NailerTop
            part = new Part(3308, "NailerTop", this, 1, (arcLength + 2 * strechGrip) + 1.250m * 2.0m);
            part.PartGroupType = "NailFin-Parts";
            part.PartLabel     = "1)MiterEnds";

            m_parts.Add(part);



            // NailFinBot
            part = new Part(3308, "NailFinBot", this, 1, m_subAssemblyWidth + 1.250m * 2.0m);
            part.PartGroupType = "NailFin-Parts";
            part.PartLabel     = "1)MiterEnds";

            m_parts.Add(part);



            #endregion


            #region Labor

            part = new LPart("MetalHours", this, 8.0m, 80.0m);
            this.m_parts.Add(part);
            //1 Receive: 1 Handle: 1 Cut: 1 Machine: 2 Weld & Assemble: 1 Hardware Prep: 1 NailFin

            part = new LPart("Finish", this, (this.Area * 0.025m) + 2.0m, 80.0m);
            this.m_parts.Add(part);
            //1.0 Sand Linegrain: 1.0 Finish:

            part = new LPart("PaintAno", this, (this.Area * 0.065m) + 0.0005m, 80.0m);
            this.m_parts.Add(part);
            // .0005 hours + 0.065 Area

            #endregion
        }
コード例 #12
0
ファイル: WindowPanel.cs プロジェクト: linusaurus/Knoodle-4
        //Bill of Material
        public override void Build()
        {
            Part   part;
            string partleader = this.Parent.UnitID + "." + this.CreateID.ToString();



            #region Sash

            // StileL
            part                   = new Part(1167);
            part.Qnty              = 1;
            part.PartGroupType     = "Sash-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght - (0.875m + 0.875m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StileL";
            part.PartLabel         = "";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);



            // StileR
            part                   = new Part(1167);
            part.Qnty              = 1;
            part.PartGroupType     = "Sash-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght - (0.875m + 0.875m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StileR";
            part.PartLabel         = "";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            // RailT
            part                   = new Part(1167);
            part.Qnty              = 1;
            part.PartGroupType     = "Sash-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth - (2.875m + 2.875m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "RailT";
            part.PartLabel         = "";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            // RailB
            part                   = new Part(1167);
            part.Qnty              = 1;
            part.PartGroupType     = "Sash-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth - (2.875m + 2.875m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "RailB";
            part.PartLabel         = "";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            #endregion

            #region Filler

            part = new Part(1813, "Filler-Top", this, 2, m_subAssemblyWidth + 0.25m);
            part.PartGroupType = "Filler-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);

            part = new Part(1813, "Filler-Bottom", this, 2, m_subAssemblyWidth + 0.25m);
            part.PartGroupType = "Filler-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);

            part = new Part(1813, "Filler-Left", this, 2, m_subAssemblyHieght + 0.25m);
            part.PartGroupType = "Filler-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);

            part = new Part(1813, "Filler-Right", this, 2, m_subAssemblyHieght + 0.25m);
            part.PartGroupType = "Filler-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);

            #endregion

            #region Glass

            //Glass Panel
            part = new Part(-1);
            part.FunctionalName             = "Glass";
            part.PartGroupType              = "Glass-Parts";
            part.Qnty                       = 1;
            part.Source.MaterialDescription = "1.25 Insulated Glass";
            part.PartName                   = "PartName";
            part.PartLabel                  = "Phantom Part";
            part.Source.MaterialName        = "1.25 IGU";
            part.ContainerAssembly          = this;

            part.PartWidth  = m_subAssemblyHieght - (2.4753m + 2.4753m);
            part.PartLength = m_subAssemblyWidth - (2.4753m + 2.4753m);
            //part.Source.UOM = (int)FrameWorks.UnitOfMeasure.Foot;

            part.PartIdentifier = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            #endregion

            #region Stops
            // StopT-Front
            part                   = new Part(809);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth - (2.1875m + 2.1875m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopT-Front";
            part.PartLabel         = "";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            // StopT-Rear
            part                   = new Part(809);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth - (2.1875m + 2.1875m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopT-Rear";
            part.PartLabel         = "";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            // StopB-Rear
            part                   = new Part(809);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth - (2.1875m + 2.1875m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopB-Rear";
            part.PartLabel         = "";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            // StopB-Front
            part                   = new Part(809);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth - (2.1875m + 2.1875m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopB-Front";
            part.PartLabel         = "";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            // StopL-Rear
            part                   = new Part(809);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght - (2.1875m + 2.1875m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopL-Rear";
            part.PartLabel         = "";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            // StopL-Front
            part                   = new Part(809);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght - (2.1875m + 2.1875m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopL-Front";
            part.PartLabel         = "";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            // StopR-Rear
            part                   = new Part(809);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght - (2.1875m + 2.1875m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopR-Rear";
            part.PartLabel         = "";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            // StopR-Front
            part                   = new Part(809);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght - (2.1875m + 2.1875m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopR-Front";
            part.PartLabel         = "";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);


            #endregion

            #region Hardware

            // Hinges
            decimal hingesize = SubAssemblyHieght - (2.0m * 0.8750m);
            part                = new Part(HingeSelection(hingesize));
            part.Qnty           = 1;
            part.FunctionalName = "Hinges";
            part.PartGroupType  = "Hardware-Parts";

            part.ContainerAssembly = this;
            part.PartThick         = decimal.Zero;
            part.PartWidth         = decimal.Zero;
            part.PartLength        = decimal.Zero;

            part.PartIdentifier = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            #endregion

            #region Labor



            part = new LPart("Design", this, 4.0m, 80.0m);
            m_parts.Add(part);
            //Collect Information on Sizes: Measure: Provide Information for Approval: Order: Supervision

            part = new LPart("Draft", this, 3.0m, 80.0m);
            m_parts.Add(part);
            //Typical Drawings

            part = new LPart("MetalHours", this, 12.0m, 80.0m);
            m_parts.Add(part);
            //1 Recieve: 1 Handle: 1 CutSash: 1 CutGlassStop: 1.5 Machine: 1.5 Hardware Prep: 1 Mount Hardware: 4 Weld:

            part = new LPart("Finish", this, 4.0m, 80.0m);
            m_parts.Add(part);
            //2 Sand Linegrain: 2 Finish:

            part = new LPart("Glazing", this, (this.Area * .10m) + 4.5m, 80.0m);
            m_parts.Add(part);
            //0.5 Order: 0.5 Recieve: 1.0 Inspect/Reject: 0.5 Store/Handle: 0.5 SetGlass/Shim&Calk: 0.5 Set GlassStop: 0.5 GlazingSeals

            part = new LPart("Prehang", this, (this.Area * .10m) + 3.0m, 80.0m);
            m_parts.Add(part);
            //2 FitSash into Frame: 1 Mount Weather Strips/Seals

            part = new LPart("Stage", this, 1.0m, 80.0m);
            m_parts.Add(part);
            //1 Stage

            part = new LPart("Load", this, 1.0m, 80.0m);
            m_parts.Add(part);
            //1 Load

            #endregion
        }
コード例 #13
0
        //Bill of Material
        public override void Build()
        {
            Part part;

            decimal pweight = FrameWorks.Functions.PanelWieghtS2000(m_subAssemblyWidth, m_subAssemblyHieght);

            string labelStileR  = string.Empty;
            string labelStileL  = string.Empty;
            string labelTopRail = string.Empty;
            string labelBotRail = string.Empty;


            #region Sash

            if (pweight <= 106.0m)
            {
                // Casement Hinge 992 T,991 B
                labelStileR  = "";
                labelStileL  = "";
                labelTopRail = "M-992";
                labelBotRail = "M-991";
            }
            else if (pweight > 106)
            {
                // Butt Hinge 2982

                labelStileR  = "";
                labelStileL  = "M-2982";
                labelTopRail = "";
                labelBotRail = "";
            }

            // StileR -->>
            part = new Part(2032, "StileR", this, 1, m_subAssemblyHieght);
            part.PartGroupType = "Sash-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = labelStileR;

            m_parts.Add(part);



            // StileL <<--
            part = new Part(2032, "StileL", this, 1, m_subAssemblyHieght);
            part.PartGroupType = "Sash-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = labelStileL;

            m_parts.Add(part);



            // RailT ^^
            part = new Part(2032, "RailT", this, 1, m_subAssemblyWidth);
            part.PartGroupType = "Sash-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = labelTopRail;

            m_parts.Add(part);



            // RailB ||
            part = new Part(2032, "RailB", this, 1, m_subAssemblyWidth);
            part.PartGroupType = "Sash-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = labelBotRail;

            m_parts.Add(part);



            #endregion

            #region GlassStop



            // Stop-L #800
            part = new Part(800, "GlassStop-L", this, 1, m_subAssemblyHieght - 2 * 1.2288m);
            part.PartGroupType = "GlassStop-Parts";
            part.PartLabel     = "MiterEnds";

            m_parts.Add(part);



            // Stop-R #800
            part = new Part(800, "GlassStop-R", this, 1, m_subAssemblyHieght - 2 * 1.2288m);
            part.PartGroupType = "GlassStop-Parts";
            part.PartLabel     = "MiterEnds";

            m_parts.Add(part);



            // Stop-T #800

            part = new Part(800, "GlassStop-T", this, 1, m_subAssemblyWidth - 2 * 1.2288m);
            part.PartGroupType = "GlassStop-Parts";
            part.PartLabel     = "MiterEnds";

            m_parts.Add(part);



            // Stop-B #800

            string crap;
            crap = FrameWorks.Functions.StopWeepMachining(m_subAssemblyWidth - 2 * 1.2288m);
            part = new Part(800, "GlassStop-B", this, 1, m_subAssemblyWidth - 2 * 1.2288m);
            part.PartGroupType = "GlassStop-Parts";
            part.PartLabel     = "1)MiterEnds" + "\r\n" +
                                 "2)" + crap;

            m_parts.Add(part);



            #endregion

            #region Glass

            //Glass Panel
            part = new Part(1022);
            part.FunctionalName    = "Glass";
            part.PartGroupType     = "Glass-Parts";
            part.Qnty              = 1;
            part.ContainerAssembly = this;
            part.PartWidth         = m_subAssemblyWidth - (1.53125m * 2.0m);
            part.PartLength        = m_subAssemblyHieght - (1.53125m * 2.0m);

            m_parts.Add(part);

            #endregion

            #region Seal/Weatherstripping


            decimal peri = FrameWorks.Functions.Perimeter(m_subAssemblyHieght, m_subAssemblyWidth);

            //Sash Edge Seal
            part = new Part(1769, "Edge Seal", this, 1, peri * 2.0m);
            part.PartGroupType = "Seal-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);

            peri = FrameWorks.Functions.Perimeter(m_subAssemblyHieght - 1.53125m, m_subAssemblyWidth - 1.53125m);

            //Glazing Seals
            part = new Part(1819, "Glazing Seal", this, 1, peri * 2.0m);
            part.PartGroupType = "Seal-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);



            #endregion

            #region Hardware

            if (pweight <= 106.0m)
            {
                // Casement Hinge T
                part = new Part(992, "CasementHingeT", this, 1, 0m);
                part.PartGroupType = "Hardware-Parts";
                part.PartWidth     = part.Source.Width;
                part.PartThick     = part.Source.Height;
                part.PartLabel     = "";

                m_parts.Add(part);


                // Casement Hinge B
                part = new Part(991, "CasementHingeB", this, 1, 0m);
                part.PartGroupType = "Hardware-Parts";
                part.PartLabel     = "";

                m_parts.Add(part);
            }
            else if (pweight > 106.0m)
            {
                // Butt Hinge

                int hcount = FrameWorks.Functions.HingeCount(m_subAssemblyHieght);
                part = new Part(2982, "HD Hinge", this, hcount, 0m);
                part.PartGroupType = "Hardware-Parts";
                part.PartLabel     = "";

                m_parts.Add(part);
            }



            // Track

            part = new Part(FrameWorks.Functions.TrackSeries23(SubAssemblyWidth), "Track", this, 1, 0m);
            part.PartGroupType = "Hardware-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);



            // Corner Braces
            part = new Part(2674, "CornerBraces", this, 8, 0.0m);
            part.PartGroupType = "Hardware-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            #endregion

            #region Labor


            part = new LPart("Design", this, 4.0m, 80.0m);
            m_parts.Add(part);
            //Collect Information on Sizes: Measure: Provide Information for Approval: Order: Supervision

            part = new LPart("Draft", this, 3.0m, 80.0m);
            m_parts.Add(part);
            //Typical Drawings

            part = new LPart("MetalHours", this, 8.0m, 80.0m);
            m_parts.Add(part);
            //1 Recieve: 1 Handle: 1 CutSash: 1 CutGlassStop: 1.5 Machine: 1.5 Hardware Prep: 1 Mount Hardware:


            part = new LPart("Finish", this, 4.0m, 80.0m);
            m_parts.Add(part);
            //2 Sand Linegrain: 2 Finish:

            part = new LPart("GlazingHours", this, (this.Area * 0.17m) + 1.5m, 80.0m);
            m_parts.Add(part);
            //.5 Recieve: .5 InspectReject: .5 StoreHandle: * .17 Hrs Per Square Ft:

            part = new LPart("Prehang", this, (this.Area * .10m) + 3.0m, 80.0m);
            m_parts.Add(part);
            //2 FitSash into Frame: 1 Mount Weather Strips/Seals

            part = new LPart("Stage", this, 1.0m, 80.0m);
            m_parts.Add(part);
            //1 Stage

            part = new LPart("Load", this, 1.0m, 80.0m);
            m_parts.Add(part);
            //1 Load


            #endregion
        }
コード例 #14
0
        //Bill of Material
        public override void Build()
        {
            Part part;



            #region Frame


            // JambLeft <<--
            part                   = new Part(2940);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght;
            part.FunctionalName    = "JambL";
            part.PartLabel         = "";

            m_parts.Add(part);


            // JambRight -->>
            part                   = new Part(2940);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght;
            part.FunctionalName    = "JambR";
            part.PartLabel         = "";

            m_parts.Add(part);


            // HeadLeft ^^
            part                   = new Part(2940);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth;
            part.FunctionalName    = "HeadLeft";
            part.PartLabel         = "VMiter_L_HMiter_R";

            m_parts.Add(part);


            // HeadRight ^^
            part                   = new Part(2940);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyDepth;
            part.FunctionalName    = "HeadRight";
            part.PartLabel         = "VMiter_R_HMiter_L";

            m_parts.Add(part);


            // SillLeft ||
            part                   = new Part(2940);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth;
            part.FunctionalName    = "SillLeft";
            part.PartLabel         = "VMiter_L_HMiter_R";

            m_parts.Add(part);


            // SillRight ||
            part                   = new Part(2940);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyDepth;
            part.FunctionalName    = "SillRight";
            part.PartLabel         = "VMiter_R_HMiter_L";

            m_parts.Add(part);


            // ExtCornerCover
            part                   = new Part(2988);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght - 1.375m * 2.0m;
            part.FunctionalName    = "ExtCornerCover";
            part.PartLabel         = "";

            m_parts.Add(part);


            #endregion

            #region Stop


            // StopRight
            part                   = new Part(809);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght - (0.625m * 2.0m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopRight";
            part.PartLabel         = "";

            m_parts.Add(part);


            // StopLeft
            part                   = new Part(809);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght - (0.625m * 2.0m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopLeft";
            part.PartLabel         = "";

            m_parts.Add(part);



            // StopTopLeft
            part                   = new Part(809);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth - (0.625m + 0.25m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopTopLeft";
            part.PartLabel         = "";

            m_parts.Add(part);



            // StopTopRight
            part                   = new Part(809);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyDepth - (0.625m + 0.25m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopTopRight";
            part.PartLabel         = "";

            m_parts.Add(part);



            // StopBotLeft
            string crap;
            crap                   = Functions.StopWeepMachining(m_subAssemblyWidth - 0.625m + 0.25m);
            part                   = new Part(809);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth - (0.625m + 0.25m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopBotLeft";
            part.PartLabel         = "1)MiterEnds" + "\r\n" +
                                     "2)" + crap;

            m_parts.Add(part);



            // StopBotRight
            crap                   = Functions.StopWeepMachining(m_subAssemblyDepth - 0.625m + 0.25m);
            part                   = new Part(809);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyDepth - (0.625m + 0.25m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopBotRight";
            part.PartLabel         = "1)MiterEnds" + "\r\n" +
                                     "2)" + crap;

            m_parts.Add(part);



            #endregion

            #region Glass


            //IG_CornerWR
            part = new Part(2828);
            part.FunctionalName    = "IG_CornerWR";
            part.PartGroupType     = "Glass-Parts";
            part.Qnty              = 1;
            part.PartName          = "PartName";
            part.PartLabel         = "WidthRight";
            part.ContainerAssembly = this;
            part.PartWidth         = m_subAssemblyWidth - (0.9375m + 0.625m);
            part.PartLength        = m_subAssemblyHieght - (0.9375m * 2.0m);

            m_parts.Add(part);


            //IG_CornerDR
            part = new Part(2828);
            part.FunctionalName    = "IG_CornerDR";
            part.PartGroupType     = "Glass-Parts";
            part.Qnty              = 1;
            part.PartName          = "PartName";
            part.PartLabel         = "DepthRight";
            part.ContainerAssembly = this;
            part.PartWidth         = m_subAssemblyDepth - (0.9375m + 2.025m);
            part.PartLength        = m_subAssemblyHieght - (0.9375m * 2.0m);

            m_parts.Add(part);



            #endregion

            #region Seal/Weatherstripping


            decimal peri = Functions.Perimeter(m_subAssemblyHieght, m_subAssemblyDepth);
            peri += Functions.Perimeter(m_subAssemblyHieght, m_subAssemblyWidth);

            peri -= (m_subAssemblyHieght * 2.0m);

            //Glazing Seals
            part = new Part(2772, "Glazing Seal", this, 2, peri);
            part.PartGroupType = "Seal-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            #endregion

            #region Hardware


            // Braces
            part                   = new Part(1117);
            part.Qnty              = 12;
            part.PartGroupType     = "Hardware-Parts";
            part.ContainerAssembly = this;
            part.FunctionalName    = "Braces";
            part.PartLabel         = "";

            m_parts.Add(part);



            #endregion

            #region Labor

            part = new LPart("Design", this, 4.0m, 80.0m);
            m_parts.Add(part);
            //Measure: Collect Information on Sizes from Contractor: Provide Information for Approval: Samples Correspondence: Ordering: Supervision

            part = new LPart("Draft", this, 3.0m, 80.0m);
            m_parts.Add(part);
            //Typical Drawings: Supervision

            part = new LPart("MetalHours", this, 10.0m, 80.0m);
            m_parts.Add(part);
            //1 Recieve: 1 Handle: 1 CutFrame: 1 CutStop: 1.5 Machine: 1.5 HardwarePrep: 1 MountHardware: 2 Weld:

            part = new LPart("FinishHours", this, 4.0m, 80.0m);
            m_parts.Add(part);
            //2 LinegrainSand: 2 Finish

            part = new LPart("PatinaMat", this, this.m_perimeter, 0.41m);
            m_parts.Add(part);
            //$0.41 per inch

            part = new LPart("GlazingHours", this, (this.Area * 0.1m) + 4.5m, 80.0m);
            m_parts.Add(part);
            //.5 Recieve: 1.0 InspectReject: .5 StoreHandle: 1.0 GlazeShimCalk: .5 SetGlassStop: 05 InsertGasket

            part = new LPart("Prehang", this, (this.Area * 0.1m) + 3.0m, 80.0m);
            m_parts.Add(part);
            //2 Fit Sash into Frame: 1 Mount Weather StripSeals

            part = new LPart("Stage", this, 1.0m, 80.0m);
            m_parts.Add(part);
            //1 Stage

            part = new LPart("Load", this, 1.0m, 80.0m);
            m_parts.Add(part);
            //1 Load


            #endregion
        }
コード例 #15
0
        //Bill of Material
        public override void Build()
        {
            Part   part;
            string partleader = this.Parent.UnitID + "." + this.CreateID.ToString();

            decimal pweight = FrameWorks.Functions.PanelWieghtS2000(m_subAssemblyWidth, m_subAssemblyHieght);

            string labelStileR  = string.Empty;
            string labelStileL  = string.Empty;
            string labelTopRail = string.Empty;
            string labelBotRail = string.Empty;



            //Fuction for Arched Top Rail/Stop
            decimal arcLength = FrameWorks.Functions.ArcLength(Convert.ToDouble(m_subAssemblyWidth), Convert.ToDouble(m_subAssemblyDepth));



            #region Frame


            // FullArchHead ^^
            part = new Part(3395, "FullArchHead", this, 1, arcLength + strechGrip * 2.0m);
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "1)MiterEnds";

            m_parts.Add(part);



            // JambL
            part = new Part(3395, "JambL", this, 1, m_subAssemblyHieght - m_subAssemblyDepth);
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "1)MiterEnds";

            m_parts.Add(part);



            // JambR
            part = new Part(3395, "JambR", this, 1, m_subAssemblyHieght - m_subAssemblyDepth);
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "1)MiterEnds";

            m_parts.Add(part);


            // Sill ||
            part = new Part(3395, "Sill", this, 1, m_subAssemblyWidth);
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "1)MiterEnds";

            m_parts.Add(part);



            #endregion


            #region Muntins



            // Vertical Muntins 3
            for (int i = 0; i < 3; i++)
            {
                // MuntVert
                part = new Part(3401, "MuntVert", this, 1, (m_subAssemblyHieght - 2 * stopInset));
                part.PartGroupType = "Muntins";
                part.PartLabel     = "";

                m_parts.Add(part);
            }



            #endregion


            #region Stops



            // FullArchStop4 ^^
            part = new Part(3396, "FullArchStop4", this, 1, arcLength - (stopInset) + (2.0m * strechGrip));
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "1)MiterEnds";

            m_parts.Add(part);



            // StopOut2
            for (int i = 0; i < 2; i++)
            {
                part = new Part(3396, "StopOut2", this, 1, m_subAssemblyHieght - m_subAssemblyDepth - (2.0m * stopInset));
                part.PartGroupType = "Frame-Parts";
                part.PartLabel     = "1)MiterEnds";

                m_parts.Add(part);
            }



            // StopMid6
            for (int i = 0; i < 6; i++)
            {
                part = new Part(3396, "StopMid6", this, 1, m_subAssemblyHieght - (2.0m * stopInset));
                part.PartGroupType = "Frame-Parts";
                part.PartLabel     = "1)MiterEnds";

                m_parts.Add(part);
            }



            // StopSill4 ||
            decimal stopLengthH = ((m_subAssemblyWidth - (stopInset * 2.0m)) - (muntThick * 3.0m)) / 4;

            for (int i = 0; i < 4; i++)
            {
                string crap;
                crap = FrameWorks.Functions.StopWeepMachining(stopLengthH);
                part = new Part(3396, "StopSill4", this, 1, stopLengthH);
                part.PartGroupType = "Frame-Parts";
                part.PartLabel     = "1) Miter Ends" + "\r\n" +
                                     "2)" + crap;

                m_parts.Add(part);
            }


            #endregion


            #region Glass

            for (int i = 0; i < 4; i++)
            {
                //Four Glass Panels

                part = new Part(3392);

                part.FunctionalName    = "PatternGlass4";
                part.PartGroupType     = "Glass-Parts";
                part.Qnty              = 1;
                part.ContainerAssembly = this;

                part.PartWidth  = (m_subAssemblyWidth - glassMuntGap * 3.0m - glassFrameGap * 2.0m) / 4.0m;
                part.PartLength = m_subAssemblyHieght - (glassFrameGap * 2.0m);

                m_parts.Add(part);
            }


            #endregion


            #region GlazingSeal


            decimal peri = FrameWorks.Functions.Perimeter(m_subAssemblyHieght, m_subAssemblyWidth);


            //Glazing Seals
            part = new Part(2772, "Glazing Seal", this, 1, peri * 4);
            part.PartGroupType = "GlazingSeal-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            #endregion


            #region Hardware


            #endregion


            #region Labor

            part = new LPart("Design", this, 4.0m, 80.0m);
            m_parts.Add(part);
            // Measure: Collect Information on Sizes from Contractor:
            // Provide Information for Approval:
            // Samples Correspondence: Ordering: Supervision

            part = new LPart("Draft", this, 3.0m, 80.0m);
            m_parts.Add(part);
            //Typical Drawings: Supervision

            part = new LPart("MetalHours", this, 8.0m, 80.0m);
            m_parts.Add(part);
            //1 Receive: 1 Handle: 1 Cut: 1 Machine: 2 Weld & Assemble: 1 Hardware Prep: 1 NailFin

            part = new LPart("GlazingHours", this, (this.Area * 0.1m) + 4.5m, 80.0m);
            m_parts.Add(part);
            //.5 Recieve: 1.0 InspectReject: .5 StoreHandle: 1.0 GlazeShimCalk: .5 SetGlassStop: 05 InsertGasket

            part = new LPart("FinishHours", this, 4.0m, 80.0m);
            m_parts.Add(part);
            //2 SandLineGrain: 2 Finish

            part = new LPart("Stage", this, 0.5m, 80.0m);
            m_parts.Add(part);
            //.5 Stage

            part = new LPart("Load", this, 1.0m, 80.0m);
            m_parts.Add(part);
            //1 Load



            #endregion
        }
コード例 #16
0
        //Bill of Material
        public override void Build()
        {
            Part part;


            #region Frame-Parts

            // JambL <<--
            part = new Part(801, "JambL", this, 1, m_subAssemblyHieght);
            part.PartGroupType = "Frame";
            part.PartLabel     = "1)MiterEnds";
            m_parts.Add(part);

            // JambR -->>
            part = new Part(801, "JambR", this, 1, m_subAssemblyHieght);
            part.PartGroupType = "Frame";
            part.PartLabel     = "1)MiterEnds";
            m_parts.Add(part);

            // Head ^^
            part = new Part(801, "Head", this, 1, m_subAssemblyWidth);
            part.PartGroupType = "Frame";
            part.PartLabel     = "1)MiterEnds";
            m_parts.Add(part);

            // Sill ||
            part = new Part(801, "Sill", this, 1, m_subAssemblyWidth);
            part.PartGroupType = "Frame";
            part.PartLabel     = "1)MiterEnds";
            m_parts.Add(part);

            #endregion

            #region HardWare

            // PivotHingeBacker
            part = new Part(2551, "BkrHgPvt", this, 2, 0.0m);
            part.PartGroupType = "Hardware";
            part.PartLabel     = "";
            m_parts.Add(part);

            if (m_subAssemblyHieght > 72)
            {
                // PivotHingeBacker
                part = new Part(2551, "IntrmdPivHngBkr", this, 1, m_subAssemblyHieght);
                part.PartGroupType = "Hardware";
                part.PartLabel     = "";
                m_parts.Add(part);
            }

            // BRNZ L-BRACE
            part = new Part(1115, "BRNZ L-BRACE", this, 8, 0.0m);
            part.PartGroupType = "Hardware";
            part.PartLabel     = "";
            m_parts.Add(part);

            #endregion

            #region Labor

            part = new LPart("MetalHours", this, 8.0m, 80.0m);
            m_parts.Add(part);
            //1 Receive: 1 Handle: 1 Cut: 1 Machine: 2 Weld & Assemble: 1 Hardware Prep: 1 NailFin

            part = new LPart("FinishHours", this, 4.0m, 80.0m);
            m_parts.Add(part);
            //2 SandLineGrain: 2 Finish

            #endregion
        }
コード例 #17
0
ファイル: WindowFrame.cs プロジェクト: linusaurus/Knoodle-3.0
        //Bill of Material
        public override void Build()
        {
            Part part;

            #region Frame

            //////////////////////////////////////////////////////////////////////////////

            // JambL <<--
            part = new Part(801, "JambL", this, 1, m_subAssemblyHieght);
            part.PartGroupType = "Frame";
            part.PartLabel     = "1)MiterEnds";
            m_parts.Add(part);

            //////////////////////////////////////////////////////////////////////////////

            // JambR -->>
            part = new Part(801, "JambR", this, 1, m_subAssemblyHieght);
            part.PartGroupType = "Frame";
            part.PartLabel     = "1)MiterEnds";
            m_parts.Add(part);

            //////////////////////////////////////////////////////////////////////////////

            // Head ^^
            part = new Part(801, "Head", this, 1, m_subAssemblyWidth);
            part.PartGroupType = "Frame";
            part.PartLabel     = "1)MiterEnds";
            m_parts.Add(part);

            //////////////////////////////////////////////////////////////////////////////

            // Sill ||
            part = new Part(801, "Sill", this, 1, m_subAssemblyWidth);
            part.PartGroupType = "Frame";
            part.PartLabel     = "1)MiterEnds";
            m_parts.Add(part);

            //////////////////////////////////////////////////////////////////////////////

            #endregion

            #region Hardware

            //////////////////////////////////////////////////////////////////////////////

            // BRNZ L-BRACE
            part = new Part(1115, "BRNZ L-BRACE", this, 8, 0.0m);
            part.PartGroupType = "Hardware";
            part.PartLabel     = "";
            m_parts.Add(part);

            //////////////////////////////////////////////////////////////////////////////

            // Hinge L
            part = new Part(FrameWorks.Functions.AwningHinge(m_subAssemblyHieght, 'L'), "L-Hinge", this, 1, 0.0m);
            part.PartGroupType = "Hardware";
            part.PartLabel     = "";
            m_parts.Add(part);

            //////////////////////////////////////////////////////////////////////////////

            // Hinge R
            part = new Part(FrameWorks.Functions.AwningHinge(m_subAssemblyHieght, 'R'), "R-Hinge", this, 1, 0.0m);
            part.PartGroupType = "Hardware";
            part.PartLabel     = "";
            m_parts.Add(part);

            //////////////////////////////////////////////////////////////////////////////

            #endregion

            #region Labor

            //////////////////////////////////////////////////////////////////////////////

            part = new LPart("MetalHours", this, 8.0m, 80.0m);
            m_parts.Add(part);
            //1 Receive: 1 Handle: 1 Cut: 1 Machine: 2 Weld & Assemble: 1 Hardware Prep: 1 NailFin

            part = new LPart("FinishHours", this, 4.0m, 80.0m);
            m_parts.Add(part);
            //2 SandLineGrain: 2 Finish

            //////////////////////////////////////////////////////////////////////////////

            #endregion
        }
コード例 #18
0
        //Bill of Material
        public override void Build()
        {
            Part part;

            string partleader = this.Parent.UnitID + "." + this.CreateID.ToString();

            decimal pweight = FrameWorks.Functions.PanelWieghtS2000(m_subAssemblyWidth, m_subAssemblyHieght);

            string labelStileR  = string.Empty;
            string labelStileL  = string.Empty;
            string labelTopRail = string.Empty;
            string labelBotRail = string.Empty;


            #region FrameAngleDoor



            // FrmAglExtL <<--
            part = new Part(3063, "FrmAglExtL", this, 1, m_subAssemblyHieght);
            part.PartGroupType = "FrameAngleDoor-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = "";

            m_parts.Add(part);


            // FrmAglExtR -->
            part = new Part(3063, "FrmAglExtR", this, 1, m_subAssemblyHieght);
            part.PartGroupType = "FrameAngleDoor-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = "";

            m_parts.Add(part);


            // FrmAglExtH ^^
            part = new Part(3063, "FrmAglExtH", this, 1, m_subAssemblyWidth);
            part.PartGroupType = "FrameAngleDoor-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = "";

            m_parts.Add(part);


            #endregion


            #region FrameFlatDoorInt



            // FrmFltIntL <<--
            part = new Part(3078, "FrmFltIntL", this, 1, m_subAssemblyHieght);
            part.PartGroupType = "FrameFlatDoorInt-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = "";

            m_parts.Add(part);


            // FrmFltIntR -->
            part = new Part(3078, "FrmFltIntR", this, 1, m_subAssemblyHieght);
            part.PartGroupType = "FrameFlatDoorInt-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = "";

            m_parts.Add(part);


            // FrmFltIntH ^^
            part = new Part(3078, "FrmFltIntH", this, 1, m_subAssemblyWidth);
            part.PartGroupType = "FrameFlatDoorInt-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = "";

            m_parts.Add(part);



            #endregion


            #region Hardware



            // HingePrep
            part = new Part(911, "HingePrep", this, 1, 0.0m);
            part.PartGroupType  = "Hardware-Parts";
            part.PartLabel      = "";
            part.PartIdentifier = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);


            // LatchPrep
            part = new Part(911, "LatchPrep", this, 1, 0.0m);
            part.PartGroupType  = "Hardware-Parts";
            part.PartLabel      = "";
            part.PartIdentifier = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);



            #endregion


            #region Labor

            part = new LPart("MetalHours", this, 8.0m, 80.0m);
            m_parts.Add(part);
            //1 Receive: 1 Handle: 1 Cut: 1 Machine: 2 Bond & Assemble: 1 Hardware Prep: 1 NailFin

            part = new LPart("FinishHours", this, 4.0m, 80.0m);
            m_parts.Add(part);
            //2 SandLineGrain: 2 Finish



            #endregion
        }
コード例 #19
0
        //Bill of Material
        public override void Build()
        {
            Part part;

            System3000.Helper.SliderOXXHelper helper = new System3000.Helper.SliderOXXHelper(3, 2, m_subAssemblyWidth);



            #region Frame


            // TopTrack
            part = new Part(1416, "TopTrack", this, 1, m_subAssemblyWidth);
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "";
            m_parts.Add(part);

            // HeadHanger
            part = new Part(2096, "HeadHanger", this, 2, m_subAssemblyWidth);
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "";
            m_parts.Add(part);

            // SplitHead
            part = new Part(799, "SplitHead", this, 2, m_subAssemblyWidth + 0.03125m + 0.03125m);
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "";
            m_parts.Add(part);

            // PVC EndCapHanger
            part = new Part(2319, "EndCapHanger", this, 2, 3.125m);
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "";
            m_parts.Add(part);

            // EndCap
            part = new Part(2321, "EndCap", this, 2, 3.125m);
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);



            #endregion

            #region Slot Drain



            // SlotDrain
            part = new Part(215, "SlotDrain", this, 1, m_subAssemblyWidth + 1.09375m + 1.09375m);
            part.PartGroupType = "Drain-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            // DrainCaps
            part = new Part(2328, "DrainCaps", this, 2, 0.0m);
            part.PartGroupType = "Drain-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            // DrainBlocks
            part = new Part(2085, "DrainBlocks", this, 2, 0.0m);
            part.PartGroupType = "Drain-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);



            #endregion

            #region Pile Seals


            // PileSH
            part = new Part(978, "PileSH", this, 2, m_subAssemblyWidth + 0.03125m + 0.03125m);
            part.PartGroupType = "Pile-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            // PileSD
            part = new Part(978, "PileSD", this, 2, m_subAssemblyWidth + 1.09375m + 1.09375m);
            part.PartGroupType = "Pile-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            // PileEC
            part = new Part(978, "EndCapPile", this, 2, 3.125m);
            part.PartGroupType = "Pile-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);



            #endregion

            #region Hardware


            // CornerBrace
            part = new Part(2313, "CornerBrace", this, 4, 0.0m);
            part.PartGroupType = "Hardware-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            // BHScrews
            part = new Part(1439, "BHScrews", this, 8, 0.0m);
            part.PartGroupType = "Hardware-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            #endregion

            #region Labor

            part = new LPart("MetalHours", this, 9.0m, 80.0m);
            m_parts.Add(part);
            //1 Receive: 1 Handle: 1.5 Cut: 1.5 Machine: 2 Weld & Assemble: 1 Hardware Prep: 1 NailFin

            part = new LPart("FinishHours", this, 4.0m, 80.0m);
            m_parts.Add(part);
            //2 SandLineGrain: 2 Finish

            part = new LPart("PaintAno", this, (this.Area * 0.05m) + 0.0005m, 40.0m);
            m_parts.Add(part);
            // .0005 hours + 0.05 Area

            #endregion
        }
コード例 #20
0
        //Bill of Material
        public override void Build()
        {
            Part part;

            System3000.Helper.SliderPXHelper helper = new System3000.Helper.SliderPXHelper(1, 1, m_subAssemblyWidth);



            #region Frame

            // TopTrack
            part = new Part(1416, "TopTrack", this, 1, helper.TopTrackLength);
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);

            // HeadHanger
            part = new Part(2096, "HeadHanger", this, 2, helper.TopTrackLength);
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);

            // SplitHead
            part = new Part(799, "SplitHead", this, 2, helper.TopTrackLength + .03125m - 0.4375m);
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);

            // PVCStrikeJamb
            part = new Part(2304, "PVCStrikeJamb", this, 1, m_subAssemblyHieght + 2.901m);
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);

            // JambHanger
            part = new Part(2098, "JambHanger", this, 2, m_subAssemblyHieght + 2.901m);
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);

            // StrikeJamb
            part = new Part(799, "StrikeJamb", this, 2, m_subAssemblyHieght + 2.901m);
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);

            // PVC EndCapHanger
            part = new Part(2319, "EndCapHanger", this, 1, 0.0m);
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);

            // EndCap
            part = new Part(2321, "EndCap", this, 1, 0.0m);
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            #endregion

            #region Slot Drain



            // SlotDrain
            part = new Part(215, "SlotDrain", this, 1, helper.FloorTrackLength);
            part.PartGroupType = "Drain-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            // DrainCaps
            part = new Part(2328, "DrainCaps", this, 2, 0.0m);
            part.PartGroupType = "Drain-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            // DrainBlocks
            part = new Part(2085, "DrainBlocks", this, 2, 0.0m);
            part.PartGroupType = "Drain-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);



            #endregion

            #region Weatherseals


            // PileSH
            part = new Part(978, "PileSH", this, 2, helper.TopTrackLength);
            part.PartGroupType = "Weatherseals-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);

            // PileSJ
            part = new Part(978, "PileSJ", this, 2, m_subAssemblyHieght);
            part.PartGroupType = "Weatherseals-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            // PileSD
            part = new Part(978, "PileSD", this, 2, helper.FloorTrackLength);
            part.PartGroupType = "Weatherseals-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            // PileEC
            part = new Part(978, "EndCapPile", this, 1, 3.125m);
            part.PartGroupType = "Weatherseals-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);



            #endregion

            #region Hardware


            // CornerBrace
            part = new Part(2313, "CornerBrace", this, 2, 0.0m);
            part.PartGroupType = "Hardware-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            // BHScrews
            part = new Part(1439, "BHScrews", this, 4, 0.0m);
            part.PartGroupType = "Hardware-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);



            #endregion

            #region Labor

            part = new LPart("MetalHours", this, 9.0m, 80.0m);
            m_parts.Add(part);
            //1 Receive: 1 Handle: 1.5 Cut: 1.5 Machine: 2 Weld & Assemble: 1 Hardware Prep: 1 NailFin

            part = new LPart("FinishHours", this, 4.0m, 80.0m);
            m_parts.Add(part);
            //2 SandLineGrain: 2 Finish

            #endregion
        }
コード例 #21
0
        //Bill of Material
        public override void Build()
        {
            Part part;

            System3000.Helper.SliderOXXHelper helper = new System3000.Helper.SliderOXXHelper(3, 3, m_subAssemblyWidth);


            #region Frame

            // TopTrack
            part = new Part(1416, "TopTrack", this, 1, m_subAssemblyWidth);
            part.PartGroupType = "Frame";
            part.PartLabel     = "";

            m_parts.Add(part);

            // HeadHanger
            part = new Part(2096, "HeadHanger", this, 2, m_subAssemblyWidth);
            part.PartGroupType = "Frame";
            part.PartLabel     = "";

            m_parts.Add(part);

            // SplitHead
            part = new Part(810, "SplitHead", this, 2, m_subAssemblyWidth - 0.4375m);
            part.PartGroupType = "Frame";
            part.PartLabel     = "";

            m_parts.Add(part);

            // StrikeJamb
            part = new Part(2304, "StrikeJamb", this, 1, m_subAssemblyHieght + 2.901m);
            part.PartGroupType = "Frame";
            part.PartLabel     = "";
            m_parts.Add(part);

            // JambHanger
            part = new Part(2098, "JambHanger", this, 2, m_subAssemblyHieght + 2.901m);
            part.PartGroupType = "Frame";
            part.PartLabel     = "";
            m_parts.Add(part);

            // SplitJamb
            part = new Part(810, "SplitJamb", this, 2, m_subAssemblyHieght);
            part.PartGroupType = "Frame";
            part.PartLabel     = "";
            m_parts.Add(part);

            // PVC EndCapHanger
            part = new Part(2319, "EndCapHanger", this, 1, 0.0m);
            part.PartGroupType = "Frame";
            part.PartLabel     = "";
            m_parts.Add(part);

            // EndCap
            part = new Part(2324, "EndCap", this, 1, 0.0m);
            part.PartGroupType = "Frame";
            part.PartLabel     = "";
            m_parts.Add(part);

            #endregion

            #region Access Panel

            // AccessSupport
            part = new Part(2398, "AccessSupport", this, 2, 0.0m);
            part.PartGroupType = "Access";
            part.PartLabel     = "";
            m_parts.Add(part);

            // CoverPlate
            part = new Part(2398, "CoverPlate", this, 1, 0.0m);
            part.PartGroupType = "Access";
            part.PartLabel     = "";
            m_parts.Add(part);

            #endregion

            #region Slot Drain

            // SlotDrain
            part = new Part(215, "SlotDrain", this, 1, m_subAssemblyWidth + 1.0625m + 1.1875m);
            part.PartGroupType = "Drain";
            part.PartLabel     = "";
            m_parts.Add(part);

            // DrainCaps
            part = new Part(2328, "DrainCaps", this, 2, 0.0m);
            part.PartGroupType = "Drain";
            part.PartLabel     = "";
            m_parts.Add(part);

            // DrainBlocks
            part = new Part(2085, "DrainBlocks", this, 2, 0.0m);
            part.PartGroupType = "Drain";
            part.PartLabel     = "";
            m_parts.Add(part);

            #endregion

            #region Pile Seals

            // PileSH
            part = new Part(978, "PileSH", this, 2, m_subAssemblyWidth - 0.4375m);
            part.PartGroupType = "Pile";
            part.PartLabel     = "";
            m_parts.Add(part);

            // PileSJ
            part = new Part(978, "PileSJ", this, 2, m_subAssemblyHieght);
            part.PartGroupType = "Pile";
            part.PartLabel     = "";
            m_parts.Add(part);

            // PileSD
            part = new Part(978, "PileSD", this, 2, m_subAssemblyWidth + 1.0625m + 1.1875m);
            part.PartGroupType = "Pile";
            part.PartLabel     = "";
            m_parts.Add(part);

            // PileEC
            part = new Part(978, "EndCapPile", this, 1, 3.125m);
            part.PartGroupType = "Pile";
            part.PartLabel     = "";
            m_parts.Add(part);

            #endregion

            #region Hardware

            // CornerBrace
            part = new Part(2313, "CornerBrace", this, 8, 0.0m);
            part.PartGroupType = "Hardware";
            part.PartLabel     = "";
            m_parts.Add(part);

            // BHScrews
            part = new Part(1439, "BHScrews", this, 8, 0.0m);
            part.PartGroupType = "Hardware";
            part.PartLabel     = "";
            m_parts.Add(part);

            #endregion

            #region Labor

            part = new LPart("MetalHours", this, 9.0m, 80.0m);
            m_parts.Add(part);
            //1 Receive: 1 Handle: 1.5 Cut: 1.5 Machine: 2 Weld & Assemble: 1 Hardware Prep: 1 NailFin

            part = new LPart("FinishHours", this, 4.0m, 80.0m);
            m_parts.Add(part);
            //2 SandLineGrain: 2 Finish

            #endregion
        }
コード例 #22
0
ファイル: Fixed.cs プロジェクト: linusaurus/Knoodle-3.0
        //Bill of Material
        public override void Build()
        {
            Part   part;
            string partleader = this.Parent.UnitID + "." + this.CreateID.ToString();

            #region Frame


            // JambRight
            part                   = new Part(804);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght;
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "JambR";
            part.PartLabel         = "";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            // JambLeft
            part                   = new Part(804);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght;
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "JambL";
            part.PartLabel         = "";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            // Head
            part                   = new Part(804);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth;
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "Head";
            part.PartLabel         = "";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            // Sill
            part                   = new Part(804);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth;
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "Sill";
            part.PartLabel         = "";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            // Braces
            part                   = new Part(1114);
            part.Qnty              = 8;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth;
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "Braces";
            part.PartLabel         = "";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            #endregion

            #region Stops

            // StopRight
            part                   = new Part(1114);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght - (0.625m * 2.0m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopRight";
            part.PartLabel         = "";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            // StopLeft
            part                   = new Part(1114);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght - (0.625m * 2.0m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopLeft";
            part.PartLabel         = "";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            // StopTop
            part                   = new Part(1114);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth - (0.625m * 2.0m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopTop";
            part.PartLabel         = "";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            // StopBot
            part                   = new Part(1114);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth - (0.625m * 2.0m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopBot";
            part.PartLabel         = "";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            #endregion

            #region Spacers

            // SpacerHori
            part                            = new Part(-1);
            part.Qnty                       = 2;
            part.FunctionalName             = "Horizontal Spacer";
            part.PartGroupType              = "Spacers-Parts";
            part.Source.MaterialDescription = "Alum U-Channel";
            part.PartLabel                  = "";
            part.Source.MaterialName        = "Aluminum";
            part.ContainerAssembly          = this;
            part.PartWidth                  = 0.0m;
            part.PartLength                 = m_subAssemblyWidth - (1.375m * 2.0m);
            part.PartIdentifier             = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);

            // SpacerVert
            part                            = new Part(-1);
            part.Qnty                       = 2;
            part.FunctionalName             = "Vertical Spacer";
            part.PartGroupType              = "Spacers-Parts";
            part.Source.MaterialDescription = "Alum U-Channel";
            part.PartLabel                  = "";
            part.Source.MaterialName        = "Aluminum";
            part.ContainerAssembly          = this;
            part.PartWidth                  = 0.0m;
            part.PartLength                 = m_subAssemblyWidth - (0.788m * 2.0m);
            part.PartIdentifier             = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);


            #endregion

            #region Glass


            //Glass Panel
            part = new Part(-1);
            part.FunctionalName             = "Glass";
            part.PartGroupType              = "Glass-Parts";
            part.Qnty                       = 1;
            part.Source.MaterialDescription = "0.5 Insulated Glass";
            part.PartName                   = "PartName";
            part.PartLabel                  = "Phantom Part";
            part.Source.MaterialName        = "0.5 IGU";
            part.ContainerAssembly          = this;

            part.PartWidth  = m_subAssemblyHieght - (0.913m * 2.0m);
            part.PartLength = m_subAssemblyWidth - (0.913m * 2.0m);
            //part.Source.UOM = (int)FrameWorks.UnitOfMeasure.Foot;

            part.PartIdentifier = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);



            #endregion

            #region Labor

            part = new LPart("Design", this, 4.0m, 80.0m);
            m_parts.Add(part);
            //Measure: Collect Information on Sizes from Contractor: Provide Information for Approval: Samples Correspondence: Ordering: Supervision

            part = new LPart("Draft", this, 3.0m, 80.0m);
            m_parts.Add(part);
            //Typical Drawings: Supervision

            part = new LPart("MetalHours", this, 8.0m, 80.0m);
            m_parts.Add(part);
            //1 Receive: 1 Handle: 1 Cut: 1 Machine: 2 Weld & Assemble: 1 Hardware Prep: 1 NailFin

            part = new LPart("GlazingHours", this, (this.Area * 0.1m) + 4.5m, 80.0m);
            m_parts.Add(part);
            //.5 Recieve: 1.0 InspectReject: .5 StoreHandle: 1.0 GlazeShimCalk: .5 SetGlassStop: 05 InsertGasket

            part = new LPart("FinishHours", this, 4.0m, 80.0m);
            m_parts.Add(part);
            //2 SandLineGrain: 2 Finish

            part = new LPart("Stage", this, 0.5m, 80.0m);
            m_parts.Add(part);
            //.5 Stage

            part = new LPart("Load", this, 1.0m, 80.0m);
            m_parts.Add(part);
            //1 Load


            #endregion
        }
コード例 #23
0
        //Bill of Material
        public override void Build()
        {
            Part part;



            #region Frame



            // JambRight -->>
            part                   = new Part(804);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght;
            part.FunctionalName    = "JambR";
            part.PartLabel         = "";

            m_parts.Add(part);



            // JambLeft <<--
            part                   = new Part(804);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght;
            part.FunctionalName    = "JambL";
            part.PartLabel         = "";

            m_parts.Add(part);



            // HeadLeft ^^
            part                   = new Part(804);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth;
            part.FunctionalName    = "HeadLeft";
            part.PartLabel         = "VMiter_L_HMiter_R";

            m_parts.Add(part);



            // HeadRight ^^
            part                   = new Part(804);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyDepth;
            part.FunctionalName    = "HeadRight";
            part.PartLabel         = "VMiter_R_HMiter_L";

            m_parts.Add(part);



            // SillLeft ||
            part                   = new Part(804);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth;
            part.FunctionalName    = "SillLeft";
            part.PartLabel         = "VMiter_L_HMiter_R";

            m_parts.Add(part);



            // SillRight ||
            part                   = new Part(804);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyDepth;
            part.FunctionalName    = "SillRight";
            part.PartLabel         = "VMiter_R_HMiter_L";

            m_parts.Add(part);



            // ExtCornerCover
            part                   = new Part(2799);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght - 1.375m * 2.0m;
            part.FunctionalName    = "ExtCornerCover";
            part.PartLabel         = "";

            m_parts.Add(part);



            // IntCornerCover
            part                   = new Part(2798);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght - 1.375m * 2.0m;
            part.FunctionalName    = "IntCornerCover";
            part.PartLabel         = "";

            m_parts.Add(part);



            #endregion

            #region Stop


            // StopRight

            part                   = new Part(809);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght - (0.625m * 2.0m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopRight";
            part.PartLabel         = "";

            m_parts.Add(part);



            // StopLeft

            part                   = new Part(809);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght - (0.625m * 2.0m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopLeft";
            part.PartLabel         = "";

            m_parts.Add(part);



            // StopTopLeft

            part                   = new Part(809);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth - 0.625m;
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopTopLeft";
            part.PartLabel         = "";

            m_parts.Add(part);



            // StopTopRight

            part                   = new Part(809);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyDepth - 0.625m;
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopTopRight";
            part.PartLabel         = "";

            m_parts.Add(part);



            // StopBotLeft

            string crap;
            crap                   = FrameWorks.Functions.StopWeepMachining(m_subAssemblyWidth - 0.0625m);
            part                   = new Part(809);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth - 0.625m;
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopBotLeft";
            part.PartLabel         = "1)MiterEnds" + "\r\n" +
                                     "2)" + crap;

            m_parts.Add(part);



            // StopBotRight


            crap                   = FrameWorks.Functions.StopWeepMachining(m_subAssemblyDepth - 0.0625m);
            part                   = new Part(809);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyDepth - 0.625m;
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopBotRight";
            part.PartLabel         = "1)MiterEnds" + "\r\n" +
                                     "2)" + crap;

            m_parts.Add(part);



            #endregion

            #region Glass


            //GlassPanelL

            part = new Part(2828);
            part.FunctionalName    = "GlassPanelL";
            part.PartGroupType     = "Glass-Parts";
            part.Qnty              = 1;
            part.PartName          = "PartName";
            part.PartLabel         = "";
            part.ContainerAssembly = this;
            part.PartWidth         = m_subAssemblyWidth - (0.9375m + 1.625m);
            part.PartLength        = m_subAssemblyHieght - (0.9375m * 2.0m);

            m_parts.Add(part);



            //GlassPanelR

            part = new Part(2828);
            part.FunctionalName    = "GlassPanelR";
            part.PartGroupType     = "Glass-Parts";
            part.Qnty              = 1;
            part.PartName          = "PartName";
            part.PartLabel         = "";
            part.ContainerAssembly = this;
            part.PartWidth         = m_subAssemblyDepth - (0.9375m + 1.625m);
            part.PartLength        = m_subAssemblyHieght - (0.9375m * 2.0m);

            m_parts.Add(part);



            #endregion

            #region Seal/Weatherstripping


            decimal peri = FrameWorks.Functions.Perimeter(m_subAssemblyHieght, m_subAssemblyDepth);
            peri += FrameWorks.Functions.Perimeter(m_subAssemblyHieght, m_subAssemblyWidth);

            peri -= (m_subAssemblyHieght * 2.0m);

            //Glazing Seals
            part = new Part(1819, "Glazing Seal", this, 2, peri);
            part.PartGroupType = "Seal-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            #endregion

            #region Hardware


            // Braces
            part                   = new Part(1117);
            part.Qnty              = 12;
            part.PartGroupType     = "Hardware-Parts";
            part.ContainerAssembly = this;
            part.FunctionalName    = "Braces";
            part.PartLabel         = "";

            m_parts.Add(part);



            #endregion

            #region Labor


            part = new LPart("Design", this, 4.0m, 80.0m);
            m_parts.Add(part);
            //Collect Information on Sizes: Measure: Provide Information for Approval: Order: Supervision

            part = new LPart("Draft", this, 3.0m, 80.0m);
            m_parts.Add(part);
            //Typical Drawings

            part = new LPart("MetalHours", this, 12.0m, 80.0m);
            m_parts.Add(part);
            //1 Recieve: 1 Handle: 1 CutSash: 1 CutGlassStop: 1.5 Machine: 1.5 Hardware Prep: 1 Mount Hardware: 4 Weld:

            part = new LPart("Finish", this, 4.0m, 80.0m);
            m_parts.Add(part);
            //2 Sand Linegrain: 2 Finish:

            part = new LPart("Glazing", this, (this.Area * .10m) + 4.5m, 80.0m);
            m_parts.Add(part);
            //0.5 Order: 0.5 Recieve: 1.0 Inspect/Reject: 0.5 Store/Handle: 0.5 SetGlass/Shim&Calk: 0.5 Set GlassStop: 0.5 GlazingSeals

            part = new LPart("Prehang", this, (this.Area * .10m) + 3.0m, 80.0m);
            m_parts.Add(part);
            //2 FitSash into Frame: 1 Mount Weather Strips/Seals

            part = new LPart("Stage", this, 1.0m, 80.0m);
            m_parts.Add(part);
            //1 Stage

            part = new LPart("Load", this, 1.0m, 80.0m);
            m_parts.Add(part);
            //1 Load


            #endregion
        }
コード例 #24
0
        //Bill of Material
        public override void Build()
        {
            Part part;

            decimal pweight = FrameWorks.Functions.PanelWieghtS2000(m_subAssemblyWidth, m_subAssemblyHieght);

            string labelStileR  = string.Empty;
            string labelStileL  = string.Empty;
            string labelTopRail = string.Empty;
            string labelBotRail = string.Empty;


            #region SashCoreAlum


            // SubStileL <<--
            part = new Part(3077, "SubStileL", this, 1, m_subAssemblyHieght - 2 * .375m);
            part.PartGroupType = "SashCoreAlum-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = labelStileL;

            m_parts.Add(part);


            // SubStileR -->>
            part = new Part(3077, "SubStileR", this, 1, m_subAssemblyHieght - 2 * .375m);
            part.PartGroupType = "SashCoreAlum-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = labelStileR;

            m_parts.Add(part);


            // SubRailT ^^
            part = new Part(3077, "SubRailT", this, 1, m_subAssemblyWidth - 2 * .375m);
            part.PartGroupType = "SashCoreAlum-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = labelTopRail;

            m_parts.Add(part);


            // SubRailB ||
            part = new Part(3077, "SubRailB", this, 1, m_subAssemblyWidth - 2 * .375m);
            part.PartGroupType = "SashCoreAlum-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = labelBotRail;

            m_parts.Add(part);


            #endregion

            #region ExtCladSS

            // StileExtL <<--
            part = new Part(3094, "StileExtL", this, 1, m_subAssemblyHieght);
            part.PartGroupType = "ExtCladSS-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = labelStileL;

            m_parts.Add(part);


            // StileExtR -->>
            part = new Part(3094, "StileExtR", this, 1, m_subAssemblyHieght);
            part.PartGroupType = "ExtCladSS-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = labelStileR;

            m_parts.Add(part);


            // RailExtT ^^
            part = new Part(3094, "RailExtT", this, 1, m_subAssemblyWidth);
            part.PartGroupType = "ExtCladSS-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = labelTopRail;

            m_parts.Add(part);


            // RailExtB ||
            part = new Part(3094, "RailExtB", this, 1, m_subAssemblyWidth);
            part.PartGroupType = "ExtCladSS-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = labelBotRail;

            m_parts.Add(part);


            #endregion

            #region IntCladSS


            // StileIntL <<--
            part = new Part(3095, "StileIntL", this, 1, m_subAssemblyHieght - 2 * .75m);
            part.PartGroupType = "IntCladSS-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = labelStileL;

            m_parts.Add(part);


            // StileIntR -->>
            part = new Part(3095, "StileIntR", this, 1, m_subAssemblyHieght - 2 * .75m);
            part.PartGroupType = "IntCladSS-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = labelStileR;

            m_parts.Add(part);


            // RailIntT ^^
            part = new Part(3095, "RailIntT", this, 1, m_subAssemblyWidth - 2 * .75m);
            part.PartGroupType = "IntCladSS-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = labelTopRail;

            m_parts.Add(part);


            // RailIntB ||
            part = new Part(3095, "RailIntB", this, 1, m_subAssemblyWidth - 2 * .75m);
            part.PartGroupType = "IntCladSS-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = labelBotRail;

            m_parts.Add(part);


            #endregion

            #region HDPEdge


            part = new Part(3389, "HDPEdgeLeft", this, 1, m_subAssemblyHieght);
            part.PartGroupType = "HDPEdge-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);

            part = new Part(3389, "HDPEdgeRight", this, 1, m_subAssemblyHieght);
            part.PartGroupType = "HDPEdge-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);

            part = new Part(3389, "HDPEdgeTop", this, 1, m_subAssemblyWidth);
            part.PartGroupType = "HDPEdge-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);

            part = new Part(3389, "HDPEdgeBottom", this, 1, m_subAssemblyWidth);
            part.PartGroupType = "HDPEdge-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            #endregion

            #region Glass

            //Glass Panel
            part = new Part(3122);
            part.FunctionalName    = "Glass";
            part.PartGroupType     = "Glass-Parts";
            part.Qnty              = 1;
            part.PartName          = "PartName";
            part.PartLabel         = "";
            part.ContainerAssembly = this;
            part.PartWidth         = m_subAssemblyWidth - (1.46875m * 2.0m);
            part.PartLength        = m_subAssemblyHieght - (1.46875m * 2.0m);

            m_parts.Add(part);

            #endregion

            #region Labor

            part = new LPart("Design", this, 4.0m, 80.0m);
            m_parts.Add(part);
            // Measure: Collect Information on Sizes from Contractor:
            // Provide Information for Approval:
            // Samples Correspondence: Ordering: Supervision

            part = new LPart("Draft", this, 3.0m, 80.0m);
            m_parts.Add(part);
            //Typical Drawings: Supervision

            part = new LPart("MetalHours", this, 10.0m, 80.0m);
            m_parts.Add(part);
            //1 Recieve: 1 Handle: 1 CutFrame: 1 CutStop: 1.5 Machine: 1.5 HardwarePrep: 1 MountHardware: 2 Weld:

            part = new LPart("FinishHours", this, 4.0m, 80.0m);
            m_parts.Add(part);
            //2 LinegrainSand: 2 Finish

            part = new LPart("PatinaMat", this, this.m_perimeter, 1.62m);
            m_parts.Add(part);
            //$1.62 per inch

            part = new LPart("GlazingHours", this, (this.Area * 0.1m) + 4.5m, 80.0m);
            m_parts.Add(part);
            //.5 Recieve: 1.0 InspectReject: .5 StoreHandle: 1.0 GlazeShimCalk: .5 SetGlassStop: 05 InsertGasket

            part = new LPart("Prehang", this, (this.Area * 0.1m) + 3.0m, 80.0m);
            m_parts.Add(part);
            //2 Fit Sash into Frame: 1 Mount Weather StripSeals

            part = new LPart("Stage", this, 0.5m, 80.0m);
            m_parts.Add(part);
            //.5 Stage

            part = new LPart("Load", this, 0.5m, 80.0m);
            m_parts.Add(part);
            //.5 Load

            #endregion
        }
コード例 #25
0
        //Bill of Material
        public override void Build()
        {
            Part part;


            #region Frame


            // JambRight -->>
            part                   = new Part(804);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght;
            part.FunctionalName    = "JambR";
            part.PartLabel         = "";

            m_parts.Add(part);

            // JambLeft <<--
            part                   = new Part(804);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght;
            part.FunctionalName    = "JambL";
            part.PartLabel         = "";

            m_parts.Add(part);

            // Head ^^
            part                   = new Part(804);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth;
            part.FunctionalName    = "Head";
            part.PartLabel         = "";

            m_parts.Add(part);

            // Sill ||
            part                   = new Part(804);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth;
            part.FunctionalName    = "Sill";
            part.PartLabel         = "";

            m_parts.Add(part);

            // Braces
            part                   = new Part(1117);
            part.Qnty              = 8;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.FunctionalName    = "Braces";
            part.PartLabel         = "";

            m_parts.Add(part);



            #endregion

            #region Stops

            // StopRight
            part                   = new Part(809);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght - (0.625m * 2.0m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopRight";
            part.PartLabel         = "Miter Ends";

            m_parts.Add(part);

            // StopLeft
            part                   = new Part(809);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght - (0.625m * 2.0m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopLeft";
            part.PartLabel         = "Miter Ends";

            m_parts.Add(part);

            // StopTop
            part                   = new Part(809);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth - (0.625m * 2.0m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopTop";
            part.PartLabel         = "Miter Ends";

            m_parts.Add(part);

            // StopBot
            string crap;
            crap                   = FrameWorks.Functions.StopWeepMachining(m_subAssemblyWidth - 2.0m * .625m);
            part                   = new Part(809);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth - (0.625m * 2.0m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopBot";
            part.PartLabel         = "1) Miter Ends" + "\r\n" +
                                     "2)" + crap;

            m_parts.Add(part);

            #endregion

            #region Glass


            //Glass Panel

            part = new Part(2828);
            part.FunctionalName    = "Glass";
            part.PartGroupType     = "Glass-Parts";
            part.Qnty              = 1;
            part.PartName          = "PartName";
            part.PartLabel         = "";
            part.ContainerAssembly = this;
            part.PartWidth         = m_subAssemblyWidth - (0.9375m * 2.0m);
            part.PartLength        = m_subAssemblyHieght - (0.9375m * 2.0m);

            m_parts.Add(part);



            #endregion

            #region Muntin



            // Muntin Bar ||
            part = new Part(1862, "Muntin Bar-V", this, 2, m_subAssemblyHieght - 2.0m * 1.375m);
            part.PartGroupType = "Muntin-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);



            #endregion

            #region FoamTape


            // Foam Tape Vertical ||  #2808
            part = new Part(2808, "FoamTape", this, 2, m_subAssemblyHieght - 2.0m * 1.375m);
            part.PartGroupType = "FoamTape-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            #endregion

            #region Seal/Weatherstripping


            decimal peri = FrameWorks.Functions.Perimeter(m_subAssemblyHieght, m_subAssemblyDepth);
            peri += FrameWorks.Functions.Perimeter(m_subAssemblyHieght, m_subAssemblyWidth);

            peri -= (m_subAssemblyHieght * 2.0m);

            //Glazing Seals
            part = new Part(1819, "Glazing Seal", this, 2, peri);
            part.PartGroupType = "Seal-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            #endregion

            #region Hardware


            #endregion

            #region Labor

            part = new LPart("Design", this, 4.0m, 80.0m);
            m_parts.Add(part);
            //Measure: Collect Information on Sizes from Contractor: Provide Information for Approval: Samples Correspondence: Ordering: Supervision

            part = new LPart("Draft", this, 3.0m, 80.0m);
            m_parts.Add(part);
            //Typical Drawings: Supervision

            part = new LPart("MetalHours", this, 10.0m, 80.0m);
            m_parts.Add(part);
            //1 Recieve: 1 Handle: 1 CutFrame: 1 CutStop: 1.5 Machine: 1.5 HardwarePrep: 1 MountHardware: 2 Weld:

            part = new LPart("FinishHours", this, 4.0m, 80.0m);
            m_parts.Add(part);
            //2 LinegrainSand: 2 Finish

            part = new LPart("GlazingHours", this, (this.Area * 0.1m) + 4.5m, 80.0m);
            m_parts.Add(part);
            //.5 Recieve: 1.0 InspectReject: .5 StoreHandle: 1.0 GlazeShimCalk: .5 SetGlassStop: 05 InsertGasket

            part = new LPart("Prehang", this, (this.Area * 0.1m) + 3.0m, 80.0m);
            m_parts.Add(part);
            //2 Fit Sash into Frame: 1 Mount Weather StripSeals

            part = new LPart("Stage", this, 0.5m, 80.0m);
            m_parts.Add(part);
            //.5 Stage

            part = new LPart("Load", this, 0.5m, 80.0m);
            m_parts.Add(part);
            //.5 Load


            #endregion
        }
コード例 #26
0
        //Bill of Material
        public override void Build()
        {
            Part part;

            #region Frame


            // JambLeft <<--
            part                   = new Part(2031);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght;
            part.FunctionalName    = "JambL";
            part.PartLabel         = "";

            m_parts.Add(part);


            // JambRight -->>
            part                   = new Part(2031);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght;
            part.FunctionalName    = "JambR";
            part.PartLabel         = "";

            m_parts.Add(part);


            // HeadLeft ^^
            part                   = new Part(2031);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth;
            part.FunctionalName    = "HeadLeft";
            part.PartLabel         = "VMiter_L_HMiter_R";

            m_parts.Add(part);


            // HeadRight ^^
            part                   = new Part(2031);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyDepth;
            part.FunctionalName    = "HeadRight";
            part.PartLabel         = "VMiter_R_HMiter_L";

            m_parts.Add(part);


            // SillLeft ||
            part                   = new Part(2031);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth;
            part.FunctionalName    = "SillLeft";
            part.PartLabel         = "VMiter_L_HMiter_R";

            m_parts.Add(part);


            // SillRight ||
            part                   = new Part(2031);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyDepth;
            part.FunctionalName    = "SillRight";
            part.PartLabel         = "VMiter_R_HMiter_L";

            m_parts.Add(part);


            // ExtCornerCover
            part                   = new Part(3023);
            part.Qnty              = 1;
            part.PartGroupType     = "Frame-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght - 1.375m * 2.0m;
            part.FunctionalName    = "ExtCornerCover";
            part.PartLabel         = "";

            m_parts.Add(part);


            #endregion

            #region Stop


            // StopRight
            part                   = new Part(800);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght - (0.625m * 2.0m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopRight";
            part.PartLabel         = "";

            m_parts.Add(part);


            // StopLeft
            part                   = new Part(800);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght - (0.625m * 2.0m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopLeft";
            part.PartLabel         = "";

            m_parts.Add(part);



            // StopTopLeft
            part                   = new Part(800);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth - (0.625m + 0.25m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopTopLeft";
            part.PartLabel         = "";

            m_parts.Add(part);



            // StopTopRight
            part                   = new Part(800);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyDepth - (0.625m + 0.25m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopTopRight";
            part.PartLabel         = "";

            m_parts.Add(part);



            // StopBotLeft
            string crap;
            crap                   = FrameWorks.Functions.StopWeepMachining(m_subAssemblyWidth - 0.625m + 0.25m);
            part                   = new Part(800);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth - (0.625m + 0.25m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopBotLeft";
            part.PartLabel         = "1)MiterEnds" + "\r\n" +
                                     "2)" + crap;

            m_parts.Add(part);



            // StopBotRight
            crap                   = FrameWorks.Functions.StopWeepMachining(m_subAssemblyDepth - 0.625m + 0.25m);
            part                   = new Part(800);
            part.Qnty              = 1;
            part.PartGroupType     = "Stop-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyDepth - (0.625m + 0.25m);
            part.PartWidth         = part.Source.Width;
            part.PartThick         = part.Source.Height;
            part.FunctionalName    = "StopBotRight";
            part.PartLabel         = "1)MiterEnds" + "\r\n" +
                                     "2)" + crap;

            m_parts.Add(part);



            #endregion

            #region Glass


            //GlassPanelL
            part = new Part(1022);
            part.FunctionalName    = "GlassPanelL";
            part.PartGroupType     = "Glass-Parts";
            part.Qnty              = 1;
            part.PartName          = "PartName";
            part.PartLabel         = "";
            part.ContainerAssembly = this;
            part.PartWidth         = m_subAssemblyWidth - (0.9375m + 2.125m);
            part.PartLength        = m_subAssemblyHieght - (0.9375m * 2.0m);

            m_parts.Add(part);


            //GlassPanelR
            part = new Part(1022);
            part.FunctionalName    = "GlassPanelR";
            part.PartGroupType     = "Glass-Parts";
            part.Qnty              = 1;
            part.PartName          = "PartName";
            part.PartLabel         = "";
            part.ContainerAssembly = this;
            part.PartWidth         = m_subAssemblyDepth - (0.9375m + 0.625m);
            part.PartLength        = m_subAssemblyHieght - (0.9375m * 2.0m);

            m_parts.Add(part);



            #endregion

            #region Seal/Weatherstripping


            decimal peri = FrameWorks.Functions.Perimeter(m_subAssemblyHieght, m_subAssemblyDepth);
            peri += FrameWorks.Functions.Perimeter(m_subAssemblyHieght, m_subAssemblyWidth);

            peri -= (m_subAssemblyHieght * 2.0m);

            //Glazing Seals
            part = new Part(2772, "Glazing Seal", this, 2, peri);
            part.PartGroupType = "Seal-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            #endregion

            #region Hardware


            // Braces
            part                   = new Part(2674);
            part.Qnty              = 12;
            part.PartGroupType     = "Hardware-Parts";
            part.ContainerAssembly = this;
            part.FunctionalName    = "Braces";
            part.PartLabel         = "";

            m_parts.Add(part);



            #endregion

            #region Labor

            part = new LPart("Design", this, 4.0m, 80.0m);
            this.m_parts.Add(part);
            //Measure: Collect Information on Sizes from Contractor: Provide Information for Approval: Samples Correspondence: Ordering: Supervision

            part = new LPart("Draft", this, 3.0m, 80.0m);
            this.m_parts.Add(part);
            //Typical Drawings: Supervision

            part = new LPart("MetalHours", this, (this.Area * 0.1m) + 4.0m, 80.0m);
            this.m_parts.Add(part);
            //1 Receive: 1 Cut: 1  Weld & Assemble: 1 NailFin

            part = new LPart("GlazingHours", this, (this.Area * 0.17m) + 1.5m, 80.0m);
            this.m_parts.Add(part);
            //.5 Recieve: .5 InspectReject: .5 StoreHandle: * .17 Hrs Per Square Ft:

            part = new LPart("FinishHours", this, 4.0m, 80.0m);
            this.m_parts.Add(part);
            //2 SandLineGrain: 2 Finish

            part = new LPart("PaintAno", this, (this.Area * 0.05m) + 0.0005m, 80.0m);
            this.m_parts.Add(part);
            // .0005 hours + 0.05 Area

            part = new LPart("Stage", this, 0.5m, 80.0m);
            this.m_parts.Add(part);
            //.5 Stage

            part = new LPart("Load", this, 1.0m, 80.0m);
            this.m_parts.Add(part);
            //1 Load


            #endregion
        }
コード例 #27
0
        //Bill of Material
        public override void Build()
        {
            Part part;

            string partleader = this.Parent.UnitID + "." + this.CreateID.ToString();

            decimal pweight = FrameWorks.Functions.PanelWieghtS2000(m_subAssemblyWidth, m_subAssemblyHieght);

            string labelStileR  = string.Empty;
            string labelStileL  = string.Empty;
            string labelTopRail = string.Empty;
            string labelBotRail = string.Empty;


            #region FrameAngleCasement



            // FrmAglExtL <<--
            part = new Part(3081, "FrmAglExtL", this, 1, m_subAssemblyHieght);
            part.PartGroupType = "FrameAngleCasement-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = "";

            m_parts.Add(part);


            // FrmAglExtR -->
            part = new Part(3081, "FrmAglExtL", this, 1, m_subAssemblyHieght);
            part.PartGroupType = "FrameAngleCasement-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = "";

            m_parts.Add(part);


            // FrmAglExtH ^^
            part = new Part(3081, "FrmAglExtH", this, 1, m_subAssemblyWidth);
            part.PartGroupType = "FrameAngleCasement-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = "";

            m_parts.Add(part);


            // FrmAglExtS ||
            part = new Part(3081, "FrmAglExtS", this, 1, m_subAssemblyWidth);
            part.PartGroupType = "FrameAngleCasement-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = "";

            m_parts.Add(part);



            #endregion


            #region HdpeFrmThrmBrk

            // ThermalBreakL <<--
            part                   = new Part(3113);
            part.Qnty              = 1;
            part.PartGroupType     = "HdpeFrmThrmBrk-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght;
            part.FunctionalName    = "ThermalBreakL";
            part.PartLabel         = "";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);


            // ThermalBreakR -->
            part                   = new Part(3113);
            part.Qnty              = 1;
            part.PartGroupType     = "HdpeFrmThrmBrk-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyHieght;
            part.FunctionalName    = "ThermalBreakR";
            part.PartLabel         = "";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);



            // ThermalBreakH ^^
            part                   = new Part(3113);
            part.Qnty              = 1;
            part.PartGroupType     = "HdpeFrmThrmBrk-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth;
            part.FunctionalName    = "ThermalBreakH";
            part.PartLabel         = "";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);



            // ThermalBreakS ||
            part                   = new Part(3113);
            part.Qnty              = 1;
            part.PartGroupType     = "HdpeFrmThrmBrk-Parts";
            part.ContainerAssembly = this;
            part.PartLength        = m_subAssemblyWidth;
            part.FunctionalName    = "ThermalBreakS";
            part.PartLabel         = "";
            part.PartIdentifier    = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);



            #endregion


            #region FrameAngleCaseInt



            // FrmAglIntL <<--
            part = new Part(3084, "FrmAglIntL", this, 1, m_subAssemblyHieght);
            part.PartGroupType = "FrameAngleCaseInt-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = "";

            m_parts.Add(part);


            // FrmAglIntR -->
            part = new Part(3084, "FrmAglIntR", this, 1, m_subAssemblyHieght);
            part.PartGroupType = "FrameAngleCaseInt-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = "";

            m_parts.Add(part);


            // FrmAglIntH ^^
            part = new Part(3084, "FrmAglIntH", this, 1, m_subAssemblyWidth);
            part.PartGroupType = "FrameAngleCaseInt-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = "";

            m_parts.Add(part);


            // FrmAglIntS ||
            part = new Part(3084, "FrmAglIntS", this, 1, m_subAssemblyWidth);
            part.PartGroupType = "FrameAngleCaseInt-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = "";

            m_parts.Add(part);



            #endregion


            #region CvrWndwFauxScrnFrm


            // ScreenFrameCoverL <<--
            part = new Part(3091, "ScreenFrameCoverL", this, 1, m_subAssemblyHieght - 2 * 0.3125m);
            part.PartGroupType = "CvrWndwFauxScrnFrm-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = "";

            m_parts.Add(part);


            // ScreenFrameCoverR -->
            part = new Part(3091, "ScreenFrameCoverR", this, 1, m_subAssemblyHieght - 2 * 0.3125m);
            part.PartGroupType = "CvrWndwFauxScrnFrm-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = "";

            m_parts.Add(part);


            // ScreenFrameCoverH ^^
            part = new Part(3091, "ScreenFrameCoverH", this, 1, m_subAssemblyWidth - 2 * 2.3125m);
            part.PartGroupType = "CvrWndwFauxScrnFrm-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = "";

            m_parts.Add(part);


            // ScreenFrameCoverS ||
            part = new Part(3091, "ScreenFrameCoverS", this, 1, m_subAssemblyWidth - 2 * 2.3125m);
            part.PartGroupType = "CvrWndwFauxScrnFrm-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = "";

            m_parts.Add(part);



            #endregion


            #region CvrSSMotor



            // FrameSSMtrCvrCapL <<--
            part = new Part(3144, "FrameSSMtrCvrCapL", this, 1, m_subAssemblyHieght - 2 * 0.0625m);
            part.PartGroupType = "CvrSSMotor-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = "";

            m_parts.Add(part);



            // FrameSSMtrCvrFaceL -->
            part = new Part(3145, "FrameSSMtrCvrFaceL", this, 1, m_subAssemblyHieght - 2 * 0.0625m);
            part.PartGroupType = "CvrSSMotor-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = "";

            m_parts.Add(part);



            #endregion


            #region AlumScreenFrame



            // AlumScreenFrameL <<--
            part = new Part(3110, "AlumScreenFrameL", this, 1, m_subAssemblyHieght - 2 * 1.34375m);
            part.PartGroupType = "AlumScreenFrame-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = "";

            m_parts.Add(part);



            // AlumScreenFrameR -->
            part = new Part(3110, "AlumScreenFrameR", this, 1, m_subAssemblyHieght - 2 * 1.34375m);
            part.PartGroupType = "AlumScreenFrame-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = "";

            m_parts.Add(part);



            // AlumScreenFrameH ^^
            part = new Part(3110, "AlumScreenFrameH", this, 1, m_subAssemblyWidth - 2 * 1.34375m);
            part.PartGroupType = "AlumScreenFrame-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = "";

            m_parts.Add(part);



            // AlumScreenFrameS ||
            part = new Part(3110, "AlumScreenFrameS", this, 1, m_subAssemblyWidth - 2 * 1.34375m);
            part.PartGroupType = "AlumScreenFrame-Parts";
            part.PartWidth     = part.Source.Width;
            part.PartThick     = part.Source.Height;
            part.PartLabel     = "";

            m_parts.Add(part);



            #endregion


            #region Hardware


            // HingeTop
            part = new Part(1742, "HingeTop", this, 1, 0.0m);
            part.PartGroupType = "Hardware-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            // HingeBot
            part = new Part(1742, "HingeBot", this, 1, 0.0m);
            part.PartGroupType = "Hardware-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            // SupportBlock
            part = new Part(2995, "SupportBlock", this, 1, 0.0m);
            part.PartGroupType = "Hardware-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            // VegaSyncroMotor
            part = new Part(3391, "VegaSyncroMotor", this, 1, 0.0m);
            part.PartGroupType  = "Hardware-Parts";
            part.PartLabel      = "CustomOperator";
            part.PartIdentifier = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);


            // Snubber
            part = new Part(911, "Snubber", this, 1, 0.0m);
            part.PartGroupType  = "Hardware-Parts";
            part.PartLabel      = "Snubber";
            part.PartIdentifier = partleader + "." + Convert.ToString(createID++);
            m_parts.Add(part);


            #endregion


            #region Labor

            part = new LPart("MetalHours", this, 8.0m, 80.0m);
            m_parts.Add(part);
            //1 Receive: 1 Handle: 1 Cut: 1 Machine: 2 Bond & Assemble: 1 Hardware Prep: 1 NailFin

            part = new LPart("FinishHours", this, 4.0m, 80.0m);
            m_parts.Add(part);
            //2 SandLineGrain: 2 Finish



            #endregion
        }
コード例 #28
0
ファイル: EuroBase.cs プロジェクト: linusaurus/Knoodle-3.0
        public override void Build()
        {
            FrameWorks.Part part;

            #region Case

            // Left Side
            part               = new Part(2878, "LSide", this, 1, this.SubAssemblyHieght, SubAssemblyDepth);
            part.PartThick     = 0.75m;
            part.PartGroupType = "Case";
            this.Parts.Add(part);

            // Right Side
            part               = new Part(2878, "RSide", this, 1, this.SubAssemblyHieght, SubAssemblyDepth);
            part.PartThick     = 0.75m;
            part.PartGroupType = "Case";
            this.Parts.Add(part);

            // Bottom Panel
            part               = new Part(2878, "Bottom ", this, 1, this.SubAssemblyWidth - 1.5m, SubAssemblyDepth);
            part.PartThick     = 0.75m;
            part.PartGroupType = "Case";
            this.Parts.Add(part);
            //Top
            part               = new Part(2878, "Top", this, 1, this.SubAssemblyWidth - 1.5m, SubAssemblyDepth);
            part.PartThick     = 0.75m;
            part.PartGroupType = "Case";
            this.Parts.Add(part);

            part               = new Part(2878, "Nailers", this, 2, 4.0m, this.SubAssemblyWidth - 1.5m);
            part.PartThick     = 0.75m;
            part.PartGroupType = "Case";
            this.Parts.Add(part);
            // Back
            part               = new Part(2880, "Back", this, 1, this.SubAssemblyHieght - 1.0m);
            part.PartWidth     = this.SubAssemblyWidth - 1.0m;
            part.PartThick     = 0.25m;
            part.PartGroupType = "Case";
            this.Parts.Add(part);

            // Pounds test
            part               = new Part(3049, "Nailer", this, 2, 2.0m, this.SubAssemblyWidth - 1.5m);
            part.PartThick     = 0.75m;
            part.PartGroupType = "Case";
            this.Parts.Add(part);

            // Test
            part               = new Part(795, "Extrusion", this, 1, this.SubAssemblyHieght - 1.0m);
            part.PartWidth     = this.SubAssemblyWidth - 1.0m;
            part.PartThick     = 1.25m;
            part.PartGroupType = "Case";
            this.Parts.Add(part);
            // Glass Door
            part               = new Part(3122, "Glass Door", this, 1, this.SubAssemblyHieght);
            part.PartWidth     = this.SubAssemblyWidth;
            part.PartThick     = .625m;
            part.PartGroupType = "Glass";
            this.Parts.Add(part);


            this.Parts.Add(new Part(2893, "21-Runner", this, 1, 0.0m));

            #endregion

            #region Labor

            part     = new LPart("Drafting", this, 1.5m, 85.0m);
            part.UOM = 11;
            this.Parts.Add(part);

            #endregion

            //refresh internals
            foreach (FrameWorks.Part p in this.Parts)
            {
                // needed to tickle the cost forcing calculation
                decimal d = p.Area;
                m_calculatedCost += p.CalculatedCost;
            }
        }
コード例 #29
0
        //Bill of Material
        public override void Build()
        {
            Part   part;
            string partleader = this.Parent.UnitID + "." + this.CreateID.ToString();


            #region NailFin


            // NailerTopRight

            part = new Part(3308, "NailerTopRight", this, 1, m_subAssemblyWidth + 1.250m * 2.0m);
            part.PartGroupType = "NailFin-Parts";
            part.PartLabel     = "1)MiterEnds";

            m_parts.Add(part);



            // NailerTopLeft

            part = new Part(3308, "NailerTopLeft", this, 1, m_subAssemblyDepth + 1.250m * 2.0m);
            part.PartGroupType = "NailFin-Parts";
            part.PartLabel     = "1)MiterEnds";

            m_parts.Add(part);


            // NailerRight

            part = new Part(3308, "NailerRight", this, 1, m_subAssemblyHieght + 1.250m * 2.0m);
            part.PartGroupType = "NailFin-Parts";
            part.PartLabel     = "1)MiterEnds";

            m_parts.Add(part);


            // NailFinBotRight

            part = new Part(3308, "NailFinBotRight", this, 1, m_subAssemblyWidth + 1.250m * 2.0m);
            part.PartGroupType = "NailFin-Parts";
            part.PartLabel     = "1)MiterEnds";

            m_parts.Add(part);


            // NailFinBotLeft

            part = new Part(3308, "NailFinBotLeft", this, 1, m_subAssemblyDepth + 1.250m * 2.0m);
            part.PartGroupType = "NailFin-Parts";
            part.PartLabel     = "1)MiterEnds";

            m_parts.Add(part);


            //NailerLeft

            part = new Part(3308, "NailerLeft", this, 1, m_subAssemblyHieght + 1.250m * 2.0m);
            part.PartGroupType = "NailFin-Parts";
            part.PartLabel     = "1)MiterEnds";

            m_parts.Add(part);



            #endregion


            #region Labor

            part = new LPart("Design", this, 4.0m, 80.0m);
            m_parts.Add(part);
            // Measure: Collect Information on Sizes from Contractor:
            // Provide Information for Approval:
            // Samples Correspondence: Ordering: Supervision

            part = new LPart("Draft", this, 3.0m, 80.0m);
            m_parts.Add(part);
            //Typical Drawings: Supervision

            part = new LPart("MetalHours", this, 8.0m, 80.0m);
            m_parts.Add(part);
            //1 Receive: 1 Handle: 1 Cut: 1 Machine: 2 Weld & Assemble: 1 Hardware Prep: 1 NailFin

            part = new LPart("GlazingHours", this, (this.Area * 0.1m) + 4.5m, 80.0m);
            m_parts.Add(part);
            //.5 Recieve: 1.0 InspectReject: .5 StoreHandle: 1.0 GlazeShimCalk: .5 SetGlassStop: 05 InsertGasket

            part = new LPart("FinishHours", this, 4.0m, 80.0m);
            m_parts.Add(part);
            //2 SandLineGrain: 2 Finish

            part = new LPart("Stage", this, 0.5m, 80.0m);
            m_parts.Add(part);
            //.5 Stage

            part = new LPart("Load", this, 1.0m, 80.0m);
            m_parts.Add(part);
            //1 Load



            #endregion
        }
コード例 #30
0
        //Bill of Material
        public override void Build()
        {
            Part part;


            #region Frame-Parts


            // JambL <<--

            part = new Part(2028, "JambL", this, 1, m_subAssemblyHieght);
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "1)MiterEnds" + "\r\n" +
                                 "2)" + FrameWorks.Functions.TieBarLockCenter(this.SubAssemblyHieght);

            m_parts.Add(part);



            // JambR -->>

            part = new Part(2028, "JambR", this, 1, m_subAssemblyHieght);
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "1)MiterEnds";

            m_parts.Add(part);



            // Head ^^

            part = new Part(2028, "Head", this, 1, m_subAssemblyWidth);
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "1)MiterEnds" + "\r\n" +
                                 "2)Machine Right PN:995";

            m_parts.Add(part);



            // Sill ||

            part = new Part(2028, "Sill", this, 1, m_subAssemblyWidth);
            part.PartGroupType = "Frame-Parts";
            part.PartLabel     = "1)MiterEnds" + "\r\n" +
                                 "2)Machine Operator Right@" + (6.902m) + "O.C." + "\r\n" +
                                 "3)Machine Right PN:996";

            m_parts.Add(part);



            #endregion

            #region Hardware-Parts


            // Operator Casement

            part = new Part(FrameWorks.Functions.OperatorSeries23(SubAssemblyWidth, "LH"), "OperatorLH", this, 1, 0.0m);
            part.PartGroupType = "Hardware-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            // FoldingHandle
            part = new Part(318, "FoldingHandle", this, 1, 0.0m);
            part.PartGroupType = "Hardware-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);



            // Gasket23

            part = new Part(2652, "Gasket23", this, 1, 0.0m);
            part.PartGroupType = "Hardware-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);



            int hardwarecount = 1;
            if (m_subAssemblyHieght < 48.0m)
            {
                hardwarecount = 1;
            }
            else
            {
                hardwarecount = 2;
            }


            // Lock
            part = new Part(1709, "Lock", this, hardwarecount, 0m);
            part.PartGroupType = "Hardware-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);


            //Get the size of the tiebar partNo--
            decimal tieBarLength = FrameWorks.Functions.S2000TieBar(m_subAssemblyHieght);

            //check is sash even requires a tiebar
            if (tieBarLength != 0)
            {
                // Tie Bars
                part = new Part(3625, "Tie Bars", this, 1, tieBarLength);
                part.PartGroupType = "Hardware-Parts";
                part.PartLabel     = "";

                m_parts.Add(part);
            }



            // Corner Braces

            part = new Part(2674, "CornerBraces", this, 8, 0.0m);
            part.PartGroupType = "Hardware-Parts";
            part.PartLabel     = "";

            m_parts.Add(part);



            #endregion

            #region Labor

            part = new LPart("MetalHours", this, 8.0m, 80.0m);
            this.m_parts.Add(part);
            //1 Receive: 1 Handle: 1 Cut: 1 Machine: 2 Weld & Assemble: 1 Hardware Prep: 1 NailFin

            part = new LPart("Finish", this, (this.Area * 0.025m) + 2.0m, 80.0m);
            this.m_parts.Add(part);
            //1.0 Sand Linegrain: 1.0 Finish:

            part = new LPart("PaintAno", this, (this.Area * 0.065m) + 0.0005m, 80.0m);
            this.m_parts.Add(part);
            // .0005 hours + 0.065 Area

            #endregion
        }