线边库
This commit is contained in:
33
DOAN.Model/MES/Material/Dto/MaterialPartsCategoriesDto.cs
Normal file
33
DOAN.Model/MES/Material/Dto/MaterialPartsCategoriesDto.cs
Normal 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; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
74
DOAN.Model/MES/Material/Dto/MaterialPartsInventoryDto.cs
Normal file
74
DOAN.Model/MES/Material/Dto/MaterialPartsInventoryDto.cs
Normal 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; }
|
||||
}
|
||||
|
||||
}
|
||||
@@ -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; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
38
DOAN.Model/MES/Material/Dto/MaterialPartsSuppliersDto.cs
Normal file
38
DOAN.Model/MES/Material/Dto/MaterialPartsSuppliersDto.cs
Normal 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; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
47
DOAN.Model/MES/Material/Dto/MaterialPartsTransactionsDto.cs
Normal file
47
DOAN.Model/MES/Material/Dto/MaterialPartsTransactionsDto.cs
Normal 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; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
50
DOAN.Model/MES/Material/Dto/MaterialSparePartsDto.cs
Normal file
50
DOAN.Model/MES/Material/Dto/MaterialSparePartsDto.cs
Normal 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; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
41
DOAN.Model/MES/Material/MaterialPartsCategories.cs
Normal file
41
DOAN.Model/MES/Material/MaterialPartsCategories.cs
Normal file
@@ -0,0 +1,41 @@
|
||||
|
||||
namespace DOAN.Model.MES.material
|
||||
{
|
||||
/// <summary>
|
||||
/// 北泽线边库分类
|
||||
/// </summary>
|
||||
[SugarTable("material_parts_categories")]
|
||||
public class MaterialPartsCategories
|
||||
{
|
||||
/// <summary>
|
||||
/// 分类ID
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "category_id")]
|
||||
public int CategoryId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分类名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "category_name")]
|
||||
public string CategoryName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 父级分类ID
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "parent_category_id")]
|
||||
public int? ParentCategoryId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "created_at")]
|
||||
public DateTime? CreatedAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "updated_at")]
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
51
DOAN.Model/MES/Material/MaterialPartsInventory.cs
Normal file
51
DOAN.Model/MES/Material/MaterialPartsInventory.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
|
||||
namespace DOAN.Model.MES.material
|
||||
{
|
||||
/// <summary>
|
||||
/// 库存信息表
|
||||
/// </summary>
|
||||
[SugarTable("material_parts_inventory")]
|
||||
public class MaterialPartsInventory
|
||||
{
|
||||
/// <summary>
|
||||
/// 库存ID
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "inventory_id")]
|
||||
public int InventoryId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备件ID
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "part_id")]
|
||||
public int PartId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数量
|
||||
/// </summary>
|
||||
public int Quantity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 存放位置
|
||||
/// </summary>
|
||||
public string Location { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 上次盘点日期
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "last_inventory_check")]
|
||||
public DateTime? LastInventoryCheck { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "created_at")]
|
||||
public DateTime? CreatedAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "updated_at")]
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
46
DOAN.Model/MES/Material/MaterialPartsStorageLocations.cs
Normal file
46
DOAN.Model/MES/Material/MaterialPartsStorageLocations.cs
Normal file
@@ -0,0 +1,46 @@
|
||||
|
||||
namespace DOAN.Model.MES.material
|
||||
{
|
||||
/// <summary>
|
||||
/// 北泽线边库库位
|
||||
/// </summary>
|
||||
[SugarTable("material_parts_storage_locations")]
|
||||
public class MaterialPartsStorageLocations
|
||||
{
|
||||
/// <summary>
|
||||
/// 库位ID
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "location_id")]
|
||||
public int LocationId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 库位编码
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "location_code")]
|
||||
public string LocationCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 库位描述
|
||||
/// </summary>
|
||||
public string Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 所属仓库ID
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "warehouse_id")]
|
||||
public int WarehouseId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "created_at")]
|
||||
public DateTime? CreatedAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "updated_at")]
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
56
DOAN.Model/MES/Material/MaterialPartsSuppliers.cs
Normal file
56
DOAN.Model/MES/Material/MaterialPartsSuppliers.cs
Normal file
@@ -0,0 +1,56 @@
|
||||
|
||||
namespace DOAN.Model.MES.material
|
||||
{
|
||||
/// <summary>
|
||||
/// 北泽线边库供应商
|
||||
/// </summary>
|
||||
[SugarTable("material_parts_suppliers")]
|
||||
public class MaterialPartsSuppliers
|
||||
{
|
||||
/// <summary>
|
||||
/// 供应商ID
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "supplier_id")]
|
||||
public int SupplierId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 供应商名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "supplier_name")]
|
||||
public string SupplierName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 联系人
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "contact_person")]
|
||||
public string ContactPerson { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 联系电话
|
||||
/// </summary>
|
||||
public string Phone { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 电子邮件
|
||||
/// </summary>
|
||||
public string Email { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 地址
|
||||
/// </summary>
|
||||
public string Address { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "created_at")]
|
||||
public DateTime? CreatedAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "updated_at")]
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
57
DOAN.Model/MES/Material/MaterialPartsTransactions.cs
Normal file
57
DOAN.Model/MES/Material/MaterialPartsTransactions.cs
Normal file
@@ -0,0 +1,57 @@
|
||||
|
||||
namespace DOAN.Model.MES.material
|
||||
{
|
||||
/// <summary>
|
||||
/// 北泽线边库出入库
|
||||
/// </summary>
|
||||
[SugarTable("material_parts_transactions")]
|
||||
public class MaterialPartsTransactions
|
||||
{
|
||||
/// <summary>
|
||||
/// 交易ID
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "transaction_id")]
|
||||
public int TransactionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备件ID
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "part_id")]
|
||||
public int PartId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易类型:入库(in),出库(out)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "transaction_type")]
|
||||
public string TransactionType { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 数量
|
||||
/// </summary>
|
||||
public int Quantity { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 交易日期
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "transaction_date")]
|
||||
public DateTime? TransactionDate { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 供应商ID(仅对入库有效)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "supplier_id")]
|
||||
public int? SupplierId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Remarks { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "created_by")]
|
||||
public string CreatedBy { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
71
DOAN.Model/MES/Material/MaterialSpareParts.cs
Normal file
71
DOAN.Model/MES/Material/MaterialSpareParts.cs
Normal file
@@ -0,0 +1,71 @@
|
||||
|
||||
namespace DOAN.Model.MES.material
|
||||
{
|
||||
/// <summary>
|
||||
/// 北泽线边库基本信息表
|
||||
/// </summary>
|
||||
[SugarTable("material_spare_parts")]
|
||||
public class MaterialSpareParts
|
||||
{
|
||||
/// <summary>
|
||||
/// 备件ID
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true, ColumnName = "part_id")]
|
||||
public int PartId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备件名称
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "part_name")]
|
||||
public string PartName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备件编号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "part_code")]
|
||||
public string PartCode { get; set; }
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 描述
|
||||
/// </summary>
|
||||
public string Description { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 分类ID
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "category_id")]
|
||||
public int CategoryId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 计量单位
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "unit_of_measure")]
|
||||
public string UnitOfMeasure { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最低库存量
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "min_stock_level")]
|
||||
public int MinStockLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 最高库存量
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "max_stock_level")]
|
||||
public int MaxStockLevel { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "created_at")]
|
||||
public DateTime? CreatedAt { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "updated_at")]
|
||||
public DateTime? UpdatedAt { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user