cambio de nombre, añadida otra precarga de datos para
This commit is contained in:
38
Vista/FrmOrdenDeCompra.cs
Normal file
38
Vista/FrmOrdenDeCompra.cs
Normal 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)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user