private void Application_Startup_1(object sender, StartupEventArgs e) { SGCVariables.AsirClientListModulo = new List <string>() { "ALM", "MNF", "CRM", "VTA", "CMP" }; SGCVariables.ConectionString = @"Data Source = 192.168.0.40\SYSTEMSSQL2012R2; DataBase = ERP_SGC_LOCAL; User Id = sgc_local; Password = sgclocal2016"; //SGCVariables.ConectionString = @"Data Source=LTP-SYSTEMS-02\SQL2012R2EXP; DataBase = ERP_SGC; User Id = sa; Password = solutions01+"; SGCVariables.ObjESGC_Usuario = new SGC.Empresarial.Entity.ESGC_Usuario() { IdUsuario = 1, Nombres = "Abel", ObjESGC_Perfil = new SGC.Empresarial.Entity.ESGC_Perfil() { IdPerfil = 1 }, ObjESGC_Empresa = new SGC.Empresarial.Entity.ESGC_Empresa() { IdEmpresa = 1, RazonSocial = "FUNDO SAN LUIS", Ruc = "20494738423", DireccionFiscal = "Carretera Panamericana Sur KM 213 - El Carmen - Chincha - Ica", Telefono = "998392342" } }; InicializeConfiguracion.Load(); }
public static void Component() { //SGRVariables.ConectionString = @"Data Source = DESKTOP-MUKJC5Q\SQLEXPRESS; DataBase = SGR_LOCAL; User Id = sa; Password = 123456"; //SGRVariables.ConectionString = @"Data Source= DSK-SYSTEMS-03; DataBase = SGR_LOCAL; Integrated Security = true"; //string strConexion = CmpCifrarObjecto.Encriptar("Data Source = devservercss.dyndns.org,1433; DataBase = SGR_ONOFRES; User Id = sysdemo; Password = sysadmin1"); SGRVariables.ConectionString = CmpCifrarObjecto.Desencriptar((new System.IO.StreamReader(Directory.GetCurrentDirectory() + "\\conexion.txt")).ReadLine()); InicializeConfiguracion.Load(); }