Exemple #1
0
        private void Grid_Loaded(object sender, RoutedEventArgs e)
        {
            cboOs.ItemsSource       = OrdemDeServicoDAO.ListarTodasAsOrdens();
            cboOs.DisplayMemberPath = "OrdemId";
            cboOs.SelectedValuePath = "OrdemId";

            if (cboOs.SelectedIndex == -1)
            {
                estoque = null;
                estoque = EstoqueDAO.BuscarTodaListaDeSaida();
                dtGridEstoqueSaida.ItemsSource = estoque;
            }
        }
Exemple #2
0
 // GET: Estoque
 public IActionResult Index(int drpCategorias)
 {
     if (drpCategorias != 0)
     {
         ViewBag.Categorias = new SelectList(cDAO.ListarTodos(), "CategoriaId", "Nome");
         ViewBag.DataHora   = DateTime.Now;
         ViewBag.Entrada    = eDAO.BuscarEstoqueEntrdaPorCategoria(drpCategorias);
         ViewBag.Saida      = eDAO.BuscarEstoquesaidaPorCategoria(drpCategorias);
         return(View());
     }
     ViewBag.Categorias = new SelectList(cDAO.ListarTodos(), "CategoriaId", "Nome");
     ViewBag.DataHora   = DateTime.Now;
     ViewBag.Entrada    = eDAO.BuscarTodaListaDeEntrada();
     ViewBag.Saida      = eDAO.BuscarTodaListaDeSaida();
     return(View());
 }
Exemple #3
0
 private void Button_Click(object sender, RoutedEventArgs e)
 {
     cboOs.SelectedIndex            = -1;
     estoque                        = EstoqueDAO.BuscarTodaListaDeSaida();
     dtGridEstoqueSaida.ItemsSource = estoque;
 }