示例#1
0
        private void RbIngrediente_Checked(object sender, RoutedEventArgs e)
        {
            ingredienteBLL ingBLL         = new ingredienteBLL();
            DataTable      ingredientesDT = ingBLL.GetIngHab();

            if (ingredientesDT.Rows.Count > 0)
            {
                dtgInsumos.ItemsSource = ingredientesDT.DefaultView;
            }
            txtID.Text           = "";
            txtStockActual.Text  = "";
            txtStockAgregar.Text = "";
        }
示例#2
0
 public void CargaDtgInsumos()
 {
     if (rbIngrediente.IsChecked == true)
     {
         ingredienteBLL ingBLL         = new ingredienteBLL();
         DataTable      ingredientesDT = ingBLL.GetIngHab();
         dtgInsumos.ItemsSource = ingredientesDT.DefaultView;
     }
     else if (rbbebestible.IsChecked == true)
     {
         bebestibleBLL bebBLL        = new bebestibleBLL();
         DataTable     bebestiblesDT = bebBLL.GetBebHabilitado();
         dtgInsumos.ItemsSource = bebestiblesDT.DefaultView;
     }
 }