feat: añadidos algunos Diagramas de Secuencia

This commit is contained in:
2024-03-14 18:45:59 -03:00
parent f539ba493c
commit 36bf611d29
3 changed files with 122 additions and 0 deletions

View File

@@ -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