public void InsertarIngrediente(Ingredientes_x_Torta ing) { string Consulta = "insert into Cliente(idTorta,idProducto,Cantidad,Costo,Estado)" + "values(" + ing.getTorta() + "," + ing.getIdPro() + "," + ing.getCantidad() + "," + ing.getCosto() + ",1)"; ds.RealizarConsulta(Consulta); }
private void btnAceptar_Click(object sender, EventArgs e) { Ingredientes_x_Torta IT = new Ingredientes_x_Torta(); IT.setCantidad(float.Parse(nudCant.Text.ToString())); IT.setCosto(float.Parse(txtCosto.Text.ToString())); IT.setEstado(true); IT.setIdPro(int.Parse(txtProd.Text.ToString())); IT.setTorta(int.Parse(txtTorta.Text.ToString())); N_IngredienteTorta Ing = new N_IngredienteTorta(); Ing.datosIng(IT); }
public void datosIng(Ingredientes_x_Torta Ing) { IT.InsertarIngrediente(Ing); }