public void imprimirReporteAplicacion(string usuario, int Modulo, int Aplicacion) { PropiedadReporteControl propiedadReporteControl = new PropiedadReporteControl(); PropiedadReporte propiedadReporte = propiedadReporteControl.obtenerPropiedadPorUsuarioAplicacion(usuario, Aplicacion, Modulo); ReporteAplicacionControl datos = new ReporteAplicacionControl(); ReporteAplicacion repApp = datos.obtenerReporteApp(Aplicacion, Modulo); Reporte rpt = repApp.REPORTE; string pathFile = rpt.CONFIGURACION.RUTA + rpt.NOMBRE_ARCHIVO; Frm_VistaReporte frmVistaRpt; switch (propiedadReporte.IMPRIMIR) { case 0: frmVistaRpt = new Frm_VistaReporte(pathFile, 0); frmVistaRpt.Show(); break; case 1: frmVistaRpt = new Frm_VistaReporte(pathFile, 1); frmVistaRpt.Show(); break; default: break; } }
private void llenarTbpDato(ReporteAplicacion reporteApp) { deshabilitarCampos(); ReporteAplicacionControl reporteAplicacionCont = new ReporteAplicacionControl(); ReporteAplicacion reporteAplicacion = reporteAplicacionCont.obtenerReporteApp(reporteApp.APLICACION.APLICACION, reporteApp.MODULO.MODULO); Cmb_Reporte.Text = reporteAplicacion.REPORTE.NOMBRE; Cmb_Reporte.SelectedText = Cmb_Reporte.Text; Cmb_Modulo.Text = reporteAplicacion.MODULO.NOMBRE; Cmb_Modulo.SelectedText = Cmb_Modulo.Text; Cmb_Aplicacion.SelectedText = reporteAplicacion.APLICACION.NOMBRE; Txt_Estado.Text = reporteApp.ESTADO.ToString(); }