Ejemplo n.º 1
0
        private double GetAnnualOP()
        {
            SelectedCatchment = Convert.ToInt32(cbTo.SelectedValue);
            if (SelectedCatchment == 0)
            {
                return(0.0);
            }
            Catchment c = Globals.Project.getCatchment(SelectedCatchment);

            if (Common.getString(cbBMP) == "")
            {
                return(0.0);
            }

            BMP bmp = c.getBMP(Common.getString(cbBMP));

            bmp.Calculate();

            Common.setValue(tbTD, bmp.PRetained, 3);

            if (bmp.BMPType == BMPTrainsProject.sRainGarden)
            {
                RainGarden rg = (RainGarden)bmp;
                Common.setValue(tbFilterVolume, rg.MediaVolume);
                //return bmp.BMPPMassLoadIn - bmp.BMPPMassLoadOut - bmp.GroundwaterPMassLoadOut;

                return(bmp.PRetained);
            }

            if (bmp.BMPType == BMPTrainsProject.sFiltration)
            {
                return(bmp.BMPPMassLoadIn * bmp.ProvidedPTreatmentEfficiency / 100);
            }
            //& (bmp.gr)) return bmp.PRetained; //

            return(bmp.PRetained);

            return(bmp.BMPPMassLoadOut * bmp.MediaPPercentReduction / 100);
        }