diff --git a/DiagramaDeClases.org b/DiagramaDeClases.org index a225a6c..ffcfc59 100644 --- a/DiagramaDeClases.org +++ b/DiagramaDeClases.org @@ -193,6 +193,15 @@ Detalle --> Producto #+RESULTS: [[file:DiagramaConRepos.jpg]] + + + + + + + + + * Diagrama de clases sin Repositorios #+begin_src plantuml :file DiagramaSinRepos.jpg @startuml @@ -215,13 +224,11 @@ class Producto { + Nombre: string + Precio: double - Categorias: List? -- Lotes: List? + Habilitado: bool -+ MostrarLotesDeProductos(): ReadOnlyCollection -+ AñadirLotesStock(): bool -+ EliminarLotesStock(): bool -+ MostrarStockRemanente(): long ++ MostrarCategoriasDeProductos(): ReadOnlyCollection ++ AñadirCategoriasStock(): bool ++ EliminarCategoriasStock(): bool } class Categoria { @@ -229,18 +236,16 @@ class Categoria { + Descripcion: String } -Categoria "0..*" <--o "1 ." Producto - class Presupuesto { + Id: int ++ Fecha: DateTime + Proveedor: Proveedor -+ Monto: int -+ CantIdad: int + Habilitado: bool -} +- Detalles: List -Presupuesto "1" --> "1..*" Lote -Proveedor "1" <-- "1 ." Presupuesto ++ MostrarDetalles(): ReadOnlyCollection ++ AñadirDetalle(DetallePresupuesto): bool +} class Proveedor { + Id: int @@ -249,12 +254,10 @@ class Proveedor { + Habilitado: bool } -class Detalle { -+ Id: int -+ CantIdad: int +class DetalleVenta { ++ IdFactura: int + PrecioUnitario: double + Subtotal: double -+ Producto: T } class Cliente { @@ -265,28 +268,44 @@ class Cliente { + Correo: string } +class Detalle { ++ Id: int ++ Producto: T ++ Cantidad: int +} + class Factura { + Total: double + Fecha: DateTime + Cliente: Cliente -- Detalles: List +- detalles: List -+ MostrarDetalles(): ReadOnlyCollection -+ AñadirDetalle(Detalle): voId -+ ModificarDetalle(Detalle): voId -+ EliminarDetalle(Detalle): voId ++ MostrarDetalles(): ReadOnlyCollection ++ AñadirDetalle(DetalleVenta): void ++ ModificarDetalle(DetalleVenta): void ++ EliminarDetalle(DetalleVenta): void } -Cliente "1" <-- "1" Factura -Factura "1 ." *-- "1..*" Detalle +class DetallePedido { ++ IdPedido: int +} -Detalle "1 ." --> "1" Producto +class PedidoDePresupuesto { ++ Id: int ++ Fecha: DateTime +- detallesPedidos: List ++ Proveedor: Proveedor + ++ MostrarDetalles(): ReadOnlyCollection ++ AñadirDetalle(DetallePedido): void ++ EliminarDetalle(DetallePedido): void +} -Producto "1" --> "1" Lote class Lote { + Id: int ++ Fecha: DateTime + Producto: Producto -+ CantIdadDeProductos: long ++ CantidadDeProductos: long + Habilitado: bool } @@ -296,10 +315,73 @@ Enlatado, Cartón, } +class DetallePresupuesto { ++ IdPresupuesto: int ++ CostoUnitario: double ++ Aceptado: bool +} + +class OrdenDeCompra { ++ Id: int +- Productos: List ++ Proveedor: Proveedor + ++ MostrarDetalles(): ReadOnlyCollection ++ AñadirDetalle(DetalleOrdenDeCompra): bool ++ ModificarDetalle(DetalleOrdenDeCompra): bool ++ EliminarDetalle(DetalleOrdenDeCompra): bool +} + +class DetalleOrdenDeCompra { ++ IdOrdenDeCompra: int +} + +class Remito { ++ Id: int +- LotesDeProductosEntregados: List ++ Proveedor: Proveedor + ++ MostrarLotes(): ReadOnlyCollection ++ AñadirLote(Lote): bool +} + +Detalle <|-- DetalleOrdenDeCompra +Detalle <|-- DetallePedido +Detalle <|-- DetalleVenta +Detalle <|-- DetallePresupuesto + +Presupuesto "1" *--> "1..*" DetallePresupuesto + +PedidoDePresupuesto "1" --> "1" Proveedor +PedidoDePresupuesto "1" *--> "1..*" DetallePedido +PedidoDePresupuesto "1" --> "1" Presupuesto + +OrdenDeCompra "1" --> "1" Proveedor +OrdenDeCompra "1" *--> "1..*" DetalleOrdenDeCompra +Remito "1" --> "1" Proveedor +Remito "1" *--> "1..*" Lote + +Producto "1" <-- "1..*" Lote + ProductoNoPercedero "1" --> "1" EnvaseTipo + +Cliente "1" <-- "1" Factura +Factura "1 ." *--> "1..*" DetalleVenta + +DetalleVenta "1 ." --> "1" Producto + +Proveedor "1" <-- "1 ." Presupuesto + +Categoria "0..*" <--o "1 ." Producto @enduml #+end_src #+RESULTS: [[file:DiagramaSinRepos.jpg]] + +#+begin_comment + +Presupuesto "1" --> "1..*" Lote + +#+end_comment diff --git a/DiagramaSinRepos.jpg b/DiagramaSinRepos.jpg index d4aa223..8e1512f 100644 Binary files a/DiagramaSinRepos.jpg and b/DiagramaSinRepos.jpg differ diff --git a/final.pdf b/final.pdf index dcb3853..1c868c2 100644 Binary files a/final.pdf and b/final.pdf differ