using IStation.Calculation;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IStation.Application
{
///
/// 计划分析常量
///
public class ShysPlanHelper
{
///
/// 站点字典
///
public static StationInfo GetStationInfo(int SgFactoryId)
{
if (_dict == null)
Inital();
if (!_dict.ContainsKey(SgFactoryId))
{
return null;
}
return _dict[SgFactoryId];
}
static Dictionary _dict;
private static void Inital()
{
_dict = new Dictionary();
//_dict.Add(6, new StationInfo(4, new IStation.Calculation.shys严桥泵站()));//NG 不开泵 不考虑
////NG
#if (DEBUG)
// _dict.Add(11, new StationInfo(11, new IStation.Calculation.shys南汇北泵站()));
//_dict.Add(20, new StationInfo(18, new IStation.Calculation.shys金泽取水()));
// _dict.Add(19, new StationInfo(14, new IStation.Calculation.shys陈行二取()));
_dict.Add(17, new StationInfo(21, new IStation.Calculation.shys大桥泵站()));//OK 第4批,扬程只有一米多, 且需要增加出口压力才能计算
#else
_dict.Add(19, new StationInfo(14, new IStation.Calculation.shys陈行二取())); //OK 第4批
_dict.Add(12, new StationInfo(15, new IStation.Calculation.shys陈行一输()));//OK 第4批
_dict.Add(17, new StationInfo(21, new IStation.Calculation.shys大桥泵站()));//OK 第4批,扬程只有一米多, 且需要增加出口压力才能计算
_dict.Add(18, new StationInfo(1 , new IStation.Calculation.shys青草沙取水()));//第三批 全是0 是否正确?
_dict.Add(20, new StationInfo(18, new IStation.Calculation.shys金泽取水()));//第三批
_dict.Add(7, new StationInfo(6, new IStation.Calculation.shys临江1号泵房()));//第三批
_dict.Add(10, new StationInfo(10, new IStation.Calculation.shys金海泵站()));// OK 第三批 曲线延长, 且需要增加出口压力才能计算
_dict.Add(14, new StationInfo(17, new IStation.Calculation.shys泰和泵站()));// OK 第三批 曲线延长,
_dict.Add(16, new StationInfo(20, new IStation.Calculation.shys松江泵站())); //ok 第二批
_dict.Add(11, new StationInfo(11, new IStation.Calculation.shys南汇北泵站()));//OK 第二批
_dict.Add(3, new StationInfo(9, new IStation.Calculation.shys五号沟金海方向())); //ok 第二批
_dict.Add(15, new StationInfo(19, new IStation.Calculation.shys金泽泵站()));//ok 第二批
_dict.Add(9, new StationInfo(8, new IStation.Calculation.shys徐泾泵站())); //OK 第二批
_dict.Add(1, new StationInfo(2, new IStation.Calculation.shys长兴泵站()));//OK
_dict.Add(2, new StationInfo(12, new IStation.Calculation.shys五号沟凌桥方向()));//ok
_dict.Add(4, new StationInfo(3, new IStation.Calculation.shys五号沟严桥方向1()));//OK
_dict.Add(5, new StationInfo(5, new IStation.Calculation.shys五号沟严桥方向2()));//OK
_dict.Add(13, new StationInfo(16, new IStation.Calculation.shys陈行二输()));//ok
_dict.Add(8, new StationInfo(7, new IStation.Calculation.shys临江2号泵房()));//ok
#endif
}
///
///
///
public class StationInfo
{
///
///
///
///
///
public StationInfo(long id, PlanAnaBaseCalculator calc)
{
ID = id;
Calculator = calc;
}
///
///
///
public long ID { get; set; }
///
///
///
public PlanAnaBaseCalculator Calculator { get; set; }
}
}
}