diff --git a/Documentacion/CasosDeUso.org b/Documentacion/CasosDeUso/CasosDeUso.org similarity index 76% rename from Documentacion/CasosDeUso.org rename to Documentacion/CasosDeUso/CasosDeUso.org index 51145e3..4a2c5cf 100644 --- a/Documentacion/CasosDeUso.org +++ b/Documentacion/CasosDeUso/CasosDeUso.org @@ -1,10 +1,10 @@ #+title: Casos De Uso -* Usuario Registra Nuevo Producto +* Usuario Gestiona un Producto #+begin_src plantuml :file registroProducto.jpg @startuml actor "Cliente" <> as fc -rectangle RegistrarProductos { +rectangle GestionProductos { usecase "Gestionar Productos" as UC1 usecase "Listar Productos" as UC2 usecase "Modificar Productos" as UC3 @@ -27,7 +27,7 @@ UC5 .> uc6: "include" #+RESULTS: [[file:registroProducto.jpg]] -* Usuario Registra Categorias +* Usuario Gestion Categorias #+begin_src plantuml :file RegistroCategorias.jpg @startuml actor "Cliente" <> as fc @@ -81,6 +81,7 @@ rectangle "Aviso Stock Restante" { usecase "Enviar Mail" as uc2 usecase "Mostrar MessageBox" as uc3 + } pr --> uc0 @@ -94,3 +95,28 @@ n1 .. uc0 #+RESULTS: [[file:Informe.jpg]] + +* Gestionar Mails de Informes +#+begin_src plantuml :file GestionMails.jpg +@startuml +actor "Cliente" <> as cl + +rectangle "Gestion Mails" { + usecase "Gestionar Mails" as UC1 + usecase "Listar Mails" as UC2 + usecase "Modificar Mails" as UC3 + usecase "Eliminar Mail" as UC4 + usecase "Registrar Mail" as UC5 +} + +left to right direction +cl --> UC1 +UC1 ..> UC2: "include" +UC1 <.. UC3: "extend" +UC1 <.. UC4: "extend" +UC1 <.. UC5: "extend" +@enduml +#+end_src + +#+RESULTS: +[[file:GestionMails.jpg]] diff --git a/Documentacion/CasosDeUso.pdf b/Documentacion/CasosDeUso/CasosDeUso.pdf similarity index 58% rename from Documentacion/CasosDeUso.pdf rename to Documentacion/CasosDeUso/CasosDeUso.pdf index 7262646..680a018 100644 Binary files a/Documentacion/CasosDeUso.pdf and b/Documentacion/CasosDeUso/CasosDeUso.pdf differ diff --git a/Documentacion/CasosDeUso/GestionMails.jpg b/Documentacion/CasosDeUso/GestionMails.jpg new file mode 100644 index 0000000..8eee74c Binary files /dev/null and b/Documentacion/CasosDeUso/GestionMails.jpg differ diff --git a/Documentacion/CasosDeUso/Informe.jpg b/Documentacion/CasosDeUso/Informe.jpg new file mode 100644 index 0000000..e132d89 Binary files /dev/null and b/Documentacion/CasosDeUso/Informe.jpg differ diff --git a/Documentacion/RegistroCategorias.jpg b/Documentacion/CasosDeUso/RegistroCategorias.jpg similarity index 100% rename from Documentacion/RegistroCategorias.jpg rename to Documentacion/CasosDeUso/RegistroCategorias.jpg diff --git a/Documentacion/RegistroFacturas.jpg b/Documentacion/CasosDeUso/RegistroFacturas.jpg similarity index 100% rename from Documentacion/RegistroFacturas.jpg rename to Documentacion/CasosDeUso/RegistroFacturas.jpg diff --git a/Documentacion/CasosDeUso/registroProducto.jpg b/Documentacion/CasosDeUso/registroProducto.jpg new file mode 100644 index 0000000..518a3d1 Binary files /dev/null and b/Documentacion/CasosDeUso/registroProducto.jpg differ 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/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/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 new file mode 100644 index 0000000..6c0cea8 --- /dev/null +++ b/Documentacion/DiagramaSecuencia/diagramaSecuencia.org @@ -0,0 +1,246 @@ +#+title: Diagrama Secuencia + +* 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 + +#+RESULTS: +[[file:GestionProducto.jpg]] + +* 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 +@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 + +#+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]] diff --git a/Documentacion/DiagramaConRepos.jpg b/Documentacion/Narrativa/DiagramaConRepos.jpg similarity index 100% rename from Documentacion/DiagramaConRepos.jpg rename to Documentacion/Narrativa/DiagramaConRepos.jpg diff --git a/Documentacion/DiagramaDeClases.org b/Documentacion/Narrativa/DiagramaDeClases.org similarity index 100% rename from Documentacion/DiagramaDeClases.org rename to Documentacion/Narrativa/DiagramaDeClases.org diff --git a/Documentacion/DiagramaSinRepos.jpg b/Documentacion/Narrativa/DiagramaSinRepos.jpg similarity index 100% rename from Documentacion/DiagramaSinRepos.jpg rename to Documentacion/Narrativa/DiagramaSinRepos.jpg diff --git a/Documentacion/final.org b/Documentacion/Narrativa/final.org similarity index 100% rename from Documentacion/final.org rename to Documentacion/Narrativa/final.org diff --git a/Documentacion/final.pdf b/Documentacion/Narrativa/final.pdf similarity index 100% rename from Documentacion/final.pdf rename to Documentacion/Narrativa/final.pdf diff --git a/Documentacion/registroProducto.jpg b/Documentacion/registroProducto.jpg deleted file mode 100644 index 117fb23..0000000 Binary files a/Documentacion/registroProducto.jpg and /dev/null differ