Beispiel #1
0
        public DbSysAuthMainDB(string pCon_IP, string pCon_DB, string pCon_USER)
        {
            string mainKey_E256 = "6LL/J2V3x6N8kXK3qj5FOxZpRR20xWFlgnscFikXwy0=";

            EncDecClass edc          = new EncDecClass();
            string      mainKey_D256 = edc.AESDecrypt256(mainKey_E256, "eldigm");
            string      strDbconn    = pCon_IP + edc.AESDecrypt256(pCon_DB, mainKey_D256) + edc.AESDecrypt256(pCon_USER, mainKey_D256);

            _sqlHelper = new DataObj();
            _sqlHelper.SetConnect(strDbconn);
        }
Beispiel #2
0
        public DbSite(string pCon_IP, string pCon_DB, string pCon_USER, string pType)
        {
            string mainKey_E256 = "6LL/J2V3x6N8kXK3qj5FOxZpRR20xWFlgnscFikXwy0=";

            EncDecClass edc          = new EncDecClass();
            string      mainKey_D256 = edc.AESDecrypt256(mainKey_E256, "eldigm");
            string      strDbconn    = "";

            if (pType == "1")
            {
                strDbconn = pCon_IP + pCon_DB + edc.AESDecrypt256(pCon_USER, mainKey_D256);
            }
            else
            {
                strDbconn = pCon_IP + edc.AESDecrypt256(pCon_DB, mainKey_D256) + edc.AESDecrypt256(pCon_USER, mainKey_D256);
            }

            _sqlHelper = new DataObj();
            _sqlHelper.SetConnect(strDbconn);
        }
 public DbSysSysCode()
 {
     sqlHelper = new DataObj();
     sqlHelper.SetConnect(dbConStr());
 }
 public DbPractice()
 {
     sqlHelper = new DataObj();
     sqlHelper.SetConnect(dbConStr());
 }
 public DbComnCodeGrp()
 {
     sqlHelper = new DataObj();
     sqlHelper.SetConnect(dbConStr());
 }