From 6097dd7e7d8a736729c4b8be66ea107eb740d9f1 Mon Sep 17 00:00:00 2001
From: payne <bzrlw2012@163.com>
Date: 周二, 23 4月 2024 13:47:14 +0800
Subject: [PATCH] 基础数据新增实体

---
 iWare_RawMaterialWarehouse_Wms/Admin.NET.Core/Entity/WmsBase/WmsMaterial.cs |  234 +++++++++++++++++++++++++++++++++-------------------------
 1 files changed, 133 insertions(+), 101 deletions(-)

diff --git a/iWare_RawMaterialWarehouse_Wms/Admin.NET.Core/Entity/WmsBase/WmsMaterial.cs b/iWare_RawMaterialWarehouse_Wms/Admin.NET.Core/Entity/WmsBase/WmsMaterial.cs
index 6cc53d6..a125315 100644
--- a/iWare_RawMaterialWarehouse_Wms/Admin.NET.Core/Entity/WmsBase/WmsMaterial.cs
+++ b/iWare_RawMaterialWarehouse_Wms/Admin.NET.Core/Entity/WmsBase/WmsMaterial.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涓嬪崍1:36:22
+ * @desc : 鐗╂枡淇℃伅琛�
+ */
 namespace Admin.NET.Core
 {
     /// <summary>
@@ -11,164 +14,193 @@
     /// </summary>
     [Table("wms_material")]
     [Comment("鐗╂枡淇℃伅琛�")]
-    public class WmsMaterial : DEntityBase, IEntityTypeBuilder<WmsMaterial>
+    public class WmsMaterial : DEntityBase
     {
+
+
         /// <summary>
         /// 鐗╂枡鍚嶇О
         /// </summary>
         [Comment("鐗╂枡鍚嶇О")]
         [Required]
-        [MaxLength(50)]
+        [MaxLength(255)]
         public string MaterialName { get; set; }
+
 
         /// <summary>
         /// 鐗╂枡缂栧彿
         /// </summary>
         [Comment("鐗╂枡缂栧彿")]
         [Required]
+        [MaxLength(255)]
+        public string MaterialCode { get; set; }
+
+
+        /// <summary>
+        /// ERP缂栧彿
+        /// </summary>
+        [Comment("ERP缂栧彿")]
+        [MaxLength(255)]
+        public string ErpCode { get; set; }
+
+
+        /// <summary>
+        /// 鐗╂枡绫诲瀷鍚嶇О
+        /// </summary>
+        [Comment("鐗╂枡绫诲瀷鍚嶇О")]
+        [Required]
         [MaxLength(50)]
-        public string MaterialNo { get; set; }
+        public string MaterialTypeName { get; set; }
+
 
         /// <summary>
-        /// 鐗╂枡鎵规
+        /// 鐗╂枡绫诲瀷鎻忚堪
         /// </summary>
-        [Comment("鐗╂枡鎵规")]
+        [Comment("鐗╂枡绫诲瀷鎻忚堪")]
+        [MaxLength(255)]
+        public string MaterialTypeDescr { get; set; }
+
+
+        /// <summary>
+        /// 鐗╂枡绫诲瀷
+        /// </summary>
+        [Comment("鐗╂枡绫诲瀷")]
+        [Required]
+
+        public int MaterialType { get; set; }
+
+
+        /// <summary>
+        /// 鐗╂枡缁�
+        /// </summary>
+        [Comment("鐗╂枡缁�")]
         [MaxLength(50)]
-        public string MaterialBatch { get; set; }
+        public string MaterialGroup { get; set; }
+
 
         /// <summary>
-        /// 鐗╂枡绫诲埆;鏁版嵁瀛楀吀
+        /// ABC鍒嗙被鍚嶇О
         /// </summary>
-        [Comment("鐗╂枡绫诲埆")]
-        public MaterialType MaterialType { get; set; }
+        [Comment("ABC鍒嗙被鍚嶇О")]
+        [MaxLength(50)]
+        public string ABCClassName { get; set; }
+
 
         /// <summary>
-        /// 鐗╂枡妫�楠�
+        /// ABC鍒嗙被
         /// </summary>
-        [Comment("鐗╂枡妫�楠�")]
-        public MaterialInspection InspectionMethod { get; set; }
+        [Comment("ABC鍒嗙被")]
+
+        public int? ABCClass { get; set; }
+
 
         /// <summary>
         /// 鐗╂枡瑙勬牸
         /// </summary>
         [Comment("鐗╂枡瑙勬牸")]
-        [MaxLength(50)]
+        [MaxLength(255)]
         public string MaterialSpec { get; set; }
 
-        /// <summary>
-        /// 鐗╂枡瀵嗗害
-        /// </summary>
-        [Comment("鐗╂枡瀵嗗害")]
-        [MaxLength(50)]
-        public string MaterialDensity { get; set; }
 
         /// <summary>
-        /// 鐗╂枡鍗曚綅
+        /// 榛樿鍏ュ簱搴撲綅
         /// </summary>
-        [Comment("鐗╂枡鍗曚綅")]
+        [Comment("榛樿鍏ュ簱搴撲綅")]
+        [MaxLength(50)]
+        public string InPlaceCode { get; set; }
+
+
+        /// <summary>
+        /// 搴撳瓨鍗曚綅
+        /// </summary>
+        [Comment("搴撳瓨鍗曚綅")]
+        [Required]
         [MaxLength(50)]
         public string MaterialUnit { get; set; }
 
-        /// <summary>
-        /// 搴撳尯Ids
-        /// </summary>
-        [Comment("搴撳尯Ids")]
-        public string AreaIds { get; set; }
 
         /// <summary>
-        /// 搴撳尯鍙傛暟
+        /// 閲囪喘鍗曚綅
         /// </summary>
-        [Comment("搴撳尯鍙傛暟")]
-        public string AreaNameParameter { get; set; }
+        [Comment("閲囪喘鍗曚綅")]
+        [Required]
+        [MaxLength(50)]
+        public string POUnit { get; set; }
+
 
         /// <summary>
-        /// 宸ヤ綔鍖篒ds
+        /// 棰滆壊
         /// </summary>
-        [Comment("宸ヤ綔鍖篒ds")]
-        public string StationIds { get; set; }
+        [Comment("棰滆壊")]
+        [MaxLength(50)]
+        public string Color { get; set; }
+
 
         /// <summary>
-        /// 宸ヤ綔鍖哄弬鏁�
+        /// 閲嶉噺
         /// </summary>
-        [Comment("宸ヤ綔鍖哄弬鏁�")]
-        public string StationNameParameter { get; set; }
+        [Comment("閲嶉噺")]
+        [MaxLength(50)]
+        public string Weight { get; set; }
+
 
         /// <summary>
-        /// 宸ユ
+        /// 鏍囧寘鏁伴噺
         /// </summary>
-        //[Comment("宸ユ")]
-        //[Required]
-        //public LesWorkshopSection LesWorkshopSection { get; set; }
+        [Comment("鏍囧寘鏁伴噺")]
 
-        //1215
+        [Column("SNP", TypeName = "decimal(10,3)")]
+        public decimal? SNP { get; set; }
+
+
+        /// <summary>
+        /// 鎹㈢畻鐜�
+        /// </summary>
+        [Comment("鎹㈢畻鐜�")]
+
+        [Column("TranslateRate", TypeName = "decimal(10,3)")]
+        public decimal? TranslateRate { get; set; }
+
+
+        /// <summary>
+        /// 鎵规灞炴�ц鍒�
+        /// </summary>
+        [Comment("鎵规灞炴�ц鍒�")]
+
+        public long? BatchRuleId { get; set; }
+
+
+        /// <summary>
+        /// 鎺у埗灞炴�ц鍒�
+        /// </summary>
+        [Comment("鎺у埗灞炴�ц鍒�")]
+
+        public long? ControlRuleId { get; set; }
+
+
+        /// <summary>
+        /// 鏄惁绂佺敤
+        /// </summary>
+        [Comment("鏄惁绂佺敤")]
+        [Required]
+
+        public bool IsDisabled { get; set; }
+
 
         /// <summary>
         /// 鎻忚堪
         /// </summary>
         [Comment("鎻忚堪")]
-
-        [MaxLength(500)]
-        public string Description { get; set; }
-
-        /// <summary>
-        /// 瀹夊叏瀛橀噺
-        /// </summary>
-        [Comment("瀹夊叏瀛橀噺")]
-
-        public decimal Safeqty { get; set; }
-
-        /// <summary>
-        /// 鏈�澶у瓨閲�
-        /// </summary>
-        [Comment("鏈�澶у瓨閲�")]
-
-        public decimal MaxImumqty { get; set; }
-
-        /// <summary>
-        /// 鏈�灏忓簱榫�
-        /// </summary>
-        [Comment("鏈�灏忓簱榫�")]
-
-        public decimal MinstorageAge { get; set; }
-
-        /// <summary>
-        /// 鏈�澶у簱榫�
-        /// </summary>
-        [Comment("鏈�澶у簱榫�")]
-
-        public decimal MaxstorageAge { get; set; }
-
-     
+        [MaxLength(255)]
+        public string MaterialDesc { get; set; }
 
 
 
 
-        /// <summary>
-        /// 鐗╂枡鎵樼洏鍏崇郴琛�
-        /// </summary>
-        public ICollection<WmsMaterialContainer> WmsFoamingMaterialContainer { get; set; }
 
-        /// <summary>
-        /// 鐗╂枡鎵樼洏鍘嗗彶琛�
-        /// </summary>
-        public ICollection<WmsHistoryMaterialContainer> WmsFoamingHistoryMaterialContainer { get; set; }
 
-        /// <summary>
-        /// 鏋勫缓涓�瀵瑰鐨勫叧绯�
-        /// </summary>
-        /// <param name="entityBuilder"></param>
-        /// <param name="dbContext"></param>
-        /// <param name="dbContextLocator"></param>
-        public void Configure(EntityTypeBuilder<WmsMaterial> entityBuilder, DbContext dbContext, Type dbContextLocator)
-        {
-            entityBuilder.HasMany(x => x.WmsFoamingMaterialContainer)
-                .WithOne(x => x.WmsMaterial)
-                .HasForeignKey(x => x.MaterialId).IsRequired(false);
 
-            entityBuilder.HasMany(x => x.WmsFoamingHistoryMaterialContainer)
-                .WithOne(x => x.WmsMaterial)
-                .HasForeignKey(x => x.MaterialId).IsRequired(false);
-        }
+
+
     }
-}
-
+}
\ No newline at end of file

--
Gitblit v1.9.3