Exemplo n.º 1
0
        private void assemble_hr()
        {
            hr = new HR(qs.productInfo);
            switch (qs.productInfo.Tag)
            {
                case "HR24-135":
                    ListItems = hr.HR_24_135();
                    break;

                case "HR30-138":
                    ListItems = hr.HR_30_138();
                    break;

                case "HR36-141":
                    ListItems = hr.HR_36_141();
                    break;

                case "HR42-144":
                    ListItems = hr.HR_42_144();
                    break;

                case "HR48-147":
                    ListItems = hr.HR_48_147();
                    break;

                case "HR54-150":
                    ListItems = hr.HR_54_150();
                    break;

                case "HR60-153":
                    ListItems = hr.HR_60_153();
                    break;

                case "HR72-159":
                    ListItems = hr.HR_72_159();
                    break;

                case "HR84-165":
                    ListItems = hr.HR_84_165();
                    break;

                case "HR96-171":
                    ListItems = hr.HR_96_171();
                    break;

                case "HR108-177":
                    ListItems = hr.HR_108_177();
                    break;

                case "HR120-183":
                    ListItems = hr.HR_120_183();
                    break;

                case "HR144-195":
                    ListItems = hr.HR_144_195();
                    break;

                default:
                    ListItems = empty_list();
                    break;
            }
        }
Exemplo n.º 2
0
        public void HR_list()
        {
            Add_block_title("HR VESSEL");

            hr = new HR(productInfo);
            switch (productInfo.PackageSize)
            {
            case "MRP-24H":
                productInfo.VesselSize        = 24;
                productInfo.VesselShellLength = 119;
                productInfo.VesselOAL         = 135;
                Copy_list(hr.HR_24_135());
                break;

            case "MRP-30H":
                productInfo.VesselSize        = 30;
                productInfo.VesselShellLength = 119;
                productInfo.VesselOAL         = 138;
                Copy_list(hr.HR_30_138());
                break;

            case "MRP-36H":
                productInfo.VesselSize        = 36;
                productInfo.VesselShellLength = 119;
                productInfo.VesselOAL         = 141;
                Copy_list(hr.HR_36_141());
                break;

            case "MRP-42H":
                productInfo.VesselSize        = 42;
                productInfo.VesselShellLength = 119;
                productInfo.VesselOAL         = 144;
                Copy_list(hr.HR_42_144());
                break;

            case "MRP-48H":
                productInfo.VesselSize        = 48;
                productInfo.VesselShellLength = 119;
                productInfo.VesselOAL         = 147;
                Copy_list(hr.HR_48_147());
                break;

            case "MRP-54H":
                productInfo.VesselSize        = 54;
                productInfo.VesselShellLength = 119;
                productInfo.VesselOAL         = 150;
                Copy_list(hr.HR_54_150());
                break;

            case "MRP-60H":
                productInfo.VesselSize        = 60;
                productInfo.VesselShellLength = 119;
                productInfo.VesselOAL         = 153;
                Copy_list(hr.HR_60_153());
                break;

            case "MRP-72H":
                productInfo.VesselSize        = 72;
                productInfo.VesselShellLength = 119;
                productInfo.VesselOAL         = 159;
                Copy_list(hr.HR_72_159());
                break;

            case "MRP-84H":
                productInfo.VesselSize        = 84;
                productInfo.VesselShellLength = 119;
                productInfo.VesselOAL         = 165;
                Copy_list(hr.HR_84_165());
                break;

            case "MRP-96H":
                productInfo.VesselSize        = 96;
                productInfo.VesselShellLength = 119;
                productInfo.VesselOAL         = 171;
                Copy_list(hr.HR_96_171());
                break;

            case "MRP-108H":
                productInfo.VesselSize        = 108;
                productInfo.VesselShellLength = 119;
                productInfo.VesselOAL         = 177;
                Copy_list(hr.HR_108_177());
                break;

            case "MRP-120H":
                productInfo.VesselSize        = 120;
                productInfo.VesselShellLength = 119;
                productInfo.VesselOAL         = 183;
                Copy_list(hr.HR_120_183());
                break;

            case "MRP-144H":
                productInfo.VesselSize        = 144;
                productInfo.VesselShellLength = 119;
                productInfo.VesselOAL         = 195;
                Copy_list(hr.HR_144_195());
                break;

            default:
                break;
            }

            Add_blank_item();
            Add_labor_item("MOUNT VESSEL", 1.5);
            Add_blank_item();
        }