refactor: Migrate backend and frontend architecture from a module-based to an app-based structure.

This commit is contained in:
2025-12-05 22:08:52 +01:00
parent ad0ea0c7f8
commit 82d2680f5b
166 changed files with 6171 additions and 1211 deletions

View File

@@ -0,0 +1,63 @@
using System;
namespace Zentral.API.Apps.Purchases.Dtos;
public class SupplierDto
{
public int Id { get; set; }
public string Code { get; set; } = string.Empty;
public string Name { get; set; } = string.Empty;
public string? VatNumber { get; set; }
public string? FiscalCode { get; set; }
public string? Address { get; set; }
public string? City { get; set; }
public string? Province { get; set; }
public string? ZipCode { get; set; }
public string? Country { get; set; }
public string? Email { get; set; }
public string? Pec { get; set; }
public string? Phone { get; set; }
public string? Website { get; set; }
public string? PaymentTerms { get; set; }
public string? Notes { get; set; }
public bool IsActive { get; set; }
public DateTime? CreatedAt { get; set; }
public DateTime? UpdatedAt { get; set; }
}
public class CreateSupplierDto
{
public string Name { get; set; } = string.Empty;
public string? VatNumber { get; set; }
public string? FiscalCode { get; set; }
public string? Address { get; set; }
public string? City { get; set; }
public string? Province { get; set; }
public string? ZipCode { get; set; }
public string? Country { get; set; } = "Italia";
public string? Email { get; set; }
public string? Pec { get; set; }
public string? Phone { get; set; }
public string? Website { get; set; }
public string? PaymentTerms { get; set; }
public string? Notes { get; set; }
}
public class UpdateSupplierDto
{
public string Name { get; set; } = string.Empty;
public string? VatNumber { get; set; }
public string? FiscalCode { get; set; }
public string? Address { get; set; }
public string? City { get; set; }
public string? Province { get; set; }
public string? ZipCode { get; set; }
public string? Country { get; set; }
public string? Email { get; set; }
public string? Pec { get; set; }
public string? Phone { get; set; }
public string? Website { get; set; }
public string? PaymentTerms { get; set; }
public string? Notes { get; set; }
public bool IsActive { get; set; }
}