public Frame(PumpStation _pumpStation, StationComponentTypeEnum _stationComponentsType)
     : base(_pumpStation, _stationComponentsType)
 {
     FrameType             = ComponentsValCalculator.GetFrameTypeByPumpsWeight(_pumpStation.mainPump.ComponentWeight);
     ComponentName         = ComponentsValCalculator.GetFramesFullName(_pumpStation);
     ComponentLocationPath = ComponentsValCalculator.GetFullPathToTheComponent(_pumpStation.componentsLocation, this);
 }
Exemplo n.º 2
0
        public Pump(ComponentsLocationPaths _componentsLocation, string _componentsName, int _pumpsWidth, int _pressureSideDn,
                    int _suctionSideDn, StationComponentTypeEnum _stationComponentsType)
            : base(_stationComponentsType)
        {
            ComponentName  = _componentsName;
            PumpsWidth     = _pumpsWidth;
            PressureSideDn = _pressureSideDn;
            SuctionSideDn  = _suctionSideDn;

            ComponentLocationPath = ComponentsValCalculator.GetFullPathToTheComponent(_componentsLocation, ComponentName, this);
        }
        public static string GetFramesFullName(PumpStation _pumpStation)
        {
            string frameNameWithSupports = "_с_виброопорами";

            if (_pumpStation.StationScheme.StationType.Equals(StationTypeEnum.Пожаротушения) || _pumpStation.StationScheme.StationType.Equals(StationTypeEnum.Ф_Драйв))
            {
                frameNameWithSupports = string.Empty;
            }

            if (GetFrameTypeByPumpsWeight(_pumpStation.mainPump.ComponentWeight).Equals(FrameTypesEnum.StandartRottenFrame))
            {
                string rottenFrameSize = string.Empty;
                if (_pumpStation.DistanceBetweenAxis == 300)
                {
                    if (_pumpStation.PumpsCount == 2)
                    {
                        rottenFrameSize = "400х600х4";
                    }
                    else if (_pumpStation.PumpsCount == 3)
                    {
                        rottenFrameSize = "400х900х4";
                    }
                    else if (_pumpStation.PumpsCount == 4)
                    {
                        rottenFrameSize = "400х1200х4";
                    }
                }
                else if (_pumpStation.DistanceBetweenAxis == 500)
                {
                    if (_pumpStation.PumpsCount == 2)
                    {
                        rottenFrameSize = "500х990х4";
                    }
                    else if (_pumpStation.PumpsCount == 3)
                    {
                        rottenFrameSize = "500х1200х4";
                    }
                    else if (_pumpStation.PumpsCount == 4)
                    {
                        rottenFrameSize = "500х1700х4";
                    }
                }

                if (rottenFrameSize == string.Empty)
                {
                    return("Рама_швеллер_10П");
                }
                return($"Рама_гнутая_{rottenFrameSize}{frameNameWithSupports}");
            }

            return($"Рама_швеллер_{(int)ComponentsValCalculator.GetFrameTypeByPumpsWeight(_pumpStation.mainPump.ComponentWeight)}П");
        }
        public Fittings(PumpStation _pumpStation, StationComponentTypeEnum _stationComponentsType)
            : base(_pumpStation, _stationComponentsType)
        {
            if (PumpStation.IsAutoCalculationDiameterConnection)
            {
                this.ComponentName = ComponentsNameAutoGenerate(PumpStation, 0, 0);
            }
            else
            {
                this.ComponentName = ComponentsNameGenerate(PumpStation);
            }

            ComponentLocationPath = ComponentsValCalculator.GetFullPathToTheComponent(_pumpStation.componentsLocation, this);
        }
Exemplo n.º 5
0
        public UnequalFittings(PumpStation _pumpStation, StationComponentTypeEnum _stationComponentsType)
            : base(_pumpStation, _stationComponentsType)
        {
            if (PumpStation.IsAutoCalculationDiameterConnection)
            {
                this.ComponentName = this.ComponentsNameAutoGenerate(PumpStation, PumpStation.mainPump.SuctionSideDn,
                                                                     PumpStation.mainPump.PressureSideDn);
            }
            else
            {
                this.ComponentName = ComponentsNameGenerate(PumpStation);
            }

            ComponentLocationPath = ComponentsValCalculator.GetFullPathToTheComponent(_pumpStation.componentsLocation, this);
        }
        public PumpStation(ComponentsLocationPaths _componentsLocation, Pump _mainPump, Pump _jockeyPump, string _controlCabinetName,
                           bool _isAutoCalculationDiameterConnection, int _pumpsCount, double _waterConsumption, int _dnSuctionCollector,
                           int _dnPressureCollector, double _pressureValueForStation, CollectorsMaterialEnum _collectorMaterial,
                           StationScheme _stationScheme)
        {
            stationComponents  = new List <StationComponent>();
            StationScheme      = _stationScheme;
            componentsLocation = _componentsLocation;
            mainPump           = _mainPump;
            jockeyPump         = _jockeyPump;
            ControlCabinetSize = _controlCabinetName;
            IsAutoCalculationDiameterConnection = _isAutoCalculationDiameterConnection;
            PumpsCount              = _pumpsCount;
            WaterConsumption        = _waterConsumption;
            DnSuctionCollector      = _dnSuctionCollector;
            DnPressureCollector     = _dnPressureCollector;
            PressureValueForStation = _pressureValueForStation;
            CollectorMaterial       = _collectorMaterial;
            SecondaryLineDn         = GetSecondaryLineDn(DnSuctionCollector);
            DistanceBetweenAxis     = ComponentsValCalculator.GetDistanceBetweenPumpsAxis(mainPump.PumpsWidth);

            CreatePumpStationComponentsByScheme(StationScheme);
        }
 public ControlCabinet(PumpStation _pumpStation, StationComponentTypeEnum _stationComponentsType, string _componentsName)
     : base(_pumpStation, _stationComponentsType)
 {
     ComponentName         = _componentsName;
     ComponentLocationPath = ComponentsValCalculator.GetFullPathToTheComponent(_pumpStation.componentsLocation, this);
 }