ulysseskao
2016-05-05 540014a7702a9bae7a3b9c00098671a132e869e8
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
using System;
using CCSTrace.CCS.Object;
 
namespace CCSTrace.CCS
{
    public class GlobalVariable
    {
        public const int Dept = 31; /* 受理部門 */
 
        public const int CcsEventBrief = 11; /* 事故原因(FOR CCS) */
        public const int CcsDept = 12; /* 部門(FOR CCS) */
 
        // 是否颱風案件
        public const int IsDisaster = 1;
        public static int NotDisaster = 0;
 
        /* Event Type */
        public static int NotImportCase = 0;
        public static int IsImportCase = 1;
 
        /* Level Type */
        public static int NoLevel = 0;
        public static int ALevel = 1;
        public static int BLevel = 2;
        public static int CLevel = 3;
 
        /* Recall Type */
        public static int NotReCall = 0;
        public static int IsReCall = 1;
 
        /* Trace_Finish */
        public static int TraceStill = 0;
        public static int TraceFinish = 1;
 
        /* CaseType */
        public const int OriginalCase = 0;
        public const int ParentCase = 1;
        public const int ChildCase = 2;
 
        /* Equipment */
        public const int Breaker = 108;
        public const int Jumper = 109;
        public const int Switch = 114;
        public const int Sxfmr = 115;
        public const int Hicustomer = 107;
 
        /* Tracer Return Status */
        public const int TraceFailure = 0;
        public const int Success = 1;
        public const int FailureByDb = 2;
        public const int NoSxfmr = 3;
        public const int CaseTypeChanged = 4;
        public const int CaseTransfer = 5;
        public const int FdrLocked = 6;
        public const int TraceCounts3 = 7;
 
        /* Error Message */
        public const int SameCustomer = 5001; /* 重複來電 */
        public const int NoMeter = 5002; /* 找不到電號 */
        public const int Debt = 5003; /* 欠費停電 */
        public const int NoSupplyElc = 5004; /* 未供電線段 */
 
        /* Alerm */
        public static int AlermPort { get; set; } = 3000;
 
        /* ShowError */
        public static bool ShowError { get; set; } = false;
 
        //private static string m_OracleThinConn = "jdbc:oracle:thin:";
        //private static string m_OracleThinUser = "";
        //private static string m_OracleThinPass = "";
        //private static string m_strThinConnRegPath = "SOFTWARE\\Origo\\OMS\\Login";
        //private static string m_strThinConnRegName = "thin";
        //private static string m_strThinConnRegUser = "DBUser";
        //private static string m_strThinConnRegPassWord = "DBPassWord";
 
        public static string CcsListPath = "c:\\OMS\\BIN\\CCS\\";
 
        public static string ConnectionString { get; set; } = String.Empty;
        public static string TraceConnectionString { get; set; } = String.Empty;
 
        // Date Converter
        //public static CCS.Function.TransferDate Convert = new CCS.Function.TransferDate();
 
        public static EosCodelist EosCodelist { get; set; } = null;
 
        public static CcsCodelist CcsCodelist { get; set; } = null;
        public static int MinThreadSize { get; set; } = 1;
        public static int MaxThreadSize { get; set; } = 5;
        public static int MaxConnectionCount { get; set; } = 1;
        public static int IdleTimeout { get; set; } = 60;
    }
}