private void Page_Load(object sender, System.EventArgs e) { string permiteReportes = System.Configuration.ConfigurationSettings.AppSettings["Server"]; string dirServerReportes = System.Configuration.ConfigurationSettings.AppSettings["DirServerReportes"]; if (permiteReportes == "P") { // si no permite reportes, entonces redirecciona al servidor de reportes string pass = Session["Pass"] != null ? Session["Pass"].ToString() : ""; Response.Redirect(dirServerReportes + "Redirecciona.aspx?LoginRedir=" + this.UsuarioConectadoID + "&p=" + pass + "&Pagina=ReporteGuiasCodigoBarras.aspx"); } if (User.Identity.IsAuthenticated) { //this.SetCultura(); string sOpcion = "reporteGuiasAsignadasPrevendidasCodigoBarras"; Menu oMenu = (Menu)this.FindControl("Menu1"); this.ValidarSeguridad(oMenu, sOpcion); } if (!Page.IsPostBack) { LlenarCombos.UnidadesVentas(this.ddlUnidadVenta, "Todas"); LlenarCombos.CategoriaUVenta(this.ddlCategoriaUVenta, "Todas"); LlenarCombos.ConceptoFacturacion(this.ddlConceptoFacturacion, "Todos"); LlenarCombos.CategoriaConceptoFacturacion(this.ddlCategoriaConceptoFacturacion, "Todos"); } }
protected void chkCategoriaConcepto_CheckedChanged(object sender, EventArgs e) { if (chkCategoriaConcepto.Checked) { LlenarCombos.CategoriaConceptoFacturacion(this.lstConceptoFacturacion, this.UnidadNegocioID); } else { LlenarCombos.ConceptoFacturacion(this.lstConceptoFacturacion, this.UnidadNegocioID); } }