private void btnInforme_Click(object sender, EventArgs e) { try { Cursor = Cursors.WaitCursor; List <ReporteCapacitacionBE> lstReporte = null; lstReporte = new ReporteCapacitacionBL().ListadoHorasAnualAreaResponsable(Convert.ToInt32(cboEmpresa.EditValue), Convert.ToInt32(cboUnidadMinera.EditValue)); if (lstReporte != null) { if (lstReporte.Count > 0) { RptVistaReportes objRptCapacitacion = new RptVistaReportes(); objRptCapacitacion.VerRptCapacitacionHorasAnualArea(lstReporte); objRptCapacitacion.ShowDialog(); } else { XtraMessageBox.Show("No hay información para el periodo seleccionado", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); } } Cursor = Cursors.Default; } catch (Exception ex) { Cursor = Cursors.Default; XtraMessageBox.Show(ex.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void btnInforme_Click(object sender, EventArgs e) { try { Cursor = Cursors.WaitCursor; List <ReporteCapacitacionBE> lstReporte = null; lstReporte = new ReporteCapacitacionBL().ListadoTipoFecha(Parametros.intEmpresaId, Convert.ToInt32(cboTipo.EditValue), Convert.ToDateTime(deFechaDesde.DateTime.ToShortDateString()), Convert.ToDateTime(deFechaHasta.DateTime.ToShortDateString())); if (lstReporte != null) { if (lstReporte.Count > 0) { RptVistaReportes objRptDocumentoVenta = new RptVistaReportes(); objRptDocumentoVenta.VerRptCapacitacionTipo(lstReporte, deFechaDesde.DateTime.ToShortDateString(), deFechaHasta.DateTime.ToShortDateString()); objRptDocumentoVenta.ShowDialog(); } else { XtraMessageBox.Show("No hay información para el periodo seleccionado", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); } } Cursor = Cursors.Default; } catch (Exception ex) { Cursor = Cursors.Default; XtraMessageBox.Show(ex.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void tlbMenu_PrintClick() { try { Cursor = Cursors.WaitCursor; if (gvCapacitacion.RowCount > 0) { int IdCapacitacion = 0; IdCapacitacion = int.Parse(gvCapacitacion.GetFocusedRowCellValue("IdCapacitacion").ToString()); List <ReporteCapacitacionBE> lstReporte = null; lstReporte = new ReporteCapacitacionBL().Listado(IdCapacitacion); if (lstReporte != null) { RptVistaReportes objRptCapacitacion = new RptVistaReportes(); objRptCapacitacion.VerRptCapacitacion(lstReporte); objRptCapacitacion.ShowDialog(); } else { XtraMessageBox.Show("No hay información para el periodo seleccionado", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); } } Cursor = Cursors.Default; } catch (Exception ex) { Cursor = Cursors.Default; XtraMessageBox.Show(ex.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void btnInforme_Click(object sender, EventArgs e) { try { Cursor = Cursors.WaitCursor; List <ReporteCapacitacionBE> lstReporte = null; lstReporte = new ReporteCapacitacionBL().ListadoInasistencia(Convert.ToInt32(cboEmpresa.EditValue), Convert.ToInt32(txtPeriodo.EditValue), Convert.ToInt32(cboTipo.EditValue), Convert.ToInt32(cboClasificacion.EditValue)); if (lstReporte != null) { if (lstReporte.Count > 0) { RptVistaReportes objRptDocumentoVenta = new RptVistaReportes(); objRptDocumentoVenta.VerRptCapacitacionInasistencia(lstReporte, cboTipo.Text.Trim(), cboClasificacion.Text.Trim()); objRptDocumentoVenta.ShowDialog(); } else { XtraMessageBox.Show("No hay información para el periodo seleccionado", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); } } Cursor = Cursors.Default; } catch (Exception ex) { Cursor = Cursors.Default; XtraMessageBox.Show(ex.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error); } }
private void btnInforme_Click(object sender, EventArgs e) { try { Cursor = Cursors.WaitCursor; List <ReporteCapacitacionBE> lstReporte = null; if (rbdCapacitacionAprobada.Checked) { lstReporte = new ReporteCapacitacionBL().ListadoAprobadaFecha(Convert.ToInt32(cboEmpresa.EditValue), Convert.ToInt32(cboTema.EditValue), Convert.ToDateTime(deFechaDesde.DateTime.ToShortDateString()), Convert.ToDateTime(deFechaHasta.DateTime.ToShortDateString())); if (lstReporte != null) { if (lstReporte.Count > 0) { RptVistaReportes objRptCapacitacion = new RptVistaReportes(); objRptCapacitacion.VerRptCapacitacionAprobada(lstReporte, deFechaDesde.DateTime.ToShortDateString(), deFechaHasta.DateTime.ToShortDateString()); objRptCapacitacion.ShowDialog(); } else { XtraMessageBox.Show("No hay información para el periodo seleccionado", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); } } } else { lstReporte = new ReporteCapacitacionBL().ListadoDesaprobadaFecha(Convert.ToInt32(cboEmpresa.EditValue), Convert.ToInt32(cboTema.EditValue), Convert.ToDateTime(deFechaDesde.DateTime.ToShortDateString()), Convert.ToDateTime(deFechaHasta.DateTime.ToShortDateString())); if (lstReporte != null) { if (lstReporte.Count > 0) { RptVistaReportes objRptCapacitacion = new RptVistaReportes(); objRptCapacitacion.VerRptCapacitacionDesaprobada(lstReporte, deFechaDesde.DateTime.ToShortDateString(), deFechaHasta.DateTime.ToShortDateString()); objRptCapacitacion.ShowDialog(); } else { XtraMessageBox.Show("No hay información para el periodo seleccionado", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); } } } Cursor = Cursors.Default; } catch (Exception ex) { Cursor = Cursors.Default; XtraMessageBox.Show(ex.Message, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Error); } }