Browse Source

修改BBAC、HBPO发运数据列

master
mahao 1 year ago
parent
commit
45426cac50
  1. 4
      code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Startup.cs
  2. 497
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/BBAC_SE_DETAIL_DTO.cs
  3. 517
      code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/HBPO_SE_DETAIL_DTO.cs
  4. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/BBACSeSyncAppService.cs
  5. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/HBPOSeSyncAppService.cs
  6. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SE_DETAIL.cs
  7. 2
      code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_SE_DETAIL.cs

4
code/src/Modules/SettleAccount/host/SettleAccount.HttpApi.Host/Startup.cs

@ -51,8 +51,8 @@ public class Startup
app.UseEndpoints(endpoints => endpoints.MapHub<PageHub>("/api/hub")); app.UseEndpoints(endpoints => endpoints.MapHub<PageHub>("/api/hub"));
app.ApplicationServices.UseScheduler(scheduler => app.ApplicationServices.UseScheduler(scheduler =>
{ {
//scheduler.Schedule<HBPOSeSyncAppService>().EveryMinute(); scheduler.Schedule<HBPOSeSyncAppService>().EveryMinute();
//scheduler.Schedule<BBACSeSyncAppService>().EveryMinute(); scheduler.Schedule<BBACSeSyncAppService>().EveryMinute();
scheduler.Schedule<ZhiGongBBACSeSyncAppService>().EveryMinute(); scheduler.Schedule<ZhiGongBBACSeSyncAppService>().EveryMinute();
scheduler.Schedule<ZhiGongHBPOSeSyncAppService>().EveryMinute(); scheduler.Schedule<ZhiGongHBPOSeSyncAppService>().EveryMinute();
scheduler.Schedule<BeiSeSyncAppService>().EveryMinute(); scheduler.Schedule<BeiSeSyncAppService>().EveryMinute();

497
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/BBAC_SE_DETAIL_DTO.cs

@ -3,157 +3,354 @@ using System;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using Volo.Abp.Application.Dtos; using Volo.Abp.Application.Dtos;
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos;
/// <summary>
/// BBAC发运
/// </summary>
public class BBAC_SE_DETAIL_DTO : EntityDto<Guid>
{
/// <summary>
/// 发货单号
/// </summary>
[Display(Name = "发货单号")]
public string WmsBillNum { get; set; }
/// <summary>
/// 单据编号
/// </summary>
[Display(Name = "单据编号")]
public string Num { get; set; }
/// <summary>
/// 发货时间
/// </summary>
[Display(Name = "发货时间")]
public DateTime BillTime { get; set; }
/// <summary>
/// 发货人
/// </summary>
[Display(Name = "发货人")]
public string Oper { get; set; }
/// <summary>
/// 排序单号
/// </summary>
[Display(Name = "排序单号")]
public string OrderNum { get; set; }
/// <summary>
/// 订单序号
/// </summary>
[Display(Name = "订单序号")]
public string Seq { get; set; }
/// <summary>
/// 实际生产码
/// </summary>
[Display(Name = "实际生产码")]
public string RealCode { get; set; }
/// <summary>
/// 订单生产码
/// </summary>
[Display(Name = "订单生产码")]
public string VinCode { get; set; }
/// <summary>
/// 生产码类型
/// </summary>
[Display(Name = "生产码类型")]
public string CodeType { get; set; }
/// <summary>
/// 实际零件号
/// </summary>
[Display(Name = "实际零件号")]
public string RealPartCode { get; set; }
/// <summary>
/// 零件号
/// </summary>
[Display(Name = "零件号")]
public string PartCode { get; set; }
/// <summary>
/// 批次
/// </summary>
[Display(Name = "批次")]
public string Batch { get; set; }
/// <summary>
/// MES配置码
/// </summary>
[Display(Name = "MES配置码")]
public string MESConfigCode { get; set; }
/// <summary>
/// 来源库位
/// </summary>
[Display(Name = "来源库位")]
public string FromLoc { get; set; }
/// <summary>
/// 目标库位
/// </summary>
[Display(Name = "目标库位")]
public string ToLoc { get; set; }
/// <summary>
/// 参照订单生产码
/// </summary>
[Display(Name = "参照订单生产码")]
public string RefVinCode { get; set; }
/// <summary>
/// 单据性质
/// </summary>
[Display(Name = "单据性质")]
public string BillCharacter { get; set; }
/// <summary>
/// 发货关联单号
/// </summary>
[Display(Name = "发货关联单号")]
public string RefBillNum { get; set; }
/// <summary>
/// Erp目标库位
/// </summary>
[Display(Name = "Erp目标库位")]
public string ErpToLoc { get; set; }
/// <summary>
/// 原生产码
/// </summary>
[Display(Name = "原生产码")]
public string OrigiCode { get; set; }
/// <summary>
/// 备注
/// </summary>
[Display(Name = "备注")]
public string Remark { get; set; }
/// <summary>
/// 塑件唯一码
/// </summary>
[Display(Name = "塑件唯一码")]
public string UniqueCode { get; set; }
/// <summary>
/// PJS顺序号
/// </summary>
[Display(Name = "PJS顺序号")]
public string PjsNum { get; set; }
/// <summary>
/// 虚拟小总成
/// </summary>
[Display(Name = "虚拟小总成")]
public string MatchNumber { get; set; }
/// <summary>
/// 发货条码
/// </summary>
[Display(Name = "发货条码")]
public string DeliverCode { get; set; }
/// <summary>
/// 客户位置
/// </summary>
[Display(Name = "客户位置")]
public string Position { get; set; }
}
/// <summary>
/// 导出
/// </summary>
public class BBAC_SE_DETAIL_EXPORT_DTO
{ {
/// <summary> /// <summary>
/// BBAC发运 /// 发货单号
/// </summary> /// </summary>
public class BBAC_SE_DETAIL_DTO : EntityDto<Guid> [Display(Name = "发货单号")]
{ [ExporterHeader(DisplayName = "发货单号")]
/// <summary> public string WmsBillNum { get; set; }
/// 期间
/// </summary> /// <summary>
[Display(Name = "期间")] /// 单据编号
public int Version { set; get; } /// </summary>
[Display(Name = "单据编号")]
/// <summary> [ExporterHeader(DisplayName = "单据编号")]
/// 发货时间 public string Num { get; set; }
/// </summary>
[Display(Name = "发货时间")] /// <summary>
public DateTime ShippingDate { set; get; } /// 发货时间
/// </summary>
/// <summary> [Display(Name = "发货时间")]
/// 发运单号 [ExporterHeader(DisplayName = "发货时间")]
/// </summary> public DateTime BillTime { get; set; }
[Display(Name = "发运单号")]
public string WmsBillNum { set; get; } /// <summary>
/// 发货人
/// <summary> /// </summary>
/// 零件号 [Display(Name = "发货人")]
/// </summary> [ExporterHeader(DisplayName = "发货人")]
[Display(Name = "零件号")] public string Oper { get; set; }
public string LU { get; set; }
[ExporterHeader(DisplayName = "物料描述")] /// <summary>
public string MaterialDesc { get; set; } /// 排序单号
/// </summary>
[Display(Name = "排序单号")]
/// <summary> [ExporterHeader(DisplayName = "排序单号")]
/// 生产号 public string OrderNum { get; set; }
/// </summary>
[Display(Name = "生产号")] /// <summary>
public string PN { get; set; } /// 订单序号
/// </summary>
/// <summary> [Display(Name = "订单序号")]
/// 组合键值(LU+PN) [ExporterHeader(DisplayName = "订单序号")]
/// </summary> public string Seq { get; set; }
[Display(Name = "组合键值(LU+PN)")]
public string KeyCode { get; set; } /// <summary>
/// 实际生产码
/// <summary> /// </summary>
/// 数量 [Display(Name = "实际生产码")]
/// </summary> [ExporterHeader(DisplayName = "实际生产码")]
[Display(Name = "数量")] public string RealCode { get; set; }
public decimal Qty { get; set; }
/// <summary>
/// <summary> /// 订单生产码
/// 日顺序号 /// </summary>
/// </summary> [Display(Name = "订单生产码")]
[Display(Name = "日顺序号")] [ExporterHeader(DisplayName = "订单生产码")]
public string SeqNumber { get; set; } public string VinCode { get; set; }
/// <summary> /// <summary>
/// 小总成号 /// 生产码类型
/// </summary> /// </summary>
[Display(Name = "小总成号")] [Display(Name = "生产码类型")]
public string AssemblyCode { get; set; } [ExporterHeader(DisplayName = "生产码类型")]
public string CodeType { get; set; }
/// <summary>
/// 注塑码 /// <summary>
/// </summary> /// 实际零件号
[Display(Name = "注塑码")] /// </summary>
public string InjectionCode { get; set; } [Display(Name = "实际零件号")]
[ExporterHeader(DisplayName = "实际零件号")]
/// <summary> public string RealPartCode { get; set; }
/// 订单时间
/// </summary> /// <summary>
[Display(Name = "订单时间")] /// 零件号
public DateTime BeginDate { get; set; } /// </summary>
} [Display(Name = "零件号")]
[ExporterHeader(DisplayName = "零件号")]
/// <summary> public string PartCode { get; set; }
/// 导出
/// </summary> /// <summary>
public class BBAC_SE_DETAIL_EXPORT_DTO /// 批次
{ /// </summary>
/// <summary> [Display(Name = "批次")]
/// 期间 [ExporterHeader(DisplayName = "批次")]
/// </summary> public string Batch { get; set; }
[ExporterHeader(DisplayName = "期间")]
public int Version { set; get; } /// <summary>
/// MES配置码
/// <summary> /// </summary>
/// 发货时间 [Display(Name = "MES配置码")]
/// </summary> [ExporterHeader(DisplayName = "MES配置码")]
[ExporterHeader(DisplayName = "发货时间")] public string MESConfigCode { get; set; }
public DateTime ShippingDate { set; get; }
/// <summary>
/// <summary> /// 来源库位
/// 发运单号 /// </summary>
/// </summary> [Display(Name = "来源库位")]
[ExporterHeader(DisplayName = "发运单号")] [ExporterHeader(DisplayName = "来源库位")]
public string WmsBillNum { set; get; } public string FromLoc { get; set; }
/// <summary> /// <summary>
/// 零件号 /// 目标库位
/// </summary> /// </summary>
[ExporterHeader(DisplayName = "零件号")] [Display(Name = "目标库位")]
public string LU { get; set; } [ExporterHeader(DisplayName = "目标库位")]
public string ToLoc { get; set; }
/// <summary>
/// 生产号 /// <summary>
/// </summary> /// 参照订单生产码
[ExporterHeader(DisplayName = "生产号")] /// </summary>
public string PN { get; set; } [Display(Name = "参照订单生产码")]
[ExporterHeader(DisplayName = "参照订单生产码")]
/// <summary> public string RefVinCode { get; set; }
/// 组合键值(LU+PN)
/// </summary>
[ExporterHeader(DisplayName = "日顺序号")]
public string KeyCode { get; set; }
/// <summary>
/// 数量
/// </summary>
[ExporterHeader(DisplayName = "日顺序号")]
public decimal Qty { get; set; }
/// <summary>
/// 日顺序号
/// </summary>
[Display(Name = "日顺序号")]
[ExporterHeader(DisplayName = "日顺序号")]
public string SeqNumber { get; set; }
/// <summary>
/// 小总成号
/// </summary>
[Display(Name = "小总成号")]
[ExporterHeader(DisplayName = "小总成号")]
public string AssemblyCode { get; set; }
/// <summary>
/// 注塑码
/// </summary>
[Display(Name = "注塑码")]
[ExporterHeader(DisplayName = "注塑码")]
public string InjectionCode { get; set; }
/// <summary>
/// 订单时间
/// </summary>
[Display(Name = "订单时间")]
[ExporterHeader(DisplayName = "订单时间")]
public DateTime BeginDate { get; set; }
}
/// <summary>
/// 单据性质
/// </summary>
[Display(Name = "单据性质")]
[ExporterHeader(DisplayName = "单据性质")]
public string BillCharacter { get; set; }
/// <summary>
/// 发货关联单号
/// </summary>
[Display(Name = "发货关联单号")]
[ExporterHeader(DisplayName = "发货关联单号")]
public string RefBillNum { get; set; }
/// <summary>
/// Erp目标库位
/// </summary>
[Display(Name = "Erp目标库位")]
[ExporterHeader(DisplayName = "Erp目标库位")]
public string ErpToLoc { get; set; }
/// <summary>
/// 原生产码
/// </summary>
[Display(Name = "原生产码")]
[ExporterHeader(DisplayName = "原生产码")]
public string OrigiCode { get; set; }
/// <summary>
/// 备注
/// </summary>
[Display(Name = "备注")]
[ExporterHeader(DisplayName = "备注")]
public string Remark { get; set; }
/// <summary>
/// 塑件唯一码
/// </summary>
[Display(Name = "塑件唯一码")]
[ExporterHeader(DisplayName = "塑件唯一码")]
public string UniqueCode { get; set; }
/// <summary>
/// PJS顺序号
/// </summary>
[Display(Name = "PJS顺序号")]
[ExporterHeader(DisplayName = "PJS顺序号")]
public string PjsNum { get; set; }
/// <summary>
/// 虚拟小总成
/// </summary>
[Display(Name = "虚拟小总成")]
[ExporterHeader(DisplayName = "虚拟小总成")]
public string MatchNumber { get; set; }
/// <summary>
/// 发货条码
/// </summary>
[Display(Name = "发货条码")]
[ExporterHeader(DisplayName = "发货条码")]
public string DeliverCode { get; set; }
/// <summary>
/// 客户位置
/// </summary>
[Display(Name = "客户位置")]
[ExporterHeader(DisplayName = "客户位置")]
public string Position { get; set; }
} }

517
code/src/Modules/SettleAccount/src/SettleAccount.Application.Contracts/Entities/BQ/Dtos/HBPO_SE_DETAIL_DTO.cs

@ -1,177 +1,356 @@
using Magicodes.ExporterAndImporter.Core;
using System; using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations;
using System.Linq; using Magicodes.ExporterAndImporter.Core;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos; using Volo.Abp.Application.Dtos;
namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos namespace Win.Sfs.SettleAccount.Entities.BQ.Dtos;
/// <summary>
/// HBPO发运单
/// </summary>
public class HBPO_SE_DETAIL_DTO : EntityDto<Guid>
{
/// <summary>
/// 发货单号
/// </summary>
[Display(Name = "发货单号")]
public string WmsBillNum { get; set; }
/// <summary>
/// 单据编号
/// </summary>
[Display(Name = "单据编号")]
public string Num { get; set; }
/// <summary>
/// 发货时间
/// </summary>
[Display(Name = "发货时间")]
public DateTime BillTime { get; set; }
/// <summary>
/// 发货人
/// </summary>
[Display(Name = "发货人")]
public string Oper { get; set; }
/// <summary>
/// 排序单号
/// </summary>
[Display(Name = "排序单号")]
public string OrderNum { get; set; }
/// <summary>
/// 订单序号
/// </summary>
[Display(Name = "订单序号")]
public string Seq { get; set; }
/// <summary>
/// 实际生产码
/// </summary>
[Display(Name = "实际生产码")]
public string RealCode { get; set; }
/// <summary>
/// 订单生产码
/// </summary>
[Display(Name = "订单生产码")]
public string VinCode { get; set; }
/// <summary>
/// 生产码类型
/// </summary>
[Display(Name = "生产码类型")]
public string CodeType { get; set; }
/// <summary>
/// 实际零件号
/// </summary>
[Display(Name = "实际零件号")]
public string RealPartCode { get; set; }
/// <summary>
/// 零件号
/// </summary>
[Display(Name = "零件号")]
public string PartCode { get; set; }
/// <summary>
/// 批次
/// </summary>
[Display(Name = "批次")]
public string Batch { get; set; }
/// <summary>
/// MES配置码
/// </summary>
[Display(Name = "MES配置码")]
public string MESConfigCode { get; set; }
/// <summary>
/// 来源库位
/// </summary>
[Display(Name = "来源库位")]
public string FromLoc { get; set; }
/// <summary>
/// 目标库位
/// </summary>
[Display(Name = "目标库位")]
public string ToLoc { get; set; }
/// <summary>
/// 参照订单生产码
/// </summary>
[Display(Name = "参照订单生产码")]
public string RefVinCode { get; set; }
/// <summary>
/// 单据性质
/// </summary>
[Display(Name = "单据性质")]
public string BillCharacter { get; set; }
/// <summary>
/// 发货关联单号
/// </summary>
[Display(Name = "发货关联单号")]
public string RefBillNum { get; set; }
/// <summary>
/// Erp目标库位
/// </summary>
[Display(Name = "Erp目标库位")]
public string ErpToLoc { get; set; }
/// <summary>
/// 原生产码
/// </summary>
[Display(Name = "原生产码")]
public string OrigiCode { get; set; }
/// <summary>
/// 备注
/// </summary>
[Display(Name = "备注")]
public string Remark { get; set; }
/// <summary>
/// 塑件唯一码
/// </summary>
[Display(Name = "塑件唯一码")]
public string UniqueCode { get; set; }
/// <summary>
/// PJS顺序号
/// </summary>
[Display(Name = "PJS顺序号")]
public string PjsNum { get; set; }
/// <summary>
/// 虚拟小总成
/// </summary>
[Display(Name = "虚拟小总成")]
public string MatchNumber { get; set; }
/// <summary>
/// 发货条码
/// </summary>
[Display(Name = "发货条码")]
public string DeliverCode { get; set; }
/// <summary>
/// 客户位置
/// </summary>
[Display(Name = "客户位置")]
public string Position { get; set; }
}
/// <summary>
/// 导出
/// </summary>
public class HBPO_SE_DETAIL_EXPORT_DTO
{ {
/// <summary> /// <summary>
/// HBPO发运单 /// 发货单号
/// </summary> /// </summary>
public class HBPO_SE_DETAIL_DTO : EntityDto<Guid> [Display(Name = "发货单号")]
{ [ExporterHeader(DisplayName = "发货单号")]
/// <summary> public string WmsBillNum { get; set; }
/// 期间
/// </summary> /// <summary>
[Display(Name = "期间")] /// 单据编号
public int Version { set; get; } /// </summary>
[Display(Name = "单据编号")]
/// <summary> [ExporterHeader(DisplayName = "单据编号")]
/// 发货时间 public string Num { get; set; }
/// </summary>
[Display(Name = "发货时间")] /// <summary>
public DateTime ShippingDate { set; get; } /// 发货时间
/// </summary>
/// <summary> [Display(Name = "发货时间")]
/// 发运单号 [ExporterHeader(DisplayName = "发货时间")]
/// </summary> public DateTime BillTime { get; set; }
[Display(Name = "发运单号")]
public string WmsBillNum { set; get; } /// <summary>
/// 发货人
/// <summary> /// </summary>
/// 零件号 [Display(Name = "发货人")]
/// </summary> [ExporterHeader(DisplayName = "发货人")]
[Display(Name = "零件号")] public string Oper { get; set; }
public string LU { get; set; }
/// <summary>
/// <summary> /// 排序单号
/// 生产号 /// </summary>
/// </summary> [Display(Name = "排序单号")]
[Display(Name = "生产号")] [ExporterHeader(DisplayName = "排序单号")]
public string PN { get; set; } public string OrderNum { get; set; }
/// <summary> /// <summary>
/// 组合键值(LU+PN) /// 订单序号
/// </summary> /// </summary>
[Display(Name = "组合键值(LU+PN)")] [Display(Name = "订单序号")]
public string KeyCode { get; set; } [ExporterHeader(DisplayName = "订单序号")]
public string Seq { get; set; }
/// <summary>
/// 数量 /// <summary>
/// </summary> /// 实际生产码
[Display(Name = "数量")] /// </summary>
public decimal Qty { get; set; } [Display(Name = "实际生产码")]
[ExporterHeader(DisplayName = "实际生产码")]
/// <summary> public string RealCode { get; set; }
/// 日顺序号
/// </summary> /// <summary>
[Display(Name = "日顺序号")] /// 订单生产码
public string SeqNumber { get; set; } /// </summary>
[Display(Name = "订单生产码")]
/// <summary> [ExporterHeader(DisplayName = "订单生产码")]
/// 小总成号 public string VinCode { get; set; }
/// </summary>
[Display(Name = "小总成号")] /// <summary>
public string AssemblyCode { get; set; } /// 生产码类型
/// </summary>
/// <summary> [Display(Name = "生产码类型")]
/// 注塑码 [ExporterHeader(DisplayName = "生产码类型")]
/// </summary> public string CodeType { get; set; }
[Display(Name = "注塑码")]
public string InjectionCode { get; set; } /// <summary>
/// 实际零件号
/// <summary> /// </summary>
/// 订单时间 [Display(Name = "实际零件号")]
/// </summary> [ExporterHeader(DisplayName = "实际零件号")]
[Display(Name = "订单时间")] public string RealPartCode { get; set; }
public DateTime BeginDate { get; set; }
} /// <summary>
/// 零件号
/// <summary> /// </summary>
/// 导出 [Display(Name = "零件号")]
/// </summary> [ExporterHeader(DisplayName = "零件号")]
public class HBPO_SE_DETAIL_EXPORT_DTO public string PartCode { get; set; }
{
/// <summary> /// <summary>
/// 发运单号 /// 批次
/// </summary> /// </summary>
[Display(Name = "发运单号")] [Display(Name = "批次")]
[ExporterHeader(DisplayName = "JIS单据编号")] [ExporterHeader(DisplayName = "批次")]
public string WmsBillNum { set; get; } public string Batch { get; set; }
/// <summary>
/// 发货时间
/// </summary>
[Display(Name = "发货时间")]
[ExporterHeader(DisplayName = "发货时间")]
public DateTime ShippingDate { set; get; }
/// <summary>
/// 日顺序号
/// </summary>
[Display(Name = "日顺序号")]
[ExporterHeader(DisplayName = "JIS排序单号")]
public string SeqNumber { get; set; }
/// <summary>
/// 期间
/// </summary>
[Display(Name = "期间")]
[ExporterHeader(DisplayName = "期间")]
public int Version { set; get; }
/// <summary>
/// 零件号
/// </summary>
[Display(Name = "零件号")]
[ExporterHeader(DisplayName = "零件号")]
public string LU { get; set; }
/// <summary>
/// 生产号
/// </summary>
[Display(Name = "生产号")]
[ExporterHeader(DisplayName = "生产号")]
public string PN { get; set; }
/// <summary>
/// 组合键值(LU+PN)
/// </summary>
[Display(Name = "组合键值(LU+PN)")]
[ExporterHeader(DisplayName = "组合键值(LU+PN)")]
public string KeyCode { get; set; }
/// <summary>
/// 数量
/// </summary>
[Display(Name = "数量")]
[ExporterHeader(DisplayName = "数量")]
public decimal Qty { get; set; }
/// <summary>
/// 小总成号
/// </summary>
[Display(Name = "小总成号")]
[ExporterHeader(DisplayName = "小总成号")]
public string AssemblyCode { get; set; }
/// <summary>
/// 注塑码
/// </summary>
[Display(Name = "注塑码")]
[ExporterHeader(DisplayName = "注塑码")]
public string InjectionCode { get; set; }
/// <summary>
/// 订单时间
/// </summary>
[Display(Name = "订单时间")]
[ExporterHeader(DisplayName = "订单时间")]
public DateTime BeginDate { get; set; }
}
/// <summary>
/// MES配置码
/// </summary>
[Display(Name = "MES配置码")]
[ExporterHeader(DisplayName = "MES配置码")]
public string MESConfigCode { get; set; }
/// <summary>
/// 来源库位
/// </summary>
[Display(Name = "来源库位")]
[ExporterHeader(DisplayName = "来源库位")]
public string FromLoc { get; set; }
/// <summary>
/// 目标库位
/// </summary>
[Display(Name = "目标库位")]
[ExporterHeader(DisplayName = "目标库位")]
public string ToLoc { get; set; }
/// <summary>
/// 参照订单生产码
/// </summary>
[Display(Name = "参照订单生产码")]
[ExporterHeader(DisplayName = "参照订单生产码")]
public string RefVinCode { get; set; }
/// <summary>
/// 单据性质
/// </summary>
[Display(Name = "单据性质")]
[ExporterHeader(DisplayName = "单据性质")]
public string BillCharacter { get; set; }
/// <summary>
/// 发货关联单号
/// </summary>
[Display(Name = "发货关联单号")]
[ExporterHeader(DisplayName = "发货关联单号")]
public string RefBillNum { get; set; }
/// <summary>
/// Erp目标库位
/// </summary>
[Display(Name = "Erp目标库位")]
[ExporterHeader(DisplayName = "Erp目标库位")]
public string ErpToLoc { get; set; }
/// <summary>
/// 原生产码
/// </summary>
[Display(Name = "原生产码")]
[ExporterHeader(DisplayName = "原生产码")]
public string OrigiCode { get; set; }
/// <summary>
/// 备注
/// </summary>
[Display(Name = "备注")]
[ExporterHeader(DisplayName = "备注")]
public string Remark { get; set; }
/// <summary>
/// 塑件唯一码
/// </summary>
[Display(Name = "塑件唯一码")]
[ExporterHeader(DisplayName = "塑件唯一码")]
public string UniqueCode { get; set; }
/// <summary>
/// PJS顺序号
/// </summary>
[Display(Name = "PJS顺序号")]
[ExporterHeader(DisplayName = "PJS顺序号")]
public string PjsNum { get; set; }
/// <summary>
/// 虚拟小总成
/// </summary>
[Display(Name = "虚拟小总成")]
[ExporterHeader(DisplayName = "虚拟小总成")]
public string MatchNumber { get; set; }
/// <summary>
/// 发货条码
/// </summary>
[Display(Name = "发货条码")]
[ExporterHeader(DisplayName = "发货条码")]
public string DeliverCode { get; set; }
/// <summary>
/// 客户位置
/// </summary>
[Display(Name = "客户位置")]
[ExporterHeader(DisplayName = "客户位置")]
public string Position { get; set; }
} }

2
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/BBACSeSyncAppService.cs

@ -84,6 +84,7 @@ public class BBACSeSyncAppService : ApplicationService, IInvocable
var bbacSeDetails = ObjectMapper.Map<List<TM_BJBMPT_JIT_RECORD>, List<BBAC_SE_DETAIL>>(wmsSeRecords); var bbacSeDetails = ObjectMapper.Map<List<TM_BJBMPT_JIT_RECORD>, List<BBAC_SE_DETAIL>>(wmsSeRecords);
if (bbacSeDetails.Any()) if (bbacSeDetails.Any())
{ {
bbacSeDetails.ForEach(bbacSeDetail => bbacSeDetail.KeyCode = bbacSeDetail.PN + bbacSeDetail.LU);
await _bbacSeDetailRepository.InsertManyAsync(bbacSeDetails); await _bbacSeDetailRepository.InsertManyAsync(bbacSeDetails);
if (syncPositionFlag != null) if (syncPositionFlag != null)
@ -131,6 +132,7 @@ public class BBACSeSyncAppService : ApplicationService, IInvocable
var bbacSeDetails = ObjectMapper.Map<List<TM_BJBMPT_JIS_RECORD>, List<BBAC_SE_DETAIL>>(wmsRecords); var bbacSeDetails = ObjectMapper.Map<List<TM_BJBMPT_JIS_RECORD>, List<BBAC_SE_DETAIL>>(wmsRecords);
if (bbacSeDetails.Any()) if (bbacSeDetails.Any())
{ {
bbacSeDetails.ForEach(bbacSeDetail => bbacSeDetail.KeyCode = bbacSeDetail.PN + bbacSeDetail.LU);
await _bbacSeDetailRepository.InsertManyAsync(bbacSeDetails); await _bbacSeDetailRepository.InsertManyAsync(bbacSeDetails);
if (syncPositionFlag != null) if (syncPositionFlag != null)

2
code/src/Modules/SettleAccount/src/SettleAccount.Application/Entities/BQ/Syncs/HBPOSeSyncAppService.cs

@ -84,6 +84,7 @@ public class HBPOSeSyncAppService : ApplicationService, IInvocable //IJobService
var hbpoSeDetails = ObjectMapper.Map<List<TM_BJBMPT_JIT_RECORD>, List<HBPO_SE_DETAIL>>(wmsRecords); var hbpoSeDetails = ObjectMapper.Map<List<TM_BJBMPT_JIT_RECORD>, List<HBPO_SE_DETAIL>>(wmsRecords);
if (hbpoSeDetails.Any()) if (hbpoSeDetails.Any())
{ {
hbpoSeDetails.ForEach(hbpoSeDetail => hbpoSeDetail.KeyCode = hbpoSeDetail.PN + hbpoSeDetail.LU);
await _hbpoSeDetailRepository.InsertManyAsync(hbpoSeDetails); await _hbpoSeDetailRepository.InsertManyAsync(hbpoSeDetails);
if (syncPositionFlag != null) if (syncPositionFlag != null)
@ -131,6 +132,7 @@ public class HBPOSeSyncAppService : ApplicationService, IInvocable //IJobService
var hbpoSeDetails = ObjectMapper.Map<List<TM_BJBMPT_JIS_RECORD>, List<HBPO_SE_DETAIL>>(wmsRecords); var hbpoSeDetails = ObjectMapper.Map<List<TM_BJBMPT_JIS_RECORD>, List<HBPO_SE_DETAIL>>(wmsRecords);
if (hbpoSeDetails.Any()) if (hbpoSeDetails.Any())
{ {
hbpoSeDetails.ForEach(hbpoSeDetail => hbpoSeDetail.KeyCode = hbpoSeDetail.PN + hbpoSeDetail.LU);
await _hbpoSeDetailRepository.InsertManyAsync(hbpoSeDetails); await _hbpoSeDetailRepository.InsertManyAsync(hbpoSeDetails);
if (syncPositionFlag != null) if (syncPositionFlag != null)

2
code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/BBAC_SE_DETAIL.cs

@ -63,7 +63,7 @@ public class BBAC_SE_DETAIL:SE_BASE
public string Oper { get; set; } public string Oper { get; set; }
/// <summary> /// <summary>
/// /// 排序单号
/// </summary> /// </summary>
[Display(Name = "排序单号")] [Display(Name = "排序单号")]
public string OrderNum { get; set; } public string OrderNum { get; set; }

2
code/src/Modules/SettleAccount/src/SettleAccount.Domain/Entities/BQ/HBPO_SE_DETAIL.cs

@ -62,7 +62,7 @@ public class HBPO_SE_DETAIL :SE_BASE
public string Oper { get; set; } public string Oper { get; set; }
/// <summary> /// <summary>
/// /// 排序单号
/// </summary> /// </summary>
[Display(Name = "排序单号")] [Display(Name = "排序单号")]
public string OrderNum { get; set; } public string OrderNum { get; set; }

Loading…
Cancel
Save