Пример #1
0
 private void menuItem4_Click(object sender, EventArgs e)
 {
     try 
     {
         Cursor = System.Windows.Forms.Cursors.WaitCursor;
         ConsultaLote c = new ConsultaLote(ConsultaLote.Modo.Contingencia);
         c.ShowDialog();
         c.Dispose();
     }
     catch (Exception ex)
     {
         Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.Publish(ex);
     }
     finally
     {
         Cursor = System.Windows.Forms.Cursors.Default;
     }
 }
Пример #2
0
 private void ConsultarLote()
 {
     try
     {
         Cursor = System.Windows.Forms.Cursors.WaitCursor;
         if (BandejaSDataGridView.SelectedRows.Count != 0)
         {
             eFact_Entidades.Lote lote = new eFact_Entidades.Lote();
             int renglon = BandejaSDataGridView.SelectedRows[0].Index;
             lote = dtBandejaSalida[renglon];
             if (lote.IdNaturalezaLote != "Compra")
             {
                 ConsultaLote cl = new ConsultaLote(lote, ConsultaLote.Modo.Consulta);
                 cl.ShowDialog();
                 cl.Dispose();
             }
             else
             {
                 ConsultaLoteC cl = new ConsultaLoteC(lote);
                 cl.ShowDialog();
                 cl.Dispose();
             }
         }
     }
     catch (Exception ex)
     {
         Microsoft.ApplicationBlocks.ExceptionManagement.ExceptionManager.Publish(ex);
     }
     finally
     {
         Cursor = System.Windows.Forms.Cursors.Default;
     }
 }