protected void Page_Load(object sender, EventArgs e) { _Server srv = new _Server(); DBdevelop = srv.DBdevelop; DBproduc = srv.DBproduc; DBCat = srv.DBCat; DBPro = srv.DBpro; if (HttpContext.Current.Session["RFC"] == null && HttpContext.Current.Session["USRswUsrInterno"].ToString() == "0") { Response.Redirect("Login.aspx"); return; } if (HttpContext.Current.Session["RFC"] == null && HttpContext.Current.Session["USRswUsrInterno"].ToString() == "1") { Response.Redirect("UserLogin.aspx"); return; } //HttpContext.Current.Session["FolioContra"] = 30762;//31585; //HttpContext.Current.Session["DoctoContra"] = "QTCR"; //HttpContext.Current.Session["ef_cve"] = "001"; //LblProveedor.Text = "CHT DE MEXICO, S.A. DE C.V., RFC:CME040114HB5"; //HttpContext.Current.Session["nomProveedor"] = "Bienvenido CHT DE MEXICO, S.A. DE C.V. - [P@001929]"; _msgs = (String)HttpContext.Current.Session["msgs"]; if (_msgs != "") { TxtMensajes.Text = _msgs; //err = 1; TxtMensajes.Visible = true; BtnImprimir.Visible = false; } else { if (_numFol == null) { _numFol = HttpContext.Current.Session["FolioContra"].ToString(); _tipdocCve = HttpContext.Current.Session["DoctoContra"].ToString(); _efCve = HttpContext.Current.Session["ef_cve"].ToString(); } this.TxtMensajeExitoso.Text = @"La factura se ha procesado exitosamente, consulte la sección Seguimiento para descargar el folio de contrarecibo: " + _numFol.Trim() + Environment.NewLine; this.TxtMensajeExitoso.Visible = true; TxtMensajes.Text = ""; TxtMensajes.Visible = false; } }
protected void Page_Load(object sender, EventArgs e) { _Server _srv = new _Server(); var _DBdevelop = (string)HttpContext.Current.Session["DBdevelop"]; var _DBproduc = (string)HttpContext.Current.Session["DBproduc"]; var _DBCat = (string)HttpContext.Current.Session["DBCat"]; var _DBPro = (string)HttpContext.Current.Session["DBPro"]; DBdevelop = _srv.DBdevelop; DBproduc = _srv.DBproduc; DBCat = _srv.DBCat; DBPro = _srv.DBpro; var efCve = (string)HttpContext.Current.Session["ef_cve_imp"]; var folio = (string)HttpContext.Current.Session["num_fol_imp"]; var doc = (string)HttpContext.Current.Session["tipdoc_imp"]; if (efCve != "" && folio != string.Empty && doc != string.Empty) { ImprimeReporte(efCve, folio, doc); } }