From 56827df8730c172c6c654fb78fed073ef8d694cb Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期四, 23 十月 2025 19:22:39 +0800
Subject: [PATCH] 优化入库单处理
---
新建文件夹/WIDESEA_WMSServer/WIDESEA_Model/Models/SquareCabin/Dt_CabinOrderDetail_Hty .cs | 70 +++++++++++------------------------
1 files changed, 22 insertions(+), 48 deletions(-)
diff --git "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_Model/Models/SquareCabin/Dt_CabinOrderDetail_Hty .cs" "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_Model/Models/SquareCabin/Dt_CabinOrderDetail_Hty .cs"
index c76e564..14bd9e6 100644
--- "a/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_Model/Models/SquareCabin/Dt_CabinOrderDetail_Hty .cs"
+++ "b/\346\226\260\345\273\272\346\226\207\344\273\266\345\244\271/WIDESEA_WMSServer/WIDESEA_Model/Models/SquareCabin/Dt_CabinOrderDetail_Hty .cs"
@@ -1,4 +1,5 @@
-锘縰sing SqlSugar;
+锘縰sing Magicodes.ExporterAndImporter.Core;
+using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
@@ -9,57 +10,30 @@
namespace WIDESEA_Model.Models
{
[SugarTable("Dt_CabinOrderDetail_Hty ", "鍏ュ簱鏄庣粏鍘嗗彶琛�")]
- public class Dt_CabinOrderDetail_Hty : BaseEntity
+ public class Dt_CabinOrderDetail_Hty : Dt_CabinOrderDetail, IBaseHistoryEntity
{
-
- [SugarColumn(ColumnName = "HistoryId", IsPrimaryKey = true, IsIdentity = true, ColumnDescription = "鍘嗗彶璁板綍涓婚敭")]
- public int HistoryId { get; set; }
- // 淇濈暀鍘熻〃鎵�鏈夊瓧娈�
- [SugarColumn(ColumnName = "Id", ColumnDescription = "鍘熶富閿�")]
- public int Id { get; set; }
-
- //鍖哄煙锛堣嚜宸卞缓绔嬫垨鑰呬粬浠洿鎺ョ粰鍑烘潵锛�
- [SugarColumn(ColumnName = "Reservoirarea", IsNullable = true, Length = 50, ColumnDescription = "搴撳尯")]
- public string Reservoirarea { get; set; }
-
- [SugarColumn(ColumnName = "Goods_no", IsNullable = true, Length = 50, ColumnDescription = "鑽搧缂栫爜")]
- public string Goods_no { get; set; }
-
- [SugarColumn(ColumnName = "Order_qty", IsNullable = true, ColumnDescription = "璁㈠崟鍏ュ簱鏁伴噺锛岄��璐ф椂涓鸿礋鏁�")]
- public decimal Order_qty { get; set; }
-
- [SugarColumn(ColumnName = "Order_Inqty", IsNullable = true, ColumnDescription = "鍏ュ簱瀹屾垚鏁伴噺")]
- public decimal Order_Inqty { get; set; }
-
-
-
- [SugarColumn(ColumnName = "Batch_num", IsNullable = true, Length = 50, ColumnDescription = "鎵瑰彿")]
- public string Batch_num { get; set; }
-
- [SugarColumn(ColumnName = "Exp_date", IsNullable = true, Length = 50, ColumnDescription = "鏍℃湡(yyyymmmdd)")]
- public string Exp_date { get; set; }
-
-
-
- //鐩樼泩鏄庣粏--銆嬫枡绠卞彿锛屾暟閲�
- //public List<> StocktakingDetails { get; set; }
-
+ /// <summary>
+ /// 鍘熻〃涓婚敭
+ /// </summary>
+ [ImporterHeader(Name = "鍘熻〃涓婚敭")]
+ [ExporterHeader(DisplayName = "鍘熻〃涓婚敭")]
+ [SugarColumn(IsNullable = false, DefaultValue = "0", ColumnDescription = "鍘熻〃涓婚敭")]
+ public int SourceId { get; set; }
/// <summary>
- /// 璁㈠崟璇︽儏鐘舵�� 鏂板缓锛屽紑濮嬶紝宸插畬鎴�
- /// 搴撴埧鍙�+鐘舵��+锛堟柊寤猴級锛氬垽鏂槸鍚︿笅鍙戠粰wcs
- /// 璇︽儏寮�濮嬶紙寮�濮嬶級
- /// 璇︽儏瀹屾垚锛堝凡瀹屾垚锛岀Щ鍏ュ巻鍙茶〃鍒犻櫎淇℃伅锛�
+ /// 鎿嶄綔绫诲瀷
/// </summary>
- [SugarColumn(ColumnName = "OrderDetailStatus", IsNullable = true, Length = 50, ColumnDescription = "鐘舵��")]
- public string OrderDetailStatus { get; set; }
+ [ImporterHeader(Name = "鎿嶄綔绫诲瀷")]
+ [ExporterHeader(DisplayName = "鎿嶄綔绫诲瀷")]
+ [SugarColumn(IsNullable = false, Length = 50, ColumnDescription = "鎿嶄綔绫诲瀷")]
+ public string OperateType { get; set; }
- //鐘舵��
- [SugarColumn(ColumnName = "Status", IsNullable = true, ColumnDescription = "鐘舵�� 鍚屾鐘舵�侊細0鏈悓姝� 1宸插悓姝� 2鏃犻渶鍚屾锛堝嵆鍚屾涓嬪彂缁檞cs锛�")]
- public int Status { get; set; }
-
- // 淇瀵艰埅灞炴�э細浣跨敤 Goods_no 鍏宠仈 MaterielCode
- [Navigate(NavigateType.OneToOne, nameof(Goods_no), nameof(Dt_MaterielInfo.MaterielCode))]
- public Dt_MaterielInfo MedicineGoods { get; set; }
+ /// <summary>
+ /// 绉诲叆鍘嗗彶鏃堕棿
+ /// </summary>
+ [ImporterHeader(Name = "绉诲叆鍘嗗彶鏃堕棿")]
+ [ExporterHeader(DisplayName = "绉诲叆鍘嗗彶鏃堕棿")]
+ [SugarColumn(IsNullable = false, ColumnDescription = "绉诲叆鍘嗗彶鏃堕棿")]
+ public DateTime InsertTime { get; set; }
}
}
--
Gitblit v1.9.3