cambio de nombre, añadida otra precarga de datos para

This commit is contained in:
fedpo
2024-08-05 23:21:01 +01:00
committed by fede
parent 81f879eec3
commit e1502ecab0
22 changed files with 351 additions and 130 deletions

38
Vista/FrmOrdenDeCompra.cs Normal file
View File

@@ -0,0 +1,38 @@
using Controladora;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Vista
{
public partial class FrmOrdenDeCompra : Form
{
public FrmOrdenDeCompra()
{
InitializeComponent();
}
private void CargarDatos()
{
dgvPresupuesto.DataSource = null;
var listapresupuesto = ControladoraPresupuestos.Instance.Listar();
dgvPresupuesto.DataSource = listapresupuesto;
numId.Value = (listapresupuesto.Count > 0) ?
listapresupuesto.Max(x => x.Id + 1) :
0;
numId.Enabled = false;
}
private void btnAddProducto_Click(object sender, EventArgs e)
{
}
}
}