Browse Source

Merge branch 'dev_DY_CC' of http://dev.ccwin-in.com:3000/BoXu.Zheng/WZC2 into dev_DY_CC

dev_DY_CC
郑勃旭 1 year ago
parent
commit
e313c02fa5
  1. 2
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application.Contracts/Jobs/IssueJobs/CoatingIssueJobs/CoatingIssueJobDTO.cs
  2. 87
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/IssueJobs/CoatingIssueJobs/CoatingIssueJobAppService.cs
  3. 2
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/IssueNotes/CoatingIssueNotes/CoatingIssueNoteAppService.cs
  4. 2
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/IssueNotes/CoatingIssueNotes/CoatingIssueNoteAutoMapperProfile.cs
  5. 2
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Notes/IssueNotes/CoatingIssueNotes/CoatingIssueNote.cs
  6. 2
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Requests/MaterialRequests/CoatingMaterialRequests/CoatingMaterialRequest.cs
  7. 9
      be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/StoreDbContextModelCreatingExtensions.cs

2
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application.Contracts/Jobs/IssueJobs/CoatingIssueJobs/CoatingIssueJobDTO.cs

@ -8,7 +8,7 @@ namespace Win_in.Sfs.Wms.Store.Jobs.IssueJobs;
/// 发料任务
/// </summary>
[Display(Name = "发料任务")]
public class CoatingIssueJobDTO : SfsJobDTOBase<IssueJobDetailDTO>
public class CoatingIssueJobDTO : SfsJobDTOBase<CoatingIssueJobDetailDTO>
{
/// <summary>
/// 叫料请求类型

87
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Jobs/IssueJobs/CoatingIssueJobs/CoatingIssueJobAppService.cs

@ -16,7 +16,7 @@ using Win_in.Sfs.Wms.Store.Application;
using Win_in.Sfs.Wms.Store.Application.Contracts;
using Win_in.Sfs.Wms.Store.Domain.Shared;
namespace Win_in.Sfs.Wms.Store.Jobs.IssueJobs.CoatingIssueJobs;
namespace Win_in.Sfs.Wms.Store.Jobs.IssueJobs;
[Authorize]
[Route($"{StoreConsts.RootPath}coatingissue-job")]
@ -171,7 +171,6 @@ public class CoatingIssueJobAppService
var detail = job.Details.FirstOrDefault(p => p.RecommendPackingCode == input.FromPackingCode); /*&& p.HandledQty == input.FromQty*/
if (detail == null)
{
//throw new UserFriendlyException($"根据HandledPackingCode={input.FromPackingCode}取CoatingIssueJobDetail表为空!");
throw new UserFriendlyException($"根据RecommendPackingCode={input.FromPackingCode}取CoatingIssueJobDetail表为空!");
}
//插入目标箱
@ -192,89 +191,5 @@ public class CoatingIssueJobAppService
}
/*
/// <summary>
///
/// </summary>
/// <param name="jobNumber"></param>
/// <returns></returns>
[HttpPost("accept")]
public override async Task AcceptAsync(string jobNumber)
{
var input = new IssueJobCheckInput
{
JobStatuses = new List<EnumJobStatus>() { EnumJobStatus.New },
};
var dto = await CheckAsync(jobNumber, input);
await _issueJobManager.AcceptAsync(dto.Id, CurrentUser.Id ?? Guid.Empty);
}
/// <summary>
/// 执行任务时,修改实际数量
/// </summary>
/// <param name="dto"></param>
/// <returns></returns>
[HttpPost("handle")]
public override async Task HandleAsync(IssueJobDTO dto)
{
var input = new IssueJobCheckInput
{
JobStatuses = new List<EnumJobStatus>() { EnumJobStatus.Pending },
};
await CheckAsync(dto.Number, input);
var entity = ObjectMapper.Map<IssueJobDTO, IssueJob>(dto);
await _issueJobManager.HandleAsync(entity, CurrentUser.Id ?? Guid.Empty);
}
[HttpPost("check")]
public override async Task<IssueJobDTO> CheckAsync(string jobNumber, IssueJobCheckInput input)
{
var result = new AbpValidationResult();
_issueJobManager.CheckFormat(jobNumber);
var dto = await GetByNumberAsync(jobNumber);
var entity = ObjectMapper.Map<IssueJobDTO, IssueJob>(dto);
_issueJobManager.CheckJobStatus(entity, input.JobStatuses, result);
_issueJobManager.CheckDetails(entity, result);
//TODO 添加其它校验
if (result.Errors.Any())
{
throw new AbpValidationException(result.Errors);
}
return dto;
}
*/
///// <summary>
///// 临时解决方案 解决创建补料的订阅事件无法返回错误信息的问题
///// </summary>
///// <param name="materialRequestHandledETO"></param>
///// <returns></returns>
//[Authorize(IssueJobPermissions.Create)]
//[HttpPost("create-by-eto")]
//public virtual async Task<MaterialRequestHandledETO> CreateByEtoAsync(MaterialRequestHandledETO materialRequestHandledETO)
//{
// await _issueJobManager.AddByEtoAsync(materialRequestHandledETO);
// return new MaterialRequestHandledETO();
//}
///// <summary>
///// 临时解决方案 解决创建补料的订阅事件无法返回错误信息的问题
///// </summary>
///// <param name="materialRequestHandledETO"></param>
///// <returns></returns>
//[Authorize(IssueJobPermissions.Create)]
//[HttpPost("create-by-eto2")]
//public virtual async Task<IssueJobDTO> CreateByEtoAsync2(MaterialRequestHandledETO materialRequestHandledETO)
//{
// await _issueJobManager.TestError();
// return new IssueJobDTO();
//} list-by
}

