仓库模块_出库货物记录:init
This commit is contained in:
@@ -13,7 +13,7 @@ namespace ZR.Model.MES.wms.Dto
|
||||
/// </summary>
|
||||
public string originalCode { get; set; }
|
||||
/// <summary>
|
||||
/// 批次号
|
||||
/// 批次号(工单号+箱子号)
|
||||
/// </summary>
|
||||
public string PatchCode { get; set; }
|
||||
/// <summary>
|
||||
|
||||
58
ZR.Model/MES/wms/Dto/WmGoodsOutProductionDto.cs
Normal file
58
ZR.Model/MES/wms/Dto/WmGoodsOutProductionDto.cs
Normal file
@@ -0,0 +1,58 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace ZR.Model.MES.wms.Dto
|
||||
{
|
||||
/// <summary>
|
||||
/// 出库货物记录表查询对象
|
||||
/// </summary>
|
||||
public class WmGoodsOutProductionQueryDto : PagerInfo
|
||||
{
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 出库货物记录表输入输出对象
|
||||
/// </summary>
|
||||
public class WmGoodsOutProductionDto
|
||||
{
|
||||
[Required(ErrorMessage = "雪花id不能为空")]
|
||||
public string Id { get; set; }
|
||||
|
||||
public string FkNowProductionId { get; set; }
|
||||
|
||||
public string FkOutOrderId { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "箱子编号(MES)不能为空")]
|
||||
public string PackageCode { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "箱子编号(客户)不能为空")]
|
||||
public string PackageCodeClient { get; set; }
|
||||
|
||||
public string PackageCodeOriginal { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "库位编号不能为空")]
|
||||
public string LocationCode { get; set; }
|
||||
|
||||
public string Partnumber { get; set; }
|
||||
|
||||
public int? GoodsNumLogic { get; set; }
|
||||
|
||||
public int? GoodsNumAction { get; set; }
|
||||
|
||||
public DateTime? EntryWarehouseTime { get; set; }
|
||||
|
||||
public DateTime? OutTime { get; set; }
|
||||
|
||||
public string Remark { get; set; }
|
||||
|
||||
public string UpdatedBy { get; set; }
|
||||
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
|
||||
public string CreatedBy { get; set; }
|
||||
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -52,7 +52,7 @@ namespace ZR.Model.MES.wms.Dto
|
||||
/// 带库存记录的物料库存表
|
||||
/// </summary>
|
||||
public class WmMaterialQuery_stockQuantityDto : WmMaterialQueryDto
|
||||
{
|
||||
{
|
||||
/// <summary>
|
||||
/// 库存数量
|
||||
/// </summary>
|
||||
@@ -61,9 +61,38 @@ namespace ZR.Model.MES.wms.Dto
|
||||
/// <summary>
|
||||
/// 需要出货数量
|
||||
/// </summary>
|
||||
public int requireOutNum { get; set; }
|
||||
public int requireOutNum { get; set; }
|
||||
|
||||
}
|
||||
/// <summary>
|
||||
/// 出货单中物料信息打印
|
||||
/// </summary>
|
||||
public class WmMaterialQuery_print
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
/// 物料号
|
||||
/// </summary>
|
||||
public string Partnumber { get; set; }
|
||||
/// <summary>
|
||||
/// 产品名称
|
||||
/// </summary>
|
||||
public string ProductName { get; set; }
|
||||
/// <summary>
|
||||
/// 需求数量
|
||||
/// </summary>
|
||||
public int RequireOutNum { get; set; }
|
||||
|
||||
//现有箱数
|
||||
public int PackageNum { get; set; }
|
||||
|
||||
//现有零件数
|
||||
public int ItemNum { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 带需要出货数量的物料库存表
|
||||
@@ -85,7 +114,7 @@ namespace ZR.Model.MES.wms.Dto
|
||||
/// </summary>
|
||||
public class WmMaterialDto
|
||||
{
|
||||
|
||||
|
||||
public string Id { get; set; }
|
||||
|
||||
public string Partnumber { get; set; }
|
||||
|
||||
@@ -66,6 +66,8 @@ namespace ZR.Model.MES.wms.Dto
|
||||
//带出货数量的物料表
|
||||
public List<WmMaterialQuery_stockQuantityDto2> MaterialList { get; set; }
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
114
ZR.Model/MES/wms/WmGoodsOutProduction.cs
Normal file
114
ZR.Model/MES/wms/WmGoodsOutProduction.cs
Normal file
@@ -0,0 +1,114 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using SqlSugar;
|
||||
namespace ZR.Model.MES.wms
|
||||
{
|
||||
/// <summary>
|
||||
/// 出库货物记录表
|
||||
/// </summary>
|
||||
[SugarTable("wm_goods_out_production")]
|
||||
public class WmGoodsOutProduction
|
||||
{
|
||||
/// <summary>
|
||||
/// 雪花id
|
||||
/// </summary>
|
||||
[SugarColumn(IsPrimaryKey = true, IsIdentity = false)]
|
||||
public string Id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 成品库当前货物表主键
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "fk_now_production_id")]
|
||||
public string FkNowProductionId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 出库单号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "fk_out_order_id")]
|
||||
public string FkOutOrderId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 箱子编号(MES)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "package_code")]
|
||||
public string PackageCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 箱子编号(客户)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "package_code_client")]
|
||||
public string PackageCodeClient { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 箱子编号(原始码)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "package_code_original")]
|
||||
public string PackageCodeOriginal { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 库位编号
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "location_code")]
|
||||
public string LocationCode { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 零件号
|
||||
/// </summary>
|
||||
public string Partnumber { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 箱子中货物数量(理论)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "goods_num_logic")]
|
||||
public int? GoodsNumLogic { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 箱子中货物数量(实际)
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "goods_num_action")]
|
||||
public int? GoodsNumAction { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 入库时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "entry_warehouse_time")]
|
||||
public DateTime? EntryWarehouseTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 出库时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "out_time")]
|
||||
public DateTime? OutTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 备注
|
||||
/// </summary>
|
||||
public string Remark { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 更新人
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "uPDATED_BY")]
|
||||
public string UpdatedBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 更新时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "uPDATED_TIME")]
|
||||
public DateTime? UpdatedTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建人
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "cREATED_BY")]
|
||||
public string CreatedBy { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 创建时间
|
||||
/// </summary>
|
||||
[SugarColumn(ColumnName = "cREATED_TIME")]
|
||||
public DateTime? CreatedTime { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
86
ZR.Model/MES/wms/WmOutOrderPlan.cs
Normal file
86
ZR.Model/MES/wms/WmOutOrderPlan.cs
Normal file
@@ -0,0 +1,86 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace ZR.Model.MES.wms
|
||||
{
|
||||
/// <summary>
|
||||
/// 出库计划
|
||||
///</summary>
|
||||
[SugarTable("wm_out_order_plan")]
|
||||
public class WmOutOrderPlan
|
||||
{
|
||||
/// <summary>
|
||||
/// id
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "id", IsPrimaryKey = true, IsIdentity = true)]
|
||||
public int Id { get; set; }
|
||||
/// <summary>
|
||||
/// 出库单号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "fk_out_order_id")]
|
||||
public string FkOutOrderId { get; set; }
|
||||
/// <summary>
|
||||
/// 批次号(工单号+箱号)
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "patchcode")]
|
||||
public string Patchcode { get; set; }
|
||||
/// <summary>
|
||||
/// 物料号
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "material_code")]
|
||||
public string MaterialCode { get; set; }
|
||||
/// <summary>
|
||||
/// 所属仓库
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "warehouse_code")]
|
||||
public string WarehouseCode { get; set; }
|
||||
/// <summary>
|
||||
/// 批次箱数
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "package_num")]
|
||||
public int? PackageNum { get; set; }
|
||||
/// <summary>
|
||||
/// 批次零件数
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "partnumber_num")]
|
||||
public int? PartnumberNum { get; set; }
|
||||
/// <summary>
|
||||
/// 需求零件数
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "require_num")]
|
||||
public int? RequireNum { get; set; }
|
||||
/// <summary>
|
||||
/// 批次时间
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "patchtime")]
|
||||
public string Patchtime { get; set; }
|
||||
/// <summary>
|
||||
/// 出库顺序
|
||||
///</summary>
|
||||
[SugarColumn(ColumnName = "outorder")]
|
||||
public int? Outorder { 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