54 lines
1.2 KiB
C#
54 lines
1.2 KiB
C#
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)
|
|
{
|
|
|
|
}
|
|
|
|
private void dgvPresupuesto_CellClick(object sender, DataGridViewCellEventArgs e)
|
|
{
|
|
|
|
}
|
|
|
|
private void btnCerrar_Click(object sender, EventArgs e)
|
|
{
|
|
this.Close();
|
|
}
|
|
|
|
private void btnAceptar_Click(object sender, EventArgs e)
|
|
{
|
|
|
|
}
|
|
}
|
|
}
|