0% found this document useful (0 votes)
60 views

Manual Del Usuario

The document is a manual that describes how to create a database and user interface for a restaurant ordering system. It includes instructions on setting up the necessary tools, creating tables in the database for customers, orders, and menu items. It then explains how to build the initial user interface with options for customers, menu items, and customer orders.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
60 views

Manual Del Usuario

The document is a manual that describes how to create a database and user interface for a restaurant ordering system. It includes instructions on setting up the necessary tools, creating tables in the database for customers, orders, and menu items. It then explains how to build the initial user interface with options for customers, menu items, and customer orders.
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 6

MANUAL

MANUAL
Angel Arturo Oxacopa Garcia
Universidad Privada de Tacna
Sistema de pedidos
952014802 - *0020701

No tengo

Texto Pá gina 0
MANUAL

Manual del Usuario


1. Herramientas necesarias
 Net Beans 6.9.1
 JDK 6 Update 22
 Appserver(Mysql, apache, tomcat, php…)

2. Base de datos
El primer paso será crear la base de datos que realizaremos ejecutando el
siguiente script:

# --------------------------------------------------------
# Host: 127.0.0.1
# Server version: 5.0.45-community-nt-log
# Server OS: Win32
# HeidiSQL version: 6.0.0.3603
# Date/time: 2010-12-17 15:37:31
# --------------------------------------------------------

/*!40101 SET
@OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf8 */;
/*!40014 SET
@OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS,
FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE,
SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;

# Dumping database structure for restaurante


CREATE DATABASE IF NOT EXISTS `restaurante` /*!40100 DEFAULT
CHARACTER SET utf8 */;
USE `restaurante`;

# Dumping structure for table restaurante.cliente


CREATE TABLE IF NOT EXISTS `cliente` (
`id_cliente` varchar(5) NOT NULL,
`nombre_cliente` varchar(50) NOT NULL,
`dni_cliente` varchar(8) NOT NULL,
PRIMARY KEY (`id_cliente`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

# Dumping data for table restaurante.cliente: ~3 rows (approximately)


/*!40000 ALTER TABLE `cliente` DISABLE KEYS */;
INSERT INTO `cliente` (`id_cliente`, `nombre_cliente`, `dni_cliente`) VALUES
('01', 'Angel Oxacopa', '45523581'),
('02', 'Jorge Chacal', '12345678'),

Texto Pá gina 1
MANUAL

('03', 'Jesus Tejerina', '96374212');


/*!40000 ALTER TABLE `cliente` ENABLE KEYS */;

# Dumping structure for table restaurante.pedido


CREATE TABLE IF NOT EXISTS `pedido` (
`id_pedido` varchar(5) NOT NULL,
`id_cliente` varchar(5) NOT NULL,
`id_plato` varchar(5) NOT NULL,
`mesa_pedido` varchar(2) NOT NULL,
KEY `id_plato` (`id_plato`),
KEY `id_cliente` (`id_cliente`),
CONSTRAINT `id_cliente` FOREIGN KEY (`id_cliente`) REFERENCES
`cliente` (`id_cliente`),
CONSTRAINT `id_plato` FOREIGN KEY (`id_plato`) REFERENCES `platos`
(`id_plato`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

# Dumping data for table restaurante.pedido: ~3 rows (approximately)


/*!40000 ALTER TABLE `pedido` DISABLE KEYS */;
INSERT INTO `pedido` (`id_pedido`, `id_cliente`, `id_plato`, `mesa_pedido`)
VALUES
('01', '01', '001', '5'),
('02', '01', '002', '5'),
('03', '01', '003', '5');
/*!40000 ALTER TABLE `pedido` ENABLE KEYS */;

# Dumping structure for table restaurante.platos


CREATE TABLE IF NOT EXISTS `platos` (
`id_plato` varchar(5) NOT NULL,
`precio_plato` varchar(10) NOT NULL,
`descripcion_plato` varchar(50) NOT NULL,
PRIMARY KEY (`id_plato`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;

# Dumping data for table restaurante.platos: ~3 rows (approximately)


/*!40000 ALTER TABLE `platos` DISABLE KEYS */;
INSERT INTO `platos` (`id_plato`, `precio_plato`, `descripcion_plato`) VALUES
('001', '15,5', 'Ceviche'),
('002', '5', 'Aji de gallina'),
('003', '9', 'Arroz chaufa a lo jorge');
/*!40000 ALTER TABLE `platos` ENABLE KEYS */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40101 SET
CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;

Texto Pá gina 2
MANUAL

3. La primera vista será el menú principal donde tendremos las 3 opciones


principales que son: Cliente, Platillos Cliente y Pedido Cliente.

4. Primero seleccionaremos Cliente

Texto Pá gina 3
MANUAL

5. La primera opción es ingresar cliente, donde tenemos que ingresar: el Codigo


del cliente, el Nombre y su DNI.

6. Eliminar funciona de una forma muy sencilla, sólo colocamos el ID del cliente a
eliminar y a continuación click en el botón de Eliminar y el cliente será
eliminado, si el cliente no existe, no pasará nada.

Texto Pá gina 4
MANUAL

7. Para modificar un campo necesitamos conocer el código del cliente, para


tomarlo como referencia y poder modificar el NOMBRE o el DNI

8. Listar nos mostrara todos los datos del cliente

Lo mismo para las otras opciones: Platillos, Pedido.

Texto Pá gina 5

You might also like