Esempio n. 1
0
        protected GenericRepository(string MatView)
        {
            _appCode = Settings.AppCode.ToLower() + "_connect";
            _appCode = Settings.AppCode.ToLower();
            _appBase = Settings.AppBase.ToLower();

            //_appBase = "wqa";

            //_pwd = Security.Security_Encryption(_appCode, "PBCSECURITY", _appBase);

            _pwd = "goldenpalm";

            _ConStr = "Data Source=" + _appBase + ";User Id=" + _appCode + ";Password="******";";
            dal     = new GoldenPalm.DAL.DAL(_ConStr);
        }
Esempio n. 2
0
        protected GenericRepository()
        {
            _appCode = Settings.AppCode.ToLower();
            //_appCode = Settings.AppCode.ToLower();
            _appBase = Settings.AppBase.ToLower();

            //_appBase = "wqa";

            _pwd = Security.Security_Encryption(_appCode, "PBCSECURITY", _appBase);

            _pwd = "goldenpalm";

            _ConStr = "Data Source=" + _appBase + ";User Id=" + _appCode + ";Password="******";";
            dal     = new GoldenPalm.DAL.DAL(_ConStr);

            // Load all the codes
            //if (Codes.listCode == null || Codes.refreshCodes)
            //{
            //    Codes.listCodeMaster = GetAllCodeMaster();
            //    Codes.listCode = GetAllCodeDetail();
            //    Codes.refreshCodes = false;
            //}
        }
Esempio n. 3
0
        protected void changeAppType(string AppType)
        {
            if (AppType == "SEC")
            {
                //_appBase = Settings.SecAppBase.ToLower();
                _pwd = Security.Security_Encryption("eccs_connect", "PBCSECURITY", _appBase);

                _ConStr = "Data Source=" + _appBase + ";User Id=eccs_connect;Password='******';";

                dal = new GoldenPalm.DAL.DAL(_ConStr);
            }

            else if (AppType == "TFS")
            {
                //_appBase = Settings.SecAppBase.ToLower();
                _appCode = "harauto_connect";
                _pwd     = "first";


                _ConStr = "Data Source=" + _appBase + ";User Id=" + _appCode + ";Password="******";";

                dal = new GoldenPalm.DAL.DAL(new DbSettings(_ConStr, "retCursor"));
            }
        }