initial commit
This commit is contained in:
@@ -0,0 +1,48 @@
|
||||
namespace Domain.Common;
|
||||
|
||||
public class BaseEntity : IHasSequentialId, IHasIsDeleted, IHasAudit
|
||||
{
|
||||
public string Id { get; set; } = null!;
|
||||
public bool IsDeleted { get; set; }
|
||||
public DateTime? CreatedAtUtc { get; set; }
|
||||
public string? CreatedById { get; set; }
|
||||
public DateTime? UpdatedAtUtc { get; set; }
|
||||
public string? UpdatedById { get; set; }
|
||||
|
||||
public BaseEntity()
|
||||
{
|
||||
Id = GenerateSequentialGuid();
|
||||
IsDeleted = false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
private static readonly object _lock = new object();
|
||||
|
||||
private string GenerateSequentialGuid()
|
||||
{
|
||||
byte[] guidArray = Guid.NewGuid().ToByteArray();
|
||||
|
||||
DateTime baseDate = new DateTime(1900, 1, 1);
|
||||
DateTime now = DateTime.UtcNow;
|
||||
|
||||
TimeSpan timeSpan = now - baseDate;
|
||||
byte[] daysArray = BitConverter.GetBytes(timeSpan.Days);
|
||||
byte[] msecsArray = BitConverter.GetBytes((long)(timeSpan.TotalMilliseconds % 86400000));
|
||||
|
||||
if (BitConverter.IsLittleEndian)
|
||||
{
|
||||
Array.Reverse(daysArray);
|
||||
Array.Reverse(msecsArray);
|
||||
}
|
||||
|
||||
lock (_lock)
|
||||
{
|
||||
Array.Copy(daysArray, daysArray.Length - 2, guidArray, guidArray.Length - 6, 2);
|
||||
Array.Copy(msecsArray, msecsArray.Length - 4, guidArray, guidArray.Length - 4, 4);
|
||||
}
|
||||
|
||||
return new Guid(guidArray).ToString();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
namespace Domain.Common;
|
||||
|
||||
public static class Constants
|
||||
{
|
||||
public static class LengthConsts
|
||||
{
|
||||
public const int S = 50;
|
||||
public const int M = 255;
|
||||
public const int L = 2000;
|
||||
public const int XL = 4000;
|
||||
}
|
||||
public static class NameConsts
|
||||
{
|
||||
public const int MinLength = 2;
|
||||
public const int MaxLength = LengthConsts.M;
|
||||
}
|
||||
public static class CodeConsts
|
||||
{
|
||||
public const int MinLength = 1;
|
||||
public const int MaxLength = LengthConsts.S;
|
||||
}
|
||||
public static class DescriptionConsts
|
||||
{
|
||||
public const int MaxLength = LengthConsts.XL;
|
||||
}
|
||||
public static class EmailConsts
|
||||
{
|
||||
public const int MinLength = 6;
|
||||
public const int MaxLength = LengthConsts.M;
|
||||
}
|
||||
public static class IdConsts
|
||||
{
|
||||
public const int MaxLength = LengthConsts.S;
|
||||
}
|
||||
public static class PasswordConsts
|
||||
{
|
||||
public const int MinLength = 6;
|
||||
public const int MaxLength = LengthConsts.M;
|
||||
}
|
||||
public static class PathConsts
|
||||
{
|
||||
public const int MaxLength = LengthConsts.M;
|
||||
}
|
||||
public static class TokenConsts
|
||||
{
|
||||
public const int MaxLength = LengthConsts.XL;
|
||||
public const double ExpiryInDays = 30;
|
||||
}
|
||||
public static class UserIdConsts
|
||||
{
|
||||
public const int MaxLength = 450;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
namespace Domain.Common;
|
||||
|
||||
public interface IHasAudit
|
||||
{
|
||||
public DateTime? CreatedAtUtc { get; set; }
|
||||
public string? CreatedById { get; set; }
|
||||
public DateTime? UpdatedAtUtc { get; set; }
|
||||
public string? UpdatedById { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
namespace Domain.Common;
|
||||
|
||||
public interface IHasIsDeleted
|
||||
{
|
||||
bool IsDeleted { get; }
|
||||
}
|
||||
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace Domain.Common;
|
||||
|
||||
public interface IHasSequentialId
|
||||
{
|
||||
string Id { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net9.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
@@ -0,0 +1,19 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class Company : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? Currency { get; set; }
|
||||
public string? Street { get; set; }
|
||||
public string? City { get; set; }
|
||||
public string? State { get; set; }
|
||||
public string? ZipCode { get; set; }
|
||||
public string? Country { get; set; }
|
||||
public string? PhoneNumber { get; set; }
|
||||
public string? FaxNumber { get; set; }
|
||||
public string? EmailAddress { get; set; }
|
||||
public string? Website { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
|
||||
public class Customer : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Number { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? Street { get; set; }
|
||||
public string? City { get; set; }
|
||||
public string? State { get; set; }
|
||||
public string? ZipCode { get; set; }
|
||||
public string? Country { get; set; }
|
||||
public string? PhoneNumber { get; set; }
|
||||
public string? FaxNumber { get; set; }
|
||||
public string? EmailAddress { get; set; }
|
||||
public string? Website { get; set; }
|
||||
public string? WhatsApp { get; set; }
|
||||
public string? LinkedIn { get; set; }
|
||||
public string? Facebook { get; set; }
|
||||
public string? Instagram { get; set; }
|
||||
public string? TwitterX { get; set; }
|
||||
public string? TikTok { get; set; }
|
||||
public string? CustomerGroupId { get; set; }
|
||||
public CustomerGroup? CustomerGroup { get; set; }
|
||||
public string? CustomerCategoryId { get; set; }
|
||||
public CustomerCategory? CustomerCategory { get; set; }
|
||||
public ICollection<CustomerContact> CustomerContactList { get; set; } = new List<CustomerContact>();
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class CustomerCategory : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class CustomerContact : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Number { get; set; }
|
||||
public string? JobTitle { get; set; }
|
||||
public string? PhoneNumber { get; set; }
|
||||
public string? EmailAddress { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? CustomerId { get; set; }
|
||||
public Customer? Customer { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class CustomerGroup : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using Domain.Common;
|
||||
using Domain.Enums;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class DeliveryOrder : BaseEntity
|
||||
{
|
||||
public string? Number { get; set; }
|
||||
public DateTime? DeliveryDate { get; set; }
|
||||
public DeliveryOrderStatus? Status { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? SalesOrderId { get; set; }
|
||||
public SalesOrder? SalesOrder { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
public class FileDocument : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? OriginalName { get; set; }
|
||||
public string? GeneratedName { get; set; }
|
||||
public string? Extension { get; set; }
|
||||
public long? FileSize { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
public class FileImage : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? OriginalName { get; set; }
|
||||
public string? GeneratedName { get; set; }
|
||||
public string? Extension { get; set; }
|
||||
public long? FileSize { get; set; }
|
||||
}
|
||||
|
||||
@@ -0,0 +1,14 @@
|
||||
using Domain.Common;
|
||||
using Domain.Enums;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class GoodsReceive : BaseEntity
|
||||
{
|
||||
public string? Number { get; set; }
|
||||
public DateTime? ReceiveDate { get; set; }
|
||||
public GoodsReceiveStatus? Status { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? PurchaseOrderId { get; set; }
|
||||
public PurchaseOrder? PurchaseOrder { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using Domain.Common;
|
||||
using Domain.Enums;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
|
||||
public class InventoryTransaction : BaseEntity
|
||||
{
|
||||
public string? ModuleId { get; set; }
|
||||
public string? ModuleName { get; set; }
|
||||
public string? ModuleCode { get; set; }
|
||||
public string? ModuleNumber { get; set; }
|
||||
public DateTime? MovementDate { get; set; }
|
||||
public InventoryTransactionStatus? Status { get; set; }
|
||||
public string? Number { get; set; }
|
||||
public string? WarehouseId { get; set; }
|
||||
public Warehouse? Warehouse { get; set; }
|
||||
public string? ProductId { get; set; }
|
||||
public Product? Product { get; set; }
|
||||
public double? Movement { get; set; }
|
||||
public InventoryTransType? TransType { get; set; }
|
||||
public double? Stock { get; set; }
|
||||
public string? WarehouseFromId { get; set; }
|
||||
public Warehouse? WarehouseFrom { get; set; }
|
||||
public string? WarehouseToId { get; set; }
|
||||
public Warehouse? WarehouseTo { get; set; }
|
||||
public double? QtySCSys { get; set; }
|
||||
public double? QtySCCount { get; set; }
|
||||
public double? QtySCDelta { get; set; }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using Domain.Common;
|
||||
using Domain.Enums;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class NegativeAdjustment : BaseEntity
|
||||
{
|
||||
public string? Number { get; set; }
|
||||
public DateTime? AdjustmentDate { get; set; }
|
||||
public AdjustmentStatus? Status { get; set; }
|
||||
public string? Description { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class NumberSequence : BaseEntity
|
||||
{
|
||||
public string? EntityName { get; set; }
|
||||
public string? Prefix { get; set; }
|
||||
public string? Suffix { get; set; }
|
||||
public int? LastUsedCount { get; set; }
|
||||
}
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
using Domain.Common;
|
||||
using Domain.Enums;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class PositiveAdjustment : BaseEntity
|
||||
{
|
||||
public string? Number { get; set; }
|
||||
public DateTime? AdjustmentDate { get; set; }
|
||||
public AdjustmentStatus? Status { get; set; }
|
||||
public string? Description { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class Product : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Number { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public double? UnitPrice { get; set; }
|
||||
public bool? Physical { get; set; } = true;
|
||||
public string? UnitMeasureId { get; set; }
|
||||
public UnitMeasure? UnitMeasure { get; set; }
|
||||
public string? ProductGroupId { get; set; }
|
||||
public ProductGroup? ProductGroup { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class ProductGroup : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using Domain.Common;
|
||||
using Domain.Enums;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class PurchaseOrder : BaseEntity
|
||||
{
|
||||
public string? Number { get; set; }
|
||||
public DateTime? OrderDate { get; set; }
|
||||
public PurchaseOrderStatus? OrderStatus { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? VendorId { get; set; }
|
||||
public Vendor? Vendor { get; set; }
|
||||
public string? TaxId { get; set; }
|
||||
public Tax? Tax { get; set; }
|
||||
public double? BeforeTaxAmount { get; set; }
|
||||
public double? TaxAmount { get; set; }
|
||||
public double? AfterTaxAmount { get; set; }
|
||||
public ICollection<PurchaseOrderItem> PurchaseOrderItemList { get; set; } = new List<PurchaseOrderItem>();
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class PurchaseOrderItem : BaseEntity
|
||||
{
|
||||
public string? PurchaseOrderId { get; set; }
|
||||
public PurchaseOrder? PurchaseOrder { get; set; }
|
||||
public string? ProductId { get; set; }
|
||||
public Product? Product { get; set; }
|
||||
public string? Summary { get; set; }
|
||||
public double? UnitPrice { get; set; } = 0;
|
||||
public double? Quantity { get; set; } = 1;
|
||||
public double? Total { get; set; } = 0;
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using Domain.Common;
|
||||
using Domain.Enums;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class PurchaseReturn : BaseEntity
|
||||
{
|
||||
public string? Number { get; set; }
|
||||
public DateTime? ReturnDate { get; set; }
|
||||
public PurchaseReturnStatus? Status { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? GoodsReceiveId { get; set; }
|
||||
public GoodsReceive? GoodsReceive { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,20 @@
|
||||
using Domain.Common;
|
||||
using Domain.Enums;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class SalesOrder : BaseEntity
|
||||
{
|
||||
public string? Number { get; set; }
|
||||
public DateTime? OrderDate { get; set; }
|
||||
public SalesOrderStatus? OrderStatus { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? CustomerId { get; set; }
|
||||
public Customer? Customer { get; set; }
|
||||
public string? TaxId { get; set; }
|
||||
public Tax? Tax { get; set; }
|
||||
public double? BeforeTaxAmount { get; set; }
|
||||
public double? TaxAmount { get; set; }
|
||||
public double? AfterTaxAmount { get; set; }
|
||||
public ICollection<SalesOrderItem> SalesOrderItemList { get; set; } = new List<SalesOrderItem>();
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class SalesOrderItem : BaseEntity
|
||||
{
|
||||
public string? SalesOrderId { get; set; }
|
||||
public SalesOrder? SalesOrder { get; set; }
|
||||
public string? ProductId { get; set; }
|
||||
public Product? Product { get; set; }
|
||||
public string? Summary { get; set; }
|
||||
public double? UnitPrice { get; set; } = 0;
|
||||
public double? Quantity { get; set; } = 1;
|
||||
public double? Total { get; set; } = 0;
|
||||
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using Domain.Common;
|
||||
using Domain.Enums;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class SalesReturn : BaseEntity
|
||||
{
|
||||
public string? Number { get; set; }
|
||||
public DateTime? ReturnDate { get; set; }
|
||||
public SalesReturnStatus? Status { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? DeliveryOrderId { get; set; }
|
||||
public DeliveryOrder? DeliveryOrder { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using Domain.Common;
|
||||
using Domain.Enums;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class Scrapping : BaseEntity
|
||||
{
|
||||
public string? Number { get; set; }
|
||||
public DateTime? ScrappingDate { get; set; }
|
||||
public ScrappingStatus? Status { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? WarehouseId { get; set; }
|
||||
public Warehouse? Warehouse { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using Domain.Common;
|
||||
using Domain.Enums;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class StockCount : BaseEntity
|
||||
{
|
||||
public string? Number { get; set; }
|
||||
public DateTime? CountDate { get; set; }
|
||||
public StockCountStatus? Status { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? WarehouseId { get; set; }
|
||||
public Warehouse? Warehouse { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class Tax : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public double? Percentage { get; set; }
|
||||
public string? Description { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class Todo : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public ICollection<TodoItem> TodoItemList { get; set; } = new List<TodoItem>();
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class TodoItem : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? TodoId { get; set; }
|
||||
public Todo? Todo { get; set; }
|
||||
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class Token : BaseEntity
|
||||
{
|
||||
public string? UserId { get; set; }
|
||||
public string? RefreshToken { get; set; }
|
||||
public DateTimeOffset ExpiryDate { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using Domain.Common;
|
||||
using Domain.Enums;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class TransferIn : BaseEntity
|
||||
{
|
||||
public string? Number { get; set; }
|
||||
public DateTime? TransferReceiveDate { get; set; }
|
||||
public TransferStatus? Status { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? TransferOutId { get; set; }
|
||||
public TransferOut? TransferOut { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
using Domain.Common;
|
||||
using Domain.Enums;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class TransferOut : BaseEntity
|
||||
{
|
||||
public string? Number { get; set; }
|
||||
public DateTime? TransferReleaseDate { get; set; }
|
||||
public TransferStatus? Status { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? WarehouseFromId { get; set; }
|
||||
public Warehouse? WarehouseFrom { get; set; }
|
||||
public string? WarehouseToId { get; set; }
|
||||
public Warehouse? WarehouseTo { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class UnitMeasure : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,31 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
|
||||
public class Vendor : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Number { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? Street { get; set; }
|
||||
public string? City { get; set; }
|
||||
public string? State { get; set; }
|
||||
public string? ZipCode { get; set; }
|
||||
public string? Country { get; set; }
|
||||
public string? PhoneNumber { get; set; }
|
||||
public string? FaxNumber { get; set; }
|
||||
public string? EmailAddress { get; set; }
|
||||
public string? Website { get; set; }
|
||||
public string? WhatsApp { get; set; }
|
||||
public string? LinkedIn { get; set; }
|
||||
public string? Facebook { get; set; }
|
||||
public string? Instagram { get; set; }
|
||||
public string? TwitterX { get; set; }
|
||||
public string? TikTok { get; set; }
|
||||
public string? VendorGroupId { get; set; }
|
||||
public VendorGroup? VendorGroup { get; set; }
|
||||
public string? VendorCategoryId { get; set; }
|
||||
public VendorCategory? VendorCategory { get; set; }
|
||||
public ICollection<VendorContact> VendorContactList { get; set; } = new List<VendorContact>();
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class VendorCategory : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class VendorContact : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Number { get; set; }
|
||||
public string? JobTitle { get; set; }
|
||||
public string? PhoneNumber { get; set; }
|
||||
public string? EmailAddress { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public string? VendorId { get; set; }
|
||||
public Vendor? Vendor { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class VendorGroup : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
using Domain.Common;
|
||||
|
||||
namespace Domain.Entities;
|
||||
|
||||
public class Warehouse : BaseEntity
|
||||
{
|
||||
public string? Name { get; set; }
|
||||
public string? Description { get; set; }
|
||||
public bool? SystemWarehouse { get; set; } = false;
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Domain.Enums;
|
||||
|
||||
public enum AdjustmentStatus
|
||||
{
|
||||
[Description("Draft")]
|
||||
Draft = 0,
|
||||
[Description("Cancelled")]
|
||||
Cancelled = 1,
|
||||
[Description("Confirmed")]
|
||||
Confirmed = 2,
|
||||
[Description("Archived")]
|
||||
Archived = 3
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Domain.Enums;
|
||||
|
||||
public enum DeliveryOrderStatus
|
||||
{
|
||||
[Description("Draft")]
|
||||
Draft = 0,
|
||||
[Description("Cancelled")]
|
||||
Cancelled = 1,
|
||||
[Description("Confirmed")]
|
||||
Confirmed = 2,
|
||||
[Description("Archived")]
|
||||
Archived = 3
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Domain.Enums;
|
||||
|
||||
public enum GoodsReceiveStatus
|
||||
{
|
||||
[Description("Draft")]
|
||||
Draft = 0,
|
||||
[Description("Cancelled")]
|
||||
Cancelled = 1,
|
||||
[Description("Confirmed")]
|
||||
Confirmed = 2,
|
||||
[Description("Archived")]
|
||||
Archived = 3
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Domain.Enums;
|
||||
|
||||
public enum InventoryTransType
|
||||
{
|
||||
[Description("In")]
|
||||
In = 1,
|
||||
[Description("Out")]
|
||||
Out = -1,
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Domain.Enums;
|
||||
|
||||
public enum InventoryTransactionStatus
|
||||
{
|
||||
[Description("Draft")]
|
||||
Draft = 0,
|
||||
[Description("Cancelled")]
|
||||
Cancelled = 1,
|
||||
[Description("Confirmed")]
|
||||
Confirmed = 2,
|
||||
[Description("Archived")]
|
||||
Archived = 3
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Domain.Enums;
|
||||
|
||||
public enum PurchaseOrderStatus
|
||||
{
|
||||
[Description("Draft")]
|
||||
Draft = 0,
|
||||
[Description("Cancelled")]
|
||||
Cancelled = 1,
|
||||
[Description("Confirmed")]
|
||||
Confirmed = 2,
|
||||
[Description("Archived")]
|
||||
Archived = 3
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Domain.Enums;
|
||||
|
||||
public enum PurchaseReturnStatus
|
||||
{
|
||||
[Description("Draft")]
|
||||
Draft = 0,
|
||||
[Description("Cancelled")]
|
||||
Cancelled = 1,
|
||||
[Description("Confirmed")]
|
||||
Confirmed = 2,
|
||||
[Description("Archived")]
|
||||
Archived = 3
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Domain.Enums;
|
||||
|
||||
public enum SalesOrderStatus
|
||||
{
|
||||
[Description("Draft")]
|
||||
Draft = 0,
|
||||
[Description("Cancelled")]
|
||||
Cancelled = 1,
|
||||
[Description("Confirmed")]
|
||||
Confirmed = 2,
|
||||
[Description("Archived")]
|
||||
Archived = 3
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Domain.Enums;
|
||||
|
||||
public enum SalesReturnStatus
|
||||
{
|
||||
[Description("Draft")]
|
||||
Draft = 0,
|
||||
[Description("Cancelled")]
|
||||
Cancelled = 1,
|
||||
[Description("Confirmed")]
|
||||
Confirmed = 2,
|
||||
[Description("Archived")]
|
||||
Archived = 3
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Domain.Enums;
|
||||
|
||||
public enum ScrappingStatus
|
||||
{
|
||||
[Description("Draft")]
|
||||
Draft = 0,
|
||||
[Description("Cancelled")]
|
||||
Cancelled = 1,
|
||||
[Description("Confirmed")]
|
||||
Confirmed = 2,
|
||||
[Description("Archived")]
|
||||
Archived = 3
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Domain.Enums;
|
||||
|
||||
public enum StockCountStatus
|
||||
{
|
||||
[Description("Draft")]
|
||||
Draft = 0,
|
||||
[Description("Cancelled")]
|
||||
Cancelled = 1,
|
||||
[Description("Confirmed")]
|
||||
Confirmed = 2,
|
||||
[Description("Archived")]
|
||||
Archived = 3
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Domain.Enums;
|
||||
|
||||
public enum TransferStatus
|
||||
{
|
||||
[Description("Draft")]
|
||||
Draft = 0,
|
||||
[Description("Cancelled")]
|
||||
Cancelled = 1,
|
||||
[Description("Confirmed")]
|
||||
Confirmed = 2,
|
||||
[Description("Archived")]
|
||||
Archived = 3
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System.ComponentModel;
|
||||
|
||||
namespace Domain.Enums;
|
||||
|
||||
public enum UserType
|
||||
{
|
||||
[Description("Internal")]
|
||||
Internal = 0,
|
||||
[Description("Customer")]
|
||||
Customer = 1,
|
||||
[Description("Vendor")]
|
||||
Vendor = 2
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"runtimeTarget": {
|
||||
"name": ".NETCoreApp,Version=v9.0",
|
||||
"signature": ""
|
||||
},
|
||||
"compilationOptions": {},
|
||||
"targets": {
|
||||
".NETCoreApp,Version=v9.0": {
|
||||
"Domain/1.0.0": {
|
||||
"runtime": {
|
||||
"Domain.dll": {}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"libraries": {
|
||||
"Domain/1.0.0": {
|
||||
"type": "project",
|
||||
"serviceable": false,
|
||||
"sha512": ""
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user