using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace IStation.Service
|
{
|
|
public class DemoCorpHelper
|
{
|
public class Region
|
{
|
public long CorpID { get; set; }
|
|
public long DemoID { get; set; }
|
public string DemoName { get; set; }
|
}
|
|
public class Station
|
{
|
public long OriginID { get; set; }
|
public string OriginName { get; set; }
|
public string DemoName { get; set; }
|
}
|
|
public static bool IsDemoRegion(long RegionID)
|
{
|
if (RegionID == 1)
|
return true;
|
else
|
return false;
|
}
|
|
public static bool IsDemoStation(long StationID)
|
{
|
if (StationID == 14)
|
return true;
|
if (StationID == 13)
|
return true;
|
if (StationID == 56)
|
return true;
|
if (StationID == 44)
|
return true;
|
else
|
return false;
|
}
|
|
public static Region GetDemoRegion()
|
{
|
return new Region() { CorpID=100,DemoID=1,DemoName="演示用"};
|
}
|
|
public static List<Station> GetDemoStation()
|
{
|
return new List<Station>() {
|
new Station(){ OriginID= 14, OriginName= "松花江泵站", DemoName= "松花江泵站" },
|
new Station(){ OriginID= 13, OriginName= "凯泉一体化泵站" , DemoName= "凯泉泵站"},
|
new Station(){ OriginID= 56, OriginName= "中腰泵站", DemoName= "中腰泵站" },
|
new Station(){ OriginID= 44, OriginName= "成行二泵站", DemoName= "成行二泵站" },
|
new Station(){ OriginID= 63, OriginName= "宝山航务", DemoName= "宝山航务" }
|
};
|
}
|
|
}
|
}
|