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;
|
}
|
}
|