Exemple #1
0
        private string _getPeriodoVigente()
        {
            string periodoVigente = string.Empty;

            try{
                ProxySeguro.GestorAdministracionGeneral gag = new ProxySeguro.GestorAdministracionGeneral();
                periodoVigente = gag.getPeriodoVigente();
            }catch (Exception ex) {
                Errores err = new Errores();
                err.SetError(ex, "_getPeriodoVigente");
            }

            return(periodoVigente);
        }
        private string _getPeriodoVigente()
        {
            string strPV          = string.Empty;
            string periodoVigente = string.Empty;

            try{
                ProxySeguro.GestorAdministracionGeneral gag = new ProxySeguro.GestorAdministracionGeneral();
                gag.CookieContainer = new CookieContainer();
                gag.set_fUbicacion("");
                strPV = gag.getPeriodoVigente();

                periodoVigente = (!string.IsNullOrEmpty(strPV)) ? strPV
                                                                : this.strGetUltimoPeriodoRegistrado();
            }
            catch (Exception ex) {
                periodoVigente = string.Empty;

                Errores err = new Errores();
                err.SetError(ex, "getPeriodoVigente");
                err.setInfo("HomeController", ex.Message + " - " + UsuarioActual.Cedula.ToString() + " - " + UsuarioActual.CarreraActual.Nombre.ToString());
            }

            return(periodoVigente);
        }