How sdrot1951/gymmtz works
Purpose and solution shape
GymMTZ is a desktop gym-management system covering customers, memberships/access, point-of-sale, inventory, purchasing, cash operations, expenses, and staff. The Visual Studio solution is GYMMTZ.sln, organized into WinForms UI, business logic, data access, entity, and utility projects.
Application entry and UI shell
The Windows Forms process starts at GYMMTZ/Program.cs. Login and biometric-login forms establish user access before the main navigation shell at GYMMTZ/FrmMenuPrincipal.cs. Operational workflows are individual forms rather than a web/API interface.
• GYMMTZ/FrmLogin.cs
• GYMMTZ/FrmLoginBiometrico.cs
• GYMMTZ/FrmMenuPrincipal.cs
Layered execution boundary
UI forms invoke domain-specific BLL classes, which mediate operations and delegate persistence to paired DAO classes. Entity classes carry shared domain records across these layers. This is the primary control flow: WinForms event → BLL operation → DAO/database access → entity/result → UI rendering.
• GymApp.BLL/GymApp.BLL.csproj
• GymApp.DAO/GymApp.DAO.csproj
• GymApp.Entities/GymApp.Entities.csproj
Customer, membership, and facility access
Customer management, member profiles, membership catalog/renewal dates, payments toward balances, attendance checking, and biometric enrollment form one connected member-lifecycle area. Access checking is a material operational boundary because it can use both customer/member status and biometrics.
• GYMMTZ/FrmClientes.cs
• GYMMTZ/FrmChecador.cs
• GymApp.BLL/ClienteBLL.cs
• GymApp.BLL/MembresiaBLL.cs
• GymApp.BLL/BiometriaBLL.cs
Sales, refunds, and cash control
Retail sales and refunds affect cash operations and likely inventory. Cash closing and daily-close forms provide financial reconciliation boundaries; discounts have a dedicated authorization workflow.
• GYMMTZ/FrmVenta.cs
• GYMMTZ/FrmDevolucion.cs
• GYMMTZ/FrmCorteCaja.cs
• GymApp.BLL/VentaBLL.cs
• GymApp.BLL/CajaBLL.cs
• GymApp.BLL/DevolucionesBLL.cs
Inventory and procurement
Product catalog management, stock monitoring, purchases, and purchase orders comprise the supply-side workflow. Inventory operations are centralized behind InventarioBLL/InventarioDAO, separating stock persistence from UI screens.
• GYMMTZ/FrmProductos.cs
• GYMMTZ/FrmMonitorInventario.cs
• GYMMTZ/FrmCompras.cs
• GYMMTZ/FrmOrdenCompra.cs
• GymApp.BLL/InventarioBLL.cs
• GymApp.DAO/InventarioDAO.cs
Persistence, session, and infrastructure
Database connectivity is centralized in GymApp.DAO/ConexionDB.cs; all domain DAOs are the persistence boundary. Application configuration is supplied through the WinForms app configuration. Session/user context is held in a shared utility, creating cross-cutting authorization state for UI and business operations. Biometric capabilities imply integration with local biometric hardware/software through the biometric layer, though the specific vendor is not visible in the tree.
• GymApp.DAO/ConexionDB.cs
• GYMMTZ/App.config
• GymApp.Utils/SesionGlobal.cs
• GymApp.Utils/AccesoDAO.cs
Main entry points: ClienteBLL.cs Member lifecycle · FrmLogin.cs Login & biometric login · FrmMenuPrincipal.cs Main navigation shell · VentaBLL.cs Sales & cash operations
Components 17
WinForms UI
Desktop forms and navigation.
- Application entry
GYMMTZ/Program.cs - Login & biometric login
GYMMTZ/FrmLogin.cs - Main navigation shell
GYMMTZ/FrmMenuPrincipal.cs - Member & access workflows · Customer management and attendance checking.
GYMMTZ/FrmClientes.cs - Sales, refunds & close · POS, returns, and cash-close workflows.
GYMMTZ/FrmVenta.cs - Inventory & purchasing · Products, stock monitoring, purchases, and orders.
GYMMTZ/FrmProductos.cs
Business layer
Domain operations and rules.
- Member lifecycle · Customers, memberships, and biometrics.
GymApp.BLL/ClienteBLL.cs - Sales & cash operations · Sales, refunds, and cash control.
GymApp.BLL/VentaBLL.cs - Inventory operations
GymApp.BLL/InventarioBLL.cs - Domain entities · Records exchanged between UI, BLL, and DAOs.
GymApp.Entities/GymApp.Entities.csproj
Persistence
DAO and database boundary.
- Domain DAOs · Paired data access implementations for business domains.
GymApp.DAO/GymApp.DAO.csproj - Inventory DAO
GymApp.DAO/InventarioDAO.cs - Database connection
GymApp.DAO/ConexionDB.cs - Operational database
Cross-cutting
Session, configuration, and device integration.
- Session & authorization · Holds current user context and access state.
GymApp.Utils/SesionGlobal.cs - Application configuration
GYMMTZ/App.config - Biometric hardware/software · Vendor-specific integration is not visible.
Connections 23
- Application entry → Login & biometric login: starts
- Login & biometric login → Main navigation shell: grants access to
- Main navigation shell → Member & access workflows: opens
- Main navigation shell → Sales, refunds & close: opens
- Main navigation shell → Inventory & purchasing: opens
- Login & biometric login → Session & authorization: establishes
- Member & access workflows → Member lifecycle: invokes
- Sales, refunds & close → Sales & cash operations: invokes
- Inventory & purchasing → Inventory operations: invokes
- Member lifecycle → Domain DAOs: persists through
- Sales & cash operations → Domain DAOs: persists through
- Inventory operations → Inventory DAO: manages stock through
- Member lifecycle → Domain entities: uses
- Sales & cash operations → Domain entities: uses
- Inventory operations → Domain entities: uses
- Domain DAOs → Database connection: uses
- Inventory DAO → Database connection: uses
- Database connection → Operational database: connects to
- Application configuration → Database connection: supplies settings
- Session & authorization → Member lifecycle: authorizes operations
- Session & authorization → Sales & cash operations: authorizes operations
- Member lifecycle → Biometric hardware/software: enrolls and checks
- Login & biometric login → Biometric hardware/software: supports biometric login