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);
            }
        }
Example #2
0
        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 <ReporteAccidenteBE> lstReporte = null;
                lstReporte = new ReporteAccidenteBL().ListadoActoSubEstandar(Convert.ToInt32(cboTipo.EditValue), Convert.ToInt32(cboEmpresa.EditValue), 0, 0, Convert.ToInt32(cboActoSubEstandar.EditValue), Convert.ToDateTime(deFechaDesde.DateTime.ToShortDateString()), Convert.ToDateTime(deFechaHasta.DateTime.ToShortDateString()));

                if (lstReporte != null)
                {
                    if (lstReporte.Count > 0)
                    {
                        RptVistaReportes objRptAccidente = new RptVistaReportes();
                        objRptAccidente.VerRptAccidenteActoSubEstandar(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 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 <ReporteCapacitacionBE> lstReporte = null;
                lstReporte = new ReporteCapacitacionBL().ListadoHorasAnualClasificacion(Convert.ToInt32(cboEmpresa.EditValue));

                if (lstReporte != null)
                {
                    if (lstReporte.Count > 0)
                    {
                        RptVistaReportes objRptCapacitacion = new RptVistaReportes();
                        objRptCapacitacion.VerRptCapacitacionHorasAnualClasificacion(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().ListadoHorasAnualEmpresaResponsable();

                if (lstReporte != null)
                {
                    if (lstReporte.Count > 0)
                    {
                        RptVistaReportes objRptResumenPersona = new RptVistaReportes();
                        objRptResumenPersona.VerRptResumenPersonaHorasAnualEmpresa(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 btnInforme_Click(object sender, EventArgs e)
        {
            try
            {
                Cursor = Cursors.WaitCursor;

                List <ReporteEppBE> lstReporte = null;
                lstReporte = new ReporteEppBL().ListadoConsumoMensualAreaResponsable(Convert.ToInt32(txtPeriodo.EditValue), Convert.ToInt32(cboEmpresa.EditValue), 0);

                if (lstReporte != null)
                {
                    if (lstReporte.Count > 0)
                    {
                        RptVistaReportes objRptEpp = new RptVistaReportes();
                        objRptEpp.VerRptEppConsumoMensualArea(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);
            }
        }
Example #8
0
        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 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);
            }
        }
Example #10
0
        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);
            }
        }
Example #11
0
        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);
            }
        }
Example #12
0
        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);
            }
        }
Example #13
0
        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 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 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);
            }
        }
Example #16
0
        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);
            }
        }
        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);
            }
        }