1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
| using IStation.Dto;
|
|
| namespace IStation.Calculation
| {
| internal class PlanAnaCalculatorFactory
| {
| /// <summary>
| /// 创建计算器
| /// </summary>
| public static PlanAnaBaseCalculator CreateCalculator(long corpId, string objectType, long objectId)
| {
| PlanAnaBaseCalculator calculator = null;
| if (objectType == ObjectType.Station)
| {
| switch (objectId)
| {
| case 2:
| calculator = new IStation.Calculation.shys长兴泵站();
| break;
|
| default: break;
| }
| }
| if(calculator != null)
| {
| calculator.SetStationID(corpId, objectId);
| }
| return calculator;
| }
|
|
|
|
| }
| }
|
|