Browse Source

mes缴库数据修改

dev_DY_CC
lvzb 1 year ago
parent
commit
8b7fd1d66b
  1. 8
      be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Domain.Fawtyg.Mes/MesOut/MesOut.cs
  2. 2
      be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore.Fawtyg.Mes/MesOut/MesOutDbContextModelCreatingExtensions.cs
  3. 2
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/IncomingToWmsWorker.cs
  4. 11
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Application.Contracts/WMS/ProductReceiptNote/ProductReceiptNoteDetailExchangeDto.cs
  5. 10
      be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Application.Contracts/Win_in.Sfs.Wms.DataExchange.Application.Contracts.xml
  6. 2
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/ItemBasics/IItemBasicAppService.cs
  7. 24
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/tests/ErpCodeRequest.cs
  8. 16
      be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Items/ItemBasicAppService.cs
  9. 11
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application.Contracts/Notes/ProductReceiptNotes/DTOs/ProductReceiptNoteDetailDTO.cs
  10. 10
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application.Contracts/Notes/ProductReceiptNotes/Inputs/ProductReceiptNoteDetailInput.cs
  11. 9
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Notes/ProductReceiptNotes/ProductReceiptNoteDetail.cs
  12. 3
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Notes/ProductReceiptNotes/ProductReceiptNoteDbContextModelCreatingExtensions.cs
  13. 2
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/AutoMapperProfiles/Jobs/ProductReceiveJobAutoMapperProfile.cs
  14. 2
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/AutoMapperProfiles/Requests/ProductReceiptRequestMapperProfile.cs

8
be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.Domain.Fawtyg.Mes/MesOut/MesOut.cs

@ -11,6 +11,10 @@ public class MesOut : Entity
[Key]
public string Mesout_ref_nbr { get; set; }
/// <summary>
/// 条码号(20240430添加)
/// </summary>
public string Mesout_barcode { get; set; }
/// <summary>
/// 调出储位
/// </summary>
public string Mesout_id { get; set; }
@ -19,6 +23,10 @@ public class MesOut : Entity
/// </summary>
public string Mesout_part { get; set; }
/// <summary>
/// 质量补标识(20240430添加)
/// </summary>
public string Mesout_quality { get; set; }
/// <summary>
/// 日期
/// </summary>
public string Mesout_date { get; set; }

2
be/DataExchange/Fawtyg/Win_in.Sfs.Wms.DataExchange.EntityFrameworkCore.Fawtyg.Mes/MesOut/MesOutDbContextModelCreatingExtensions.cs

@ -17,8 +17,10 @@ public static class MesOutDbContextModelCreatingExtensions
//Properties
b.Property(q => q.Mesout_ref_nbr).HasMaxLength(36);
b.Property(q => q.Mesout_barcode).HasMaxLength(20);
b.Property(q => q.Mesout_id).HasMaxLength(1);
b.Property(q => q.Mesout_part).HasMaxLength(20);
b.Property(q => q.Mesout_quality).HasMaxLength(20);
b.Property(q => q.Mesout_date).HasMaxLength(8);
b.Property(q => q.Mesout_move).HasPrecision(18, 2);
b.Property(q => q.Mesout_unable).HasPrecision(18, 2);

2
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Agent/IncomingToWmsWorker.cs

@ -169,7 +169,7 @@ public class IncomingToWmsWorker : AsyncPeriodicBackgroundWorkerBase
await incomingToWms.HandleAsnsAsync(workerContext).ConfigureAwait(false);
break;
case EnumIncomingDataType.ProductReceipt:
await SendProductReceipt(workerContext, incomingToWms).ConfigureAwait(false);
await incomingToWms.HandleProductReceiptsAsync(workerContext).ConfigureAwait(false);
break;
case EnumIncomingDataType.MaterialRequest:
await incomingToWms.HandleMaterialRequestsAsync(workerContext).ConfigureAwait(false);

11
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Application.Contracts/WMS/ProductReceiptNote/ProductReceiptNoteDetailExchangeDto.cs

@ -61,4 +61,15 @@ public class ProductReceiptNoteDetailExchangeDto
/// 仓库
/// </summary>
public string WarehouseCode { get; set; }
/// <summary>
/// Mes条码号
/// </summary>
[Display(Name = "Mes条码号")]
public string MesBarCode { get; set; }
/// <summary>
/// Mes质量补标识
/// </summary>
[Display(Name = "Mes质量补标识")]
public string MesQuality { get; set; }
}

10
be/DataExchange/src/Win_in.Sfs.Wms.DataExchange.Application.Contracts/Win_in.Sfs.Wms.DataExchange.Application.Contracts.xml

@ -861,6 +861,16 @@
仓库
</summary>
</member>
<member name="P:Win_in.Sfs.Wms.DataExchange.WMS.ProductReceiptNote.ProductReceiptNoteDetailExchangeDto.MesBarCode">
<summary>
Mes条码号
</summary>
</member>
<member name="P:Win_in.Sfs.Wms.DataExchange.WMS.ProductReceiptNote.ProductReceiptNoteDetailExchangeDto.MesQuality">
<summary>
Mes质量补标识
</summary>
</member>
<member name="P:Win_in.Sfs.Wms.DataExchange.WMS.ProductReceiptNote.ProductReceiptNoteExchangeDto.CompleteTime">
<summary>
完工时间

2
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/ItemBasics/IItemBasicAppService.cs

