Ejemplo n.º 1
0
        private void Llenar_GRILLA()
        {
            DB_EXT_SegSemanalTotales seg = new DB_EXT_SegSemanalTotales();

            GVAdversidades.DataSource = seg.DB_Desplegar_SEG_ADVERSIDAD(Convert.ToInt32(DDLRegional.SelectedValue), Convert.ToInt32(DDLCamp.SelectedValue), DDLProg.SelectedValue, Convert.ToInt32(DDLYear.SelectedValue), Convert.ToInt32(DDLMonth.SelectedValue), "ADVERSIDADES");
            GVAdversidades.DataBind();
        }
Ejemplo n.º 2
0
        private void Llenar_DDYEAR()
        {
            DB_EXT_SegSemanalTotales seg = new DB_EXT_SegSemanalTotales();
            DataTable dt = new DataTable();

            dt = seg.DB_Desplegar_SEG_ADVERSIDAD(Convert.ToInt32(DDLRegional.SelectedValue), Convert.ToInt32(DDLCamp.SelectedValue), DDLProg.SelectedValue, 0, 0, "SEGUIMIENTO_YEARS");
            if (dt.Rows.Count > 0)
            {
                DDLYear.DataSource     = dt;
                DDLYear.DataValueField = "Fecha_Seg";
                DDLYear.DataTextField  = "Fecha_Seg";
            }
            else
            {
                DDLYear.Items.Insert(0, new ListItem("2015", "2015"));
            }
        }