Exemplo n.º 1
0
 private async void btnfac_Click(object sender, RoutedEventArgs e)
 {
     if (!Ent_Global._pvt_directo)
     {
         // -----INICIO-- - SB - VTEX2020-- - 20201222_12:57----
         if (Ent_Global._canal_venta != "AQ" && Ent_Global._canal_venta != "MV")
         {
             PedidosFacturadosVtex frm = new PedidosFacturadosVtex();
             frm.Show();
         }
         else
         {
             PanelPedidos frm = new PanelPedidos();
             frm.Show();
         }
         //-----FIN---SB-VTEX2020---20201222_12:57----
         this.Close();
     }
     else
     {
         if (Ent_Global._inicio_caja && Ent_Global._fecha_cierre_valida)
         {
             FacturacionDirecta frm = new FacturacionDirecta();
             frm.Show();
             this.Close();
         }
         else
         {
             var metroWindow = this;
             metroWindow.MetroDialogOptions.ColorScheme = MetroDialogOptions.ColorScheme;
             await metroWindow.ShowMessageAsync(Ent_Msg.msginfomacion, "Debe de iniciar el dia de venta.", MessageDialogStyle.Affirmative, metroWindow.MetroDialogOptions);
         }
     }
 }
Exemplo n.º 2
0
        private void btnprincipal_Click(object sender, RoutedEventArgs e)
        {
            PanelPedidos frm = new PanelPedidos();

            frm.Show();
            this.Close();
        }