Ejemplo n.º 1
0
        private void UiBotonReporte_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            try
            {
                if (Cajas == null)
                {
                    return;
                }

                UiVistaPrincipal.ExpandAllGroups();
                var listaCajas = GetFilteredData <Caja>(UiVistaPrincipal);

                var reporte = new Reportes.ConsultaLineaPicking(false)
                {
                    DataSource        = ListToDataTableClass.ListToDataTable(listaCajas),
                    RequestParameters = false
                };
                reporte.Parameters["ImagenLogo"].Value = InteraccionConUsuarioServicio.ObtenerLogo();
                reporte.FillDataSource();

                using (var printTool = new ReportPrintTool(reporte))
                {
                    printTool.ShowRibbonPreviewDialog();
                }
            }
            catch (Exception ex)
            {
                InteraccionConUsuarioServicio.MensajeErrorDialogo(ex.Message);
            }
        }
Ejemplo n.º 2
0
 private void UiBotonExpandir_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     try
     {
         UiVistaPrincipal.ExpandAllGroups();
     }
     catch (Exception ex)
     {
         InteraccionConUsuarioServicio.Alerta(ex.Message);
     }
 }
        private void UiBotonImprimir_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            try
            {
                Cursor.Current = Cursors.WaitCursor;
                if (PedidosPorVendedor == null)
                {
                    return;
                }

                UiVistaPrincipal.ExpandAllGroups();
                var pedidosPorVendedor = GetFilteredData <ReportePedidosPorVendedor>(UiVistaPrincipal);

                var reporte = new Reportes.ConsultaPedidosPorVendedor()
                {
                    DataSource        = ListToDataTableClass.ListToDataTable(pedidosPorVendedor),
                    RequestParameters = false
                };
                reporte.Parameters["ImagenLogo"].Value = InteraccionConUsuarioServicio.ObtenerLogo();
                reporte.Parameters["Usuario"].Value    = InteraccionConUsuarioServicio.ObtenerUsuario();
                reporte.FillDataSource();

                using (var printTool = new ReportPrintTool(reporte))
                {
                    printTool.ShowRibbonPreviewDialog();
                }
            }
            catch (Exception ex)
            {
                InteraccionConUsuarioServicio.MensajeErrorDialogo(ex.Message);
            }
            finally
            {
                Cursor.Current = Cursors.Default;
            }
        }
Ejemplo n.º 4
0
 private void UiBotonExpandir_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     UiVistaPrincipal.ExpandAllGroups();
 }