Beispiel #1
0
 public string QueryVersionNumber()
 {
     lock (typeof(HdisService))
     {
         string strReturn = string.Empty;
         if (!HdisCommon.InitConfig.isReadConfig)
         {
             HdisCommon.InitConfig ic = new HdisCommon.InitConfig();
             ic.GetIniConfig();
         }
         strReturn = HdisCommon.InitConfig.VersionNumber;
         HdisCommon.Log.Logging("{0}.{1} :{2}", "HdisService", "GetVersionNumber", "strReturn[" + strReturn + "]");
         return(strReturn);
     }
 }
 public void ConnectDB()
 {
     try
     {
         string strDbType = "ORACLE";
         DBFactory.CreateDB(strDbType);
         if (!HdisCommon.InitConfig.isReadConfig)
         {
             HdisCommon.InitConfig ic = new HdisCommon.InitConfig();
             ic.GetIniConfig();
         }
         conn.ConnectionString = HdisCommon.InitConfig.ConnectionString;
         conn.Open();
         DBOpenTimes++;
         HdisCommon.Log.Logging("{0}", "ConnectDB()" + " DBOpenTimes:" + DBOpenTimes);
         command.Connection = this.conn;
     }
     catch (Exception ex)
     {
     }
 }