@ -1,6 +1,7 @@
using System.Collections.Generic;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Mvc;
using Win_in.Sfs.Basedata.tests;
using Win_in.Sfs.Shared.Application.Contracts;
using Win_in.Sfs.Shared.Domain.Shared;
@ -26,4 +27,5 @@ public interface IItemBasicAppService
Task UpsertAsyncByInterface(ItemBasicEditInput input);
Task UpsertStdPackQtyAsync(string itemCode, decimal stdpackqty);
Task<ErpCodeRequest> GetErpCodeByMesBarCode(string BarCode);
}

24
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application.Contracts/tests/ErpCodeRequest.cs

@ -0,0 +1,24 @@
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
namespace Win_in.Sfs.Basedata.tests;
[Serializable]
public class ErpCodeRequest
{
public string ErpCode { set; get; }
public string ProductType { set; get; }
public string ProductColor { set; get; }
public string ProductState { set; get; }
public string ProductProperty { set; get; }
public string From { set; get; }
}

16
be/Modules/BaseData/src/Win_in.Sfs.Basedata.Application/Items/ItemBasicAppService.cs

@ -14,6 +14,7 @@ using Volo.Abp.Validation;
using Win_in.Sfs.Basedata.Application.Contracts;
using Win_in.Sfs.Basedata.Domain;
using Win_in.Sfs.Basedata.Domain.Shared;
using Win_in.Sfs.Basedata.tests;
using Win_in.Sfs.Shared.Domain;
using Win_in.Sfs.Shared.Domain.Shared;
@ -231,4 +232,19 @@ public class ItemBasicAppService
}
#endregion
[HttpPost("get-erp-code-by-mes-barcode")]
public virtual async Task<ErpCodeRequest> GetErpCodeByMesBarCode(string BarCode)
{
var itemBasic = await _repository.GetAsync(p => p.Code == BarCode).ConfigureAwait(false);
ErpCodeRequest rest = new ErpCodeRequest();
rest.ErpCode = itemBasic.Code;
rest.ProductType = itemBasic.Type;
rest.ProductColor = itemBasic.Color;
rest.ProductState = itemBasic.Status.ToString();
rest.ProductProperty = "油漆件";
rest.From = "WIPT";
return rest;
}
}

11
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application.Contracts/Notes/ProductReceiptNotes/DTOs/ProductReceiptNoteDetailDTO.cs

@ -39,5 +39,14 @@ public class ProductReceiptNoteDetailDTO : SfsStoreRecommendToDetailWithLotPacki
/// </summary>
[Display(Name = "返线数量")]
public decimal ReturnQty { get; set; }
/// <summary>
/// Mes条码号
/// </summary>
[Display(Name = "Mes条码号")]
public string MesBarCode { get; set; }
/// <summary>
/// Mes质量补标识
/// </summary>
[Display(Name = "Mes质量补标识")]
public string MesQuality { get; set; }
}

10
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application.Contracts/Notes/ProductReceiptNotes/Inputs/ProductReceiptNoteDetailInput.cs

@ -45,4 +45,14 @@ public class ProductReceiptNoteDetailInput : SfsStoreRecommendToDetailWithLotPac
/// </summary>
[Display(Name = "返线数量")]
public decimal ReturnQty { get; set; }
/// <summary>
/// Mes条码号
/// </summary>
[Display(Name = "Mes条码号")]
public string MesBarCode { get; set; }
/// <summary>
/// Mes质量补标识
/// </summary>
[Display(Name = "Mes质量补标识")]
public string MesQuality { get; set; }
}

9
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Notes/ProductReceiptNotes/ProductReceiptNoteDetail.cs

@ -26,4 +26,13 @@ public class ProductReceiptNoteDetail : SfsStoreRecommendToDetailWithLotPackingQ
/// 返线数量
/// </summary>
public decimal ReturnQty { get; set; }
/// <summary>
/// Mes条码号
/// </summary>
public string MesBarCode { get; set; }
/// <summary>
/// Mes质量补标识
/// </summary>
public string MesQuality { get; set; }
}

3
be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/Notes/ProductReceiptNotes/ProductReceiptNoteDbContextModelCreatingExtensions.cs

@ -54,7 +54,8 @@ public static class ProductReceiptNoteDbContextModelCreatingExtensions
b.Property(q => q.LocationCode).HasMaxLength(SfsPropertyConst.CodeLength);
b.Property(q => q.ReturnQty).HasDefaultValue(0);
b.Property(q => q.Remark).HasMaxLength(SfsPropertyConst.RemarkLength);
b.Property(q => q.MesBarCode).HasMaxLength(SfsPropertyConst.CodeLength);
b.Property(q => q.MesQuality).HasMaxLength(SfsPropertyConst.CodeLength);
//Relations
//Indexes

2
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/AutoMapperProfiles/Jobs/ProductReceiveJobAutoMapperProfile.cs

@ -45,6 +45,8 @@ public partial class StoreEventAutoMapperProfile : Profile
.Ignore(x => x.Shift)
.Ignore(x => x.Remark)
.Ignore(x => x.ArriveDate)
.Ignore(x => x.MesBarCode)
.Ignore(x => x.MesQuality)
;
CreateMap<ProductReceiveJobDetail, ExpectInEditInput>()

2
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Event/AutoMapperProfiles/Requests/ProductReceiptRequestMapperProfile.cs

@ -28,6 +28,8 @@ public partial class StoreEventAutoMapperProfile : Profile
.Ignore(x => x.RawLocationCode).Ignore(x => x.Shift).Ignore(x => x.ProdLine)
.Ignore(x => x.Status)
.Ignore(x => x.ContainerCode)
.Ignore(x => x.MesBarCode)
.Ignore(x => x.MesQuality)
.IgnoreIHasRecommendAndHandledTo();
}
}

Loading…
Cancel
Save