changed name from Apollinare to Zentral
This commit is contained in:
14
Makefile
14
Makefile
@@ -1,10 +1,10 @@
|
||||
# Apollinare - Makefile per sviluppo
|
||||
# Zentral - Makefile per sviluppo
|
||||
# Uso: make <target>
|
||||
|
||||
.PHONY: help install build run dev clean test lint backend frontend backend-run frontend-run backend-build frontend-build all stop
|
||||
|
||||
# Variabili
|
||||
BACKEND_DIR := src/backend/Apollinare.API
|
||||
BACKEND_DIR := src/backend/Zentral.API
|
||||
FRONTEND_DIR := src/frontend
|
||||
BACKEND_PORT := 5000
|
||||
FRONTEND_PORT := 5173
|
||||
@@ -16,7 +16,7 @@ YELLOW := \033[0;33m
|
||||
NC := \033[0m # No Color
|
||||
|
||||
help: ## Mostra questo help
|
||||
@echo "$(CYAN)Apollinare - Comandi disponibili:$(NC)"
|
||||
@echo "$(CYAN)Zentral - Comandi disponibili:$(NC)"
|
||||
@echo ""
|
||||
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " $(GREEN)%-20s$(NC) %s\n", $$1, $$2}'
|
||||
@echo ""
|
||||
@@ -34,7 +34,7 @@ install: backend-restore frontend-install ## Installa tutte le dipendenze (backe
|
||||
|
||||
backend-restore: ## Ripristina i pacchetti NuGet del backend
|
||||
@echo "$(CYAN)Ripristino pacchetti NuGet...$(NC)"
|
||||
cd src && dotnet restore
|
||||
cd src/backend && dotnet restore
|
||||
|
||||
frontend-install: ## Installa le dipendenze npm del frontend
|
||||
@echo "$(CYAN)Installazione dipendenze npm...$(NC)"
|
||||
@@ -49,7 +49,7 @@ build: backend-build frontend-build ## Compila backend e frontend
|
||||
|
||||
backend-build: ## Compila il backend .NET
|
||||
@echo "$(CYAN)Compilazione backend...$(NC)"
|
||||
cd src && dotnet build --configuration Release
|
||||
cd src/backend && dotnet build --configuration Release
|
||||
|
||||
frontend-build: ## Compila il frontend React
|
||||
@echo "$(CYAN)Compilazione frontend...$(NC)"
|
||||
@@ -87,7 +87,7 @@ test: backend-test ## Esegue tutti i test
|
||||
|
||||
backend-test: ## Esegue i test del backend
|
||||
@echo "$(CYAN)Esecuzione test backend...$(NC)"
|
||||
cd src && dotnet test
|
||||
cd src/backend && dotnet test
|
||||
|
||||
lint: frontend-lint ## Esegue il linting
|
||||
@echo "$(GREEN)Linting completato!$(NC)"
|
||||
@@ -105,7 +105,7 @@ clean: backend-clean frontend-clean ## Pulisce tutti gli artefatti di build
|
||||
|
||||
backend-clean: ## Pulisce gli artefatti di build del backend
|
||||
@echo "$(CYAN)Pulizia backend...$(NC)"
|
||||
cd src && dotnet clean
|
||||
cd src/backend && dotnet clean
|
||||
find src -type d -name "bin" -exec rm -rf {} + 2>/dev/null || true
|
||||
find src -type d -name "obj" -exec rm -rf {} + 2>/dev/null || true
|
||||
|
||||
|
||||
8
docs/development/ZENTRAL.md
Normal file
8
docs/development/ZENTRAL.md
Normal file
@@ -0,0 +1,8 @@
|
||||
# Zentral Development Status
|
||||
|
||||
File riassuntivo dello stato di sviluppo di Zentral.
|
||||
|
||||
## Log Attività
|
||||
|
||||
- [2025-12-02 Rebranding Apollinare to Zentral](./log/2025-12-02_rebranding.md) - **Completato**
|
||||
- Rinomina completa del progetto (Backend & Frontend).
|
||||
@@ -1,6 +0,0 @@
|
||||
@Apollinare.API_HostAddress = http://localhost:5072
|
||||
|
||||
GET {{Apollinare.API_HostAddress}}/weatherforecast/
|
||||
Accept: application/json
|
||||
|
||||
###
|
||||
@@ -1,19 +1,19 @@
|
||||
using Apollinare.API.Services;
|
||||
using Apollinare.Domain.Entities;
|
||||
using Apollinare.Infrastructure.Data;
|
||||
using Zentral.API.Services;
|
||||
using Zentral.Domain.Entities;
|
||||
using Zentral.Infrastructure.Data;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Apollinare.API.Controllers;
|
||||
namespace Zentral.API.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/[controller]")]
|
||||
public class ArticoliController : ControllerBase
|
||||
{
|
||||
private readonly AppollinareDbContext _context;
|
||||
private readonly ZentralDbContext _context;
|
||||
private readonly AutoCodeService _autoCodeService;
|
||||
|
||||
public ArticoliController(AppollinareDbContext context, AutoCodeService autoCodeService)
|
||||
public ArticoliController(ZentralDbContext context, AutoCodeService autoCodeService)
|
||||
{
|
||||
_context = context;
|
||||
_autoCodeService = autoCodeService;
|
||||
@@ -1,8 +1,8 @@
|
||||
using Apollinare.API.Services;
|
||||
using Apollinare.Domain.Entities;
|
||||
using Zentral.API.Services;
|
||||
using Zentral.Domain.Entities;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Apollinare.API.Controllers;
|
||||
namespace Zentral.API.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/[controller]")]
|
||||
@@ -1,19 +1,19 @@
|
||||
using Apollinare.API.Services;
|
||||
using Apollinare.Domain.Entities;
|
||||
using Apollinare.Infrastructure.Data;
|
||||
using Zentral.API.Services;
|
||||
using Zentral.Domain.Entities;
|
||||
using Zentral.Infrastructure.Data;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Apollinare.API.Controllers;
|
||||
namespace Zentral.API.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/[controller]")]
|
||||
public class ClientiController : ControllerBase
|
||||
{
|
||||
private readonly AppollinareDbContext _context;
|
||||
private readonly ZentralDbContext _context;
|
||||
private readonly AutoCodeService _autoCodeService;
|
||||
|
||||
public ClientiController(AppollinareDbContext context, AutoCodeService autoCodeService)
|
||||
public ClientiController(ZentralDbContext context, AutoCodeService autoCodeService)
|
||||
{
|
||||
_context = context;
|
||||
_autoCodeService = autoCodeService;
|
||||
@@ -1,9 +1,9 @@
|
||||
using Apollinare.API.Services;
|
||||
using Apollinare.Domain.Entities;
|
||||
using Apollinare.Domain.Enums;
|
||||
using Zentral.API.Services;
|
||||
using Zentral.Domain.Entities;
|
||||
using Zentral.Domain.Enums;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Apollinare.API.Controllers;
|
||||
namespace Zentral.API.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/custom-fields")]
|
||||
@@ -1,8 +1,8 @@
|
||||
using Apollinare.API.Hubs;
|
||||
using Apollinare.API.Services;
|
||||
using Zentral.API.Hubs;
|
||||
using Zentral.API.Services;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Apollinare.API.Controllers;
|
||||
namespace Zentral.API.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/[controller]")]
|
||||
@@ -1,22 +1,22 @@
|
||||
using Apollinare.API.Hubs;
|
||||
using Apollinare.API.Services;
|
||||
using Apollinare.Domain.Entities;
|
||||
using Apollinare.Domain.Enums;
|
||||
using Apollinare.Infrastructure.Data;
|
||||
using Zentral.API.Hubs;
|
||||
using Zentral.API.Services;
|
||||
using Zentral.Domain.Entities;
|
||||
using Zentral.Domain.Enums;
|
||||
using Zentral.Infrastructure.Data;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Apollinare.API.Controllers;
|
||||
namespace Zentral.API.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/[controller]")]
|
||||
public class EventiController : ControllerBase
|
||||
{
|
||||
private readonly AppollinareDbContext _context;
|
||||
private readonly ZentralDbContext _context;
|
||||
private readonly DataNotificationService _notifier;
|
||||
private readonly AutoCodeService _autoCodeService;
|
||||
|
||||
public EventiController(AppollinareDbContext context, DataNotificationService notifier, AutoCodeService autoCodeService)
|
||||
public EventiController(ZentralDbContext context, DataNotificationService notifier, AutoCodeService autoCodeService)
|
||||
{
|
||||
_context = context;
|
||||
_notifier = notifier;
|
||||
@@ -1,19 +1,19 @@
|
||||
using Apollinare.API.Services;
|
||||
using Apollinare.Domain.Entities;
|
||||
using Apollinare.Infrastructure.Data;
|
||||
using Zentral.API.Services;
|
||||
using Zentral.Domain.Entities;
|
||||
using Zentral.Infrastructure.Data;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Apollinare.API.Controllers;
|
||||
namespace Zentral.API.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/eventi/{eventoId}/costi")]
|
||||
public class EventiCostiController : ControllerBase
|
||||
{
|
||||
private readonly AppollinareDbContext _context;
|
||||
private readonly ZentralDbContext _context;
|
||||
private readonly EventoCostiService _costiService;
|
||||
|
||||
public EventiCostiController(AppollinareDbContext context, EventoCostiService costiService)
|
||||
public EventiCostiController(ZentralDbContext context, EventoCostiService costiService)
|
||||
{
|
||||
_context = context;
|
||||
_costiService = costiService;
|
||||
@@ -1,17 +1,17 @@
|
||||
using Apollinare.Domain.Entities;
|
||||
using Apollinare.Infrastructure.Data;
|
||||
using Zentral.Domain.Entities;
|
||||
using Zentral.Infrastructure.Data;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Apollinare.API.Controllers;
|
||||
namespace Zentral.API.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/eventi/{eventoId}")]
|
||||
public class EventoDetailsController : ControllerBase
|
||||
{
|
||||
private readonly AppollinareDbContext _context;
|
||||
private readonly ZentralDbContext _context;
|
||||
|
||||
public EventoDetailsController(AppollinareDbContext context)
|
||||
public EventoDetailsController(ZentralDbContext context)
|
||||
{
|
||||
_context = context;
|
||||
}
|
||||
@@ -1,17 +1,17 @@
|
||||
using Apollinare.Domain.Entities;
|
||||
using Apollinare.Infrastructure.Data;
|
||||
using Zentral.Domain.Entities;
|
||||
using Zentral.Infrastructure.Data;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Apollinare.API.Controllers;
|
||||
namespace Zentral.API.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/[controller]")]
|
||||
public class LocationController : ControllerBase
|
||||
{
|
||||
private readonly AppollinareDbContext _context;
|
||||
private readonly ZentralDbContext _context;
|
||||
|
||||
public LocationController(AppollinareDbContext context)
|
||||
public LocationController(ZentralDbContext context)
|
||||
{
|
||||
_context = context;
|
||||
}
|
||||
@@ -1,16 +1,16 @@
|
||||
using Apollinare.Infrastructure.Data;
|
||||
using Zentral.Infrastructure.Data;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Apollinare.API.Controllers;
|
||||
namespace Zentral.API.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/[controller]")]
|
||||
public class LookupController : ControllerBase
|
||||
{
|
||||
private readonly AppollinareDbContext _context;
|
||||
private readonly ZentralDbContext _context;
|
||||
|
||||
public LookupController(AppollinareDbContext context)
|
||||
public LookupController(ZentralDbContext context)
|
||||
{
|
||||
_context = context;
|
||||
}
|
||||
@@ -1,8 +1,8 @@
|
||||
using Apollinare.API.Services;
|
||||
using Apollinare.Domain.Entities;
|
||||
using Zentral.API.Services;
|
||||
using Zentral.Domain.Entities;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Apollinare.API.Controllers;
|
||||
namespace Zentral.API.Controllers;
|
||||
|
||||
/// <summary>
|
||||
/// Controller per la gestione dei moduli applicativi e delle subscription
|
||||
@@ -1,18 +1,18 @@
|
||||
using Apollinare.API.Services.Reports;
|
||||
using Apollinare.Domain.Entities;
|
||||
using Apollinare.Infrastructure.Data;
|
||||
using Zentral.API.Services.Reports;
|
||||
using Zentral.Domain.Entities;
|
||||
using Zentral.Infrastructure.Data;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Apollinare.API.Controllers;
|
||||
namespace Zentral.API.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/report-resources")]
|
||||
public class ReportResourcesController : ControllerBase
|
||||
{
|
||||
private readonly AppollinareDbContext _context;
|
||||
private readonly ZentralDbContext _context;
|
||||
|
||||
public ReportResourcesController(AppollinareDbContext context)
|
||||
public ReportResourcesController(ZentralDbContext context)
|
||||
{
|
||||
_context = context;
|
||||
}
|
||||
@@ -1,19 +1,19 @@
|
||||
using Apollinare.API.Services.Reports;
|
||||
using Apollinare.Domain.Entities;
|
||||
using Apollinare.Infrastructure.Data;
|
||||
using Zentral.API.Services.Reports;
|
||||
using Zentral.Domain.Entities;
|
||||
using Zentral.Infrastructure.Data;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Apollinare.API.Controllers;
|
||||
namespace Zentral.API.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/report-templates")]
|
||||
public class ReportTemplatesController : ControllerBase
|
||||
{
|
||||
private readonly AppollinareDbContext _context;
|
||||
private readonly ZentralDbContext _context;
|
||||
private readonly ReportGeneratorService _reportGenerator;
|
||||
|
||||
public ReportTemplatesController(AppollinareDbContext context, ReportGeneratorService reportGenerator)
|
||||
public ReportTemplatesController(ZentralDbContext context, ReportGeneratorService reportGenerator)
|
||||
{
|
||||
_context = context;
|
||||
_reportGenerator = reportGenerator;
|
||||
@@ -1,19 +1,19 @@
|
||||
using Apollinare.API.Services.Reports;
|
||||
using Apollinare.Domain.Entities;
|
||||
using Apollinare.Infrastructure.Data;
|
||||
using Zentral.API.Services.Reports;
|
||||
using Zentral.Domain.Entities;
|
||||
using Zentral.Infrastructure.Data;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Apollinare.API.Controllers;
|
||||
namespace Zentral.API.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/reports")]
|
||||
public class ReportsController : ControllerBase
|
||||
{
|
||||
private readonly ReportGeneratorService _reportGenerator;
|
||||
private readonly AppollinareDbContext _context;
|
||||
private readonly ZentralDbContext _context;
|
||||
|
||||
public ReportsController(ReportGeneratorService reportGenerator, AppollinareDbContext context)
|
||||
public ReportsController(ReportGeneratorService reportGenerator, ZentralDbContext context)
|
||||
{
|
||||
_reportGenerator = reportGenerator;
|
||||
_context = context;
|
||||
@@ -1,17 +1,17 @@
|
||||
using Apollinare.Domain.Entities;
|
||||
using Apollinare.Infrastructure.Data;
|
||||
using Zentral.Domain.Entities;
|
||||
using Zentral.Infrastructure.Data;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Apollinare.API.Controllers;
|
||||
namespace Zentral.API.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/[controller]")]
|
||||
public class RisorseController : ControllerBase
|
||||
{
|
||||
private readonly AppollinareDbContext _context;
|
||||
private readonly ZentralDbContext _context;
|
||||
|
||||
public RisorseController(AppollinareDbContext context)
|
||||
public RisorseController(ZentralDbContext context)
|
||||
{
|
||||
_context = context;
|
||||
}
|
||||
@@ -1,18 +1,18 @@
|
||||
using System.Text.Json;
|
||||
using Apollinare.Domain.Entities;
|
||||
using Apollinare.Infrastructure.Data;
|
||||
using Zentral.Domain.Entities;
|
||||
using Zentral.Infrastructure.Data;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Apollinare.API.Controllers;
|
||||
namespace Zentral.API.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/virtual-datasets")]
|
||||
public class VirtualDatasetsController : ControllerBase
|
||||
{
|
||||
private readonly AppollinareDbContext _context;
|
||||
private readonly ZentralDbContext _context;
|
||||
|
||||
public VirtualDatasetsController(AppollinareDbContext context)
|
||||
public VirtualDatasetsController(ZentralDbContext context)
|
||||
{
|
||||
_context = context;
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Collections.Concurrent;
|
||||
using Microsoft.AspNetCore.SignalR;
|
||||
|
||||
namespace Apollinare.API.Hubs;
|
||||
namespace Zentral.API.Hubs;
|
||||
|
||||
/// <summary>
|
||||
/// Hub SignalR generico per la collaborazione in tempo reale su qualsiasi entità/pagina
|
||||
@@ -1,6 +1,6 @@
|
||||
using Microsoft.AspNetCore.SignalR;
|
||||
|
||||
namespace Apollinare.API.Hubs;
|
||||
namespace Zentral.API.Hubs;
|
||||
|
||||
/// <summary>
|
||||
/// Hub SignalR per la sincronizzazione in tempo reale dei dati tra client
|
||||
@@ -1,8 +1,8 @@
|
||||
using Apollinare.API.Modules.Production.Dtos;
|
||||
using Apollinare.API.Modules.Production.Services;
|
||||
using Zentral.API.Modules.Production.Dtos;
|
||||
using Zentral.API.Modules.Production.Services;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Apollinare.API.Modules.Production.Controllers;
|
||||
namespace Zentral.API.Modules.Production.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/production/bom")]
|
||||
@@ -1,9 +1,9 @@
|
||||
using Apollinare.API.Modules.Production.Dtos;
|
||||
using Apollinare.API.Modules.Production.Services;
|
||||
using Apollinare.Domain.Entities.Production;
|
||||
using Zentral.API.Modules.Production.Dtos;
|
||||
using Zentral.API.Modules.Production.Services;
|
||||
using Zentral.Domain.Entities.Production;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Apollinare.API.Modules.Production.Controllers;
|
||||
namespace Zentral.API.Modules.Production.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/production/mrp")]
|
||||
@@ -1,8 +1,8 @@
|
||||
using Apollinare.API.Modules.Production.Dtos;
|
||||
using Apollinare.API.Modules.Production.Services;
|
||||
using Zentral.API.Modules.Production.Dtos;
|
||||
using Zentral.API.Modules.Production.Services;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Apollinare.API.Modules.Production.Controllers;
|
||||
namespace Zentral.API.Modules.Production.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/production/cycles")]
|
||||
@@ -1,9 +1,9 @@
|
||||
using Apollinare.API.Modules.Production.Dtos;
|
||||
using Apollinare.API.Modules.Production.Services;
|
||||
using Apollinare.Domain.Entities.Production;
|
||||
using Zentral.API.Modules.Production.Dtos;
|
||||
using Zentral.API.Modules.Production.Services;
|
||||
using Zentral.Domain.Entities.Production;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Apollinare.API.Modules.Production.Controllers;
|
||||
namespace Zentral.API.Modules.Production.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/production/orders")]
|
||||
@@ -1,8 +1,8 @@
|
||||
using Apollinare.API.Modules.Production.Dtos;
|
||||
using Apollinare.API.Modules.Production.Services;
|
||||
using Zentral.API.Modules.Production.Dtos;
|
||||
using Zentral.API.Modules.Production.Services;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Apollinare.API.Modules.Production.Controllers;
|
||||
namespace Zentral.API.Modules.Production.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/production/work-centers")]
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Apollinare.API.Modules.Production.Dtos;
|
||||
namespace Zentral.API.Modules.Production.Dtos;
|
||||
|
||||
public class BillOfMaterialsDto
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Apollinare.API.Modules.Production.Dtos;
|
||||
namespace Zentral.API.Modules.Production.Dtos;
|
||||
|
||||
public class CreateBillOfMaterialsDto
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Apollinare.API.Modules.Production.Dtos;
|
||||
namespace Zentral.API.Modules.Production.Dtos;
|
||||
|
||||
public class CreateProductionOrderDto
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Apollinare.API.Modules.Production.Dtos;
|
||||
namespace Zentral.API.Modules.Production.Dtos;
|
||||
|
||||
public class MrpConfigurationDto
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Apollinare.API.Modules.Production.Dtos;
|
||||
namespace Zentral.API.Modules.Production.Dtos;
|
||||
|
||||
public class ProductionCycleDto
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Apollinare.Domain.Entities.Production;
|
||||
using Zentral.Domain.Entities.Production;
|
||||
|
||||
namespace Apollinare.API.Modules.Production.Dtos;
|
||||
namespace Zentral.API.Modules.Production.Dtos;
|
||||
|
||||
public class ProductionOrderDto
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Apollinare.API.Modules.Production.Dtos;
|
||||
namespace Zentral.API.Modules.Production.Dtos;
|
||||
|
||||
public class UpdateBillOfMaterialsDto
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Apollinare.Domain.Entities.Production;
|
||||
using Zentral.Domain.Entities.Production;
|
||||
|
||||
namespace Apollinare.API.Modules.Production.Dtos;
|
||||
namespace Zentral.API.Modules.Production.Dtos;
|
||||
|
||||
public class UpdateProductionOrderDto
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Apollinare.API.Modules.Production.Dtos;
|
||||
namespace Zentral.API.Modules.Production.Dtos;
|
||||
|
||||
public class WorkCenterDto
|
||||
{
|
||||
@@ -1,7 +1,7 @@
|
||||
using Apollinare.API.Modules.Production.Dtos;
|
||||
using Apollinare.Domain.Entities.Production;
|
||||
using Zentral.API.Modules.Production.Dtos;
|
||||
using Zentral.Domain.Entities.Production;
|
||||
|
||||
namespace Apollinare.API.Modules.Production.Services;
|
||||
namespace Zentral.API.Modules.Production.Services;
|
||||
|
||||
public interface IMrpService
|
||||
{
|
||||
@@ -1,7 +1,7 @@
|
||||
using Apollinare.API.Modules.Production.Dtos;
|
||||
using Apollinare.Domain.Entities.Production;
|
||||
using Zentral.API.Modules.Production.Dtos;
|
||||
using Zentral.Domain.Entities.Production;
|
||||
|
||||
namespace Apollinare.API.Modules.Production.Services;
|
||||
namespace Zentral.API.Modules.Production.Services;
|
||||
|
||||
public interface IProductionService
|
||||
{
|
||||
@@ -1,17 +1,17 @@
|
||||
using Apollinare.Domain.Entities.Production;
|
||||
using Apollinare.Domain.Entities.Warehouse;
|
||||
using Apollinare.Infrastructure.Data;
|
||||
using Zentral.Domain.Entities.Production;
|
||||
using Zentral.Domain.Entities.Warehouse;
|
||||
using Zentral.Infrastructure.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Apollinare.API.Modules.Production.Dtos;
|
||||
using Zentral.API.Modules.Production.Dtos;
|
||||
|
||||
namespace Apollinare.API.Modules.Production.Services;
|
||||
namespace Zentral.API.Modules.Production.Services;
|
||||
|
||||
public class MrpService : IMrpService
|
||||
{
|
||||
private readonly AppollinareDbContext _context;
|
||||
private readonly ZentralDbContext _context;
|
||||
private readonly ILogger<MrpService> _logger;
|
||||
|
||||
public MrpService(AppollinareDbContext context, ILogger<MrpService> logger)
|
||||
public MrpService(ZentralDbContext context, ILogger<MrpService> logger)
|
||||
{
|
||||
_context = context;
|
||||
_logger = logger;
|
||||
@@ -1,18 +1,18 @@
|
||||
using Apollinare.API.Modules.Production.Dtos;
|
||||
using Apollinare.API.Modules.Warehouse.Services;
|
||||
using Apollinare.Domain.Entities.Production;
|
||||
using Apollinare.Domain.Entities.Warehouse;
|
||||
using Apollinare.Infrastructure.Data;
|
||||
using Zentral.API.Modules.Production.Dtos;
|
||||
using Zentral.API.Modules.Warehouse.Services;
|
||||
using Zentral.Domain.Entities.Production;
|
||||
using Zentral.Domain.Entities.Warehouse;
|
||||
using Zentral.Infrastructure.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Apollinare.API.Modules.Production.Services;
|
||||
namespace Zentral.API.Modules.Production.Services;
|
||||
|
||||
public class ProductionService : IProductionService
|
||||
{
|
||||
private readonly AppollinareDbContext _context;
|
||||
private readonly ZentralDbContext _context;
|
||||
private readonly IWarehouseService _warehouseService;
|
||||
|
||||
public ProductionService(AppollinareDbContext context, IWarehouseService warehouseService)
|
||||
public ProductionService(ZentralDbContext context, IWarehouseService warehouseService)
|
||||
{
|
||||
_context = context;
|
||||
_warehouseService = warehouseService;
|
||||
@@ -1,10 +1,10 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Apollinare.API.Modules.Purchases.Dtos;
|
||||
using Apollinare.API.Modules.Purchases.Services;
|
||||
using Zentral.API.Modules.Purchases.Dtos;
|
||||
using Zentral.API.Modules.Purchases.Services;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Apollinare.API.Modules.Purchases.Controllers;
|
||||
namespace Zentral.API.Modules.Purchases.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/purchases/orders")]
|
||||
@@ -1,10 +1,10 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Apollinare.API.Modules.Purchases.Dtos;
|
||||
using Apollinare.API.Modules.Purchases.Services;
|
||||
using Zentral.API.Modules.Purchases.Dtos;
|
||||
using Zentral.API.Modules.Purchases.Services;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Apollinare.API.Modules.Purchases.Controllers;
|
||||
namespace Zentral.API.Modules.Purchases.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/purchases/suppliers")]
|
||||
@@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Apollinare.Domain.Entities.Purchases;
|
||||
using Zentral.Domain.Entities.Purchases;
|
||||
|
||||
namespace Apollinare.API.Modules.Purchases.Dtos;
|
||||
namespace Zentral.API.Modules.Purchases.Dtos;
|
||||
|
||||
public class PurchaseOrderDto
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using System;
|
||||
|
||||
namespace Apollinare.API.Modules.Purchases.Dtos;
|
||||
namespace Zentral.API.Modules.Purchases.Dtos;
|
||||
|
||||
public class SupplierDto
|
||||
{
|
||||
@@ -2,23 +2,23 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Apollinare.API.Modules.Purchases.Dtos;
|
||||
using Apollinare.API.Modules.Warehouse.Services;
|
||||
using Apollinare.API.Services;
|
||||
using Apollinare.Domain.Entities.Purchases;
|
||||
using Apollinare.Domain.Entities.Warehouse;
|
||||
using Apollinare.Infrastructure.Data;
|
||||
using Zentral.API.Modules.Purchases.Dtos;
|
||||
using Zentral.API.Modules.Warehouse.Services;
|
||||
using Zentral.API.Services;
|
||||
using Zentral.Domain.Entities.Purchases;
|
||||
using Zentral.Domain.Entities.Warehouse;
|
||||
using Zentral.Infrastructure.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Apollinare.API.Modules.Purchases.Services;
|
||||
namespace Zentral.API.Modules.Purchases.Services;
|
||||
|
||||
public class PurchaseService
|
||||
{
|
||||
private readonly AppollinareDbContext _db;
|
||||
private readonly ZentralDbContext _db;
|
||||
private readonly AutoCodeService _autoCodeService;
|
||||
private readonly IWarehouseService _warehouseService;
|
||||
|
||||
public PurchaseService(AppollinareDbContext db, AutoCodeService autoCodeService, IWarehouseService warehouseService)
|
||||
public PurchaseService(ZentralDbContext db, AutoCodeService autoCodeService, IWarehouseService warehouseService)
|
||||
{
|
||||
_db = db;
|
||||
_autoCodeService = autoCodeService;
|
||||
@@ -2,20 +2,20 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Apollinare.API.Modules.Purchases.Dtos;
|
||||
using Apollinare.API.Services;
|
||||
using Apollinare.Domain.Entities.Purchases;
|
||||
using Apollinare.Infrastructure.Data;
|
||||
using Zentral.API.Modules.Purchases.Dtos;
|
||||
using Zentral.API.Services;
|
||||
using Zentral.Domain.Entities.Purchases;
|
||||
using Zentral.Infrastructure.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Apollinare.API.Modules.Purchases.Services;
|
||||
namespace Zentral.API.Modules.Purchases.Services;
|
||||
|
||||
public class SupplierService
|
||||
{
|
||||
private readonly AppollinareDbContext _db;
|
||||
private readonly ZentralDbContext _db;
|
||||
private readonly AutoCodeService _autoCodeService;
|
||||
|
||||
public SupplierService(AppollinareDbContext db, AutoCodeService autoCodeService)
|
||||
public SupplierService(ZentralDbContext db, AutoCodeService autoCodeService)
|
||||
{
|
||||
_db = db;
|
||||
_autoCodeService = autoCodeService;
|
||||
@@ -1,10 +1,10 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Threading.Tasks;
|
||||
using Apollinare.API.Modules.Sales.Dtos;
|
||||
using Apollinare.API.Modules.Sales.Services;
|
||||
using Zentral.API.Modules.Sales.Dtos;
|
||||
using Zentral.API.Modules.Sales.Services;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Apollinare.API.Modules.Sales.Controllers;
|
||||
namespace Zentral.API.Modules.Sales.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("api/sales/orders")]
|
||||
@@ -1,8 +1,8 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Apollinare.Domain.Entities.Sales;
|
||||
using Zentral.Domain.Entities.Sales;
|
||||
|
||||
namespace Apollinare.API.Modules.Sales.Dtos;
|
||||
namespace Zentral.API.Modules.Sales.Dtos;
|
||||
|
||||
public class SalesOrderDto
|
||||
{
|
||||
@@ -2,23 +2,23 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using Apollinare.API.Modules.Sales.Dtos;
|
||||
using Apollinare.API.Modules.Warehouse.Services;
|
||||
using Apollinare.API.Services;
|
||||
using Apollinare.Domain.Entities.Sales;
|
||||
using Apollinare.Domain.Entities.Warehouse;
|
||||
using Apollinare.Infrastructure.Data;
|
||||
using Zentral.API.Modules.Sales.Dtos;
|
||||
using Zentral.API.Modules.Warehouse.Services;
|
||||
using Zentral.API.Services;
|
||||
using Zentral.Domain.Entities.Sales;
|
||||
using Zentral.Domain.Entities.Warehouse;
|
||||
using Zentral.Infrastructure.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Apollinare.API.Modules.Sales.Services;
|
||||
namespace Zentral.API.Modules.Sales.Services;
|
||||
|
||||
public class SalesService
|
||||
{
|
||||
private readonly AppollinareDbContext _db;
|
||||
private readonly ZentralDbContext _db;
|
||||
private readonly AutoCodeService _autoCodeService;
|
||||
private readonly IWarehouseService _warehouseService;
|
||||
|
||||
public SalesService(AppollinareDbContext db, AutoCodeService autoCodeService, IWarehouseService warehouseService)
|
||||
public SalesService(ZentralDbContext db, AutoCodeService autoCodeService, IWarehouseService warehouseService)
|
||||
{
|
||||
_db = db;
|
||||
_autoCodeService = autoCodeService;
|
||||
@@ -1,8 +1,8 @@
|
||||
using Apollinare.API.Modules.Warehouse.Services;
|
||||
using Apollinare.Domain.Entities.Warehouse;
|
||||
using Zentral.API.Modules.Warehouse.Services;
|
||||
using Zentral.Domain.Entities.Warehouse;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Apollinare.API.Modules.Warehouse.Controllers;
|
||||
namespace Zentral.API.Modules.Warehouse.Controllers;
|
||||
|
||||
/// <summary>
|
||||
/// Controller per la gestione delle partite/lotti
|
||||
@@ -1,8 +1,8 @@
|
||||
using Apollinare.API.Modules.Warehouse.Services;
|
||||
using Apollinare.Domain.Entities.Warehouse;
|
||||
using Zentral.API.Modules.Warehouse.Services;
|
||||
using Zentral.Domain.Entities.Warehouse;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Apollinare.API.Modules.Warehouse.Controllers;
|
||||
namespace Zentral.API.Modules.Warehouse.Controllers;
|
||||
|
||||
/// <summary>
|
||||
/// Controller per la gestione degli inventari fisici
|
||||
@@ -1,8 +1,8 @@
|
||||
using Apollinare.API.Modules.Warehouse.Services;
|
||||
using Apollinare.Domain.Entities.Warehouse;
|
||||
using Zentral.API.Modules.Warehouse.Services;
|
||||
using Zentral.Domain.Entities.Warehouse;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Apollinare.API.Modules.Warehouse.Controllers;
|
||||
namespace Zentral.API.Modules.Warehouse.Controllers;
|
||||
|
||||
/// <summary>
|
||||
/// Controller per la gestione dei seriali/matricole
|
||||
@@ -1,8 +1,8 @@
|
||||
using Apollinare.API.Modules.Warehouse.Services;
|
||||
using Apollinare.Domain.Entities.Warehouse;
|
||||
using Zentral.API.Modules.Warehouse.Services;
|
||||
using Zentral.Domain.Entities.Warehouse;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Apollinare.API.Modules.Warehouse.Controllers;
|
||||
namespace Zentral.API.Modules.Warehouse.Controllers;
|
||||
|
||||
/// <summary>
|
||||
/// Controller per la gestione delle giacenze e valorizzazione
|
||||
@@ -1,8 +1,8 @@
|
||||
using Apollinare.API.Modules.Warehouse.Services;
|
||||
using Apollinare.Domain.Entities.Warehouse;
|
||||
using Zentral.API.Modules.Warehouse.Services;
|
||||
using Zentral.Domain.Entities.Warehouse;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Apollinare.API.Modules.Warehouse.Controllers;
|
||||
namespace Zentral.API.Modules.Warehouse.Controllers;
|
||||
|
||||
/// <summary>
|
||||
/// Controller per la gestione dei movimenti di magazzino
|
||||
@@ -1,8 +1,8 @@
|
||||
using Apollinare.API.Modules.Warehouse.Services;
|
||||
using Apollinare.Domain.Entities.Warehouse;
|
||||
using Zentral.API.Modules.Warehouse.Services;
|
||||
using Zentral.Domain.Entities.Warehouse;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Apollinare.API.Modules.Warehouse.Controllers;
|
||||
namespace Zentral.API.Modules.Warehouse.Controllers;
|
||||
|
||||
/// <summary>
|
||||
/// Controller per la gestione degli articoli di magazzino
|
||||
@@ -1,8 +1,8 @@
|
||||
using Apollinare.API.Modules.Warehouse.Services;
|
||||
using Apollinare.Domain.Entities.Warehouse;
|
||||
using Zentral.API.Modules.Warehouse.Services;
|
||||
using Zentral.Domain.Entities.Warehouse;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Apollinare.API.Modules.Warehouse.Controllers;
|
||||
namespace Zentral.API.Modules.Warehouse.Controllers;
|
||||
|
||||
/// <summary>
|
||||
/// Controller per la gestione delle categorie articoli
|
||||
@@ -1,8 +1,8 @@
|
||||
using Apollinare.API.Modules.Warehouse.Services;
|
||||
using Apollinare.Domain.Entities.Warehouse;
|
||||
using Zentral.API.Modules.Warehouse.Services;
|
||||
using Zentral.Domain.Entities.Warehouse;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Apollinare.API.Modules.Warehouse.Controllers;
|
||||
namespace Zentral.API.Modules.Warehouse.Controllers;
|
||||
|
||||
/// <summary>
|
||||
/// Controller per la gestione dei magazzini
|
||||
@@ -1,6 +1,6 @@
|
||||
using Apollinare.Domain.Entities.Warehouse;
|
||||
using Zentral.Domain.Entities.Warehouse;
|
||||
|
||||
namespace Apollinare.API.Modules.Warehouse.Services;
|
||||
namespace Zentral.API.Modules.Warehouse.Services;
|
||||
|
||||
/// <summary>
|
||||
/// Interfaccia servizio principale per il modulo Magazzino
|
||||
@@ -1,19 +1,19 @@
|
||||
using Apollinare.API.Services;
|
||||
using Apollinare.Domain.Entities.Warehouse;
|
||||
using Apollinare.Infrastructure.Data;
|
||||
using Zentral.API.Services;
|
||||
using Zentral.Domain.Entities.Warehouse;
|
||||
using Zentral.Infrastructure.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Caching.Memory;
|
||||
|
||||
using Apollinare.API.Hubs;
|
||||
using Zentral.API.Hubs;
|
||||
|
||||
namespace Apollinare.API.Modules.Warehouse.Services;
|
||||
namespace Zentral.API.Modules.Warehouse.Services;
|
||||
|
||||
/// <summary>
|
||||
/// Implementazione del servizio principale per il modulo Magazzino
|
||||
/// </summary>
|
||||
public class WarehouseService : IWarehouseService
|
||||
{
|
||||
private readonly AppollinareDbContext _context;
|
||||
private readonly ZentralDbContext _context;
|
||||
private readonly IMemoryCache _cache;
|
||||
private readonly ILogger<WarehouseService> _logger;
|
||||
private readonly AutoCodeService _autoCodeService;
|
||||
@@ -25,7 +25,7 @@ public class WarehouseService : IWarehouseService
|
||||
private static readonly TimeSpan CacheDuration = TimeSpan.FromMinutes(10);
|
||||
|
||||
public WarehouseService(
|
||||
AppollinareDbContext context,
|
||||
ZentralDbContext context,
|
||||
IMemoryCache cache,
|
||||
ILogger<WarehouseService> logger,
|
||||
AutoCodeService autoCodeService,
|
||||
@@ -1,12 +1,12 @@
|
||||
using Apollinare.API.Hubs;
|
||||
using Apollinare.API.Services;
|
||||
using Zentral.API.Hubs;
|
||||
using Zentral.API.Services;
|
||||
// Trigger rebuild
|
||||
using Apollinare.API.Services.Reports;
|
||||
using Apollinare.API.Modules.Warehouse.Services;
|
||||
using Apollinare.API.Modules.Purchases.Services;
|
||||
using Apollinare.API.Modules.Sales.Services;
|
||||
using Apollinare.API.Modules.Production.Services;
|
||||
using Apollinare.Infrastructure.Data;
|
||||
using Zentral.API.Services.Reports;
|
||||
using Zentral.API.Modules.Warehouse.Services;
|
||||
using Zentral.API.Modules.Purchases.Services;
|
||||
using Zentral.API.Modules.Sales.Services;
|
||||
using Zentral.API.Modules.Production.Services;
|
||||
using Zentral.Infrastructure.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
@@ -14,8 +14,8 @@ var builder = WebApplication.CreateBuilder(args);
|
||||
|
||||
// Database
|
||||
var connectionString = builder.Configuration.GetConnectionString("DefaultConnection")
|
||||
?? "Data Source=apollinare.db";
|
||||
builder.Services.AddDbContext<AppollinareDbContext>(options =>
|
||||
?? "Data Source=zentral.db";
|
||||
builder.Services.AddDbContext<ZentralDbContext>(options =>
|
||||
options.UseSqlite(connectionString));
|
||||
|
||||
// Services
|
||||
@@ -82,7 +82,7 @@ var app = builder.Build();
|
||||
// Apply pending migrations automatically on startup
|
||||
using (var scope = app.Services.CreateScope())
|
||||
{
|
||||
var db = scope.ServiceProvider.GetRequiredService<AppollinareDbContext>();
|
||||
var db = scope.ServiceProvider.GetRequiredService<ZentralDbContext>();
|
||||
var logger = scope.ServiceProvider.GetRequiredService<ILogger<Program>>();
|
||||
|
||||
try
|
||||
@@ -1,9 +1,9 @@
|
||||
using System.Text.RegularExpressions;
|
||||
using Apollinare.Domain.Entities;
|
||||
using Apollinare.Infrastructure.Data;
|
||||
using Zentral.Domain.Entities;
|
||||
using Zentral.Infrastructure.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Apollinare.API.Services;
|
||||
namespace Zentral.API.Services;
|
||||
|
||||
/// <summary>
|
||||
/// Servizio per la generazione automatica di codici univoci.
|
||||
@@ -11,11 +11,11 @@ namespace Apollinare.API.Services;
|
||||
/// </summary>
|
||||
public class AutoCodeService
|
||||
{
|
||||
private readonly AppollinareDbContext _db;
|
||||
private readonly ZentralDbContext _db;
|
||||
private readonly ILogger<AutoCodeService> _logger;
|
||||
private static readonly Regex SequencePattern = new(@"\{SEQ:(\d+)\}", RegexOptions.Compiled);
|
||||
|
||||
public AutoCodeService(AppollinareDbContext db, ILogger<AutoCodeService> logger)
|
||||
public AutoCodeService(ZentralDbContext db, ILogger<AutoCodeService> logger)
|
||||
{
|
||||
_db = db;
|
||||
_logger = logger;
|
||||
@@ -1,15 +1,15 @@
|
||||
using Apollinare.Domain.Entities;
|
||||
using Apollinare.Infrastructure.Data;
|
||||
using Zentral.Domain.Entities;
|
||||
using Zentral.Infrastructure.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Apollinare.API.Services;
|
||||
namespace Zentral.API.Services;
|
||||
|
||||
public class CustomFieldService
|
||||
{
|
||||
private readonly AppollinareDbContext _context;
|
||||
private readonly ZentralDbContext _context;
|
||||
private readonly ILogger<CustomFieldService> _logger;
|
||||
|
||||
public CustomFieldService(AppollinareDbContext context, ILogger<CustomFieldService> logger)
|
||||
public CustomFieldService(ZentralDbContext context, ILogger<CustomFieldService> logger)
|
||||
{
|
||||
_context = context;
|
||||
_logger = logger;
|
||||
@@ -1,16 +1,16 @@
|
||||
using Apollinare.Domain.Entities;
|
||||
using Apollinare.Domain.Enums;
|
||||
using Apollinare.Infrastructure.Data;
|
||||
using Zentral.Domain.Entities;
|
||||
using Zentral.Domain.Enums;
|
||||
using Zentral.Infrastructure.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Apollinare.API.Services;
|
||||
namespace Zentral.API.Services;
|
||||
|
||||
public class DemoDataService
|
||||
{
|
||||
private readonly AppollinareDbContext _context;
|
||||
private readonly ZentralDbContext _context;
|
||||
private readonly Random _random = new();
|
||||
|
||||
public DemoDataService(AppollinareDbContext context)
|
||||
public DemoDataService(ZentralDbContext context)
|
||||
{
|
||||
_context = context;
|
||||
}
|
||||
@@ -1,15 +1,15 @@
|
||||
using Apollinare.Domain.Entities;
|
||||
using Apollinare.Infrastructure.Data;
|
||||
using Zentral.Domain.Entities;
|
||||
using Zentral.Infrastructure.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
namespace Apollinare.API.Services;
|
||||
namespace Zentral.API.Services;
|
||||
|
||||
public class EventoCostiService
|
||||
{
|
||||
private readonly AppollinareDbContext _context;
|
||||
private readonly ZentralDbContext _context;
|
||||
private const decimal IVA_DEFAULT = 10m; // 10% IVA
|
||||
|
||||
public EventoCostiService(AppollinareDbContext context)
|
||||
public EventoCostiService(ZentralDbContext context)
|
||||
{
|
||||
_context = context;
|
||||
}
|
||||
@@ -1,16 +1,16 @@
|
||||
using Apollinare.Domain.Entities;
|
||||
using Apollinare.Infrastructure.Data;
|
||||
using Zentral.Domain.Entities;
|
||||
using Zentral.Infrastructure.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Microsoft.Extensions.Caching.Memory;
|
||||
|
||||
namespace Apollinare.API.Services;
|
||||
namespace Zentral.API.Services;
|
||||
|
||||
/// <summary>
|
||||
/// Service per la gestione dei moduli applicativi e delle relative subscription
|
||||
/// </summary>
|
||||
public class ModuleService
|
||||
{
|
||||
private readonly AppollinareDbContext _context;
|
||||
private readonly ZentralDbContext _context;
|
||||
private readonly IMemoryCache _cache;
|
||||
private readonly ILogger<ModuleService> _logger;
|
||||
|
||||
@@ -19,7 +19,7 @@ public class ModuleService
|
||||
private static readonly TimeSpan CacheDuration = TimeSpan.FromMinutes(5);
|
||||
|
||||
public ModuleService(
|
||||
AppollinareDbContext context,
|
||||
ZentralDbContext context,
|
||||
IMemoryCache cache,
|
||||
ILogger<ModuleService> logger)
|
||||
{
|
||||
@@ -1,9 +1,9 @@
|
||||
using System.Text.Json.Serialization;
|
||||
|
||||
namespace Apollinare.API.Services.Reports;
|
||||
namespace Zentral.API.Services.Reports;
|
||||
|
||||
/// <summary>
|
||||
/// Modelli per il metalinguaggio APRT (Apollinare Report Template)
|
||||
/// Modelli per il metalinguaggio APRT (Zentral Report Template)
|
||||
/// </summary>
|
||||
|
||||
public class AprtTemplate
|
||||
@@ -1,19 +1,19 @@
|
||||
using System.Globalization;
|
||||
using System.Text.Json;
|
||||
using System.Text.RegularExpressions;
|
||||
using Apollinare.Domain.Entities;
|
||||
using Apollinare.Infrastructure.Data;
|
||||
using Zentral.Domain.Entities;
|
||||
using Zentral.Infrastructure.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using QuestPDF.Fluent;
|
||||
using QuestPDF.Helpers;
|
||||
using QuestPDF.Infrastructure;
|
||||
using SkiaSharp;
|
||||
|
||||
namespace Apollinare.API.Services.Reports;
|
||||
namespace Zentral.API.Services.Reports;
|
||||
|
||||
public class ReportGeneratorService
|
||||
{
|
||||
private readonly AppollinareDbContext _context;
|
||||
private readonly ZentralDbContext _context;
|
||||
private readonly ILogger<ReportGeneratorService> _logger;
|
||||
|
||||
private static readonly Regex BindingRegex = new(@"\{\{([^}]+)\}\}", RegexOptions.Compiled);
|
||||
@@ -22,7 +22,7 @@ public class ReportGeneratorService
|
||||
// This matches the frontend MM_TO_PX constant exactly
|
||||
private const float MM_TO_PX = 3.7795275591f;
|
||||
|
||||
public ReportGeneratorService(AppollinareDbContext context, ILogger<ReportGeneratorService> logger)
|
||||
public ReportGeneratorService(ZentralDbContext context, ILogger<ReportGeneratorService> logger)
|
||||
{
|
||||
_context = context;
|
||||
_logger = logger;
|
||||
@@ -1695,24 +1695,24 @@ public class ReportGeneratorService
|
||||
return resources;
|
||||
}
|
||||
|
||||
private static string GetStatoLabel(Apollinare.Domain.Enums.StatoEvento stato)
|
||||
private static string GetStatoLabel(Zentral.Domain.Enums.StatoEvento stato)
|
||||
{
|
||||
return stato switch
|
||||
{
|
||||
Apollinare.Domain.Enums.StatoEvento.Scheda => "SCHEDA",
|
||||
Apollinare.Domain.Enums.StatoEvento.Preventivo => "PREVENTIVO",
|
||||
Apollinare.Domain.Enums.StatoEvento.Confermato => "CONFERMATO",
|
||||
Zentral.Domain.Enums.StatoEvento.Scheda => "SCHEDA",
|
||||
Zentral.Domain.Enums.StatoEvento.Preventivo => "PREVENTIVO",
|
||||
Zentral.Domain.Enums.StatoEvento.Confermato => "CONFERMATO",
|
||||
_ => stato.ToString()
|
||||
};
|
||||
}
|
||||
|
||||
private static string GetStatoColor(Apollinare.Domain.Enums.StatoEvento stato)
|
||||
private static string GetStatoColor(Zentral.Domain.Enums.StatoEvento stato)
|
||||
{
|
||||
return stato switch
|
||||
{
|
||||
Apollinare.Domain.Enums.StatoEvento.Scheda => Colors.Grey.Medium,
|
||||
Apollinare.Domain.Enums.StatoEvento.Preventivo => Colors.Orange.Medium,
|
||||
Apollinare.Domain.Enums.StatoEvento.Confermato => Colors.Green.Medium,
|
||||
Zentral.Domain.Enums.StatoEvento.Scheda => Colors.Grey.Medium,
|
||||
Zentral.Domain.Enums.StatoEvento.Preventivo => Colors.Orange.Medium,
|
||||
Zentral.Domain.Enums.StatoEvento.Confermato => Colors.Green.Medium,
|
||||
_ => Colors.Grey.Medium
|
||||
};
|
||||
}
|
||||
@@ -18,8 +18,8 @@
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\Apollinare.Domain\Apollinare.Domain.csproj" />
|
||||
<ProjectReference Include="..\Apollinare.Infrastructure\Apollinare.Infrastructure.csproj" />
|
||||
<ProjectReference Include="..\Zentral.Domain\Zentral.Domain.csproj" />
|
||||
<ProjectReference Include="..\Zentral.Infrastructure\Zentral.Infrastructure.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
6
src/backend/Zentral.API/Zentral.API.http
Normal file
6
src/backend/Zentral.API/Zentral.API.http
Normal file
@@ -0,0 +1,6 @@
|
||||
@Zentral.API_HostAddress = http://localhost:5072
|
||||
|
||||
GET {{Zentral.API_HostAddress}}/weatherforecast/
|
||||
Accept: application/json
|
||||
|
||||
###
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Apollinare.Domain.Entities;
|
||||
namespace Zentral.Domain.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Rappresenta un modulo dell'applicazione (es. Magazzino, Acquisti, Vendite).
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Apollinare.Domain.Entities;
|
||||
namespace Zentral.Domain.Entities;
|
||||
|
||||
public class Articolo : BaseEntity
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Apollinare.Domain.Entities;
|
||||
namespace Zentral.Domain.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Configurazione per la generazione automatica di codici.
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Apollinare.Domain.Entities;
|
||||
namespace Zentral.Domain.Entities;
|
||||
|
||||
public abstract class BaseEntity
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Apollinare.Domain.Entities;
|
||||
namespace Zentral.Domain.Entities;
|
||||
|
||||
public class Cliente : BaseEntity
|
||||
{
|
||||
@@ -27,5 +27,5 @@ public class Cliente : BaseEntity
|
||||
public bool Attivo { get; set; } = true;
|
||||
|
||||
public ICollection<Evento> Eventi { get; set; } = new List<Evento>();
|
||||
public ICollection<Apollinare.Domain.Entities.Sales.SalesOrder> SalesOrders { get; set; } = new List<Apollinare.Domain.Entities.Sales.SalesOrder>();
|
||||
public ICollection<Zentral.Domain.Entities.Sales.SalesOrder> SalesOrders { get; set; } = new List<Zentral.Domain.Entities.Sales.SalesOrder>();
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Apollinare.Domain.Entities;
|
||||
namespace Zentral.Domain.Entities;
|
||||
|
||||
public class CodiceCategoria : BaseEntity
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Apollinare.Domain.Entities;
|
||||
namespace Zentral.Domain.Entities;
|
||||
|
||||
public class Configurazione : BaseEntity
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Apollinare.Domain.Enums;
|
||||
using Zentral.Domain.Enums;
|
||||
|
||||
namespace Apollinare.Domain.Entities;
|
||||
namespace Zentral.Domain.Entities;
|
||||
|
||||
public class CustomFieldDefinition : BaseEntity
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Apollinare.Domain.Enums;
|
||||
using Zentral.Domain.Enums;
|
||||
|
||||
namespace Apollinare.Domain.Entities;
|
||||
namespace Zentral.Domain.Entities;
|
||||
|
||||
public class Evento : BaseEntity
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Apollinare.Domain.Entities;
|
||||
namespace Zentral.Domain.Entities;
|
||||
|
||||
public class EventoAcconto : BaseEntity
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Apollinare.Domain.Entities;
|
||||
namespace Zentral.Domain.Entities;
|
||||
|
||||
public class EventoAllegato : BaseEntity
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Apollinare.Domain.Entities;
|
||||
namespace Zentral.Domain.Entities;
|
||||
|
||||
public class EventoAltroCosto : BaseEntity
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Apollinare.Domain.Entities;
|
||||
namespace Zentral.Domain.Entities;
|
||||
|
||||
public class EventoDegustazione : BaseEntity
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Apollinare.Domain.Entities;
|
||||
namespace Zentral.Domain.Entities;
|
||||
|
||||
public class EventoDettaglioOspiti : BaseEntity
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Apollinare.Domain.Entities;
|
||||
namespace Zentral.Domain.Entities;
|
||||
|
||||
public class EventoDettaglioPrelievo : BaseEntity
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Apollinare.Domain.Entities;
|
||||
namespace Zentral.Domain.Entities;
|
||||
|
||||
public class EventoDettaglioRisorsa : BaseEntity
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Apollinare.Domain.Entities;
|
||||
namespace Zentral.Domain.Entities;
|
||||
|
||||
public class Location : BaseEntity
|
||||
{
|
||||
@@ -1,4 +1,4 @@
|
||||
namespace Apollinare.Domain.Entities;
|
||||
namespace Zentral.Domain.Entities;
|
||||
|
||||
/// <summary>
|
||||
/// Tipo di abbonamento per un modulo
|
||||
@@ -1,6 +1,6 @@
|
||||
using Apollinare.Domain.Entities.Warehouse;
|
||||
using Zentral.Domain.Entities.Warehouse;
|
||||
|
||||
namespace Apollinare.Domain.Entities.Production;
|
||||
namespace Zentral.Domain.Entities.Production;
|
||||
|
||||
public class BillOfMaterials : BaseEntity
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Apollinare.Domain.Entities.Warehouse;
|
||||
using Zentral.Domain.Entities.Warehouse;
|
||||
|
||||
namespace Apollinare.Domain.Entities.Production;
|
||||
namespace Zentral.Domain.Entities.Production;
|
||||
|
||||
public class BillOfMaterialsComponent : BaseEntity
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Apollinare.Domain.Entities.Warehouse;
|
||||
using Zentral.Domain.Entities.Warehouse;
|
||||
|
||||
namespace Apollinare.Domain.Entities.Production;
|
||||
namespace Zentral.Domain.Entities.Production;
|
||||
|
||||
public class MrpSuggestion : BaseEntity
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Apollinare.Domain.Entities.Warehouse;
|
||||
using Zentral.Domain.Entities.Warehouse;
|
||||
|
||||
namespace Apollinare.Domain.Entities.Production;
|
||||
namespace Zentral.Domain.Entities.Production;
|
||||
|
||||
public class ProductionCycle : BaseEntity
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Apollinare.Domain.Entities.Warehouse;
|
||||
using Zentral.Domain.Entities.Warehouse;
|
||||
|
||||
namespace Apollinare.Domain.Entities.Production;
|
||||
namespace Zentral.Domain.Entities.Production;
|
||||
|
||||
public class ProductionOrder : BaseEntity
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Apollinare.Domain.Entities.Warehouse;
|
||||
using Zentral.Domain.Entities.Warehouse;
|
||||
|
||||
namespace Apollinare.Domain.Entities.Production;
|
||||
namespace Zentral.Domain.Entities.Production;
|
||||
|
||||
public class ProductionOrderComponent : BaseEntity
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Apollinare.Domain.Entities.Warehouse;
|
||||
using Zentral.Domain.Entities.Warehouse;
|
||||
|
||||
namespace Apollinare.Domain.Entities.Production;
|
||||
namespace Zentral.Domain.Entities.Production;
|
||||
|
||||
public class ProductionOrderPhase : BaseEntity
|
||||
{
|
||||
@@ -1,6 +1,6 @@
|
||||
using Apollinare.Domain.Entities.Warehouse;
|
||||
using Zentral.Domain.Entities.Warehouse;
|
||||
|
||||
namespace Apollinare.Domain.Entities.Production;
|
||||
namespace Zentral.Domain.Entities.Production;
|
||||
|
||||
public class WorkCenter : BaseEntity
|
||||
{
|
||||
@@ -1,9 +1,9 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Apollinare.Domain.Entities;
|
||||
using Apollinare.Domain.Entities.Warehouse;
|
||||
using Zentral.Domain.Entities;
|
||||
using Zentral.Domain.Entities.Warehouse;
|
||||
|
||||
namespace Apollinare.Domain.Entities.Purchases;
|
||||
namespace Zentral.Domain.Entities.Purchases;
|
||||
|
||||
/// <summary>
|
||||
/// Ordine di acquisto a fornitore
|
||||
@@ -1,7 +1,7 @@
|
||||
using Apollinare.Domain.Entities;
|
||||
using Apollinare.Domain.Entities.Warehouse;
|
||||
using Zentral.Domain.Entities;
|
||||
using Zentral.Domain.Entities.Warehouse;
|
||||
|
||||
namespace Apollinare.Domain.Entities.Purchases;
|
||||
namespace Zentral.Domain.Entities.Purchases;
|
||||
|
||||
/// <summary>
|
||||
/// Riga ordine di acquisto
|
||||
@@ -1,7 +1,7 @@
|
||||
using System.Collections.Generic;
|
||||
using Apollinare.Domain.Entities;
|
||||
using Zentral.Domain.Entities;
|
||||
|
||||
namespace Apollinare.Domain.Entities.Purchases;
|
||||
namespace Zentral.Domain.Entities.Purchases;
|
||||
|
||||
/// <summary>
|
||||
/// Fornitore di beni o servizi
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user