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