Example #1
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();
        }
Example #2
0
        private void SeleccionarCliente(Int32 _ClienteID)
        {
            //Refresca los cambios realizados en la tabla de clientes en el formulario de muestra
            IagregarEditarFacturas FormInterface = this.Owner as IagregarEditarFacturas;

            if (FormInterface != null)
            {
                FormInterface.BusquedaCliente(_ClienteID);
            }
            this.Close();

            Inventario.Reportes.IReportes InterfaseReportes = this.Owner as Inventario.Reportes.IReportes;
            if (InterfaseReportes != null)
            {
                InterfaseReportes.SeleccionarCliente(_ClienteID, Indicador);
            }
        }