tangxu
2022-10-08 c4c7b110178d02ad732eddf9a67c4a6ebb150da5
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
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= "宝山航务" }
                };
        }
 
    }
}