diff --git a/.gitignore b/.gitignore index a161b20..5c103e4 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,5 @@ ################################################################################ /Vista/bin/Debug/net6.0-windows +*.bbl +*.tex diff --git a/Documentacion/CasosDeUso/CargaPresupuesto.jpg b/Documentacion/CasosDeUso/CargaPresupuesto.jpg new file mode 100644 index 0000000..1d864a3 Binary files /dev/null and b/Documentacion/CasosDeUso/CargaPresupuesto.jpg differ diff --git a/Documentacion/CasosDeUso/CasosDeUso.org b/Documentacion/CasosDeUso/CasosDeUso.org new file mode 100644 index 0000000..99f0505 --- /dev/null +++ b/Documentacion/CasosDeUso/CasosDeUso.org @@ -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" <> 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" <> 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" <> 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" <> 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" <> 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" <> 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" <> 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" <> as pr + +rectangle "Aviso Stock Restante" { + note "<>\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" <> 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" <> 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" <> 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]] diff --git a/Documentacion/CasosDeUso/CasosDeUso.pdf b/Documentacion/CasosDeUso/CasosDeUso.pdf new file mode 100644 index 0000000..efad5aa Binary files /dev/null and b/Documentacion/CasosDeUso/CasosDeUso.pdf differ diff --git a/Documentacion/CasosDeUso/GestionCliente.jpg b/Documentacion/CasosDeUso/GestionCliente.jpg new file mode 100644 index 0000000..84ff89f Binary files /dev/null and b/Documentacion/CasosDeUso/GestionCliente.jpg differ diff --git a/Documentacion/CasosDeUso/GestionMails.jpg b/Documentacion/CasosDeUso/GestionMails.jpg new file mode 100644 index 0000000..947afac Binary files /dev/null and b/Documentacion/CasosDeUso/GestionMails.jpg differ diff --git a/Documentacion/CasosDeUso/GestionProveedor.jpg b/Documentacion/CasosDeUso/GestionProveedor.jpg new file mode 100644 index 0000000..1b3701e Binary files /dev/null and b/Documentacion/CasosDeUso/GestionProveedor.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/CasosDeUso/PedidoPresupuesto.jpg b/Documentacion/CasosDeUso/PedidoPresupuesto.jpg new file mode 100644 index 0000000..6822505 Binary files /dev/null and b/Documentacion/CasosDeUso/PedidoPresupuesto.jpg differ diff --git a/Documentacion/CasosDeUso/RegistroCategorias.jpg b/Documentacion/CasosDeUso/RegistroCategorias.jpg new file mode 100644 index 0000000..9985577 Binary files /dev/null and b/Documentacion/CasosDeUso/RegistroCategorias.jpg differ diff --git a/Documentacion/CasosDeUso/RegistroFacturas.jpg b/Documentacion/CasosDeUso/RegistroFacturas.jpg new file mode 100644 index 0000000..c65dc1c Binary files /dev/null and b/Documentacion/CasosDeUso/RegistroFacturas.jpg differ diff --git a/Documentacion/CasosDeUso/RegistroOrdenDeCompra.jpg b/Documentacion/CasosDeUso/RegistroOrdenDeCompra.jpg new file mode 100644 index 0000000..a956d57 Binary files /dev/null and b/Documentacion/CasosDeUso/RegistroOrdenDeCompra.jpg differ diff --git a/Documentacion/CasosDeUso/RegistroRemito.jpg b/Documentacion/CasosDeUso/RegistroRemito.jpg new file mode 100644 index 0000000..34d1d03 Binary files /dev/null and b/Documentacion/CasosDeUso/RegistroRemito.jpg differ diff --git a/Documentacion/CasosDeUso/registroProducto.jpg b/Documentacion/CasosDeUso/registroProducto.jpg new file mode 100644 index 0000000..3c35732 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