线边库

This commit is contained in:
qianhao.xu
2025-03-18 15:22:30 +08:00
parent ab8c1dbb9b
commit e14f34a107
31 changed files with 2121 additions and 5 deletions

View File

@@ -0,0 +1,33 @@
using System.ComponentModel.DataAnnotations;
namespace DOAN.Model.MES.material.Dto
{
/// <summary>
/// 北泽线边库分类查询对象
/// </summary>
public class MaterialPartsCategoriesQueryDto : PagerInfo
{
public string CategoryName { get; set; }
}
/// <summary>
/// 北泽线边库分类输入输出对象
/// </summary>
public class MaterialPartsCategoriesDto
{
[Required(ErrorMessage = "分类ID不能为空")]
public int CategoryId { get; set; }
[Required(ErrorMessage = "分类名称不能为空")]
public string CategoryName { get; set; }
public int? ParentCategoryId { get; set; }
public DateTime? CreatedAt { get; set; }
public DateTime? UpdatedAt { get; set; }
}
}

View File

@@ -0,0 +1,74 @@
using System.ComponentModel.DataAnnotations;
using DOAN.Model.MES.material;
using DOAN.Model.MES.material.Dto;
namespace DOAN.Model.Dto
{
/// <summary>
/// 库存信息表查询对象
/// </summary>
public class MaterialPartsInventoryQueryDto : PagerInfo
{
/// <summary>
/// 库存位置code
/// </summary>
public string locationCode { get; set; }
/// <summary>
/// 备件名称
/// </summary>
public string partName { get; set; }
/// <summary>
/// 备件编号
/// </summary>
public string partCode { get; set; }
}
/// <summary>
/// 库存信息表输入输出对象
/// </summary>
public class MaterialPartsInventoryDto
{
public int InventoryId { get; set; }
[Required(ErrorMessage = "备件ID不能为空")]
public int PartId { get; set; }
[Required(ErrorMessage = "数量不能为空")]
public int Quantity { get; set; }
[Required(ErrorMessage = "库位不能为空")]
public string Location { get; set; }
public DateTime? LastInventoryCheck { get; set; }
public DateTime? CreatedAt { get; set; }
public DateTime? UpdatedAt { get; set; }
/// <summary>
/// 供应商ID
/// </summary>
public int SupplierId { get; set; }}
public class MaterialPartsInventoryDto2 : MaterialSparePartsDto
{
public int InventoryId { get; set; }
public int PartId { get; set; }
public int Quantity { get; set; }
public string Location { get; set; }
public DateTime? LastInventoryCheck { get; set; }
public DateTime? CreatedAt { get; set; }
public DateTime? UpdatedAt { get; set; }
}
}

View File

@@ -0,0 +1,35 @@
using System.ComponentModel.DataAnnotations;
namespace DOAN.Model.MES.material.Dto
{
/// <summary>
/// 北泽线边库库位查询对象
/// </summary>
public class MaterialPartsStorageLocationsQueryDto : PagerInfo
{
}
/// <summary>
/// 北泽线边库库位输入输出对象
/// </summary>
public class MaterialPartsStorageLocationsDto
{
[Required(ErrorMessage = "库位ID不能为空")]
public int LocationId { get; set; }
[Required(ErrorMessage = "库位编码不能为空")]
public string LocationCode { get; set; }
public string Description { get; set; }
[Required(ErrorMessage = "所属仓库ID不能为空")]
public int WarehouseId { get; set; }
public DateTime? CreatedAt { get; set; }
public DateTime? UpdatedAt { get; set; }
}
}

View File

@@ -0,0 +1,38 @@
using System.ComponentModel.DataAnnotations;
namespace DOAN.Model.MES.material.Dto
{
/// <summary>
/// 北泽线边库供应商查询对象
/// </summary>
public class MaterialPartsSuppliersQueryDto : PagerInfo
{
}
/// <summary>
/// 北泽线边库供应商输入输出对象
/// </summary>
public class MaterialPartsSuppliersDto
{
[Required(ErrorMessage = "供应商ID不能为空")]
public int SupplierId { get; set; }
[Required(ErrorMessage = "供应商名称不能为空")]
public string SupplierName { get; set; }
public string ContactPerson { get; set; }
public string Phone { get; set; }
public string Email { get; set; }
public string Address { get; set; }
public DateTime? CreatedAt { get; set; }
public DateTime? UpdatedAt { get; set; }
}
}

View File

@@ -0,0 +1,47 @@
using System.ComponentModel.DataAnnotations;
namespace DOAN.Model.MES.material.Dto
{
/// <summary>
/// 北泽线边库出入库查询对象
/// </summary>
public class MaterialPartsTransactionsQueryDto : PagerInfo
{
public string PartName { get; set; }
public string TransactionType { get; set; }
}
/// <summary>
/// 北泽线边库出入库输入输出对象
/// </summary>
public class MaterialPartsTransactionsDto
{
[Required(ErrorMessage = "交易ID不能为空")]
public int TransactionId { get; set; }
[Required(ErrorMessage = "备件ID不能为空")]
public int PartId { get; set; }
/// <summary>
/// 备件名称
/// </summary>
public string PartName { get; set; }
[Required(ErrorMessage = "交易类型:入库(in),出库(out)不能为空")]
public string TransactionType { get; set; }
[Required(ErrorMessage = "数量不能为空")]
public int Quantity { get; set; }
public DateTime? TransactionDate { get; set; }
public int? SupplierId { get; set; }
public string Remarks { get; set; }
public string CreatedBy { get; set; }
}
}

View File

@@ -0,0 +1,50 @@
using System.ComponentModel.DataAnnotations;
namespace DOAN.Model.MES.material.Dto
{
/// <summary>
/// 北泽线边库基本信息表查询对象
/// </summary>
public class MaterialSparePartsQueryDto : PagerInfo
{
public string PartName { get; set; }
public string PartCode { get; set; }
}
/// <summary>
/// 北泽线边库基本信息表输入输出对象
/// </summary>
public class MaterialSparePartsDto
{
public int PartId { get; set; }
[Required(ErrorMessage = "备件名称不能为空")]
public string PartName { get; set; }
[Required(ErrorMessage = "备件编号不能为空")]
public string PartCode { get; set; }
public string Description { get; set; }
public int CategoryId { get; set; }
public string UnitOfMeasure { get; set; }
public int MinStockLevel { get; set; }
public int MaxStockLevel { get; set; }
public DateTime? CreatedAt { get; set; }
public DateTime? UpdatedAt { get; set; }
}
}