From 0f4d83dcce5468b8dde3bc8e20e1c1a0203e4039 Mon Sep 17 00:00:00 2001
From: liuying <1427574514@qq.com>
Date: 周二, 23 4月 2024 17:43:33 +0800
Subject: [PATCH] 仓库表
---
iWare_RawMaterialWarehouse_Wms/Admin.NET.Core/Entity/WmsBase/WmsArea.cs | 121 ++++++++++++++++++++++++++--------------
1 files changed, 78 insertions(+), 43 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..15a4491 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涓嬪崍5:33:52
+ * @desc : 搴撳尯琛�
+ */
namespace Admin.NET.Core
{
/// <summary>
@@ -11,73 +14,105 @@
/// </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 IsVirtually { get; set; }
+
/// <summary>
- /// 搴撲綅琛�
+ /// 鏄惁绂佺敤
/// </summary>
- public ICollection<WmsPlace> WmsPlaces { get; set; }
+ [Comment("鏄惁绂佺敤")]
+ [Required]
- /// <summary>
- /// 搴撳彛琛�
- /// </summary>
- public ICollection<LesEntrance> LesEntrance { get; set; }
+ public bool IsDisabled { 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);
- }
+
+
+
+
+
+
+
+
}
-}
+}
\ No newline at end of file
--
Gitblit v1.9.3