From ef2eff66971bdaa912cb7373446cc3b092785913 Mon Sep 17 00:00:00 2001
From: liuying <1427574514@qq.com>
Date: 周三, 24 4月 2024 11:12:09 +0800
Subject: [PATCH] 客户物料关系信息
---
iWare_RawMaterialWarehouse_Wms/Admin.NET.Core/Entity/WmsBase/WmsArea.cs | 158 +++++++++++++++++++++++++++++++++++++++-------------
1 files changed, 119 insertions(+), 39 deletions(-)
diff --git a/iWare_RawMaterialWarehouse_Wms/Admin.NET.Core/Entity/WmsBase/WmsArea.cs b/iWare_RawMaterialWarehouse_Wms/Admin.NET.Core/Entity/WmsBase/WmsArea.cs
index 9071135..2e8e4f1 100644
--- a/iWare_RawMaterialWarehouse_Wms/Admin.NET.Core/Entity/WmsBase/WmsArea.cs
+++ b/iWare_RawMaterialWarehouse_Wms/Admin.NET.Core/Entity/WmsBase/WmsArea.cs
@@ -1,9 +1,12 @@
-锘縰sing Furion.DatabaseAccessor;
-using Microsoft.EntityFrameworkCore;
-using Microsoft.EntityFrameworkCore.Metadata.Builders;
+锘縰sing Microsoft.EntityFrameworkCore;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
+/*
+ * @author : 鍒樻枃濂�
+ * @date : 2024/4/23涓嬪崍6:31:24
+ * @desc : 搴撳尯琛�
+ */
namespace Admin.NET.Core
{
/// <summary>
@@ -11,73 +14,150 @@
/// </summary>
[Table("wms_area")]
[Comment("搴撳尯琛�")]
- public class WmsArea : DEntityBase, IEntityTypeBuilder<WmsArea>
+ public class WmsArea : DEntityBase
{
+
+
/// <summary>
- /// 鍚嶇О
+ /// 搴撳尯缂栫爜
/// </summary>
- [Comment("鍚嶇О")]
+ [Comment("搴撳尯缂栫爜")]
+ [Required]
+ [MaxLength(50)]
+ public string AreaCode { get; set; }
+
+
+ /// <summary>
+ /// 浠撳簱缂栧彿
+ /// </summary>
+ [Comment("浠撳簱缂栧彿")]
+ [Required]
+ [MaxLength(50)]
+ public string WarehouseCode { get; set; }
+
+
+ /// <summary>
+ /// 浠撳簱鍚嶇О
+ /// </summary>
+ [Comment("浠撳簱鍚嶇О")]
+ [Required]
+ [MaxLength(255)]
+ public string WarehouseName { get; set; }
+
+
+ /// <summary>
+ /// 搴撳尯鍚嶇О
+ /// </summary>
+ [Comment("搴撳尯鍚嶇О")]
[Required]
[MaxLength(50)]
public string AreaName { get; set; }
+
/// <summary>
- /// 鎻忚堪
+ /// 搴撳尯鎻忚堪
/// </summary>
- [Comment("鎻忚堪")]
- [MaxLength(250)]
+ [Comment("搴撳尯鎻忚堪")]
+ [MaxLength(50)]
public string AreaDesc { get; set; }
+
/// <summary>
- /// 鐘舵��;鏁版嵁瀛楀吀
+ /// 搴撳尯鐘舵��
/// </summary>
- [Comment("鐘舵��")]
+ [Comment("搴撳尯鐘舵��")]
[Required]
- public CommonStatus AreaStatus { get; set; }
+
+ public int AreaStatus { get; set; }
+
/// <summary>
- /// 鍒嗙被;鏁版嵁瀛楀吀
+ /// ERP浠g爜
/// </summary>
- [Comment("鍒嗙被")]
+ [Comment("ERP浠g爜")]
[Required]
- public AreaType AreaType { get; set; }
+ [MaxLength(50)]
+ public string ErpCode { get; set; }
+
/// <summary>
- /// 鏄惁涓洪挗骞冲彴
+ /// 鎵�灞炰粨搴�
/// </summary>
- [Comment("鏄惁涓洪挗骞冲彴")]
- public bool IsSteel { get; set; }
+ [Comment("鎵�灞炰粨搴�")]
+ [Required]
+
+ public long WarehouseId { get; set; }
+
/// <summary>
- /// 鎵�灞炶溅闂�
+ /// 闆朵欢绾х鎺�
/// </summary>
- [Comment("鎵�灞炶溅闂�")]
- public LesWorkShopType WorkShopType { get; set; }
+ [Comment("闆朵欢绾х鎺�")]
+ [Required]
+
+ public bool IsBarcodeLevelControl { get; set; }
+
/// <summary>
- /// 搴撲綅琛�
+ /// 妫�楠屽厛杩涘厛鍑�
/// </summary>
- public ICollection<WmsPlace> WmsPlaces { get; set; }
+ [Comment("妫�楠屽厛杩涘厛鍑�")]
+ [Required]
+
+ public bool IsFIFO { get; set; }
+
/// <summary>
- /// 搴撳彛琛�
+ /// 闆朵欢绾х鎺�
/// </summary>
- public ICollection<LesEntrance> LesEntrance { get; set; }
+ [Comment("闆朵欢绾х鎺�")]
+ [Required]
+
+ public bool IsPartLevelControl { get; set; }
+
/// <summary>
- /// 鏋勫缓涓�瀵瑰鐨勫叧绯�
+ /// 鍏佽娣锋穯
/// </summary>
- /// <param name="entityBuilder"></param>
- /// <param name="dbContext"></param>
- /// <param name="dbContextLocator"></param>
- public void Configure(EntityTypeBuilder<WmsArea> entityBuilder, DbContext dbContext, Type dbContextLocator)
- {
- entityBuilder.HasMany(x => x.WmsPlaces)
- .WithOne(x => x.WmsArea)
- .HasForeignKey(x => x.AreaId).IsRequired(true);
- entityBuilder.HasMany(x => x.LesEntrance)
- .WithOne(x => x.WmsArea)
- .HasForeignKey(x => x.AreaId).IsRequired(true);
- }
+ [Comment("鍏佽娣锋穯")]
+ [Required]
+
+ public bool IsAllowConfusion { get; set; }
+
+
+ /// <summary>
+ /// 鍏佽璐熷簱瀛�
+ /// </summary>
+ [Comment("鍏佽璐熷簱瀛�")]
+ [Required]
+
+ public bool IsAllowNegativeInventory { get; set; }
+
+
+ /// <summary>
+ /// 鏄惁铏氭嫙
+ /// </summary>
+ [Comment("鏄惁铏氭嫙")]
+ [Required]
+
+ public bool IsVirtually { get; set; }
+
+
+ /// <summary>
+ /// 鏄惁绂佺敤
+ /// </summary>
+ [Comment("鏄惁绂佺敤")]
+ [Required]
+
+ public bool IsDisabled { get; set; }
+
+
+
+
+
+
+
+
+
}
-}
+}
\ No newline at end of file
--
Gitblit v1.9.3