2
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/IssueNotes/CoatingIssueNotes/CoatingIssueNoteAppService.cs

@ -16,7 +16,7 @@ using Win_in.Sfs.Wms.Store.Application.Contracts;
using Win_in.Sfs.Wms.Store.Domain.Shared;
using Win_in.Sfs.Wms.Store.Notes.IssueNotes;
namespace Win_in.Sfs.Wms.Store.Notes.IssueNotes.CoatingIssueNotes;
namespace Win_in.Sfs.Wms.Store.Notes.IssueNotes;
[Authorize]
[Route($"{StoreConsts.RootPath}coatingissue-note")]

2
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Application/Notes/IssueNotes/CoatingIssueNotes/CoatingIssueNoteAutoMapperProfile.cs

@ -1,7 +1,7 @@
using AutoMapper;
using Volo.Abp.AutoMapper;
using Win_in.Sfs.Wms.Store.Notes.IssueNotes;
using Win_in.Sfs.Wms.Store.Notes.IssueNotes.CoatingIssueNotes;
namespace Win_in.Sfs.Wms.Store.Application;

2
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Notes/IssueNotes/CoatingIssueNotes/CoatingIssueNote.cs

@ -8,7 +8,7 @@ using Win_in.Sfs.Wms.Store.Domain;
namespace Win_in.Sfs.Wms.Store.Notes.IssueNotes;
/// <summary>
/// 发料记录
/// 喷涂叫料申请
/// </summary>
public class CoatingIssueNote : SfsStoreAggregateRootBase<CoatingIssueNoteDetail>, IHasJobNumber, IHasRequestNumber
{

2
be/Modules/Store/src/Win_in.Sfs.Wms.Store.Domain/Requests/MaterialRequests/CoatingMaterialRequests/CoatingMaterialRequest.cs

@ -18,7 +18,7 @@ public class CoatingMaterialRequest : SfsStoreRequestAggregateRootBase<CoatingMa
public string Type { get; set; }
/// <summary>
/// 料计划单号
/// 喷涂要料计划单号
/// </summary>
[IgnoreUpdate]
public string PreparationPlanNumber { get; set; }

9
be/Modules/Store/src/Win_in.Sfs.Wms.Store.EntityFrameworkCore/StoreDbContextModelCreatingExtensions.cs

@ -28,27 +28,21 @@ public static class StoreDbContextModelCreatingExtensions
builder.ConfigurePurchaseOrder(options);
builder.ConfigureSaleOrder(options);
builder.ConfigureWorkOrder(options);
builder.ConfigureEquipmentRecord(options);
//builder.ConfigureEquipmentLocCap(options);
#endregion
#region Plans
builder.ConfigureProductionPlan(options);
builder.ConfigurePreparationPlan(options);
builder.ConfigureDeliverPlan(options);
builder.ConfigureCountPlan(options);
builder.ConfigureSupplierAsn(options);
builder.ConfigureCustomerAsn(options);
#endregion
#region Requests
builder.ConfigureItemTransformRequest(options);
builder.ConfigureTransferRequest(options);
builder.ConfigureTransferLibRequest(options);
@ -71,11 +65,9 @@ public static class StoreDbContextModelCreatingExtensions
builder.ConfigureCoatingIssueNote(options);
builder.ConfigureCoatingMaterialRequest(options);
builder.ConfigureCoatingIssueJob(options);
#endregion
#region Notes
builder.ConfigureItemTransformNote(options);
builder.ConfigureRecycledMaterialReceiptNote(options);
builder.ConfigureTransferNote(options);
@ -111,7 +103,6 @@ public static class StoreDbContextModelCreatingExtensions
builder.ConfigureNoOkConvertOKNote(options);
builder.ConfigureInventoryInitialNote(options);
builder.ConfigureWipWarehouseAdjustNote(options);
#endregion
#region Jobs

Loading…
Cancel
Save