private void Evalauacion_Rpt001_BeforePrint(object sender, System.Drawing.Printing.PrintEventArgs e)
 {
     try
     {
         List <tbl_reporte001_Info> lista = new List <tbl_reporte001_Info>();
         tbl_reporte001_Data        oda   = new tbl_reporte001_Data();
         lista      = oda.GetRpt001((IdPeriodo.Value) == null ? 0 : Convert.ToInt32(IdPeriodo.Value));
         DataSource = lista;
     }
     catch (Exception)
     {
         throw;
     }
 }
Beispiel #2
0
        public ActionResult Resolucion_calificacion(int IdPeriodo = 0)
        {
            try
            {
                tbl_reporte001_Data        odata = new tbl_reporte001_Data();
                List <tbl_reporte001_Info> lista = new List <tbl_reporte001_Info>();
                if (IdPeriodo != 0)
                {
                    lista = odata.GetRpt001(Convert.ToInt32(IdPeriodo));
                }
                else
                {
                    IdPeriodo = odata_periodo.GetUltimoPeriodo();
                    lista     = odata.GetRpt001(Convert.ToInt32(IdPeriodo));
                }

                ViewBag.IdPeriodo = IdPeriodo;
                return(PartialView("_Resolucion_calificacion_partial", lista));
            }
            catch (Exception)
            {
                throw;
            }
        }