public AgregarProductosPedidos3(int idOrde, IngresarRecepcion_AD ingresarRecepcion, int idProducto, int cantidad, int valorUni, int valorTot, int index)
 {
     try
     {
         InitializeComponent();
         OrdenPedidoDAL  orden = new OrdenPedidoDAL();
         OrdenPedidoVIEW datos = orden.CargarOrdenPedido(idOrde);
         IdProveedor        = datos.PROVEEDOR_ID;
         IdSucursal         = datos.SUCURSAL_ID;
         _IngresarRecepcion = ingresarRecepcion;
         CargarCombos();
         cbxProducto.SelectedValue = idProducto;
         txtValorUni.Text          = valorUni.ToString();
         txtCantidad.Text          = cantidad.ToString();
         Index = index;
         btnAgregarProd.Visibility      = Visibility.Hidden;
         btnAgregarProd.IsEnabled       = false;
         btnAgregarProd_Copy.Visibility = Visibility.Visible;
         btnAgregarProd_Copy.IsEnabled  = true;
     }
     catch (Exception ex)
     {
         throw ex;
     }
 }
        public AgregarProductosPedidos3(int idOrde, IngresarRecepcion_AD ingresarRecepcion)
        {
            InitializeComponent();
            OrdenPedidoDAL  orden = new OrdenPedidoDAL();
            OrdenPedidoVIEW datos = orden.CargarOrdenPedido(idOrde);

            IdProveedor        = datos.PROVEEDOR_ID;
            IdSucursal         = datos.SUCURSAL_ID;
            _IngresarRecepcion = ingresarRecepcion;
            CargarCombos();
        }
Exemplo n.º 3
0
        private void Ver_IngresarRecepcion(object sender, RoutedEventArgs e)
        {
            IngresarRecepcion_AD reg = new IngresarRecepcion_AD();

            reg.ShowDialog();
        }