Пример #1
0
        public QuoteTopBlock(QuoteSheet quoteSheet, ExcelItems excelItems)
        {
            qs = quoteSheet;
            xl = excelItems;

            freightMultiplier = 1.064;
            hourlyRate        = 65.00;
            netDivisor        = 0.6;
            listDivisor       = 0.6;
        }
        private void button_vesselLaunch_Click(object sender, EventArgs e)
        {
            this.Hide();
            productInfo.productClass = "vessel";
            productInfo.VesselType   = this.comboBox_vesselTypes.Text;
            productInfo.Tag          = this.comboBox_vesselSizes.Text;
            productInfo.getVesselValues();

            qsheet = new QuoteSheet(productInfo);

            qsheet.Run_quotesheet();

            this.Close();
        }
Пример #3
0
        private void button_packageLaunch_Click(object sender, EventArgs e)
        {
            this.Hide();
            productInfo.productClass         = "package";
            productInfo.PackageType          = this.comboBox_packageTypes.Text;
            productInfo.PackageSize          = this.comboBox_packageVesselSizes.Text;
            productInfo.SecondarySize        = this.comboBox_packageSecondarySizes.Text;
            productInfo.MpcHxIsolationValves = this.checkBox_hxIsolationValves.Checked;


            productInfo.getPackageValues();

            qsheet = new QuoteSheet(productInfo);

            qsheet.Run_quotesheet();
            this.Close();
        }
        private void button_packageLaunch_Click(object sender, EventArgs e)
        {
            if (checkForInvalidInputs())
            {
                this.Hide();

                productInfo.productClass    = "liquid feed";
                productInfo.lfIsSTD         = this.checkBox_lfStandard.Checked;
                productInfo.lfType          = this.comboBox_lfStandardType.Text;
                productInfo.lfSize          = this.comboBox_lfStandardSize.Text;
                productInfo.lfIsHW          = this.radioButton_lfHW.Checked;
                productInfo.lfIsHX          = this.radioButton_lfHX.Checked;
                productInfo.lfInputSize     = parseInch(this.comboBox_lfInputSize.Text);
                productInfo.lfOutputSize    = parseInch(this.comboBox_lfOutputSize.Text);
                productInfo.lfExpansionSize = parseInch(this.comboBox_lfExpansionSize.Text);

                productInfo.getLiqFeedValues();

                qsheet = new QuoteSheet(productInfo);

                qsheet.Run_quotesheet();
                this.Close();
            }
        }
Пример #5
0
 public QuoteBody(QuoteSheet quoteSheet, ExcelItems excelItems)
 {
     qs = quoteSheet;
     xl = excelItems;
 }
Пример #6
0
 public FullReport()
 {
     productInfo = new ProductInfo();
     qsheet      = new QuoteSheet(productInfo);
     xl          = new ExcelItems();
 }