From 81c46add6b31e0f347da357feaff7ebbdb6a2c36 Mon Sep 17 00:00:00 2001
From: dogchang70 <dogchang70@7fafa455-2d8e-8247-9248-17d0fe17a33f>
Date: Fri, 15 Jan 2016 09:52:09 +0800
Subject: [PATCH] CT-4 網站須可於Windows Server 2012 64位元版本平台使用。

---
 CCSTrace/CCS/EventAI/TraceSubject.cs |   29 +++++++++++++++--------------
 1 files changed, 15 insertions(+), 14 deletions(-)

diff --git a/CCSTrace/CCS/EventAI/TraceSubject.cs b/CCSTrace/CCS/EventAI/TraceSubject.cs
index 26d49f4..29f3acd 100644
--- a/CCSTrace/CCS/EventAI/TraceSubject.cs
+++ b/CCSTrace/CCS/EventAI/TraceSubject.cs
@@ -15,25 +15,26 @@
 {
     public class TraceSubject
     {
-	    static String						DEFAULTDBSTR;
-	    static bool							IsNewCase;
-	    static ArrayList    				m_LinkList;								// store the switch of the new case path
-        static TraceEngine                  m_tEngine;
-	    static Hashtable				    m_TreeMap;								// store the switch of the old case path
-	    static int							s_Fsc;
-	    static int							s_Ufid;
-        private RecordLog _Plogger;
-	    private ArrayList   				m_Tmp		= new ArrayList();
-        private NetworkContext              m_pContext;
+	    private String          m_dbConnectionString;
+	    static bool				IsNewCase;
+	    static ArrayList    	m_LinkList;								// store the switch of the new case path
+        static TraceEngine      m_tEngine;
+	    static Hashtable		m_TreeMap;								// store the switch of the old case path
+	    static int				s_Fsc;
+	    static int				s_Ufid;
+        private RecordLog       _Plogger;
+	    private ArrayList   	m_Tmp = new ArrayList();
+        private NetworkContext  m_pContext;
 
         private OracleConnection _ConnectionTPC = null;
         private OracleTransaction _Transaction;
 
-        public TraceSubject(OracleConnection _Conn, OracleTransaction _Trx, RecordLog _Log) 
+        public TraceSubject(OracleConnection _Conn, OracleTransaction _Trx, String traceConnectionString, RecordLog _Log) 
         {
             _ConnectionTPC = _Conn;
             _Transaction = _Trx;
 		    _Plogger = _Log;
+            m_dbConnectionString = traceConnectionString;
 
 		    try 
             {
@@ -397,14 +398,14 @@
 	    }
 
 	    void configTrace() {
-		    if (DEFAULTDBSTR == null) {
-			    DEFAULTDBSTR = "basedb/basedb000@nntpc";
+		    if (m_dbConnectionString == null) {
+			    m_dbConnectionString = "basedb/basedb000@nntpc";
 		    }
 		    try {
 			    if (m_pContext == null) m_pContext = m_tEngine.teoCreateContext();
 
 			    if (m_pContext.IsConnected == 0) {
-				    m_pContext.Connect("", DEFAULTDBSTR);
+				    m_pContext.Connect("", m_dbConnectionString);
 			    }
 		    }
 		    catch (Exception ex) {

--
Gitblit v0.0.0-SNAPSHOT