2023-10-13 15:04:27 +03:00
|
|
|
|
using RhSolutions.QueryModifiers.DrinkingWaterHeatingFittings;
|
|
|
|
|
using RhSolutions.QueryModifiers.DrinkingWaterHeatingPipes;
|
2023-10-11 22:35:39 +03:00
|
|
|
|
|
|
|
|
|
namespace RhSolutions.QueryModifiers;
|
2023-09-19 14:56:55 +03:00
|
|
|
|
|
|
|
|
|
public class ProductQueryModifierFactory
|
|
|
|
|
{
|
2023-09-29 11:20:05 +03:00
|
|
|
|
public IProductQueryModifier GetModifier(string productTypeName)
|
|
|
|
|
{
|
|
|
|
|
switch (productTypeName)
|
|
|
|
|
{
|
|
|
|
|
case "Монтажная гильза":
|
2023-10-13 15:04:27 +03:00
|
|
|
|
return new Sleeve();
|
2023-09-29 11:20:05 +03:00
|
|
|
|
case "Тройник RAUTITAN":
|
2023-10-13 15:04:27 +03:00
|
|
|
|
return new TPiece();
|
2023-10-08 15:19:13 +03:00
|
|
|
|
case "Тройник RAUTITAN резьбовой наружный":
|
|
|
|
|
return new ThreadTPieceExternal();
|
|
|
|
|
case "Тройник RAUTITAN резьбовой внутренний":
|
|
|
|
|
return new ThreadTPieceInternal();
|
2023-10-01 22:15:01 +03:00
|
|
|
|
case "Переходник на наружную резьбу":
|
2023-10-13 15:04:27 +03:00
|
|
|
|
return new AdapterExternal();
|
2023-10-01 22:15:01 +03:00
|
|
|
|
case "Переходник на внутреннюю резьбу":
|
2023-10-13 15:04:27 +03:00
|
|
|
|
return new AdapterInternal();
|
2023-10-01 22:15:01 +03:00
|
|
|
|
case "Переходник с накидной гайкой":
|
2023-10-13 15:04:27 +03:00
|
|
|
|
return new AdapterScrewcap();
|
2023-10-03 22:30:01 +03:00
|
|
|
|
case "Угольник с наружной резьбой":
|
2023-10-13 15:04:27 +03:00
|
|
|
|
return new ThreadElbowExternal();
|
2023-10-03 22:30:01 +03:00
|
|
|
|
case "Угольник с внутренней резьбой":
|
2023-10-13 15:04:27 +03:00
|
|
|
|
return new ThreadElbowInternal();
|
2023-10-04 22:51:43 +03:00
|
|
|
|
case "Угольник с накидной гайкой":
|
2023-10-13 15:04:27 +03:00
|
|
|
|
return new ScrewcapElbow();
|
2023-10-01 22:14:47 +03:00
|
|
|
|
case "Муфта соединительная":
|
2023-10-13 15:04:27 +03:00
|
|
|
|
return new Coupling();
|
2023-10-03 21:58:17 +03:00
|
|
|
|
case "Угольник RAUTITAN":
|
|
|
|
|
return new ElbowModifier();
|
2023-10-11 22:35:39 +03:00
|
|
|
|
case "Фиксатор поворота без колец":
|
|
|
|
|
return new BendFormerHeating();
|
2023-09-29 11:20:05 +03:00
|
|
|
|
case "Flex":
|
2023-10-13 15:04:27 +03:00
|
|
|
|
return new FlexPipe();
|
2023-10-08 16:17:59 +03:00
|
|
|
|
case "Pink":
|
2023-10-13 15:04:27 +03:00
|
|
|
|
return new PinkPipe();
|
2023-09-29 11:20:05 +03:00
|
|
|
|
case "Stabil":
|
2023-10-13 15:04:27 +03:00
|
|
|
|
return new StabilPipe();
|
2023-09-29 16:25:28 +03:00
|
|
|
|
case "Black":
|
2023-10-13 15:04:27 +03:00
|
|
|
|
return new BlackPipe();
|
2023-09-29 11:20:05 +03:00
|
|
|
|
default:
|
|
|
|
|
return new BypassQueryModifier();
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-09-19 14:56:55 +03:00
|
|
|
|
}
|