private void FillPronosticoStock() { objDTO = new PronosticoStockDTO(); razonesDTO = new RazonesDTO(); gridPronostico.DataSource = objDTO.PronosticoStock(DateTime.Parse(fechaInicial.Text), DateTime.Parse(fechaFinal.Text), txtReferencia.Text, txtCodigoBodega.Text); FillCombo(); }
private void buttonGuardarRazon_Click(object sender, EventArgs e) { try { RazonesDTO objDTO = new RazonesDTO(); objDTO.InsertarRazones(txtRazon.Text); MessageBox.Show("Razon Insertada Correctamente", "Completado"); txtRazon.Text = string.Empty; FillRazones(); } catch (Exception ex) { MessageBox.Show(ex.Message, "Error"); } }
private void FillRazones() { RazonesDTO objDTO = new RazonesDTO(); gridRazones.DataSource = objDTO.GetRazones(); }