Compare commits
7 Commits
bcb27c3a90
...
9ece6f89b1
| Author | SHA1 | Date | |
|---|---|---|---|
| 9ece6f89b1 | |||
| bcdfc473b7 | |||
| 36bf611d29 | |||
| f539ba493c | |||
| 1619dbfd1a | |||
| cea7acc36c | |||
| 4664305b0a |
@@ -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" <<Persona>> 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" <<Persona>> 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" <<Persona>> 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]]
|
||||
BIN
Documentacion/CasosDeUso/GestionMails.jpg
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
Documentacion/CasosDeUso/Informe.jpg
Normal file
|
After Width: | Height: | Size: 26 KiB |
|
Before Width: | Height: | Size: 17 KiB After Width: | Height: | Size: 17 KiB |
|
Before Width: | Height: | Size: 24 KiB After Width: | Height: | Size: 24 KiB |
BIN
Documentacion/CasosDeUso/registroProducto.jpg
Normal file
|
After Width: | Height: | Size: 34 KiB |
BIN
Documentacion/DiagramaSecuencia/GestionCategorias.jpg
Normal file
|
After Width: | Height: | Size: 60 KiB |
BIN
Documentacion/DiagramaSecuencia/GestionFacturas.jpg
Normal file
|
After Width: | Height: | Size: 38 KiB |
BIN
Documentacion/DiagramaSecuencia/GestionMails.jpg
Normal file
|
After Width: | Height: | Size: 64 KiB |
BIN
Documentacion/DiagramaSecuencia/GestionProducto.jpg
Normal file
|
After Width: | Height: | Size: 81 KiB |
246
Documentacion/DiagramaSecuencia/diagramaSecuencia.org
Normal file
@@ -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]]
|
||||
|
Before Width: | Height: | Size: 216 KiB After Width: | Height: | Size: 216 KiB |
|
Before Width: | Height: | Size: 192 KiB After Width: | Height: | Size: 192 KiB |
|
Before Width: | Height: | Size: 34 KiB |