diff --git a/Documentacion/DiagramaSecuencia/GestionFacturas.jpg b/Documentacion/DiagramaSecuencia/GestionFacturas.jpg new file mode 100644 index 0000000..8f5f2f6 Binary files /dev/null and b/Documentacion/DiagramaSecuencia/GestionFacturas.jpg differ diff --git a/Documentacion/DiagramaSecuencia/GestionMails.jpg b/Documentacion/DiagramaSecuencia/GestionMails.jpg new file mode 100644 index 0000000..b6d4d0d Binary files /dev/null and b/Documentacion/DiagramaSecuencia/GestionMails.jpg differ diff --git a/Documentacion/DiagramaSecuencia/diagramaSecuencia.org b/Documentacion/DiagramaSecuencia/diagramaSecuencia.org index e845420..6c0cea8 100644 --- a/Documentacion/DiagramaSecuencia/diagramaSecuencia.org +++ b/Documentacion/DiagramaSecuencia/diagramaSecuencia.org @@ -74,6 +74,9 @@ end @enduml #+end_src +#+RESULTS: +[[file:GestionProducto.jpg]] + * Usuario Gestiona Categorias #+begin_src plantuml :file GestionCategorias.jpg @startuml @@ -132,17 +135,112 @@ end * Usuario Registra Facturas #+begin_src plantuml :file GestionFacturas.jpg @startuml +actor "Cliente" as cl +boundary "FormFacturas" as fcs +boundary "FormFactura" as fc + +control "Controladora Facturas" as gc +entity "Repo Facturas" as rc + +group "A帽adir Factura" + cl -> fcs: A帽adir Factura + fcs -> fc: RegistrarFactura() + fc -> gc: RegistrarFactura(:Factura) + gc -> rc: Add(:Factura) + + alt ok case + rc --> gc: 馃憤 + else algo fallo + rc --> gc: 馃憥 + end + gc -> rc: DescontarStock(:Factura) + + alt ok case + rc --> gc: 馃憤 + else algo fallo + rc --> gc: 馃憥 + end + + gc --> fc: ok + + fc --> fcs: ok + group "Refrescar Facturas" + fcs -> fcs: RefreshGUI() + end +end + + @enduml #+end_src -* Informar pocos productos en stock -#+begin_src plantuml :file Informe.jpg -@startuml -@enduml -#+end_src +#+RESULTS: +[[file:GestionFacturas.jpg]] * Gestion de Mails para informes #+begin_src plantuml :file GestionMails.jpg @startuml +actor "Cliente" as cl +boundary "FormGestionMails" as fps + +control "ControladoraGestionMails" as gp +entity "RepoMails" as rp + +group "Registrar Nuevo Mails" + cl -> fps: Registrar Mail + fps -> gp: RegistrarMail(:Mail) + gp -> rp: Add(:Mail) + + alt ok case + rp --> gp: 馃憤 + gp --> fps: "Se a帽adi贸 el Mail" + else algo fallo + rp --> gp: 馃憥 + gp --> fps: "Fall贸 la carga" + end + + group "Refesh Mails" + fps -> fps: RefreshGUI() + end +end + +group "Modificar Mail" + cl -> fps: Modificar Mail + fps -> gp: ModificarMail(:Mail) + gp -> rp: Mod(:Mail) + + alt ok case + rp --> gp: 馃憤 + gp --> fps: "Se Modific贸 el Mail" + else algo fallo + rp --> gp: 馃憥 + gp --> fps: "Fall贸 Modificacion" + end + + group "Refesh Mails" + fps -> fps: RefreshGUI() + end +end + +group "Eliminar Mail" + cl -> fps: Eliminar Mail + fps -> gp: EliminarMail(:Mail) + gp -> rp: Del(:Mail) + + alt ok case + rp --> gp: 馃憤 + gp --> fps: "Se elimin贸 el Mail" + else algo fallo + rp --> gp: 馃憥 + gp --> fps: "Fall贸 la Baja del Mail" + end + + + group "Refesh Mail" + fps -> fps: RefreshGUI() + end +end @enduml #+end_src + +#+RESULTS: +[[file:GestionMails.jpg]]