private void tlbMenu_PrintClick() { try { Cursor = Cursors.WaitCursor; List <ReporteEquipoBE> lstReporte = null; lstReporte = new ReporteEquipoBL().Listado(Parametros.intEmpresaId); if (lstReporte != null) { if (lstReporte.Count > 0) { RptVistaReportes objRptEquipo = new RptVistaReportes(); objRptEquipo.VerRptEquipo(lstReporte); objRptEquipo.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 tlbMenu_PrintClick() { try { Cursor = Cursors.WaitCursor; List <ReporteProgramProductionBE> lstReporte = null; lstReporte = new ReporteProgramProductionBL().Listado(int.Parse(gvProgramProduction.GetFocusedRowCellValue("IdProgramProduction").ToString())); if (lstReporte != null) { if (lstReporte.Count > 0) { RptVistaReportes objRptProgramProduction = new RptVistaReportes(); objRptProgramProduction.VerRptProgramProduction(lstReporte); objRptProgramProduction.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 <ReporteAccidenteBE> lstReporte = null; lstReporte = new ReporteAccidenteBL().ListadoResponsable(Convert.ToInt32(cboTipo.EditValue), Convert.ToInt32(cboEmpresa.EditValue), 0, 0, 0, Convert.ToDateTime(deFechaDesde.DateTime.ToShortDateString()), Convert.ToDateTime(deFechaHasta.DateTime.ToShortDateString())); if (lstReporte != null) { if (lstReporte.Count > 0) { RptVistaReportes objRptAccidente = new RptVistaReportes(); objRptAccidente.VerRptAccidenteEmpresaResponsable(lstReporte, deFechaDesde.DateTime.ToShortDateString(), deFechaHasta.DateTime.ToShortDateString()); objRptAccidente.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 <ReporteEppBE> lstReporte = null; lstReporte = new ReporteEppBL().ListadoConsumoAnualEmpresaResponsable(); if (lstReporte != null) { if (lstReporte.Count > 0) { RptVistaReportes objRptEpp = new RptVistaReportes(); objRptEpp.VerRptEppConsumoAnualEmpresa(lstReporte); objRptEpp.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 <ReporteAccidenteBE> lstReporte = null; lstReporte = new ReporteAccidenteBL().ListadoCantidadAnualEmpresaContratista(Convert.ToInt32(cboTipo.EditValue)); if (lstReporte != null) { if (lstReporte.Count > 0) { RptVistaReportes objRptAccidente = new RptVistaReportes(); objRptAccidente.VerRptAccidenteCantidadAnualEmpresaContratista(lstReporte); objRptAccidente.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 <ReporteInspeccionTrabajoBE> lstReporte = null; lstReporte = new ReporteInspeccionTrabajoBL().ListadoSituacionMesualSede(Convert.ToInt32(cboEmpresa.EditValue), Convert.ToInt32(txtPeriodo.EditValue)); if (lstReporte != null) { if (lstReporte.Count > 0) { RptVistaReportes objRptInspeccionTrabajo = new RptVistaReportes(); objRptInspeccionTrabajo.VerRptInspeccionTrabajoSituacionMensualSede(lstReporte); objRptInspeccionTrabajo.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 <ReporteProgramProductionDevelopmentBE> lstReporte = null; lstReporte = new ReporteProgramProductionDevelopmentBL().Listado(Parametros.intEmpresaId, Convert.ToInt32(cboClient.EditValue), Convert.ToInt32(cboSituation.EditValue)); if (lstReporte != null) { if (lstReporte.Count > 0) { RptVistaReportes objRptEpp = new RptVistaReportes(); objRptEpp.VerRptProgramProductionDevelopment(lstReporte); objRptEpp.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().ListadoPersonaFecha(intIdPersona, Convert.ToDateTime(deFechaDesde.DateTime.ToShortDateString()), Convert.ToDateTime(deFechaHasta.DateTime.ToShortDateString())); if (lstReporte != null) { if (lstReporte.Count > 0) { RptVistaReportes objRptDocumentoVenta = new RptVistaReportes(); objRptDocumentoVenta.VerRptCapacitacionPersona(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 btnImprimir_Click(object sender, EventArgs e) { try { Cursor = Cursors.WaitCursor; if (mLista.Count > 0) { intIdPersona = int.Parse(gvResumenPersona.GetFocusedRowCellValue("IdPersona").ToString()); List <ReporteRespuestaPersonaBE> lstReporte = null; lstReporte = new ReporteRespuestaPersonaBL().Listado(Convert.ToInt32(cboTema.EditValue), intIdPersona); if (lstReporte != null) { RptVistaReportes objRptCapacitacion = new RptVistaReportes(); objRptCapacitacion.VerRptRespuestaPersona(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 btnImprimir_Click(object sender, EventArgs e) { try { Cursor = Cursors.WaitCursor; List <ReporteInvoiceBE> lstReporte = null; lstReporte = new ReporteInvoiceBL().ListadoCommisionCover(int.Parse(gvInvoice.GetFocusedRowCellValue("IdInvoice").ToString())); if (lstReporte != null) { if (lstReporte.Count > 0) { RptVistaReportes objRptInvoice = new RptVistaReportes(); objRptInvoice.VerRptInvoiceComisionCover(lstReporte); objRptInvoice.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 (gvPregunta.RowCount > 0) { List <ReportePreguntaBE> lstReporte = null; lstReporte = new ReportePreguntaBL().Listado(IdCuestionario); if (lstReporte != null) { RptVistaReportes objRptCapacitacion = new RptVistaReportes(); objRptCapacitacion.VerRptPregunta(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 <ReporteResumenPersonaBE> lstReporte = null; lstReporte = new ReporteResumenPersonaBL().ListadoAsistencia(0, Convert.ToInt32(cboTema.EditValue), Convert.ToInt32(txtPeriodo.EditValue)); if (lstReporte != null) { if (lstReporte.Count > 0) { RptVistaReportes objRptResumenPersona = new RptVistaReportes(); objRptResumenPersona.VerRptCapacitacionVirtual(lstReporte); objRptResumenPersona.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 (gvEpp.RowCount > 0) { int IdEpp = 0; IdEpp = int.Parse(gvEpp.GetFocusedRowCellValue("IdEpp").ToString()); List <ReporteEppBE> lstReporte = null; lstReporte = new ReporteEppBL().Listado(IdEpp); if (lstReporte != null) { RptVistaReportes objRptAccUsu = new RptVistaReportes(); objRptAccUsu.VerRptEpp(lstReporte, Parametros.strUsuarioNombres, "CROSLAND LOGISTICA S.A.C."); objRptAccUsu.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().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 tlbMenu_PrintClick() { try { Cursor = Cursors.WaitCursor; if (gvPlanAnual.RowCount > 0) { int IdPlanAnual = 0; IdPlanAnual = int.Parse(gvPlanAnual.GetFocusedRowCellValue("IdPlanAnual").ToString()); List <ReportePlanAnualBE> lstReporte = null; lstReporte = new ReportePlanAnualBL().Listado(Convert.ToInt32(cboEmpresa.EditValue), Convert.ToInt32(cboUnidadMinera.EditValue), Convert.ToInt32(txtPeriodo.EditValue)); if (lstReporte != null) { RptVistaReportes objRptAccUsu = new RptVistaReportes(); objRptAccUsu.VerRptPlanAnual(lstReporte); objRptAccUsu.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 <ReporteProgramProductionBE> lstReporte = null; if (chkClient.Checked && chkVendor.Checked) { lstReporte = new ReporteProgramProductionBL().ListadoFecha(Parametros.intEmpresaId, Convert.ToInt32(cboClient.EditValue), Convert.ToInt32(cboVendor.EditValue), Convert.ToDateTime(deDateFrom.DateTime.ToShortDateString()), Convert.ToDateTime(deDateTo.DateTime.ToShortDateString())); if (lstReporte != null) { if (lstReporte.Count > 0) { RptVistaReportes objRptEpp = new RptVistaReportes(); objRptEpp.VerRptProgramProductionDate(lstReporte, deDateFrom.DateTime.ToShortDateString(), deDateTo.DateTime.ToShortDateString()); objRptEpp.ShowDialog(); } else { XtraMessageBox.Show("No hay información para el periodo seleccionado", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); } } Cursor = Cursors.Default; return; } if (chkClient.Checked) { lstReporte = new ReporteProgramProductionBL().ListadoFecha(Parametros.intEmpresaId, Convert.ToInt32(cboClient.EditValue), 0, Convert.ToDateTime(deDateFrom.DateTime.ToShortDateString()), Convert.ToDateTime(deDateTo.DateTime.ToShortDateString())); if (lstReporte != null) { if (lstReporte.Count > 0) { RptVistaReportes objRptEpp = new RptVistaReportes(); objRptEpp.VerRptProgramProductionDate(lstReporte, deDateFrom.DateTime.ToShortDateString(), deDateTo.DateTime.ToShortDateString()); objRptEpp.ShowDialog(); } else { XtraMessageBox.Show("No hay información para el periodo seleccionado", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); } } Cursor = Cursors.Default; return; } } 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); } }
private void btnInforme_Click(object sender, EventArgs e) { try { Cursor = Cursors.WaitCursor; List <ReporteSolicitudEppBE> lstReporte = null; if (rbdSolicitudPorVencer.Checked) { lstReporte = new ReporteSolicitudEppBL().ListaPorVencer(Convert.ToInt32(cboEmpresa.EditValue), 0, 0); if (lstReporte != null) { if (lstReporte.Count > 0) { RptVistaReportes objRptSolicitud = new RptVistaReportes(); objRptSolicitud.VerRptSolicitudEppPorVencer(lstReporte); objRptSolicitud.ShowDialog(); } else { XtraMessageBox.Show("No hay información para el periodo seleccionado", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); } } } else { lstReporte = new ReporteSolicitudEppBL().ListaVencido(Convert.ToInt32(cboEmpresa.EditValue), 0, 0); if (lstReporte != null) { if (lstReporte.Count > 0) { RptVistaReportes objRptSolicitud = new RptVistaReportes(); objRptSolicitud.VerRptSolicitudEppVencida(lstReporte); objRptSolicitud.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; if (intIdPersonaResponsable == 0) { XtraMessageBox.Show("Debe seleccionar una persona", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); btnBuscar.Select(); Cursor = Cursors.Default; return; } List <ReporteAccidenteBE> lstReporte = null; lstReporte = new ReporteAccidenteBL().ListadoResponsable(Convert.ToInt32(cboTipo.EditValue), intIdEmpresaResponsable, intIdUnidadMineraResponsable, intIdAreaResponsable, intIdPersonaResponsable, Convert.ToDateTime(deFechaDesde.DateTime.ToShortDateString()), Convert.ToDateTime(deFechaHasta.DateTime.ToShortDateString())); if (lstReporte != null) { if (lstReporte.Count > 0) { RptVistaReportes objRptDocumentoVenta = new RptVistaReportes(); objRptDocumentoVenta.VerRptAccidenteResponsable(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 btnInforme_Click(object sender, EventArgs e) { try { Cursor = Cursors.WaitCursor; if (intIdPersonaResponsable == 0) { XtraMessageBox.Show("Debe seleccionar una persona", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); btnBuscar.Select(); Cursor = Cursors.Default; return; } List <ReporteDocumentoPersonaBE> lstReporte = null; lstReporte = new ReporteDocumentoPersonaBL().ListadoResponsable(0, intIdPersonaResponsable); if (lstReporte != null) { if (lstReporte.Count > 0) { RptVistaReportes objRptDocumentoVenta = new RptVistaReportes(); objRptDocumentoVenta.VerRptDocumentoPersona(lstReporte); 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 (gvInspeccionTrabajo.RowCount > 0) { int IdInspeccionTrabajo = 0; IdInspeccionTrabajo = int.Parse(gvInspeccionTrabajo.GetFocusedRowCellValue("IdInspeccionTrabajo").ToString()); List <ReporteInspeccionTrabajoBE> lstReporte = null; lstReporte = new ReporteInspeccionTrabajoBL().Listado(IdInspeccionTrabajo); if (lstReporte != null) { RptVistaReportes objRptAccUsu = new RptVistaReportes(); objRptAccUsu.VerRptInspeccionTrabajo(lstReporte); objRptAccUsu.ShowDialog(); } else { XtraMessageBox.Show("No hay información para el periodo seleccionado", this.Text, MessageBoxButtons.OK, MessageBoxIcon.Warning); } } Cursor = Cursors.Default; 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; List <ReporteInvoiceBE> lstReporteTemp = null; List <ReporteInvoiceBE> lstReporte = new List <ReporteInvoiceBE>(); int[] rows = gvInvoice.GetSelectedRows(); for (int i = 0; i < rows.Length; i++) { lstReporteTemp = new ReporteInvoiceBL().Listado(int.Parse(gvInvoice.GetRowCellValue(rows[i], gvInvoice.Columns.ColumnByFieldName("IdInvoice")).ToString())); foreach (var item in lstReporteTemp) { ReporteInvoiceBE objE_Reporte = new ReporteInvoiceBE(); objE_Reporte.NameCompany = item.NameCompany; objE_Reporte.Logo = item.Logo; objE_Reporte.NumberInvoice = item.NumberInvoice; objE_Reporte.NameClient = item.NameClient; objE_Reporte.ConceptoImprime = item.ConceptoImprime; objE_Reporte.IssueDate = item.IssueDate; objE_Reporte.NameDestination = item.NameDestination; objE_Reporte.BrandCertificate = item.BrandCertificate; objE_Reporte.PercentComision = item.PercentComision; objE_Reporte.ComisionImprime = item.ComisionImprime; objE_Reporte.AddressClient = item.AddressClient; objE_Reporte.Contac = item.Contac; objE_Reporte.Occupation = item.Occupation; objE_Reporte.NoteGeneral = item.NoteGeneral; objE_Reporte.NameBank = item.NameBank; objE_Reporte.NumberCtaCte = item.NumberCtaCte; objE_Reporte.Swift = item.Swift; objE_Reporte.CodeAba = item.CodeAba; objE_Reporte.AddressBank = item.AddressBank; objE_Reporte.Phone = item.Phone; objE_Reporte.Representative = item.Representative; objE_Reporte.NameCurrency = item.NameCurrency; objE_Reporte.TotalAmount = item.TotalAmount; objE_Reporte.TotalComision = item.TotalComision; objE_Reporte.TotalPieces = item.TotalPieces; objE_Reporte.ComisionLetter = item.ComisionLetter; objE_Reporte.NameStatus = item.NameStatus; objE_Reporte.NumberCertificate = item.NumberCertificate; objE_Reporte.IssueCertificate = item.IssueCertificate; objE_Reporte.NameVendor = item.NameVendor; objE_Reporte.NumberInvoiceCertificate = item.NumberInvoiceCertificate; objE_Reporte.IssueDateInvoice = item.IssueDateInvoice; objE_Reporte.NameDivision = item.NameDivision; objE_Reporte.Amount = item.Amount; objE_Reporte.Comision = item.Comision; objE_Reporte.Pieces = item.Pieces; objE_Reporte.CertificateVince = item.CertificateVince; objE_Reporte.StyleVince = item.StyleVince; lstReporte.Add(objE_Reporte); } } if (lstReporte != null) { if (lstReporte.Count > 0) { RptVistaReportes objRptInvoice = new RptVistaReportes(); objRptInvoice.VerRptInvoice(lstReporte); objRptInvoice.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; List <ReporteInspectionCertificateBE> lstReporteTemp = null; List <ReporteInspectionCertificateBE> lstReporte = new List <ReporteInspectionCertificateBE>(); int[] rows = gvInspectionCertificate.GetSelectedRows(); for (int i = 0; i < rows.Length; i++) { lstReporteTemp = new ReporteInspectionCertificateBL().Listado(int.Parse(gvInspectionCertificate.GetRowCellValue(rows[i], gvInspectionCertificate.Columns.ColumnByFieldName("IdInspectionCertificate")).ToString())); foreach (var item in lstReporteTemp) { ReporteInspectionCertificateBE objE_Reporte = new ReporteInspectionCertificateBE(); objE_Reporte.NameCompany = item.NameCompany; objE_Reporte.Logo = item.Logo; objE_Reporte.NumberCertificate = item.NumberCertificate; objE_Reporte.NumberPO = item.NumberPO; objE_Reporte.NumberOI = item.NumberOI; objE_Reporte.NameClient = item.NameClient; objE_Reporte.Comment = item.Comment; objE_Reporte.NameDivision = item.NameDivision; objE_Reporte.BrandCertificate = item.BrandCertificate; objE_Reporte.NameVendor = item.NameVendor; objE_Reporte.PaymentTerm = item.PaymentTerm; objE_Reporte.Cartons = item.Cartons; objE_Reporte.IssueDate = item.IssueDate; objE_Reporte.NameRepresentative = item.NameRepresentative; objE_Reporte.DescriptionStyle = item.DescriptionStyle; objE_Reporte.NumberInvoice = item.NumberInvoice; objE_Reporte.IssueDateInvoice = item.IssueDateInvoice; objE_Reporte.NameCurrency = item.NameCurrency; objE_Reporte.Amount = item.Amount; objE_Reporte.EtdDate = item.EtdDate; objE_Reporte.NameTypeShipping = item.NameTypeShipping; objE_Reporte.BoardingWay = item.BoardingWay; objE_Reporte.NameStatus = item.NameStatus; objE_Reporte.Style = item.Style; lstReporte.Add(objE_Reporte); } } if (lstReporte != null) { if (lstReporte.Count > 0) { RptVistaReportes objRptInspectionCertificate = new RptVistaReportes(); objRptInspectionCertificate.VerRptInspectionCertificate(lstReporte); objRptInspectionCertificate.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); } }