Ejemplo n.º 1
0
        private void BindGrid()
        {
            try
            {
                SisPackController.AdministrarGrillas.Configurar(dtgGuias, "", this.CantidadOpciones);

                DataSet ds = new DataSet();
                dtgGuias.ShowFooter = true;
                dtgGuias.ShowHeader = true;
                //Filtros de fecha.
                System.DateTime fechaDesde = this.txtFechaDesde.Text.Equals("") ? Convert.ToDateTime("01/01/" + System.DateTime.Today.Year) : Convert.ToDateTime(this.txtFechaDesde.Text);
                System.DateTime fechaHasta = this.txtFechaHasta.Text.Equals("") ? Convert.ToDateTime("31/12/" + System.DateTime.Today.Year) : Convert.ToDateTime(this.txtFechaHasta.Text);
                string          clientes   = this.SetFiltros();
                IGuia           guia       = GuiaFactory.GetGuia();
                ds = guia.GetReporteCalidadDigitalizacion(clientes, fechaDesde, fechaHasta);

                Session["DsReporteCalidadDigitalizacion"] = ds;

                dtgGuias.AllowPaging      = true;
                dtgGuias.DataSource       = ds;
                dtgGuias.CurrentPageIndex = 0;
                dtgGuias.DataBind();
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }