仓库管理_物料管理:初始化
This commit is contained in:
59
ZR.Model/MES/wms/Dto/WmMaterialDto.cs
Normal file
59
ZR.Model/MES/wms/Dto/WmMaterialDto.cs
Normal file
@@ -0,0 +1,59 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ZR.Model.MES.wms.Dto
|
||||
{
|
||||
/// <summary>
|
||||
/// 物料记录表查询对象
|
||||
/// </summary>
|
||||
public class WmMaterialQueryDto : PagerInfo
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 物料记录表输入输出对象
|
||||
/// </summary>
|
||||
public class WmMaterialDto
|
||||
{
|
||||
|
||||
public string Id { get; set; }
|
||||
|
||||
public string Partnumber { get; set; }
|
||||
|
||||
public string U8InventoryCode { get; set; }
|
||||
|
||||
public string BlankNum { get; set; }
|
||||
|
||||
public string Unit { get; set; }
|
||||
|
||||
public string ProductName { get; set; }
|
||||
|
||||
public string Color { get; set; }
|
||||
|
||||
public string Specification { get; set; }
|
||||
|
||||
public string Description { get; set; }
|
||||
|
||||
public string Version { get; set; }
|
||||
|
||||
public string Remarks { get; set; }
|
||||
|
||||
public int? Sort { get; set; }
|
||||
|
||||
public string Search1 { get; set; }
|
||||
|
||||
public string Search2 { get; set; }
|
||||
|
||||
public int? Status { get; set; }
|
||||
|
||||
public string CreatedBy { get; set; }
|
||||
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
|
||||
public string UpdatedBy { get; set; }
|
||||
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
59
ZR.Model/MES/wms/WmCustom.cs
Normal file
59
ZR.Model/MES/wms/WmCustom.cs
Normal file
@@ -0,0 +1,59 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using SqlSugar;
|
||||
namespace ZR.Model.MES.wms
|
||||
{
|
||||
/// <summary>
|
||||
/// 客户信息
|
||||
///</summary>
|
||||
[SugarTable("wm_custom")]
|
||||
public class WmCustom
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="id" ,IsPrimaryKey = true ,IsIdentity = true )]
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
/// 客户代码
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="custom_no" )]
|
||||
public string CustomNo { get; set; }
|
||||
/// <summary>
|
||||
/// 客户名称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="custom_name" )]
|
||||
public string CustomName { get; set; }
|
||||
/// <summary>
|
||||
/// 客户地址
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="custom_address" )]
|
||||
public string CustomAddress { get; set; }
|
||||
/// <summary>
|
||||
/// 备注
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="remark" )]
|
||||
public string Remark { get; set; }
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_BY" )]
|
||||
public string CreatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_TIME" )]
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
/// <summary>
|
||||
/// 更新人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_BY" )]
|
||||
public string UpdatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_TIME" )]
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
}
|
||||
}
|
||||
64
ZR.Model/MES/wms/WmInLog.cs
Normal file
64
ZR.Model/MES/wms/WmInLog.cs
Normal file
@@ -0,0 +1,64 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using SqlSugar;
|
||||
namespace ZR.Model.MES.wms
|
||||
{
|
||||
/// <summary>
|
||||
/// 入库日志(U8上传)
|
||||
///</summary>
|
||||
[SugarTable("wm_in_log")]
|
||||
public class WmInLog
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键(雪花生产)
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="id" )]
|
||||
public string Id { get; set; }
|
||||
/// <summary>
|
||||
/// u8库存编码
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="u8_inventory_code" )]
|
||||
public string U8InventoryCode { get; set; }
|
||||
/// <summary>
|
||||
/// 仓库编号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="wm_info_id" )]
|
||||
public string WmInfoId { get; set; }
|
||||
/// <summary>
|
||||
/// mes内码
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="package_code" )]
|
||||
public string PackageCode { get; set; }
|
||||
/// <summary>
|
||||
/// 批次号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="code" )]
|
||||
public string Code { get; set; }
|
||||
/// <summary>
|
||||
/// 数量
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="number" )]
|
||||
public string Number { get; set; }
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_BY" )]
|
||||
public string CreatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_TIME" )]
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
/// <summary>
|
||||
/// 更新人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_BY" )]
|
||||
public string UpdatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_TIME" )]
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
}
|
||||
}
|
||||
109
ZR.Model/MES/wms/WmMaterial.cs
Normal file
109
ZR.Model/MES/wms/WmMaterial.cs
Normal file
@@ -0,0 +1,109 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using SqlSugar;
|
||||
namespace ZR.Model.MES.wms
|
||||
{
|
||||
/// <summary>
|
||||
/// 物料记录表
|
||||
///</summary>
|
||||
[SugarTable("wm_material")]
|
||||
public class WmMaterial
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键G
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="id" ,IsPrimaryKey = true )]
|
||||
public string Id { get; set; }
|
||||
/// <summary>
|
||||
/// 物料号(零件号)
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="partnumber")]
|
||||
public string Partnumber { get; set; }
|
||||
/// <summary>
|
||||
/// U8库存编码
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="u8_inventory_code")]
|
||||
public string U8InventoryCode { get; set; }
|
||||
/// <summary>
|
||||
/// 毛坯号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="blank_num" )]
|
||||
public string BlankNum { get; set; }
|
||||
/// <summary>
|
||||
/// 单位
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="unit" )]
|
||||
public string Unit { get; set; }
|
||||
/// <summary>
|
||||
/// 产品描述(产品名称)
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="product_name" )]
|
||||
public string ProductName { get; set; }
|
||||
/// <summary>
|
||||
/// 产品颜色
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="color" )]
|
||||
public string Color { get; set; }
|
||||
/// <summary>
|
||||
/// 规格(左右脚)
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="specification" )]
|
||||
public string Specification { get; set; }
|
||||
/// <summary>
|
||||
/// 显示描述(产品描述+颜色+规格)
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="description" )]
|
||||
public string Description { get; set; }
|
||||
/// <summary>
|
||||
/// 版本号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="version" )]
|
||||
public string Version { get; set; }
|
||||
/// <summary>
|
||||
/// 备注
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="remarks" )]
|
||||
public string Remarks { get; set; }
|
||||
/// <summary>
|
||||
/// 排序(特殊排序)
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="sort" )]
|
||||
public int? Sort { get; set; }
|
||||
/// <summary>
|
||||
/// 便捷搜索字段1
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="search1" )]
|
||||
public string Search1 { get; set; }
|
||||
/// <summary>
|
||||
/// 便捷搜索字段2
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="search2" )]
|
||||
public string Search2 { get; set; }
|
||||
/// <summary>
|
||||
/// 状态(0-不可见 1-可见)
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="status" )]
|
||||
public int? Status { get; set; }
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_BY" )]
|
||||
public string CreatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_TIME" )]
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
/// <summary>
|
||||
/// 更新人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_BY" )]
|
||||
public string UpdatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_TIME" )]
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
}
|
||||
}
|
||||
129
ZR.Model/MES/wms/WmOutOrder.cs
Normal file
129
ZR.Model/MES/wms/WmOutOrder.cs
Normal file
@@ -0,0 +1,129 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using SqlSugar;
|
||||
namespace ZR.Model.MES.wms
|
||||
{
|
||||
/// <summary>
|
||||
/// 出货单(物料+客户)
|
||||
///</summary>
|
||||
[SugarTable("wm_out_order")]
|
||||
public class WmOutOrder
|
||||
{
|
||||
/// <summary>
|
||||
/// 主键G
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="id" ,IsPrimaryKey = true )]
|
||||
public string Id { get; set; }
|
||||
/// <summary>
|
||||
/// 出货单号(雪花算法)
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="shipment_num" )]
|
||||
public string ShipmentNum { get; set; }
|
||||
/// <summary>
|
||||
/// 客户id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="custom_id" )]
|
||||
public string CustomId { get; set; }
|
||||
/// <summary>
|
||||
/// 客户代码
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="custom_no" )]
|
||||
public string CustomNo { get; set; }
|
||||
/// <summary>
|
||||
/// 客户名称
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="custom_name" )]
|
||||
public string CustomName { get; set; }
|
||||
/// <summary>
|
||||
/// 客户地址
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="custom_address" )]
|
||||
public string CustomAddress { get; set; }
|
||||
/// <summary>
|
||||
/// 物料号(零件号)
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="partnumber" )]
|
||||
public string Partnumber { get; set; }
|
||||
/// <summary>
|
||||
/// 单位
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="unit" )]
|
||||
public string Unit { get; set; }
|
||||
/// <summary>
|
||||
/// 产品描述(产品名称)
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="product_name" )]
|
||||
public string ProductName { get; set; }
|
||||
/// <summary>
|
||||
/// 产品颜色
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="color" )]
|
||||
public string Color { get; set; }
|
||||
/// <summary>
|
||||
/// 规格(左右脚)
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="specification" )]
|
||||
public string Specification { get; set; }
|
||||
/// <summary>
|
||||
/// 显示描述(产品描述+颜色+规格)
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="description" )]
|
||||
public string Description { get; set; }
|
||||
/// <summary>
|
||||
/// 版本号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="version" )]
|
||||
public string Version { get; set; }
|
||||
/// <summary>
|
||||
/// 备注
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="remarks" )]
|
||||
public string Remarks { get; set; }
|
||||
/// <summary>
|
||||
/// 状态(0-不可见 1-可见)
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="status" )]
|
||||
public int? Status { get; set; }
|
||||
/// <summary>
|
||||
/// 年
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="year" )]
|
||||
public int? Year { get; set; }
|
||||
/// <summary>
|
||||
/// 周
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="week" )]
|
||||
public int? Week { get; set; }
|
||||
/// <summary>
|
||||
/// 日
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="date" )]
|
||||
public int? Date { get; set; }
|
||||
/// <summary>
|
||||
/// 要货数量
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="number" )]
|
||||
public int? Number { get; set; }
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_BY" )]
|
||||
public string CreatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="CREATED_TIME" )]
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
/// <summary>
|
||||
/// 更新人
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_BY" )]
|
||||
public string UpdatedBy { get; set; }
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName="UPDATED_TIME" )]
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user