Exemple #1
0
 public static void SetDBConn(string strRegion, string strRunMode)
 {
     try
     {
         QCI.OF_Common.InitRemoting.SetSqlClient();
         QCI.OF_Common.InitRemoting.SetFileAccess();
         QCI.OF_Common.InitRemoting.SetMail();
         objSQLAccess = QCI.OF_Common.InitRemoting.objSqlClient;
         objSQLAccess.SetDBConnection(strRegion, strRunMode);
         objSQLAccess.CommandTimeout = 3000;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
Exemple #2
0
        public static void SetDBConn(string strRegion)
        {
            string strRegion1 = "QSMCONEGDS";
            string strRunMode = "T";

            InitRemoting.SetMail();
            objMailAccess = InitRemoting.objMail;
            objMailAccess.SetDefaultMailTo(new ArrayList(arrDefaultMail));
            InitRemoting.SetSqlClient();
            objSQLAccess = InitRemoting.objSqlClient;
            objSQLAccess.SetDBConnection(strRegion1, strRunMode);
            objSQLAccess.CommandTimeout = 0;


            InitRemoting.SetFileAccess();
            objFileAccess = InitRemoting.objFileAccess;
        }