Esempio n. 1
0
        private void SeleccionarArticulo(int ArticuloID)
        {
            //Provee el codigo del articulo a ser buscado
            IagregarEditarFacturas FormInterfaceFactura = this.Owner as IagregarEditarFacturas;

            if (FormInterfaceFactura != null)
            {
                FormInterfaceFactura.BuscarArticulo(ArticuloID);
            }

            IagregarEditarRecepcion FormInterfaceCompras = this.Owner as IagregarEditarRecepcion;

            if (FormInterfaceCompras != null)
            {
                FormInterfaceCompras.BuscarArticulo(ArticuloID);
            }

            iGestionDocumentoCompras FormInterfaseGestionCompras = this.Owner as iGestionDocumentoCompras;

            if (FormInterfaseGestionCompras != null)
            {
                FormInterfaseGestionCompras.BusquedaArticulo(ArticuloID);
            }

            this.Close();
        }
Esempio n. 2
0
        private void SeleccionarProveedor(Int32 _ProveedorID)
        {
            //Refresca los cambios realizados en la tabla de clientes en el formulario de muestra
            IagregarEditarRecepcion FormInterface = this.Owner as IagregarEditarRecepcion;

            if (FormInterface != null)
            {
                FormInterface.BusquedaProveedor(_ProveedorID);
            }

            //Busca el proveedor seleccionado
            iGestionDocumentoCompras FormInterface_ = this.Owner as iGestionDocumentoCompras;

            if (FormInterface_ != null)
            {
                if (Indicador > 0)
                {
                    FormInterface_.SeleccionProveedor(ProveedorID, Indicador);
                }
                else
                {
                    FormInterface_.BusquedaProveedor(_ProveedorID);
                }
            }

            //Interfase de reportes de inventario
            Inventario.Reportes.IReportes InterfaseReportes = this.Owner as Inventario.Reportes.IReportes;
            if (InterfaseReportes != null)
            {
                InterfaseReportes.SeleccionarCliente(_ProveedorID, Indicador);
            }

            this.Close();
        }
Esempio n. 3
0
        private void btnSeleccionar_Click(object sender, EventArgs e)
        {
            //Provee el codigo del articulo a ser buscado
            IagregarEditarRecepcion FormInterfaceFactura = this.Owner as IagregarEditarRecepcion;

            if (FormInterfaceFactura != null)
            {
                FormInterfaceFactura.BuscarReferencia(FacturaID);
                this.Close();
            }

            iGestionDocumentoCompras FormInterfaceGestion = this.Owner as iGestionDocumentoCompras;

            if (FormInterfaceGestion != null)
            {
                FormInterfaceGestion.SeleccionDocumento(Convert.ToString(FacturaID), Seleccion);
                this.Close();
            }
        }