Merge branch 'master' into entidades

This commit is contained in:
2024-03-16 12:22:30 -03:00
24 changed files with 506 additions and 0 deletions

2
.gitignore vendored
View File

@@ -3,3 +3,5 @@
################################################################################
/Vista/bin/Debug/net6.0-windows
*.bbl
*.tex

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View File

@@ -0,0 +1,258 @@
#+title: Casos De Uso
* Empleado Gestiona un Producto
#+begin_src plantuml :file registroProducto.jpg
@startuml
left to right direction
actor "Empleado" <<Persona>> as fc
rectangle GestionProductos {
usecase "Gestionar Productos" as UC1
usecase "Listar Productos" as UC2
usecase "Modificar Productos" as UC3
usecase "Eliminar Producto" as UC4
usecase "Registrar Producto" as UC5
usecase "Seleccionar Proveedor" as uc7
usecase "Gestionar Categorias" as uc6
}
fc --> UC1
UC1 ..> UC2: "include"
UC3 ..> UC1: "extend"
UC4 ..> UC1: "extend"
UC5 ..> UC1: "extend"
UC5 ..> uc7: "include"
UC3 .> uc6: "include"
UC5 .> uc6: "include"
@enduml
#+end_src
#+RESULTS:
[[file:registroProducto.jpg]]
* Empleado Gestion Categorias
#+begin_src plantuml :file RegistroCategorias.jpg
@startuml
actor "Empleado" <<Persona>> as fc
rectangle RegistrarCategorias {
usecase "Gestionar Categorias" as UC1
usecase "Eliminar Categoria" as UC4
usecase "Registrar Categoria" as UC5
}
fc --> UC1
UC4 ..> UC1: "extend"
UC5 ..> UC1: "extend"
@enduml
#+end_src
#+RESULTS:
[[file:RegistroCategorias.jpg]]
* Empleado Registra Facturas
#+begin_src plantuml :file RegistroFacturas.jpg
@startuml
left to right direction
actor "Empleado" <<Persona>> as fc
rectangle RegistrarFacturas {
usecase "Gestionar Facturas" as uc0
usecase "Registrar Factura" as UC1
usecase "Listar Productos Con Existencias" as UC2
usecase "Filtrar Producto Por Categoria" as uc3
usecase "Descontar Stock" as uc4
}
fc --> uc0
uc0 <.. UC1: "extend"
uc0 ..> UC2: "include"
UC2 ..> uc3: "include"
UC1 ..> uc4: "include"
@enduml
#+end_src
#+RESULTS:
[[file:RegistroFacturas.jpg]]
* Empleado Registra Ordenes de Compra
#+begin_src plantuml :file RegistroOrdenDeCompra.jpg
@startuml
left to right direction
actor "Empleado" <<Persona>> as fc
rectangle RegistrarOrdendeCompra {
usecase "Gestionar OrdenDeCompra" as uc0
usecase "Registrar OrdenDeCompra" as UC1
usecase "Seleccionar Presupuesto" as uc3
usecase "Listar Ordenes" as UC2
}
fc --> uc0
uc0 <.. UC1: "extend"
uc0 ..> UC2: "include"
UC1 ..> uc3: "include"
@enduml
#+end_src
#+RESULTS:
[[file:RegistroOrdenDeCompra.jpg]]
* Empleado Registra Remito
#+begin_src plantuml :file RegistroRemito.jpg
@startuml
left to right direction
actor "Empleado" <<Persona>> as fc
rectangle RegistroRemito {
usecase "Gestionar Remitos" as uc0
usecase "Registrar Remito" as UC1
usecase "Aumentar Stock" as uc3
usecase "Listar Remitos" as uc4
}
fc --> uc0
uc0 ..> uc4: "include"
uc0 <.. UC1: "extend"
UC1 ..> uc3: "include"
@enduml
#+end_src
#+RESULTS:
[[file:RegistroRemito.jpg]]
* Se pide un Presupuesto
#+begin_src plantuml :file PedidoPresupuesto.jpg
@startuml
left to right direction
actor "Empleado" <<Persona>> as fc
rectangle RegistroRemito {
usecase "Gestionar Pedidos de Presupuesto" as uc0
usecase "Enviar Pedido de Presupuesto" as uc1
usecase "Registrar Pedido de Presupuesto" as uc3
}
fc --> uc0
uc0 <.. uc3: "extend"
uc1 ..> uc3: "include"
@enduml
#+end_src
#+RESULTS:
[[file:PedidoPresupuesto.jpg]]
* Carga de presupuesto enviado por un proveedor
#+begin_src plantuml :file CargaPresupuesto.jpg
@startuml
left to right direction
actor "Empleado" <<Persona>> as fc
rectangle RegistroRemito {
usecase "Gestionar Presupuestos" as uc0
usecase "Registrar Presupuesto" as uc1
}
fc --> uc0
uc0 <.. uc1: "extend"
@enduml
#+end_src
#+RESULTS:
[[file:CargaPresupuesto.jpg]]
* Informar pocos productos en stock
#+begin_src plantuml :file Informe.jpg
actor "Sistema" <<Programa>> as pr
rectangle "Aviso Stock Restante" {
note "<<Invariable>>\n producto->stock <= producto->umbralAvisoStock" as n1
usecase "Checkear Stock" as uc0
usecase "Enviar Informe" as uc1
usecase "Enviar Mail" as uc2
usecase "Mostrar MessageBox" as uc3
}
pr --> uc0
uc1 ..> uc0: "extend"
uc1 ..> uc2: "include"
uc1 ..> uc3: "include"
n1 .. uc0
#+end_src
#+RESULTS:
[[file:Informe.jpg]]
* Gestionar Mails de Informes
#+begin_src plantuml :file GestionMails.jpg
@startuml
actor "Empleado" <<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]]
* Empleado Registra Proveedor
#+begin_src plantuml :file GestionProveedor.jpg
@startuml
actor "Empleado" <<Persona>> as cl
rectangle "Gestion Proveedor" {
usecase "Gestionar Proveedor" as UC1
usecase "Listar Proveedor" as UC2
usecase "Modificar Proveedor" as UC3
usecase "Eliminar Proveedor" as UC4
usecase "Registrar Proveedor" 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:GestionProveedor.jpg]]
* Empleado Registra Cliente
#+begin_src plantuml :file GestionCliente.jpg
@startuml
actor "Empleado" <<Persona>> as cl
rectangle "Gestion Cliente" {
usecase "Gestionar Cliente" as UC1
usecase "Listar Cliente" as UC2
usecase "Modificar Cliente" as UC3
usecase "Eliminar Cliente" as UC4
usecase "Registrar Cliente" 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:GestionCliente.jpg]]

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 24 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 19 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 64 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 81 KiB

View 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]]

View File

Before

Width:  |  Height:  |  Size: 216 KiB

After

Width:  |  Height:  |  Size: 216 KiB

View File

Before

Width:  |  Height:  |  Size: 192 KiB

After

Width:  |  Height:  |  Size: 192 KiB