diff --git a/Documentacion/DiagramaSecuencia/GestionCategorias.jpg b/Documentacion/DiagramaSecuencia/GestionCategorias.jpg new file mode 100644 index 0000000..2801a06 Binary files /dev/null and b/Documentacion/DiagramaSecuencia/GestionCategorias.jpg differ diff --git a/Documentacion/DiagramaSecuencia/GestionProducto.jpg b/Documentacion/DiagramaSecuencia/GestionProducto.jpg new file mode 100644 index 0000000..96e77ce Binary files /dev/null and b/Documentacion/DiagramaSecuencia/GestionProducto.jpg differ diff --git a/Documentacion/DiagramaSecuencia/diagramaSecuencia.org b/Documentacion/DiagramaSecuencia/diagramaSecuencia.org index 1610294..e845420 100644 --- a/Documentacion/DiagramaSecuencia/diagramaSecuencia.org +++ b/Documentacion/DiagramaSecuencia/diagramaSecuencia.org @@ -3,15 +3,131 @@ * Usuario Gestiona un Producto #+begin_src plantuml :file GestionProducto.jpg @startuml +actor "Cliente" as cl +boundary "FormProductos" as fps +boundary "FormProducto" as fp + +control "Controladora Producto" as gp +entity "Repo Productos" as rp + +group "Registrar Nuevo Producto" + cl -> fps: Registrar Producto + fps -> fp: RegistrarProducto() + fp -> gp: A帽adirProducto(:Producto) + gp -> rp: Add(:Producto) + + alt ok case + rp --> gp: 馃憤 + gp --> fp: "Se a帽adi贸 el producto" + else algo fallo + rp --> gp: 馃憥 + gp --> fp: "Fall贸 la carga" + end + + fp --> fps: ok + + group "Refesh Productos" + fps -> fps: RefreshGUI() + end +end + +group "Modificar Producto" + cl -> fps: Modificar Producto + fps -> fp: ModificarProducto(:Producto) + fp -> gp: ModificarProducto(:Producto) + gp -> rp: Mod(:Producto) + + alt ok case + rp --> gp: 馃憤 + gp --> fp: "Se Modific贸 el producto" + else algo fallo + rp --> gp: 馃憥 + gp --> fp: "Fall贸 Modificacion" + end + + fp --> fps: ok + + group "Refesh Productos" + fps -> fps: RefreshGUI() + end +end + +group "Eliminar Producto" + cl -> fps: Eliminar Producto + fps -> gp: EliminarProducto(:Producto) + gp -> rp: Del(:Producto) + + alt ok case + rp --> gp: 馃憤 + gp --> fp: "Se elimin贸 el producto" + else algo fallo + rp --> gp: 馃憥 + gp --> fp: "Fall贸 la Baja del producto" + end + + + group "Refesh Productos" + fps -> fps: RefreshGUI() + end +end + @enduml #+end_src * Usuario Gestiona Categorias #+begin_src plantuml :file GestionCategorias.jpg @startuml +actor "Cliente" as cl +boundary "FormCategorias" as fcs +boundary "FormCategoria" as fc + +control "Controladora Categorias" as gc +entity "Repo Categorias" as rc + +group "A帽adir Categoria" + cl -> fcs: A帽adir Categoria + fcs -> fc: RegistrarCategoria() + fc -> gc: RegistrarCategoria(:Categoria) + gc -> rc: Add(:Categoria) + + alt ok case + rc --> gc: 馃憤 + gc --> fc: "Se a帽adi贸 la Categoria" + else algo fallo + rc --> gc: 馃憥 + gc --> fc: "Fall贸 la carga" + end + fc --> fcs: ok + group "Refrescar Categorias" + fcs -> fcs: RefreshGUI() + end +end + + +group "Eliminar Categoria" + cl -> fcs: Eliminar Categoria + fcs -> fc: RegistrarCategoria() + fc -> gc: RegistrarCategoria(:Categoria) + gc -> rc: Add(:Categoria) + + alt ok case + rc --> gc: 馃憤 + gc --> fc: "Se Elimin贸 la Categoria" + else algo fallo + rc --> gc: 馃憥 + gc --> fc: "Fall贸 la Baja" + end + fc --> fcs: ok + group "Refrescar Categorias" + fcs -> fcs: RefreshGUI() + end +end + @enduml #+end_src +#+RESULTS: +[[file:GestionCategorias.jpg]] * Usuario Registra Facturas #+begin_src plantuml :file GestionFacturas.jpg @@ -24,3 +140,9 @@ @startuml @enduml #+end_src + +* Gestion de Mails para informes +#+begin_src plantuml :file GestionMails.jpg +@startuml +@enduml +#+end_src