Exemple #1
0
        private void UiBotonRefrescar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            try
            {
                if (UiComboBodega.EditValue == null)
                {
                    return;
                }

                OrdenesDeVenta = null;
                UsuarioDeseaObtenerReporte?.Invoke(sender, new OrdenDeVentaArgumento
                {
                    FechaInicio = (DateTime)UiFechaIncial.EditValue
                    ,
                    FechaFin = (DateTime)UiFechaFinal.EditValue
                    ,
                    CodigoBodega = UiComboBodega.EditValue.ToString()
                    ,
                    EsDeErp = UiBarSwitchERP.Checked
                    ,
                    Usuario = InteraccionConUsuarioServicio.ObtenerUsuario()
                });
            }
            catch (Exception ex)
            {
                InteraccionConUsuarioServicio.Mensaje(ex.Message);
            }
        }
 private void UiBotonRefrescar_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     try
     {
         Cursor.Current = Cursors.WaitCursor;
         if (ValidarBodega())
         {
             UsuarioDeseaObtenerReporte?.Invoke(e,
                                                new ConsultaArgumento
             {
                 FechaInicial = (DateTime)UiFechaIncial.EditValue,
                 FechaFinal   = (DateTime)UiFechaFinal.EditValue,
                 Login        = InteraccionConUsuarioServicio.ObtenerUsuario(),
                 CodigoBodega = UiBarItemBodega.EditValue.ToString()
             });
         }
     }
     catch (Exception ex)
     {
         InteraccionConUsuarioServicio.MensajeErrorDialogo(ex.Message);
     }
     finally
     {
         Cursor.Current = Cursors.Default;
     }
 }