Esempio n. 1
0
        private void ReporteMedGeneral()
        {
            string          rutatarget = ConfigurationManager.AppSettings["RutaReportes"].ToString();
            MedGeneralRptBE entidad    = new MedGeneralRptBE()
            {
                ID_MEDMIT = 0
            };

            ConfigurarReporte();
            rvReporte.LocalReport.ReportPath = string.Format("{0}\\rptMedGeneral.rdlc", rutatarget);
            List <MedGeneralRptBE> lbeReporte = ReporteLN.ListaMedGeneralRpt(entidad);

            ReportDataSource dataSource = new ReportDataSource("DtMedGeneral", lbeReporte);

            rvReporte.LocalReport.DataSources.Clear();
            rvReporte.LocalReport.DataSources.Add(dataSource);
            rvReporte.ServerReport.Refresh();
        }
Esempio n. 2
0
        public List <MedGeneralRptBE> ListaMedGeneralRpt(MedGeneralRptBE entidad)
        {
            List <MedGeneralRptBE> Lista = null;

            try
            {
                using (IDbConnection db = new OracleConnection(CadenaConexion))
                {
                    string sp = sPackage + "SP_SEL_ESCENARIOS_RPT";
                    var    p  = new OracleDynamicParameters();
                    p.Add("pIdMedMit", entidad.ID_MEDMIT);
                    p.Add("pCursor", dbType: OracleDbType.RefCursor, direction: ParameterDirection.Output);
                    Lista = db.Query <MedGeneralRptBE>(sp, p, commandType: CommandType.StoredProcedure).ToList();
                }
            }
            catch (Exception ex)
            {
                Log.Error(ex);
            }

            return(Lista);
        }
Esempio n. 3
0
 public static List <MedGeneralRptBE> ListaMedGeneralRpt(MedGeneralRptBE entidad)
 {
     return(reporteDA.ListaMedGeneralRpt(entidad));
 }