예제 #1
0
 public FormOrdenComprarNuevo(Sucursal idSucursal, Personal personal)
 {
     this.idSucursal = idSucursal;
     InitializeComponent();
     this.nuevo = true;
     cargarFechaSistema();
     compraA       = new CompraA();
     pagoA         = new PagoA();
     ordenCompraA  = new OrdenCompraA();
     detalleA      = new List <DetalleA>();
     compraTotal   = new OrdenCompraTotal();
     this.personal = personal;
 }
예제 #2
0
        public FormOrdenComprarNuevo(OrdenCompra currentOrdenCompra, Sucursal idSucursal, Personal personal)
        {
            InitializeComponent();
            this.currentOrdenCompra = currentOrdenCompra;
            this.idSucursal         = idSucursal;
            this.nuevo    = false;
            compraA       = new CompraA();
            pagoA         = new PagoA();
            ordenCompraA  = new OrdenCompraA();
            detalleA      = new List <DetalleA>();
            compraTotal   = new OrdenCompraTotal();
            this.personal = personal;

            if (currentOrdenCompra.estadoCompra != 8)
            {
                btnRealizarPago.Enabled = false;
            }
        }