安虹睿 11 months ago
parent
commit
be7c11f251
  1. 131
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Dtos/ImportRecordCreateDto.cs
  2. 197
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Dtos/ImportRecordDto.cs
  3. 131
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Dtos/ImportRecordHisCreateDto.cs
  4. 132
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Dtos/ImportRecordHisDto.cs
  5. 86
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Dtos/ImportRecordInputDto.cs
  6. 69
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Interfaces/IImportRecordAppService.cs
  7. 5
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/Extends/MenBanReports/MenBanPrintInputDto.cs
  8. 31
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/MsgBaseData/BaseConfig/Dto/BaseConfigDto.cs
  9. 5
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/WY.NewJit.Application.Contracts.csproj
  10. 589
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/WY.NewJit.Application.Contracts.xml
  11. 476
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/EdiReceive/ImportRecordAppService.cs
  12. 81
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/MsgBaseData/BaseConfig/BaseGonfigService.cs
  13. 9
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/NewJitApplicationAutoMapperProfile.cs
  14. 33
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/PrintTable/WaitPrintAppService.cs
  15. 141
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/WY.NewJit.Application.xml
  16. 2
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.DbMigrator/appsettings.json
  17. 10
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain.Shared/Common/ExtMethod.cs
  18. 1
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain.Shared/Common/SwaggerGroupConsts.cs
  19. 139
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/EdiReceive/Entitys/ImportRecord.cs
  20. 139
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/EdiReceive/Entitys/ImportRecordHis.cs
  21. 17
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/EdiReceive/Entitys/LastImportHostSN.cs
  22. 32
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/MsgBaseData/Entitys/BaseConfig.cs
  23. 22
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/MsgBaseData/Services/BaseGonfigDomainService.cs
  24. 1
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/WY.NewJit.Domain.csproj
  25. 263
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20240109072607_Add_ImportRec_Table.Designer.cs
  26. 107
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20240109072607_Add_ImportRec_Table.cs
  27. 259
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/NewJitMigrationsDbContextModelSnapshot.cs
  28. 12
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore/EntityFrameworkCore/NewJitDbContext.cs
  29. 94
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore/EntityFrameworkCore/NewJitDbContextModelCreatingExtensions.cs
  30. 8
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Web/appsettings.json

131
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Dtos/ImportRecordCreateDto.cs

@ -0,0 +1,131 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace WY.NewJit.EdiReceive.Dtos
{
public class ImportRecordCreateDto
{
/// <summary>
/// 工厂
/// </summary>
public virtual string Factory { get; set; }
/// <summary>
/// 车位
/// </summary>
public virtual string VehicleLocation { get; set; }
/// <summary>
/// 工位
/// </summary>
public virtual string WorkLocation { get; set; }
/// <summary>
/// 底盘号
/// </summary>
public virtual string Vin { get; set; }
/// <summary>
/// 车身号
/// </summary>
public virtual string VehicleBodyCode { get; set; }
/// <summary>
/// 车型代码
/// </summary>
public virtual string VehicleModelCode { get; set; }
/// <summary>
/// 车型名称
/// </summary>
public virtual string VehicleModelName { get; set; }
/// <summary>
/// 车型描述
/// </summary>
public virtual string VehicleModelDesc { get; set; }
/// <summary>
/// 规格
/// </summary>
public virtual string Spec { get; set; }
/// <summary>
/// 规格说明
/// </summary>
public virtual string SpecDesc { get; set; }
/// <summary>
/// 类别
/// </summary>
public virtual string Type { get; set; }
/// <summary>
/// 涂装下线时间
/// </summary>
public virtual DateTime? PaintOfflineTime { get; set; }
/// <summary>
/// 总装上线时间
/// </summary>
public virtual DateTime? OnlineTime { get; set; }
/// <summary>
/// 内饰颜色
/// </summary>
public virtual string InteriorColor { get; set; }
/// <summary>
/// 外饰颜色
/// </summary>
public virtual string ExteriorTrimmingColor { get; set; }
/// <summary>
/// 序列号
/// </summary>
public virtual string SerialNum { get; set; }
/// <summary>
/// 流水号
/// </summary>
public virtual int HostSN { get; set; }
/// <summary>
/// 生产线:A/B
/// </summary>
public virtual string ProductLine { get; set; }
/// <summary>
/// 目的
/// </summary>
public virtual string Target { get; set; }
/// <summary>
/// 备注
/// </summary>
public virtual string Remark { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public virtual DateTime? CreateTime { get; set; }
/// <summary>
/// 创建人
/// </summary>
public virtual string CreatePerson { get; set; }
public virtual DateTime? ImportTime { get; set; }
public virtual string ImportPerson { get; set; }
public virtual string Remark2 { get; set; }
public virtual string Remark3 { get; set; }
public virtual string Remark4 { get; set; }
public virtual string Remark5 { get; set; }
}
}

197
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Dtos/ImportRecordDto.cs

@ -0,0 +1,197 @@
using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
using System;
using System.Collections.Generic;
using System.Text;
namespace WY.NewJit.EdiReceive.Dtos
{
/// <summary>
/// 导入记录表
/// </summary>
[ExcelExporter(Name = "导入记录表", AutoFitAllColumn = true, MaxRowNumberOnASheet = 50000)] //一个Sheet最大允许的行数,设置了之后将输出多个Sheet
[Serializable]
public class ImportRecordDto
{
[ExporterHeader(IsIgnore = true)]
[ImporterHeader(IsIgnore = true)]
public virtual Guid Id { get; set; }
/// <summary>
/// 工厂
/// </summary>
[ExporterHeader(DisplayName = "工厂")]
[ImporterHeader(Name = "工厂")]
public virtual string Factory { get; set; }
/// <summary>
/// 车位
/// </summary>
[ExporterHeader(DisplayName = "车位")]
[ImporterHeader(Name = "车位")]
public virtual string VehicleLocation { get; set; }
/// <summary>
/// 工位
/// </summary>
[ExporterHeader(DisplayName = "工位")]
[ImporterHeader(Name = "工位")]
public virtual string WorkLocation { get; set; }
/// <summary>
/// 底盘号
/// </summary>
[ExporterHeader(DisplayName = "底盘号")]
[ImporterHeader(Name = "底盘号")]
public virtual string Vin { get; set; }
/// <summary>
/// 车身号
/// </summary>
[ExporterHeader(DisplayName = "车身号")]
[ImporterHeader(Name = "车身号")]
public virtual string VehicleBodyCode { get; set; }
/// <summary>
/// 车型代码
/// </summary>
[ExporterHeader(DisplayName = "车型代码")]
[ImporterHeader(Name = "车型代码")]
public virtual string VehicleModelCode { get; set; }
/// <summary>
/// 车型名称
/// </summary>
[ExporterHeader(DisplayName = "车型名称")]
[ImporterHeader(Name = "车型名称")]
public virtual string VehicleModelName { get; set; }
/// <summary>
/// 车型描述
/// </summary>
[ExporterHeader(DisplayName = "车型描述")]
[ImporterHeader(Name = "车型描述")]
public virtual string VehicleModelDesc { get; set; }
/// <summary>
/// 规格
/// </summary>
[ExporterHeader(DisplayName = "规格")]
[ImporterHeader(Name = "规格")]
public virtual string Spec { get; set; }
/// <summary>
/// 规格说明
/// </summary>
[ExporterHeader(DisplayName = "规格说明")]
[ImporterHeader(Name = "规格说明")]
public virtual string SpecDesc { get; set; }
/// <summary>
/// 类别
/// </summary>
[ExporterHeader(DisplayName = "类别")]
[ImporterHeader(Name = "类别")]
public virtual string Type { get; set; }
/// <summary>
/// 涂装下线时间
/// </summary>
[ExporterHeader(DisplayName = "涂装下线时间", Format ="yyyy/MM/dd HH:mm:ss")]
[ImporterHeader(Name = "涂装下线时间", Format = "yyyy/MM/dd HH:mm:ss")]
public virtual DateTime? PaintOfflineTime { get; set; }
/// <summary>
/// 总装上线时间
/// </summary>
[ExporterHeader(DisplayName = "总装上线时间", Format = "yyyy/MM/dd HH:mm:ss")]
[ImporterHeader(Name = "总装上线时间", Format = "yyyy/MM/dd HH:mm:ss")]
public virtual DateTime? OnlineTime { get; set; }
/// <summary>
/// 内饰颜色
/// </summary>
[ExporterHeader(DisplayName = "内饰颜色")]
[ImporterHeader(Name = "内饰颜色")]
public virtual string InteriorColor { get; set; }
/// <summary>
/// 外饰颜色
/// </summary>
[ExporterHeader(DisplayName = "外饰颜色")]
[ImporterHeader(Name = "外饰颜色")]
public virtual string ExteriorTrimmingColor { get; set; }
/// <summary>
/// 序列号
/// </summary>
[ExporterHeader(DisplayName = "序列号")]
[ImporterHeader(Name = "序列号")]
public virtual string SerialNum { get; set; }
/// <summary>
/// 流水号
/// </summary>
[ExporterHeader(DisplayName = "流水号")]
[ImporterHeader(Name = "流水号")]
public virtual int HostSN { get; set; }
/// <summary>
/// 生产线:A/B
/// </summary>
[ExporterHeader(DisplayName = "生产线:A/B")]
[ImporterHeader(Name = "生产线:A/B")]
public virtual string ProductLine { get; set; }
/// <summary>
/// 目的
/// </summary>
[ExporterHeader(DisplayName = "目的")]
[ImporterHeader(Name = "目的")]
public virtual string Target { get; set; }
/// <summary>
/// 备注
/// </summary>
[ExporterHeader(DisplayName = "备注")]
[ImporterHeader(Name = "备注")]
public virtual string Remark { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[ExporterHeader(DisplayName = "创建时间", Format = "yyyy/MM/dd HH:mm:ss")]
[ImporterHeader(Name = "创建时间", Format = "yyyy/MM/dd HH:mm:ss")]
public virtual DateTime? CreateTime { get; set; }
/// <summary>
/// 创建人
/// </summary>
[ExporterHeader(DisplayName = "创建人")]
[ImporterHeader(Name = "创建人")]
public virtual string CreatePerson { get; set; }
[ExporterHeader(IsIgnore = true)]
[ImporterHeader(IsIgnore = true)]
public virtual DateTime? ImportTime { get; set; }
[ExporterHeader(IsIgnore = true)]
[ImporterHeader(IsIgnore = true)]
public virtual string ImportPerson { get; set; }
[ExporterHeader(IsIgnore = true)]
[ImporterHeader(IsIgnore = true)]
public virtual string Remark2 { get; set; }
[ExporterHeader(IsIgnore = true)]
[ImporterHeader(IsIgnore = true)]
public virtual string Remark3 { get; set; }
[ExporterHeader(IsIgnore = true)]
[ImporterHeader(IsIgnore = true)]
public virtual string Remark4 { get; set; }
[ExporterHeader(IsIgnore = true)]
[ImporterHeader(IsIgnore = true)]
public virtual string Remark5 { get; set; }
}
}

131
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Dtos/ImportRecordHisCreateDto.cs

@ -0,0 +1,131 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace WY.NewJit.EdiReceive.Dtos
{
public class ImportRecordHisCreateDto
{
/// <summary>
/// 工厂
/// </summary>
public virtual string Factory { get; set; }
/// <summary>
/// 车位
/// </summary>
public virtual string VehicleLocation { get; set; }
/// <summary>
/// 工位
/// </summary>
public virtual string WorkLocation { get; set; }
/// <summary>
/// 底盘号
/// </summary>
public virtual string Vin { get; set; }
/// <summary>
/// 车身号
/// </summary>
public virtual string VehicleBodyCode { get; set; }
/// <summary>
/// 车型代码
/// </summary>
public virtual string VehicleModelCode { get; set; }
/// <summary>
/// 车型名称
/// </summary>
public virtual string VehicleModelName { get; set; }
/// <summary>
/// 车型描述
/// </summary>
public virtual string VehicleModelDesc { get; set; }
/// <summary>
/// 规格
/// </summary>
public virtual string Spec { get; set; }
/// <summary>
/// 规格说明
/// </summary>
public virtual string SpecDesc { get; set; }
/// <summary>
/// 类别
/// </summary>
public virtual string Type { get; set; }
/// <summary>
/// 涂装下线时间
/// </summary>
public virtual DateTime? PaintOfflineTime { get; set; }
/// <summary>
/// 总装上线时间
/// </summary>
public virtual DateTime? OnlineTime { get; set; }
/// <summary>
/// 内饰颜色
/// </summary>
public virtual string InteriorColor { get; set; }
/// <summary>
/// 外饰颜色
/// </summary>
public virtual string ExteriorTrimmingColor { get; set; }
/// <summary>
/// 序列号
/// </summary>
public virtual string SerialNum { get; set; }
/// <summary>
/// 流水号
/// </summary>
public virtual int HostSN { get; set; }
/// <summary>
/// 生产线:A/B
/// </summary>
public virtual string ProductLine { get; set; }
/// <summary>
/// 目的
/// </summary>
public virtual string Target { get; set; }
/// <summary>
/// 备注
/// </summary>
public virtual string Remark { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public virtual DateTime? CreateTime { get; set; }
/// <summary>
/// 创建人
/// </summary>
public virtual string CreatePerson { get; set; }
public virtual DateTime? ImportTime { get; set; }
public virtual string ImportPerson { get; set; }
public virtual string Remark2 { get; set; }
public virtual string Remark3 { get; set; }
public virtual string Remark4 { get; set; }
public virtual string Remark5 { get; set; }
}
}

132
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Dtos/ImportRecordHisDto.cs

@ -0,0 +1,132 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace WY.NewJit.EdiReceive.Dtos
{
public class ImportRecordHisDto
{
public Guid Id { get; set; }
/// <summary>
/// 工厂
/// </summary>
public virtual string Factory { get; set; }
/// <summary>
/// 车位
/// </summary>
public virtual string VehicleLocation { get; set; }
/// <summary>
/// 工位
/// </summary>
public virtual string WorkLocation { get; set; }
/// <summary>
/// 底盘号
/// </summary>
public virtual string Vin { get; set; }
/// <summary>
/// 车身号
/// </summary>
public virtual string VehicleBodyCode { get; set; }
/// <summary>
/// 车型代码
/// </summary>
public virtual string VehicleModelCode { get; set; }
/// <summary>
/// 车型名称
/// </summary>
public virtual string VehicleModelName { get; set; }
/// <summary>
/// 车型描述
/// </summary>
public virtual string VehicleModelDesc { get; set; }
/// <summary>
/// 规格
/// </summary>
public virtual string Spec { get; set; }
/// <summary>
/// 规格说明
/// </summary>
public virtual string SpecDesc { get; set; }
/// <summary>
/// 类别
/// </summary>
public virtual string Type { get; set; }
/// <summary>
/// 涂装下线时间
/// </summary>
public virtual DateTime? PaintOfflineTime { get; set; }
/// <summary>
/// 总装上线时间
/// </summary>
public virtual DateTime? OnlineTime { get; set; }
/// <summary>
/// 内饰颜色
/// </summary>
public virtual string InteriorColor { get; set; }
/// <summary>
/// 外饰颜色
/// </summary>
public virtual string ExteriorTrimmingColor { get; set; }
/// <summary>
/// 序列号
/// </summary>
public virtual string SerialNum { get; set; }
/// <summary>
/// 流水号
/// </summary>
public virtual int HostSN { get; set; }
/// <summary>
/// 生产线:A/B
/// </summary>
public virtual string ProductLine { get; set; }
/// <summary>
/// 目的
/// </summary>
public virtual string Target { get; set; }
/// <summary>
/// 备注
/// </summary>
public virtual string Remark { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public virtual DateTime? CreateTime { get; set; }
/// <summary>
/// 创建人
/// </summary>
public virtual string CreatePerson { get; set; }
public virtual DateTime? ImportTime { get; set; }
public virtual string ImportPerson { get; set; }
public virtual string Remark2 { get; set; }
public virtual string Remark3 { get; set; }
public virtual string Remark4 { get; set; }
public virtual string Remark5 { get; set; }
}
}

86
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Dtos/ImportRecordInputDto.cs

@ -0,0 +1,86 @@
using System;
using System.Collections.Generic;
using System.Text;
using WY.NewJit.Common;
namespace WY.NewJit.EdiReceive.Dtos
{
public class ImportRecordInputDto : PagedAndSortedBase
{
/// <summary>
/// 工厂
/// </summary>
public virtual string Factory { get; set; }
/// <summary>
/// 底盘号
/// </summary>
public virtual string Vin { get; set; }
/// <summary>
/// 车型代码
/// </summary>
public virtual string VehicleModelCode { get; set; }
/// <summary>
/// 涂装下线时间起
/// </summary>
public virtual DateTime? PaintOfflineTimeBegin { get; set; }
/// <summary>
/// 涂装下线时间止
/// </summary>
public virtual DateTime? PaintOfflineTimeEnd { get; set; }
/// <summary>
/// 总装上线时间起
/// </summary>
public virtual DateTime? OnlineTimeBegin { get; set; }
/// <summary>
/// 总装上线时间止
/// </summary>
public virtual DateTime? OnlineTimeEnd { get; set; }
/// <summary>
/// 序列号起
/// </summary>
public virtual string SerialNumBegin { get; set; }
/// <summary>
/// 序列号止
/// </summary>
public virtual string SerialNumEnd { get; set; }
/// <summary>
/// 流水号起
/// </summary>
public virtual int? HostSNBegin { get; set; }
/// <summary>
/// 流水号止
/// </summary>
public virtual int? HostSNEnd { get; set; }
/// <summary>
/// 生产线:A/B
/// </summary>
public virtual string ProductLine { get; set; }
/// <summary>
/// 创建时间起
/// </summary>
public virtual DateTime? CreateTimeBegin { get; set; }
/// <summary>
/// 创建时间止
/// </summary>
public virtual DateTime? CreateTimeEnd { get; set; }
public virtual DateTime? ImportTimeBegin { get; set; }
public virtual DateTime? ImportTimeEnd { get; set; }
}
}

69
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/EdiReceive/Interfaces/IImportRecordAppService.cs

@ -0,0 +1,69 @@
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;
using WY.NewJit.EdiReceive.Dtos;
namespace WY.NewJit.EdiReceive.Interfaces
{
public interface IImportRecordAppService : IApplicationService
{
#region 接口方法
/// 根据筛选条件获取分页实体列表
/// </summary>
/// <param name="input">输入查询条件</param>
/// <param name="page">输入分页条件</param>
/// <returns>返回符合条件的排序分页列表</returns>
Task<PagedResultDto<ImportRecordDto>> GetListAsync(ImportRecordInputDto input);
/// <summary>
/// 按主键获取唯一实体
/// </summary>
/// <param name="id">主键</param>
/// <returns>实体信息</returns>
Task<ObjectResultDto<ImportRecordDto>> GetAsync(Guid id);
/// <summary>
/// 添加实体
/// </summary>
/// <param name="input">添加内容</param>
/// <returns>执行成功返回真</returns>
Task<ObjectResultDto<Guid>> CreateAsync(ImportRecordCreateDto input);
/// <summary>
/// 修改实体
/// </summary>
/// <param name="id">更新主键</param>
/// <param name="input">修改内容</param>
/// <returns>执行成功返回真</returns>
Task<ObjectResultDto> UpdateAsync(Guid id, ImportRecordCreateDto input);
/// <summary>
/// 删除实体
/// </summary>
/// <param name="id">删除主键</param>
/// <returns>执行成功返回真</returns>
Task<ObjectResultDto> DeleteAsync(string id);
/// <summary>
/// 导出信息
/// </summary>
/// <param name="input">导出查询条件</param>
/// <returns>执行成功返回真</returns>
Task<ObjectResultDto<string>> ExportAsync(ImportRecordInputDto input);
/// <summary>
/// 导入信息
/// </summary>
/// <param name="input">导入文件流</param>
/// <returns>执行成功返回真</returns>
Task<ObjectResultDto> ImportAsync([FromForm] IFormFileCollection files);
#endregion
}
}

5
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/Extends/MenBanReports/MenBanPrintInputDto.cs

@ -33,6 +33,11 @@ namespace WY.NewJit.Extends
/// </summary> /// </summary>
public virtual int EndHostSN { get; set; } public virtual int EndHostSN { get; set; }
/// <summary>
/// 打印条数
/// </summary>
public virtual int PrintCount { get; set; }
#region 重新打印、补打时使用 #region 重新打印、补打时使用
/// <summary> /// <summary>
/// 重新打印时使用。装箱单主表ID列表,报废时传入一个,重打时可传入多个 /// 重新打印时使用。装箱单主表ID列表,报废时传入一个,重打时可传入多个

31
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/MsgBaseData/BaseConfig/Dto/BaseConfigDto.cs

@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Text;
using Volo.Abp.Application.Dtos;
namespace WY.NewJit.MsgBaseData
{
/// <summary>
/// 基础参数配置表
/// </summary>
[Serializable]
public class BaseConfigDto : EntityDto<Guid>
{
/// <summary>
/// 参数名称
/// </summary>
public virtual string ParamName { get; set; }
/// <summary>
/// 参数值
/// </summary>
public virtual string ParamValue { get; set; }
/// <summary>
/// 状态
/// </summary>
public virtual int State { get; set; }
/// <summary>
/// 备注
/// </summary>
public virtual int Remark { get; set; }
}
}

5
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/WY.NewJit.Application.Contracts.csproj

@ -22,6 +22,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.Mvc.Core" Version="2.2.0" />
<PackageReference Include="Volo.Abp.ObjectExtending" Version="4.3.3" /> <PackageReference Include="Volo.Abp.ObjectExtending" Version="4.3.3" />
<PackageReference Include="Volo.Abp.Account.Application.Contracts" Version="4.3.3" /> <PackageReference Include="Volo.Abp.Account.Application.Contracts" Version="4.3.3" />
<PackageReference Include="Volo.Abp.Identity.Application.Contracts" Version="4.3.3" /> <PackageReference Include="Volo.Abp.Identity.Application.Contracts" Version="4.3.3" />
@ -31,4 +32,8 @@
<PackageReference Include="Volo.Abp.SettingManagement.Application.Contracts" Version="4.3.3" /> <PackageReference Include="Volo.Abp.SettingManagement.Application.Contracts" Version="4.3.3" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<Folder Include="MsgBaseData\BaseConfig\Interfaces\" />
</ItemGroup>
</Project> </Project>

589
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/WY.NewJit.Application.Contracts.xml

@ -4,6 +4,565 @@
<name>WY.NewJit.Application.Contracts</name> <name>WY.NewJit.Application.Contracts</name>
</assembly> </assembly>
<members> <members>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordCreateDto.Factory">
<summary>
工厂
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordCreateDto.VehicleLocation">
<summary>
车位
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordCreateDto.WorkLocation">
<summary>
工位
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordCreateDto.Vin">
<summary>
底盘号
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordCreateDto.VehicleBodyCode">
<summary>
车身号
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordCreateDto.VehicleModelCode">
<summary>
车型代码
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordCreateDto.VehicleModelName">
<summary>
车型名称
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordCreateDto.VehicleModelDesc">
<summary>
车型描述
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordCreateDto.Spec">
<summary>
规格
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordCreateDto.SpecDesc">
<summary>
规格说明
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordCreateDto.Type">
<summary>
类别
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordCreateDto.PaintOfflineTime">
<summary>
涂装下线时间
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordCreateDto.OnlineTime">
<summary>
总装上线时间
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordCreateDto.InteriorColor">
<summary>
内饰颜色
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordCreateDto.ExteriorTrimmingColor">
<summary>
外饰颜色
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordCreateDto.SerialNum">
<summary>
序列号
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordCreateDto.HostSN">
<summary>
流水号
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordCreateDto.ProductLine">
<summary>
生产线:A/B
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordCreateDto.Target">
<summary>
目的
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordCreateDto.Remark">
<summary>
备注
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordCreateDto.CreateTime">
<summary>
创建时间
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordCreateDto.CreatePerson">
<summary>
创建人
</summary>
</member>
<member name="T:WY.NewJit.EdiReceive.Dtos.ImportRecordDto">
<summary>
导入记录表
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordDto.Factory">
<summary>
工厂
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordDto.VehicleLocation">
<summary>
车位
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordDto.WorkLocation">
<summary>
工位
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordDto.Vin">
<summary>
底盘号
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordDto.VehicleBodyCode">
<summary>
车身号
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordDto.VehicleModelCode">
<summary>
车型代码
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordDto.VehicleModelName">
<summary>
车型名称
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordDto.VehicleModelDesc">
<summary>
车型描述
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordDto.Spec">
<summary>
规格
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordDto.SpecDesc">
<summary>
规格说明
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordDto.Type">
<summary>
类别
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordDto.PaintOfflineTime">
<summary>
涂装下线时间
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordDto.OnlineTime">
<summary>
总装上线时间
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordDto.InteriorColor">
<summary>
内饰颜色
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordDto.ExteriorTrimmingColor">
<summary>
外饰颜色
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordDto.SerialNum">
<summary>
序列号
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordDto.HostSN">
<summary>
流水号
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordDto.ProductLine">
<summary>
生产线:A/B
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordDto.Target">
<summary>
目的
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordDto.Remark">
<summary>
备注
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordDto.CreateTime">
<summary>
创建时间
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordDto.CreatePerson">
<summary>
创建人
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisCreateDto.Factory">
<summary>
工厂
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisCreateDto.VehicleLocation">
<summary>
车位
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisCreateDto.WorkLocation">
<summary>
工位
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisCreateDto.Vin">
<summary>
底盘号
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisCreateDto.VehicleBodyCode">
<summary>
车身号
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisCreateDto.VehicleModelCode">
<summary>
车型代码
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisCreateDto.VehicleModelName">
<summary>
车型名称
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisCreateDto.VehicleModelDesc">
<summary>
车型描述
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisCreateDto.Spec">
<summary>
规格
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisCreateDto.SpecDesc">
<summary>
规格说明
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisCreateDto.Type">
<summary>
类别
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisCreateDto.PaintOfflineTime">
<summary>
涂装下线时间
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisCreateDto.OnlineTime">
<summary>
总装上线时间
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisCreateDto.InteriorColor">
<summary>
内饰颜色
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisCreateDto.ExteriorTrimmingColor">
<summary>
外饰颜色
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisCreateDto.SerialNum">
<summary>
序列号
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisCreateDto.HostSN">
<summary>
流水号
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisCreateDto.ProductLine">
<summary>
生产线:A/B
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisCreateDto.Target">
<summary>
目的
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisCreateDto.Remark">
<summary>
备注
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisCreateDto.CreateTime">
<summary>
创建时间
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisCreateDto.CreatePerson">
<summary>
创建人
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisDto.Factory">
<summary>
工厂
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisDto.VehicleLocation">
<summary>
车位
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisDto.WorkLocation">
<summary>
工位
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisDto.Vin">
<summary>
底盘号
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisDto.VehicleBodyCode">
<summary>
车身号
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisDto.VehicleModelCode">
<summary>
车型代码
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisDto.VehicleModelName">
<summary>
车型名称
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisDto.VehicleModelDesc">
<summary>
车型描述
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisDto.Spec">
<summary>
规格
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisDto.SpecDesc">
<summary>
规格说明
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisDto.Type">
<summary>
类别
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisDto.PaintOfflineTime">
<summary>
涂装下线时间
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisDto.OnlineTime">
<summary>
总装上线时间
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisDto.InteriorColor">
<summary>
内饰颜色
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisDto.ExteriorTrimmingColor">
<summary>
外饰颜色
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisDto.SerialNum">
<summary>
序列号
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisDto.HostSN">
<summary>
流水号
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisDto.ProductLine">
<summary>
生产线:A/B
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisDto.Target">
<summary>
目的
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisDto.Remark">
<summary>
备注
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisDto.CreateTime">
<summary>
创建时间
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordHisDto.CreatePerson">
<summary>
创建人
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordInputDto.Factory">
<summary>
工厂
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordInputDto.Vin">
<summary>
底盘号
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordInputDto.VehicleModelCode">
<summary>
车型代码
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordInputDto.PaintOfflineTimeBegin">
<summary>
涂装下线时间起
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordInputDto.PaintOfflineTimeEnd">
<summary>
涂装下线时间止
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordInputDto.OnlineTimeBegin">
<summary>
总装上线时间起
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordInputDto.OnlineTimeEnd">
<summary>
总装上线时间止
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordInputDto.SerialNumBegin">
<summary>
序列号起
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordInputDto.SerialNumEnd">
<summary>
序列号止
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordInputDto.HostSNBegin">
<summary>
流水号起
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordInputDto.HostSNEnd">
<summary>
流水号止
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordInputDto.ProductLine">
<summary>
生产线:A/B
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordInputDto.CreateTimeBegin">
<summary>
创建时间起
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.Dtos.ImportRecordInputDto.CreateTimeEnd">
<summary>
创建时间止
</summary>
</member>
<!-- Badly formed XML comment ignored for member "M:WY.NewJit.EdiReceive.Interfaces.IImportRecordAppService.GetListAsync(WY.NewJit.EdiReceive.Dtos.ImportRecordInputDto)" -->
<member name="M:WY.NewJit.EdiReceive.Interfaces.IImportRecordAppService.GetAsync(System.Guid)">
<summary>
按主键获取唯一实体
</summary>
<param name="id">主键</param>
<returns>实体信息</returns>
</member>
<member name="M:WY.NewJit.EdiReceive.Interfaces.IImportRecordAppService.CreateAsync(WY.NewJit.EdiReceive.Dtos.ImportRecordCreateDto)">
<summary>
添加实体
</summary>
<param name="input">添加内容</param>
<returns>执行成功返回真</returns>
</member>
<member name="M:WY.NewJit.EdiReceive.Interfaces.IImportRecordAppService.UpdateAsync(System.Guid,WY.NewJit.EdiReceive.Dtos.ImportRecordCreateDto)">
<summary>
修改实体
</summary>
<param name="id">更新主键</param>
<param name="input">修改内容</param>
<returns>执行成功返回真</returns>
</member>
<member name="M:WY.NewJit.EdiReceive.Interfaces.IImportRecordAppService.DeleteAsync(System.String)">
<summary>
删除实体
</summary>
<param name="id">删除主键</param>
<returns>执行成功返回真</returns>
</member>
<member name="M:WY.NewJit.EdiReceive.Interfaces.IImportRecordAppService.ExportAsync(WY.NewJit.EdiReceive.Dtos.ImportRecordInputDto)">
<summary>
导出信息
</summary>
<param name="input">导出查询条件</param>
<returns>执行成功返回真</returns>
</member>
<member name="M:WY.NewJit.EdiReceive.Interfaces.IImportRecordAppService.ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection)">
<summary>
导入信息
</summary>
<param name="input">导入文件流</param>
<returns>执行成功返回真</returns>
</member>
<member name="T:WY.NewJit.Extends.MenBanPackingListDto"> <member name="T:WY.NewJit.Extends.MenBanPackingListDto">
<summary> <summary>
门板装箱单打印主实体 门板装箱单打印主实体
@ -209,6 +768,11 @@
终止大众顺序号 终止大众顺序号
</summary> </summary>
</member> </member>
<member name="P:WY.NewJit.Extends.MenBanPrintInputDto.PrintCount">
<summary>
打印条数
</summary>
</member>
<member name="P:WY.NewJit.Extends.MenBanPrintInputDto.ReportIdList"> <member name="P:WY.NewJit.Extends.MenBanPrintInputDto.ReportIdList">
<summary> <summary>
重新打印时使用。装箱单主表ID列表,报废时传入一个,重打时可传入多个 重新打印时使用。装箱单主表ID列表,报废时传入一个,重打时可传入多个
@ -940,6 +1504,31 @@
<param name="vehicleAssemblyId">整车总成Id</param> <param name="vehicleAssemblyId">整车总成Id</param>
<returns>Erp总成列表</returns> <returns>Erp总成列表</returns>
</member> </member>
<member name="T:WY.NewJit.MsgBaseData.BaseConfigDto">
<summary>
基础参数配置表
</summary>
</member>
<member name="P:WY.NewJit.MsgBaseData.BaseConfigDto.ParamName">
<summary>
参数名称
</summary>
</member>
<member name="P:WY.NewJit.MsgBaseData.BaseConfigDto.ParamValue">
<summary>
参数值
</summary>
</member>
<member name="P:WY.NewJit.MsgBaseData.BaseConfigDto.State">
<summary>
状态
</summary>
</member>
<member name="P:WY.NewJit.MsgBaseData.BaseConfigDto.Remark">
<summary>
备注
</summary>
</member>
<member name="T:WY.NewJit.MsgBaseData.DicItemDto"> <member name="T:WY.NewJit.MsgBaseData.DicItemDto">
<summary> <summary>
通用字典信息DTO 通用字典信息DTO

476
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/EdiReceive/ImportRecordAppService.cs

@ -0,0 +1,476 @@
using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Core.Models;
using Magicodes.ExporterAndImporter.Excel;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using Shouldly;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Dtos;
using Volo.Abp.Application.Services;
using Volo.Abp.BlobStoring;
using Volo.Abp.Domain.Repositories;
using Volo.Abp.Uow;
using WY.NewJit.Common;
using WY.NewJit.EdiReceive.Dtos;
using WY.NewJit.EdiReceive.Entitys;
using WY.NewJit.EdiReceive.Interfaces;
using WY.NewJit.EntityFrameworkCore;
using WY.NewJit.MsgBaseData;
namespace WY.NewJit.EdiReceive
{
/// <summary>
/// 零件管理应用服务实现
/// </summary>
[Microsoft.AspNetCore.Mvc.Route("api/newjit/import-record")]
[ApiExplorerSettings(GroupName = SwaggerGroupConsts.报文接收)]
public class ImportRecordAppService : ApplicationService, IImportRecordAppService
{
#region 成员
/// <summary>
/// 零件仓储
/// </summary>
private readonly IRepository<ImportRecord, Guid> _importRecordRepository;
/// <summary>
/// 日志
/// </summary>
private ILogger<ImportRecordAppService> _logger;
/// <summary>
/// Dapper仓储
/// </summary>
private readonly NewJitDapperRepository _newJitDapperRepository;
/// <summary>
/// BLOB存储
/// </summary>
private readonly IBlobContainer<OurFileContainer> _blobContainer;
/// <summary>
/// 字典领域服务
/// </summary>
private readonly DicDomainService _dicDomainService;
/// <summary>
/// 错误信息前缀
/// </summary>
private string _errorMessagePrefix
{
get
{
return System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Name + ".";
}
}
#endregion
/// <summary>
/// 构造函数
/// </summary>
public ImportRecordAppService(
IRepository<ImportRecord, Guid> importRecordRepository,
ILogger<ImportRecordAppService> logger,
NewJitDapperRepository newJitDapperRepository,
IBlobContainer<OurFileContainer> blobContainer,
DicDomainService dicDomainService
)
{
_importRecordRepository = importRecordRepository;
_logger = logger;
_newJitDapperRepository = newJitDapperRepository;
_blobContainer = blobContainer;
_dicDomainService = dicDomainService;
}
#region 私有方法
private static string GetWhere(ImportRecordInputDto input)
{
string where = "";
if (input.Factory.HasValue())
{
where += string.Format(" and Factory = '{0}'", input.Factory);
}
if (input.Vin.HasValue())
{
where += string.Format(" and Vin = '{0}'", input.Vin);
}
if (input.VehicleModelCode.HasValue())
{
where += string.Format(" and VehicleModelCode = '{0}'", input.VehicleModelCode);
}
if (input.PaintOfflineTimeBegin.HasValue())
{
where += string.Format(" and PaintOfflineTime >= '{0}'", input.PaintOfflineTimeBegin);
}
if (input.PaintOfflineTimeEnd.HasValue())
{
where += string.Format(" and PaintOfflineTime <= '{0}'", input.PaintOfflineTimeEnd);
}
if (input.OnlineTimeBegin.HasValue())
{
where += string.Format(" and OnlineTime >= '{0}'", input.OnlineTimeBegin);
}
if (input.OnlineTimeEnd.HasValue())
{
where += string.Format(" and OnlineTime <= '{0}'", input.OnlineTimeEnd);
}
if (input.OnlineTimeBegin.HasValue())
{
where += string.Format(" and OnlineTime >= '{0}'", input.OnlineTimeBegin);
}
if (input.OnlineTimeEnd.HasValue())
{
where += string.Format(" and OnlineTime <= '{0}'", input.OnlineTimeEnd);
}
if (input.SerialNumBegin.HasValue())
{
where += string.Format(" and SerialNum >= '{0}'", input.SerialNumBegin);
}
if (input.SerialNumEnd.HasValue())
{
where += string.Format(" and SerialNum <= '{0}'", input.SerialNumEnd);
}
if (input.HostSNBegin.HasValue())
{
where += string.Format(" and HostSN >= '{0}'", input.HostSNBegin);
}
if (input.HostSNEnd.HasValue())
{
where += string.Format(" and HostSN <= '{0}'", input.HostSNEnd);
}
if (input.ProductLine.HasValue())
{
where += string.Format(" and ProductLine = '{0}'", input.ProductLine);
}
if (input.CreateTimeBegin.HasValue())
{
where += string.Format(" and CreateTime >= '{0}'", input.CreateTimeBegin);
}
if (input.CreateTimeEnd.HasValue())
{
where += string.Format(" and CreateTime <= '{0}'", input.CreateTimeEnd);
}
if (input.ImportTimeBegin.HasValue())
{
where += string.Format(" and ImportTime >= '{0}'", input.ImportTimeBegin);
}
if (input.ImportTimeEnd.HasValue())
{
where += string.Format(" and ImportTime <= '{0}'", input.ImportTimeEnd);
}
return where;
}
/// <summary>
/// 取单表记录总数
/// </summary>
/// <param name="tableName"></param>
/// <param name="where"></param>
/// <returns></returns>
private async Task<int> GetEntityCountAsync(string tableName, string where)
{
string sql = $"select count(*) from {tableName} where 1=1 {where}";
var ret = await _newJitDapperRepository.GetSingleBySqlAsync<int>(sql);
return ret;
}
/// <summary>
/// 取单表当前页数据
/// </summary>
/// <typeparam name="T"></typeparam>
/// <param name="tableName"></param>
/// <param name="where"></param>
/// <param name="orderFieldName"></param>
/// <param name="pageSize"></param>
/// <param name="pageIndex"></param>
/// <returns></returns>
private async Task<List<T>> GetEntityListAsync<T>(string tableName, string where, string orderFieldName, int pageSize, int pageIndex)
{
int takeNum = pageSize;
int skipNum = (pageIndex - 1) * pageSize;
string sql = $"select * from {tableName} where 1=1 {where} order by {orderFieldName} offset {skipNum} rows fetch next {takeNum} rows only";
var ret = await _newJitDapperRepository.GetListBySqlAsync<T>(sql);
return ret;
}
private async Task<List<T>> GetEntityListFromToAsync<T>(string tableName, string where, string orderFieldName, int skipNum, int takeNum)
{
string sql = $"select * from {tableName} where 1=1 {where} order by {orderFieldName} offset {skipNum} rows fetch next {takeNum} rows only";
var ret = await _newJitDapperRepository.GetListBySqlAsync<T>(sql);
return ret;
}
/// <summary>
/// 根据筛选条件获取实体列表
/// </summary>
private async Task<PagedResultDto<ImportRecordDto>> QueryByConditionAsync(ImportRecordInputDto input, PagedAndSortedBase page)
{
PagedResultDto<ImportRecordDto> ret = new PagedResultDto<ImportRecordDto>();
string where = GetWhere(input);
ret.TotalCount = await GetEntityCountAsync("FisImportRecord", where);
//计算分页
int skipNum = page.SkipCount;
int takeNum = page.MaxResultCount;
var lst = await GetEntityListFromToAsync<ImportRecordDto>("FisImportRecord", where, "HostSN", skipNum, takeNum);
ret.Items = lst;
return ret;
}
#endregion
#region 公有方法
/// <summary>
/// 根据筛选条件获取分页实体列表
/// </summary>
/// <param name="input">输入查询条件</param>
/// <returns>返回符合条件的排序分页列表</returns>
[HttpGet]
[UnitOfWork(false)]
[Route("list")]
public async Task<PagedResultDto<ImportRecordDto>> GetListAsync(ImportRecordInputDto input)
{
_logger.LogDebug(_errorMessagePrefix + "GetListAsync 进入");
PagedResultDto<ImportRecordDto> ret = new PagedResultDto<ImportRecordDto>();
try
{
ret = await QueryByConditionAsync(input, (PagedAndSortedBase)input);
return ret;
}
catch (Exception ex)
{
var msg = _errorMessagePrefix + "GetListAsync 执行出错:" + ex.Message;
_logger.LogError(msg);
return ret;
}
}
/// <summary>
/// 按主键获取唯一实体
/// </summary>
/// <param name="id">主键</param>
/// <returns>实体信息</returns>
[HttpGet]
[Route("{id}")]
public async Task<ObjectResultDto<ImportRecordDto>> GetAsync(Guid id)
{
_logger.LogDebug(_errorMessagePrefix + "GetAsync 进入");
ObjectResultDto<ImportRecordDto> ret = new ObjectResultDto<ImportRecordDto>();
try
{
ImportRecord sourceObj = await _importRecordRepository.GetAsync(id);
ImportRecordDto targetObj = ObjectMapper.Map<ImportRecord, ImportRecordDto>(sourceObj);
ret.Item = targetObj;
return ret;
}
catch (Exception ex)
{
ret.Status = false;
ret.Message = _errorMessagePrefix + "GetAsync 执行出错:" + ex.Message;
_logger.LogError(ret.Message);
return ret;
}
}
/// <summary>
/// 添加实体
/// </summary>
/// <param name="input">添加内容</param>
/// <returns>执行成功返回真</returns>
[HttpPost]
[UnitOfWork]
[Route("")]//create
public async Task<ObjectResultDto<Guid>> CreateAsync(ImportRecordCreateDto input)
{
_logger.LogDebug(_errorMessagePrefix + "CreateAsync 进入");
ObjectResultDto<Guid> ret = new ObjectResultDto<Guid>();
try
{
ImportRecord obj = ObjectMapper.Map<ImportRecordCreateDto, ImportRecord>(input);
ImportRecord obj2 = await _importRecordRepository.InsertAsync(obj);
ret.Item = obj2.Id; //返回添加对象的主键
return ret;
}
catch (Exception ex)
{
ret.Status = false;
ret.Message = _errorMessagePrefix + "CreateAsync 执行出错:" + ex.Message;
_logger.LogError(ret.Message);
return ret;
}
}
/// <summary>
/// 修改实体
/// </summary>
/// <param name="id">更新主键</param>
/// <param name="input">修改内容</param>
/// <returns>执行成功返回真</returns>
[HttpPut]
[UnitOfWork]
[Route("{id}")]//update/
public async Task<ObjectResultDto> UpdateAsync(Guid id, ImportRecordCreateDto input)
{
_logger.LogDebug(_errorMessagePrefix + "UpdateAsync 进入");
ObjectResultDto ret = new ObjectResultDto();
try
{
ImportRecord targetObj = await _importRecordRepository.GetAsync(id);
ObjectMapper.Map<ImportRecordCreateDto, ImportRecord>(input, targetObj);
await _importRecordRepository.UpdateAsync(targetObj);
return ret;
}
catch (Exception ex)
{
ret.Status = false;
ret.Message = _errorMessagePrefix + "UpdateAsync 执行出错:" + ex.Message;
_logger.LogError(ret.Message);
return ret;
}
}
/// <summary>
/// 删除实体
/// </summary>
/// <param name="id">删除主键</param>
/// <returns>执行成功返回真</returns>
[UnitOfWork]
[HttpDelete]
[Route("{id}")]//delete/
public async Task<ObjectResultDto> DeleteAsync(string id)
{
_logger.LogDebug(_errorMessagePrefix + "DeleteAsync 进入");
ObjectResultDto ret = new ObjectResultDto();
try
{
Guid guid = Guid.Parse(id);
await _importRecordRepository.DeleteAsync(guid);
return ret;
}
catch (Exception ex)
{
ret.Status = false;
ret.Message = _errorMessagePrefix + "DeleteAsync 执行出错:" + ex.Message;
_logger.LogError(ret.Message);
return ret;
}
}
/// <summary>
/// 导出信息
/// </summary>
/// <param name="input">导出查询条件</param>
/// <returns>执行成功返回真</returns>
[UnitOfWork(false)]
[HttpPost]
[Route("export")]
public async Task<ObjectResultDto<string>> ExportAsync(ImportRecordInputDto input)
{
_logger.LogDebug(_errorMessagePrefix + "ExportAsync 进入");
ObjectResultDto<string> ret = new ObjectResultDto<string>();
try
{
PagedResultDto<ImportRecordDto> pageLst = await QueryByConditionAsync(input, (PagedAndSortedBase)input);
var items = pageLst.Items.AsEnumerable().ToList();
//将实体列表转换成excel文件流
IExporter exporter = new ExcelExporter();
byte[] byteArr = await exporter.ExportAsByteArray<ImportRecordDto>(items);
byteArr.ShouldNotBeNull();
//将excel文件流保存到服务器端文件系统
string fileName = string.Format("导入记录_{0}.xlsx", Guid.NewGuid().ToString());
await _blobContainer.SaveAsync(fileName, byteArr);
ret.Item = fileName;
return ret;
}
catch (Exception ex)
{
ret.Status = false;
ret.Message = _errorMessagePrefix + "ExportAsync 执行出错:" + ex.Message;
_logger.LogError(ret.Message);
return ret;
}
}
/// <summary>
/// 导入
/// </summary>
/// <param name="files">导入文件</param>
/// <returns>执行成功返回真</returns>
[HttpPost]
[Route("import")]
[DisableRequestSizeLimit]
public virtual async Task<ObjectResultDto> ImportAsync([FromForm] IFormFileCollection files)
{
_logger.LogDebug(_errorMessagePrefix + "ImportAsync 进入");
ObjectResultDto ret = new ObjectResultDto();
try
{
ImportResult<ImportRecordDto> impResult;
using (var memoryStream = new MemoryStream())
{
//保存到内存流
IFormFile file = files[0];
await file.CopyToAsync(memoryStream);
memoryStream.Seek(0, SeekOrigin.Begin);
//StreamReader sr = new StreamReader(memoryStream, Encoding.Default);
IImporter importer = new ExcelImporter();
impResult = await importer.Import<ImportRecordDto>(memoryStream);
if (impResult.HasError)
{
string rowErrStr = "";
foreach (var rowErr in impResult.RowErrors)
{
string fieldErr = string.Concat(rowErr.FieldErrors.Select(itm => $"字段:{itm.Key},错误信息:{itm.Value}"));
rowErrStr += $"行号:{rowErr.RowIndex},{fieldErr}\r\n";
}
string templateErrStr = "";
foreach (var templateErr in impResult.TemplateErrors)
{
string errorLevel = templateErr.ErrorLevel == ErrorLevels.Error ? "错误" : "警告";
templateErrStr += $"错误等级:{errorLevel},列名:{templateErr.ColumnName},需要列:{templateErr.RequireColumnName},错误消息:{templateErr.Message}\r\n";
}
ret.Message = rowErrStr + templateErrStr;
ret.Status = false;
return ret;
}
}
var srcLst = impResult.Data.AsEnumerable().ToList();
var tarLst = ObjectMapper.Map<List<ImportRecordDto>, List<ImportRecord>>(srcLst);
foreach (var tar in tarLst)
{
tar.CreatePerson = "导入";
tar.CreateTime = ServerHelper.CurrentDateTime;
}
//插入“导入记录表”
await _importRecordRepository.InsertManyAsync(tarLst);
ret.Status = true;
return ret;
}
catch (Exception ex)
{
ret.Status = false;
ret.Message = _errorMessagePrefix + "ImportAsync 执行出错:" + ex.Message;
_logger.LogError(ret.Message);
return ret;
}
}
#endregion
}
}

81
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/MsgBaseData/BaseConfig/BaseGonfigService.cs

@ -0,0 +1,81 @@
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;
using Volo.Abp.Domain.Repositories;
using Volo.Abp.Uow;
using WY.NewJit.Common;
namespace WY.NewJit.MsgBaseData
{
/// <summary>
/// 通用字典应用服务实现
/// </summary>
[Route("api/newjit/baseconfig")]
[ApiExplorerSettings(GroupName = SwaggerGroupConsts.基础数据)]
public class BaseGonfigService : ApplicationService
{
private readonly IRepository<BaseConfig, Guid> _repository;
/// <summary>
/// 日志
/// </summary>
private ILogger<BaseGonfigService> _logger;
/// <summary>
/// 错误信息前缀
/// </summary>
private string _errorMessagePrefix
{
get
{
return System.Reflection.MethodBase.GetCurrentMethod().DeclaringType.Name + ".";
}
}
/// <summary>
/// 构造函数
/// </summary>
public BaseGonfigService(
IRepository<BaseConfig, Guid> repository,
ILogger<BaseGonfigService> logger
)
{
_repository = repository;
_logger = logger;
}
#region 公共方法
/// <summary>
/// 获取所有基本参数数据
/// </summary>
/// <returns></returns>
[HttpGet]
[UnitOfWork(false)]
[Route("list")]
public virtual async Task<ListResultDto<BaseConfigDto>> GetBaseConfigListAsync()
{
_logger.LogDebug(_errorMessagePrefix + "GetBaseConfigListAsync 进入");
try
{
var lst = await _repository.GetListAsync();
var items = ObjectMapper.Map<List<BaseConfig>, List<BaseConfigDto>>(lst);
return new ListResultDto<BaseConfigDto>(items);
}
catch (Exception ex)
{
string errMsg = _errorMessagePrefix + "GetBaseConfigListAsync 执行出错:" + ex.Message;
_logger.LogError(errMsg);
return new ListResultDto<BaseConfigDto>(new List<BaseConfigDto>());
}
}
#endregion
}
}

9
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/NewJitApplicationAutoMapperProfile.cs

@ -2,6 +2,8 @@
using Acme.BookStore.Books; using Acme.BookStore.Books;
using AutoMapper; using AutoMapper;
using WY.NewJit.Books; using WY.NewJit.Books;
using WY.NewJit.EdiReceive.Dtos;
using WY.NewJit.EdiReceive.Entitys;
using WY.NewJit.Extends; using WY.NewJit.Extends;
using WY.NewJit.MsgBaseData; using WY.NewJit.MsgBaseData;
using WY.NewJit.MsgCheck; using WY.NewJit.MsgCheck;
@ -109,6 +111,13 @@ namespace WY.NewJit
CreateMap<WaitPrint, AlreadyPrint>().ReverseMap(); CreateMap<WaitPrint, AlreadyPrint>().ReverseMap();
#endregion #endregion
#region 导出记录
CreateMap<ImportRecord, ImportRecordDto>().ReverseMap();
CreateMap<ImportRecord, ImportRecordCreateDto>().ReverseMap();
CreateMap<ImportRecordHis, ImportRecordHisDto>().ReverseMap();
CreateMap<ImportRecordHis, ImportRecordHisCreateDto>().ReverseMap();
#endregion
} }
} }
} }

33
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/PrintTable/WaitPrintAppService.cs

@ -336,20 +336,10 @@ namespace WY.NewJit.PrintTable
{ {
List<WaitPrint> billLst = new List<WaitPrint>(); List<WaitPrint> billLst = new List<WaitPrint>();
ListResultDto<WaitPrint> ret = new ListResultDto<WaitPrint>(billLst); ListResultDto<WaitPrint> ret = new ListResultDto<WaitPrint>(billLst);
if (input.PrintCount == 0) input.PrintCount = 10;//调试用的
int printBillCnt = 0;
if (input.PrintType == WY.NewJit.Extends.PaiGe.PrintTypeEnum.) if (input.PrintType == WY.NewJit.Extends.PaiGe.PrintTypeEnum.)
{ {
if ((input.BeginHostSN % 10000) > 1999)
{
throw new Exception("起始大众顺序号不能大于1999!");
}
if (input.BeginHostSN > input.EndHostSN)
{
throw new Exception("起始大众顺序号不能大于止大众顺序号!");
}
printBillCnt = input.EndHostSN - input.BeginHostSN + 1;
int minHostSN2 = await _waitPrintRepository.Where(itm => int minHostSN2 = await _waitPrintRepository.Where(itm =>
itm.BusinessType == BusinessTypeEnum.MenBan itm.BusinessType == BusinessTypeEnum.MenBan
@ -370,8 +360,7 @@ namespace WY.NewJit.PrintTable
&& itm.PrintType == PrintTypeEnum.OrderPrint //顺序打印 && itm.PrintType == PrintTypeEnum.OrderPrint //顺序打印
&& itm.HostSN2 >= minHostSN2) && itm.HostSN2 >= minHostSN2)
.OrderBy(itm => itm.HostSN2) .OrderBy(itm => itm.HostSN2)
.Take(printBillCnt).ToListAsync(); .Take(input.PrintCount).ToListAsync();
bool hasData = billLst.Any(); bool hasData = billLst.Any();
if (hasData == false) if (hasData == false)
{ {
@ -401,7 +390,7 @@ namespace WY.NewJit.PrintTable
/// <returns></returns> /// <returns></returns>
private List<MenBanPackingList> DoMBPrint(MenBanPrintInputDto input, int pageIdx, ref double maxBillNum, double maxSN, DateTime printTime, List<WaitPrint> billLst, string rightOrLeft) private List<MenBanPackingList> DoMBPrint(MenBanPrintInputDto input, int pageIdx, ref double maxBillNum, double maxSN, DateTime printTime, List<WaitPrint> billLst, string rightOrLeft)
{ {
const int _colNumberPerPage = 12; const int _colNumberPerPage = 10;
List<MenBanPackingList> retLst = new List<MenBanPackingList>(); List<MenBanPackingList> retLst = new List<MenBanPackingList>();
//取当前页内容 //取当前页内容
@ -566,7 +555,7 @@ namespace WY.NewJit.PrintTable
//装箱单号规则 1开头,11位,自增顺序号 //装箱单号规则 1开头,11位,自增顺序号
if (newSNStr.Length < 11) if (newSNStr.Length < 11)
{ {
return "F" + newSNStr.PadLeft(10, '0'); return "W" + newSNStr.PadLeft(10, '0');
} }
return newSNStr; return newSNStr;
} }
@ -610,7 +599,7 @@ namespace WY.NewJit.PrintTable
targetMain.BillNum = sourceObj.BillNum; //单据编号 targetMain.BillNum = sourceObj.BillNum; //单据编号
targetMain.State = 0; targetMain.State = 0;
targetMain.BillType = 206; //单据类型 targetMain.BillType = 206; //单据类型
targetMain.SubBillType = 21004; //单据子类型 targetMain.SubBillType = 21033; //红旗单据子类型
targetMain.BillTime = sourceObj.PrintDate; //单据时间 targetMain.BillTime = sourceObj.PrintDate; //单据时间
targetMain.OperName = sourceObj.CreatorId.ToString(); //操作员 targetMain.OperName = sourceObj.CreatorId.ToString(); //操作员
targetMain.DetailQty = 0; //明细数量 targetMain.DetailQty = 0; //明细数量
@ -663,8 +652,8 @@ namespace WY.NewJit.PrintTable
targetDetail.BillNum = sourceObj.BillNum; //单据编号 通过该字段和主表弱连接 targetDetail.BillNum = sourceObj.BillNum; //单据编号 通过该字段和主表弱连接
targetDetail.VinCode = sourceRec.VIN; //VIN码 targetDetail.VinCode = sourceRec.VIN; //VIN码
targetDetail.PartCode = sourceRec.BelowSAPMaterialNum; //物料号 targetDetail.PartCode = sourceRec.BelowSAPMaterialNum; //物料号
targetDetail.LineNum = (idx2 + 12); //行号 targetDetail.LineNum = (idx2 + 10); //行号
targetDetail.SeqNum = (idx2 + 12).ToString(); //顺序号sourceRec.HostSN.ToString() targetDetail.SeqNum = (idx2 + 10).ToString(); //顺序号sourceRec.HostSN.ToString()
//targetDetail.BarCode = sourceRec.TopBoxPositionNum; //箱码 //targetDetail.BarCode = sourceRec.TopBoxPositionNum; //箱码
targetDetail.ProjectId = ""; //车型 targetDetail.ProjectId = ""; //车型
targetDetail.State = "0"; //状态 targetDetail.State = "0"; //状态
@ -915,7 +904,7 @@ namespace WY.NewJit.PrintTable
sw.Stop(); sw.Stop();
_logger.LogWarning($"SaveMenBanReport读取数据 - {sw.ElapsedMilliseconds}毫秒"); _logger.LogWarning($"SaveMenBanReport读取数据 - {sw.ElapsedMilliseconds}毫秒");
sw.Start(); sw.Start();
int pageCnt = (int)Math.Ceiling(billLst.Count / 12.0); //每页打印12列,取打印页数 int pageCnt = (int)Math.Ceiling(billLst.Count / 10.0); //每页打印10列,取打印页数
double maxBillNum = 0; double maxBillNum = 0;
@ -982,7 +971,7 @@ namespace WY.NewJit.PrintTable
return ret; return ret;
} }
int pageCnt = (int)Math.Ceiling(billLst.Count / 12.0); //每页打印12列,取打印页数 int pageCnt = (int)Math.Ceiling(billLst.Count / 10.0); //每页打印10列,取打印页数
double maxBillNum = 0; double maxBillNum = 0;
@ -1067,7 +1056,7 @@ namespace WY.NewJit.PrintTable
foreach (var masterObj in targetLst) foreach (var masterObj in targetLst)
{ {
int trueCnt = masterObj.Details.Count; int trueCnt = masterObj.Details.Count;
int planCnt = 12; int planCnt = 10;
if (trueCnt > planCnt) if (trueCnt > planCnt)
{ {
throw new Exception($"实际打印行数{trueCnt}超过每页总行数{planCnt}, 底盘起{masterObj.BeginVin}底盘止{masterObj.EndVin}"); throw new Exception($"实际打印行数{trueCnt}超过每页总行数{planCnt}, 底盘起{masterObj.BeginVin}底盘止{masterObj.EndVin}");
@ -1182,7 +1171,7 @@ namespace WY.NewJit.PrintTable
foreach (var masterObj in targetLst) foreach (var masterObj in targetLst)
{ {
int trueCnt = masterObj.Details.Count; int trueCnt = masterObj.Details.Count;
int planCnt = 12; int planCnt = 10;
if (trueCnt > planCnt) if (trueCnt > planCnt)
{ {
throw new Exception($"实际打印行数{trueCnt}超过每页总行数{planCnt}, 底盘起{masterObj.BeginVin}底盘止{masterObj.EndVin}"); throw new Exception($"实际打印行数{trueCnt}超过每页总行数{planCnt}, 底盘起{masterObj.BeginVin}底盘止{masterObj.EndVin}");

141
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/WY.NewJit.Application.xml

@ -9,6 +9,121 @@
BookAppService使用IObjectMapper将Book对象转换为BookDto对象, 将CreateUpdateBookDto对象转换为Book对象 BookAppService使用IObjectMapper将Book对象转换为BookDto对象, 将CreateUpdateBookDto对象转换为Book对象
</summary> </summary>
</member> </member>
<member name="T:WY.NewJit.EdiReceive.ImportRecordAppService">
<summary>
零件管理应用服务实现
</summary>
</member>
<member name="F:WY.NewJit.EdiReceive.ImportRecordAppService._importRecordRepository">
<summary>
零件仓储
</summary>
</member>
<member name="F:WY.NewJit.EdiReceive.ImportRecordAppService._logger">
<summary>
日志
</summary>
</member>
<member name="F:WY.NewJit.EdiReceive.ImportRecordAppService._newJitDapperRepository">
<summary>
Dapper仓储
</summary>
</member>
<member name="F:WY.NewJit.EdiReceive.ImportRecordAppService._blobContainer">
<summary>
BLOB存储
</summary>
</member>
<member name="F:WY.NewJit.EdiReceive.ImportRecordAppService._dicDomainService">
<summary>
字典领域服务
</summary>
</member>
<member name="P:WY.NewJit.EdiReceive.ImportRecordAppService._errorMessagePrefix">
<summary>
错误信息前缀
</summary>
</member>
<member name="M:WY.NewJit.EdiReceive.ImportRecordAppService.#ctor(Volo.Abp.Domain.Repositories.IRepository{WY.NewJit.EdiReceive.Entitys.ImportRecord,System.Guid},Microsoft.Extensions.Logging.ILogger{WY.NewJit.EdiReceive.ImportRecordAppService},WY.NewJit.EntityFrameworkCore.NewJitDapperRepository,Volo.Abp.BlobStoring.IBlobContainer{WY.NewJit.Common.OurFileContainer},WY.NewJit.MsgBaseData.DicDomainService)">
<summary>
构造函数
</summary>
</member>
<member name="M:WY.NewJit.EdiReceive.ImportRecordAppService.GetEntityCountAsync(System.String,System.String)">
<summary>
取单表记录总数
</summary>
<param name="tableName"></param>
<param name="where"></param>
<returns></returns>
</member>
<member name="M:WY.NewJit.EdiReceive.ImportRecordAppService.GetEntityListAsync``1(System.String,System.String,System.String,System.Int32,System.Int32)">
<summary>
取单表当前页数据
</summary>
<typeparam name="T"></typeparam>
<param name="tableName"></param>
<param name="where"></param>
<param name="orderFieldName"></param>
<param name="pageSize"></param>
<param name="pageIndex"></param>
<returns></returns>
</member>
<member name="M:WY.NewJit.EdiReceive.ImportRecordAppService.QueryByConditionAsync(WY.NewJit.EdiReceive.Dtos.ImportRecordInputDto,WY.NewJit.Common.PagedAndSortedBase)">
<summary>
根据筛选条件获取实体列表
</summary>
</member>
<member name="M:WY.NewJit.EdiReceive.ImportRecordAppService.GetListAsync(WY.NewJit.EdiReceive.Dtos.ImportRecordInputDto)">
<summary>
根据筛选条件获取分页实体列表
</summary>
<param name="input">输入查询条件</param>
<returns>返回符合条件的排序分页列表</returns>
</member>
<member name="M:WY.NewJit.EdiReceive.ImportRecordAppService.GetAsync(System.Guid)">
<summary>
按主键获取唯一实体
</summary>
<param name="id">主键</param>
<returns>实体信息</returns>
</member>
<member name="M:WY.NewJit.EdiReceive.ImportRecordAppService.CreateAsync(WY.NewJit.EdiReceive.Dtos.ImportRecordCreateDto)">
<summary>
添加实体
</summary>
<param name="input">添加内容</param>
<returns>执行成功返回真</returns>
</member>
<member name="M:WY.NewJit.EdiReceive.ImportRecordAppService.UpdateAsync(System.Guid,WY.NewJit.EdiReceive.Dtos.ImportRecordCreateDto)">
<summary>
修改实体
</summary>
<param name="id">更新主键</param>
<param name="input">修改内容</param>
<returns>执行成功返回真</returns>
</member>
<member name="M:WY.NewJit.EdiReceive.ImportRecordAppService.DeleteAsync(System.String)">
<summary>
删除实体
</summary>
<param name="id">删除主键</param>
<returns>执行成功返回真</returns>
</member>
<member name="M:WY.NewJit.EdiReceive.ImportRecordAppService.ExportAsync(WY.NewJit.EdiReceive.Dtos.ImportRecordInputDto)">
<summary>
导出信息
</summary>
<param name="input">导出查询条件</param>
<returns>执行成功返回真</returns>
</member>
<member name="M:WY.NewJit.EdiReceive.ImportRecordAppService.ImportAsync(Microsoft.AspNetCore.Http.IFormFileCollection)">
<summary>
导入
</summary>
<param name="files">导入文件</param>
<returns>执行成功返回真</returns>
</member>
<member name="T:WY.NewJit.Extends.ProductLineAuthorityAppService"> <member name="T:WY.NewJit.Extends.ProductLineAuthorityAppService">
<summary> <summary>
生产线权限管理应用服务实现 生产线权限管理应用服务实现
@ -414,6 +529,32 @@
<param name="targetLst"></param> <param name="targetLst"></param>
<returns></returns> <returns></returns>
</member> </member>
<member name="T:WY.NewJit.MsgBaseData.BaseGonfigService">
<summary>
通用字典应用服务实现
</summary>
</member>
<member name="F:WY.NewJit.MsgBaseData.BaseGonfigService._logger">
<summary>
日志
</summary>
</member>
<member name="P:WY.NewJit.MsgBaseData.BaseGonfigService._errorMessagePrefix">
<summary>
错误信息前缀
</summary>
</member>
<member name="M:WY.NewJit.MsgBaseData.BaseGonfigService.#ctor(Volo.Abp.Domain.Repositories.IRepository{WY.NewJit.MsgBaseData.BaseConfig,System.Guid},Microsoft.Extensions.Logging.ILogger{WY.NewJit.MsgBaseData.BaseGonfigService})">
<summary>
构造函数
</summary>
</member>
<member name="M:WY.NewJit.MsgBaseData.BaseGonfigService.GetBaseConfigListAsync">
<summary>
获取所有基本参数数据
</summary>
<returns></returns>
</member>
<member name="T:WY.NewJit.MsgBaseData.DicAppService"> <member name="T:WY.NewJit.MsgBaseData.DicAppService">
<summary> <summary>
通用字典应用服务实现 通用字典应用服务实现

2
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.DbMigrator/appsettings.json

@ -1,6 +1,6 @@
{ {
"ConnectionStrings": { "ConnectionStrings": {
"Default": "Server=dev.ccwin-in.com,6208;Database=NewJitPG_HQ;uid=sa;pwd=ChangkeTec@2021;" "Default": "Server=dev.ccwin-in.com,6208;Database=NewJitPG_HQ_Temp;uid=sa;pwd=ChangkeTec@2021;"
/*"Default": "Server=192.168.0.213;Database=NewJitPG;uid=sa;pwd=Microsoft@2021"*/ /*"Default": "Server=192.168.0.213;Database=NewJitPG;uid=sa;pwd=Microsoft@2021"*/
/*"Default": "Server=LAPTOP-4TE7UPMR\\MYSQLSERVER;Database=NewJit;uid=sa;pwd=1"*/ /*"Default": "Server=LAPTOP-4TE7UPMR\\MYSQLSERVER;Database=NewJit;uid=sa;pwd=1"*/

10
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain.Shared/Common/ExtMethod.cs

@ -321,6 +321,16 @@ namespace WY.NewJit.Common
return p_val != null && p_val > 0; return p_val != null && p_val > 0;
} }
public static bool HasValue(this string p_val)
{
return (string.IsNullOrEmpty(p_val) == false);
}
public static bool HasValue(this DateTime? p_val)
{
return (p_val != null);
}
//public static string Left(this string param, int length) //public static string Left(this string param, int length)
//{ //{

1
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain.Shared/Common/SwaggerGroupConsts.cs

@ -13,6 +13,7 @@ namespace WY.NewJit.Common
public const string = "基础数据"; public const string = "基础数据";
public const string = "扩展"; public const string = "扩展";
public const string = "报文打印"; public const string = "报文打印";
public const string = "报文接收";
} }
} }

139
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/EdiReceive/Entitys/ImportRecord.cs

@ -0,0 +1,139 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
using Volo.Abp.Domain.Entities.Auditing;
namespace WY.NewJit.EdiReceive.Entitys
{
/// <summary>
/// 导入记录
/// </summary>
public class ImportRecord : Entity<Guid>
{
/// <summary>
/// 工厂
/// </summary>
public virtual string Factory { get; set; }
/// <summary>
/// 车位
/// </summary>
public virtual string VehicleLocation { get; set; }
/// <summary>
/// 工位
/// </summary>
public virtual string WorkLocation { get; set; }
/// <summary>
/// 底盘号
/// </summary>
public virtual string Vin { get; set; }
/// <summary>
/// 车身号
/// </summary>
public virtual string VehicleBodyCode { get; set; }
/// <summary>
/// 车型代码
/// </summary>
public virtual string VehicleModelCode { get; set; }
/// <summary>
/// 车型名称
/// </summary>
public virtual string VehicleModelName { get; set; }
/// <summary>
/// 车型描述
/// </summary>
public virtual string VehicleModelDesc { get; set; }
/// <summary>
/// 规格
/// </summary>
public virtual string Spec { get; set; }
/// <summary>
/// 规格说明
/// </summary>
public virtual string SpecDesc { get; set; }
/// <summary>
/// 类别
/// </summary>
public virtual string Type { get; set; }
/// <summary>
/// 涂装下线时间
/// </summary>
public virtual DateTime? PaintOfflineTime { get; set; }
/// <summary>
/// 总装上线时间
/// </summary>
public virtual DateTime? OnlineTime { get; set; }
/// <summary>
/// 内饰颜色
/// </summary>
public virtual string InteriorColor { get; set; }
/// <summary>
/// 外饰颜色
/// </summary>
public virtual string ExteriorTrimmingColor { get; set; }
/// <summary>
/// 序列号
/// </summary>
public virtual string SerialNum { get; set; }
/// <summary>
/// 流水号
/// </summary>
public virtual int HostSN { get; set; }
/// <summary>
/// 生产线:A/B
/// </summary>
public virtual string ProductLine { get; set; }
/// <summary>
/// 目的
/// </summary>
public virtual string Target { get; set; }
/// <summary>
/// 备注
/// </summary>
public virtual string Remark { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public virtual DateTime? CreateTime { get; set; }
/// <summary>
/// 创建人
/// </summary>
public virtual string CreatePerson { get; set; }
public virtual DateTime? ImportTime { get; set; }
public virtual string ImportPerson { get; set; }
public virtual string Remark2 { get; set; }
public virtual string Remark3 { get; set; }
public virtual string Remark4 { get; set; }
public virtual string Remark5 { get; set; }
}
}

139
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/EdiReceive/Entitys/ImportRecordHis.cs

@ -0,0 +1,139 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
using Volo.Abp.Domain.Entities.Auditing;
namespace WY.NewJit.EdiReceive.Entitys
{
/// <summary>
/// 导入记录
/// </summary>
public class ImportRecordHis : Entity<Guid>
{
/// <summary>
/// 工厂
/// </summary>
public virtual string Factory { get; set; }
/// <summary>
/// 车位
/// </summary>
public virtual string VehicleLocation { get; set; }
/// <summary>
/// 工位
/// </summary>
public virtual string WorkLocation { get; set; }
/// <summary>
/// 底盘号
/// </summary>
public virtual string Vin { get; set; }
/// <summary>
/// 车身号
/// </summary>
public virtual string VehicleBodyCode { get; set; }
/// <summary>
/// 车型代码
/// </summary>
public virtual string VehicleModelCode { get; set; }
/// <summary>
/// 车型名称
/// </summary>
public virtual string VehicleModelName { get; set; }
/// <summary>
/// 车型描述
/// </summary>
public virtual string VehicleModelDesc { get; set; }
/// <summary>
/// 规格
/// </summary>
public virtual string Spec { get; set; }
/// <summary>
/// 规格说明
/// </summary>
public virtual string SpecDesc { get; set; }
/// <summary>
/// 类别
/// </summary>
public virtual string Type { get; set; }
/// <summary>
/// 涂装下线时间
/// </summary>
public virtual DateTime? PaintOfflineTime { get; set; }
/// <summary>
/// 总装上线时间
/// </summary>
public virtual DateTime? OnlineTime { get; set; }
/// <summary>
/// 内饰颜色
/// </summary>
public virtual string InteriorColor { get; set; }
/// <summary>
/// 外饰颜色
/// </summary>
public virtual string ExteriorTrimmingColor { get; set; }
/// <summary>
/// 序列号
/// </summary>
public virtual string SerialNum { get; set; }
/// <summary>
/// 流水号
/// </summary>
public virtual int HostSN { get; set; }
/// <summary>
/// 生产线:A/B
/// </summary>
public virtual string ProductLine { get; set; }
/// <summary>
/// 目的
/// </summary>
public virtual string Target { get; set; }
/// <summary>
/// 备注
/// </summary>
public virtual string Remark { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public virtual DateTime? CreateTime { get; set; }
/// <summary>
/// 创建人
/// </summary>
public virtual string CreatePerson { get; set; }
public virtual DateTime? ImportTime { get; set; }
public virtual string ImportPerson { get; set; }
public virtual string Remark2 { get; set; }
public virtual string Remark3 { get; set; }
public virtual string Remark4 { get; set; }
public virtual string Remark5 { get; set; }
}
}

17
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/EdiReceive/Entitys/LastImportHostSN.cs

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
namespace WY.NewJit.EdiReceive.Entitys
{
public class LastImportHostSN : Entity<Guid>
{
public string ProductLineCode { get; set; }
public int HostSN { get; set; }
}
}

32
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/MsgBaseData/Entitys/BaseConfig.cs

@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
namespace WY.NewJit.MsgBaseData
{
/// <summary>
/// 基础参数
/// </summary>
public class BaseConfig : AggregateRoot<Guid>
{
/// <summary>
/// 参数名称
/// </summary>
public virtual string ParamName { get; set; }
/// <summary>
/// 参数值
/// </summary>
public virtual string ParamValue { get; set; }
/// <summary>
/// 状态
/// </summary>
public virtual int State { get; set; }
/// <summary>
/// 备注
/// </summary>
public virtual string Remark { get; set; }
}
}

22
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/MsgBaseData/Services/BaseGonfigDomainService.cs

@ -0,0 +1,22 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Repositories;
using Volo.Abp.Domain.Services;
namespace WY.NewJit.MsgBaseData
{
public class BaseGonfigDomainService : DomainService
{
private readonly IRepository<BaseConfig, Guid> _repository;
public BaseGonfigDomainService(IRepository<BaseConfig, Guid> repository)
{
_repository = repository;
}
}
}

1
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/WY.NewJit.Domain.csproj

@ -30,6 +30,7 @@
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Folder Include="EdiReceive\Services\" />
<Folder Include="MsgConversion\Services\" /> <Folder Include="MsgConversion\Services\" />
<Folder Include="MsgTransmission\Services\" /> <Folder Include="MsgTransmission\Services\" />
</ItemGroup> </ItemGroup>

263
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20240109051359_NewJitPG_HQ_Init.Designer.cs → src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20240109072607_Add_ImportRec_Table.Designer.cs

@ -11,8 +11,8 @@ using WY.NewJit.EntityFrameworkCore;
namespace WY.NewJit.Migrations namespace WY.NewJit.Migrations
{ {
[DbContext(typeof(NewJitMigrationsDbContext))] [DbContext(typeof(NewJitMigrationsDbContext))]
[Migration("20240109051359_NewJitPG_HQ_Init")] [Migration("20240109072607_Add_ImportRec_Table")]
partial class NewJitPG_HQ_Init partial class Add_ImportRec_Table
{ {
protected override void BuildTargetModel(ModelBuilder modelBuilder) protected override void BuildTargetModel(ModelBuilder modelBuilder)
{ {
@ -2017,6 +2017,265 @@ namespace WY.NewJit.Migrations
b.ToTable("FisSequenceInfo"); b.ToTable("FisSequenceInfo");
}); });
modelBuilder.Entity("WY.NewJit.EdiReceive.Entitys.ImportRecord", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<string>("CreatePerson")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<DateTime?>("CreateTime")
.HasColumnType("datetime2");
b.Property<string>("ExteriorTrimmingColor")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("Factory")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<int>("HostSN")
.HasColumnType("int");
b.Property<string>("ImportPerson")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<DateTime?>("ImportTime")
.HasMaxLength(50)
.HasColumnType("datetime2");
b.Property<string>("InteriorColor")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<DateTime?>("OnlineTime")
.HasColumnType("datetime");
b.Property<DateTime?>("PaintOfflineTime")
.HasColumnType("datetime");
b.Property<string>("ProductLine")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("Remark")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("Remark2")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("Remark3")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("Remark4")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("Remark5")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("SerialNum")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("Spec")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("SpecDesc")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<string>("Target")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<string>("Type")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("VehicleBodyCode")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("VehicleLocation")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("VehicleModelCode")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("VehicleModelDesc")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<string>("VehicleModelName")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<string>("Vin")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("WorkLocation")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.HasKey("Id");
b.ToTable("FisImportRecord");
});
modelBuilder.Entity("WY.NewJit.EdiReceive.Entitys.ImportRecordHis", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<string>("CreatePerson")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<DateTime?>("CreateTime")
.HasColumnType("datetime2");
b.Property<string>("ExteriorTrimmingColor")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("Factory")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<int>("HostSN")
.HasColumnType("int");
b.Property<string>("ImportPerson")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<DateTime?>("ImportTime")
.HasMaxLength(50)
.HasColumnType("datetime2");
b.Property<string>("InteriorColor")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<DateTime?>("OnlineTime")
.HasColumnType("datetime");
b.Property<DateTime?>("PaintOfflineTime")
.HasColumnType("datetime");
b.Property<string>("ProductLine")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("Remark")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("Remark2")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("Remark3")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("Remark4")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("Remark5")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("SerialNum")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("Spec")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("SpecDesc")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<string>("Target")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<string>("Type")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("VehicleBodyCode")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("VehicleLocation")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("VehicleModelCode")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("VehicleModelDesc")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<string>("VehicleModelName")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<string>("Vin")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("WorkLocation")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.HasKey("Id");
b.HasIndex("HostSN")
.HasDatabaseName("IX_ImportRecHis_HostSN");
b.ToTable("FisImportRecordHis");
});
modelBuilder.Entity("WY.NewJit.EdiReceive.Entitys.LastImportHostSN", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<int>("HostSN")
.HasColumnType("int");
b.Property<string>("ProductLineCode")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.HasKey("Id");
b.ToTable("FisLastImportHostSN");
});
modelBuilder.Entity("WY.NewJit.Extends.MenBanPackingList", b => modelBuilder.Entity("WY.NewJit.Extends.MenBanPackingList", b =>
{ {
b.Property<Guid>("Id") b.Property<Guid>("Id")

107
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20240109051359_NewJitPG_HQ_Init.cs → src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/20240109072607_Add_ImportRec_Table.cs

@ -3,7 +3,7 @@ using Microsoft.EntityFrameworkCore.Migrations;
namespace WY.NewJit.Migrations namespace WY.NewJit.Migrations
{ {
public partial class NewJitPG_HQ_Init : Migration public partial class Add_ImportRec_Table : Migration
{ {
protected override void Up(MigrationBuilder migrationBuilder) protected override void Up(MigrationBuilder migrationBuilder)
{ {
@ -603,6 +603,97 @@ namespace WY.NewJit.Migrations
table.PrimaryKey("PK_FisGlobalSettings", x => x.Id); table.PrimaryKey("PK_FisGlobalSettings", x => x.Id);
}); });
migrationBuilder.CreateTable(
name: "FisImportRecord",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Factory = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true),
VehicleLocation = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true),
WorkLocation = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true),
Vin = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true),
VehicleBodyCode = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true),
VehicleModelCode = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true),
VehicleModelName = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
VehicleModelDesc = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Spec = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true),
SpecDesc = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Type = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true),
PaintOfflineTime = table.Column<DateTime>(type: "datetime", nullable: true),
OnlineTime = table.Column<DateTime>(type: "datetime", nullable: true),
InteriorColor = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true),
ExteriorTrimmingColor = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true),
SerialNum = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true),
HostSN = table.Column<int>(type: "int", nullable: false),
ProductLine = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true),
Target = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Remark = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true),
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
CreatePerson = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true),
ImportTime = table.Column<DateTime>(type: "datetime2", maxLength: 50, nullable: true),
ImportPerson = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true),
Remark2 = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true),
Remark3 = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true),
Remark4 = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true),
Remark5 = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_FisImportRecord", x => x.Id);
});
migrationBuilder.CreateTable(
name: "FisImportRecordHis",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
Factory = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true),
VehicleLocation = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true),
WorkLocation = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true),
Vin = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true),
VehicleBodyCode = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true),
VehicleModelCode = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true),
VehicleModelName = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
VehicleModelDesc = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Spec = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true),
SpecDesc = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Type = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true),
PaintOfflineTime = table.Column<DateTime>(type: "datetime", nullable: true),
OnlineTime = table.Column<DateTime>(type: "datetime", nullable: true),
InteriorColor = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true),
ExteriorTrimmingColor = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true),
SerialNum = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true),
HostSN = table.Column<int>(type: "int", nullable: false),
ProductLine = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true),
Target = table.Column<string>(type: "nvarchar(200)", maxLength: 200, nullable: true),
Remark = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true),
CreateTime = table.Column<DateTime>(type: "datetime2", nullable: true),
CreatePerson = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true),
ImportTime = table.Column<DateTime>(type: "datetime2", maxLength: 50, nullable: true),
ImportPerson = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true),
Remark2 = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true),
Remark3 = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true),
Remark4 = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true),
Remark5 = table.Column<string>(type: "varchar(200)", maxLength: 200, nullable: true)
},
constraints: table =>
{
table.PrimaryKey("PK_FisImportRecordHis", x => x.Id);
});
migrationBuilder.CreateTable(
name: "FisLastImportHostSN",
columns: table => new
{
Id = table.Column<Guid>(type: "uniqueidentifier", nullable: false),
ProductLineCode = table.Column<string>(type: "varchar(50)", maxLength: 50, nullable: true),
HostSN = table.Column<int>(type: "int", nullable: false)
},
constraints: table =>
{
table.PrimaryKey("PK_FisLastImportHostSN", x => x.Id);
});
migrationBuilder.CreateTable( migrationBuilder.CreateTable(
name: "FisLineSN", name: "FisLineSN",
columns: table => new columns: table => new
@ -2650,6 +2741,11 @@ namespace WY.NewJit.Migrations
table: "FisDicType", table: "FisDicType",
column: "DicTypeCode"); column: "DicTypeCode");
migrationBuilder.CreateIndex(
name: "IX_ImportRecHis_HostSN",
table: "FisImportRecordHis",
column: "HostSN");
migrationBuilder.CreateIndex( migrationBuilder.CreateIndex(
name: "IX_FisLineSN_ProductType_ProductLine_PartType", name: "IX_FisLineSN_ProductType_ProductLine_PartType",
table: "FisLineSN", table: "FisLineSN",
@ -2931,6 +3027,15 @@ namespace WY.NewJit.Migrations
migrationBuilder.DropTable( migrationBuilder.DropTable(
name: "FisGlobalSettings"); name: "FisGlobalSettings");
migrationBuilder.DropTable(
name: "FisImportRecord");
migrationBuilder.DropTable(
name: "FisImportRecordHis");
migrationBuilder.DropTable(
name: "FisLastImportHostSN");
migrationBuilder.DropTable( migrationBuilder.DropTable(
name: "FisLineSN"); name: "FisLineSN");

259
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore.DbMigrations/Migrations/NewJitMigrationsDbContextModelSnapshot.cs

@ -2015,6 +2015,265 @@ namespace WY.NewJit.Migrations
b.ToTable("FisSequenceInfo"); b.ToTable("FisSequenceInfo");
}); });
modelBuilder.Entity("WY.NewJit.EdiReceive.Entitys.ImportRecord", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<string>("CreatePerson")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<DateTime?>("CreateTime")
.HasColumnType("datetime2");
b.Property<string>("ExteriorTrimmingColor")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("Factory")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<int>("HostSN")
.HasColumnType("int");
b.Property<string>("ImportPerson")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<DateTime?>("ImportTime")
.HasMaxLength(50)
.HasColumnType("datetime2");
b.Property<string>("InteriorColor")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<DateTime?>("OnlineTime")
.HasColumnType("datetime");
b.Property<DateTime?>("PaintOfflineTime")
.HasColumnType("datetime");
b.Property<string>("ProductLine")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("Remark")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("Remark2")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("Remark3")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("Remark4")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("Remark5")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("SerialNum")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("Spec")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("SpecDesc")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<string>("Target")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<string>("Type")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("VehicleBodyCode")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("VehicleLocation")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("VehicleModelCode")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("VehicleModelDesc")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<string>("VehicleModelName")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<string>("Vin")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("WorkLocation")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.HasKey("Id");
b.ToTable("FisImportRecord");
});
modelBuilder.Entity("WY.NewJit.EdiReceive.Entitys.ImportRecordHis", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<string>("CreatePerson")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<DateTime?>("CreateTime")
.HasColumnType("datetime2");
b.Property<string>("ExteriorTrimmingColor")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("Factory")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<int>("HostSN")
.HasColumnType("int");
b.Property<string>("ImportPerson")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<DateTime?>("ImportTime")
.HasMaxLength(50)
.HasColumnType("datetime2");
b.Property<string>("InteriorColor")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<DateTime?>("OnlineTime")
.HasColumnType("datetime");
b.Property<DateTime?>("PaintOfflineTime")
.HasColumnType("datetime");
b.Property<string>("ProductLine")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("Remark")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("Remark2")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("Remark3")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("Remark4")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("Remark5")
.HasMaxLength(200)
.HasColumnType("varchar(200)");
b.Property<string>("SerialNum")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("Spec")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("SpecDesc")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<string>("Target")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<string>("Type")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("VehicleBodyCode")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("VehicleLocation")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("VehicleModelCode")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("VehicleModelDesc")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<string>("VehicleModelName")
.HasMaxLength(200)
.HasColumnType("nvarchar(200)");
b.Property<string>("Vin")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.Property<string>("WorkLocation")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.HasKey("Id");
b.HasIndex("HostSN")
.HasDatabaseName("IX_ImportRecHis_HostSN");
b.ToTable("FisImportRecordHis");
});
modelBuilder.Entity("WY.NewJit.EdiReceive.Entitys.LastImportHostSN", b =>
{
b.Property<Guid>("Id")
.ValueGeneratedOnAdd()
.HasColumnType("uniqueidentifier");
b.Property<int>("HostSN")
.HasColumnType("int");
b.Property<string>("ProductLineCode")
.HasMaxLength(50)
.HasColumnType("varchar(50)");
b.HasKey("Id");
b.ToTable("FisLastImportHostSN");
});
modelBuilder.Entity("WY.NewJit.Extends.MenBanPackingList", b => modelBuilder.Entity("WY.NewJit.Extends.MenBanPackingList", b =>
{ {
b.Property<Guid>("Id") b.Property<Guid>("Id")

12
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore/EntityFrameworkCore/NewJitDbContext.cs

@ -17,6 +17,7 @@ using WY.NewJit.Commons;
using WY.NewJit.Extends.PaiGe.WMS; using WY.NewJit.Extends.PaiGe.WMS;
using WY.NewJit.MsgBaseData.Entitys; using WY.NewJit.MsgBaseData.Entitys;
using WY.NewJit.PrintTable; using WY.NewJit.PrintTable;
using WY.NewJit.EdiReceive.Entitys;
namespace WY.NewJit.EntityFrameworkCore namespace WY.NewJit.EntityFrameworkCore
{ {
@ -58,6 +59,8 @@ namespace WY.NewJit.EntityFrameworkCore
public DbSet<PrintTemplateConfiguration> PrintTemplateConfigurations { get; set; } public DbSet<PrintTemplateConfiguration> PrintTemplateConfigurations { get; set; }
public DbSet<BaseConfig> BaseConfigs { get; set; }
#endregion #endregion
#region 报文解析及校验 #region 报文解析及校验
@ -150,6 +153,15 @@ namespace WY.NewJit.EntityFrameworkCore
public DbSet<AlreadyPrint> already_print { get; set; } public DbSet<AlreadyPrint> already_print { get; set; }
#endregion #endregion
#region 派格红旗报文接收
public DbSet<ImportRecord> ImportRecords { get; set; }
public DbSet<ImportRecordHis> ImportRecordHis { get; set; }
public DbSet<LastImportHostSN> LastImportHostSN { get; set; }
#endregion
/* Add DbSet properties for your Aggregate Roots / Entities here. /* Add DbSet properties for your Aggregate Roots / Entities here.
* Also map them inside NewJitDbContextModelCreatingExtensions.ConfigureNewJit * Also map them inside NewJitDbContextModelCreatingExtensions.ConfigureNewJit
*/ */

94
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore/EntityFrameworkCore/NewJitDbContextModelCreatingExtensions.cs

@ -3,6 +3,7 @@ using Volo.Abp;
using Volo.Abp.EntityFrameworkCore.Modeling; using Volo.Abp.EntityFrameworkCore.Modeling;
using WY.NewJit.Books; using WY.NewJit.Books;
using WY.NewJit.Commons; using WY.NewJit.Commons;
using WY.NewJit.EdiReceive.Entitys;
using WY.NewJit.Extends; using WY.NewJit.Extends;
using WY.NewJit.Extends.PaiGe; using WY.NewJit.Extends.PaiGe;
using WY.NewJit.Extends.PaiGe.WMS; using WY.NewJit.Extends.PaiGe.WMS;
@ -162,7 +163,16 @@ namespace WY.NewJit.EntityFrameworkCore
}); });
builder.Entity<BaseConfig>(b =>
{
b.ToTable(NewJitConsts.DbTablePrefix + nameof(BaseConfig)); //将Book实体映射到数据库表XXXBooks
b.ConfigureByConvention();//配置/映射继承的属性,应始终对你所有的实体使用它
b.Property("ParamName").HasMaxLength(50);
b.Property("ParamValue").HasMaxLength(50);
b.Property("State").HasPrecision(1);
b.Property("Remark").HasMaxLength(500);
b.HasIndex(x => new { x.ParamName}).IsUnique();
});
#endregion #endregion
@ -591,6 +601,88 @@ namespace WY.NewJit.EntityFrameworkCore
b.ConfigureByConvention();//配置/映射继承的属性,应始终对你所有的实体使用它 b.ConfigureByConvention();//配置/映射继承的属性,应始终对你所有的实体使用它
}); });
#endregion #endregion
#region 派格红旗报文接收
builder.Entity<ImportRecord>(b =>
{
b.ToTable(NewJitConsts.DbTablePrefix + nameof(ImportRecord));
b.ConfigureByConvention();//配置/映射继承的属性,应始终对你所有的实体使用它
b.Property(itm => itm.Factory).HasColumnType("varchar").HasMaxLength(50);
b.Property(itm => itm.VehicleLocation).HasColumnType("varchar").HasMaxLength(50);
b.Property(itm => itm.WorkLocation).HasColumnType("varchar").HasMaxLength(50);
b.Property(itm => itm.Vin).HasColumnType("varchar").HasMaxLength(50);
b.Property(itm => itm.VehicleBodyCode).HasColumnType("varchar").HasMaxLength(50);
b.Property(itm => itm.VehicleModelCode).HasColumnType("varchar").HasMaxLength(50);
b.Property(itm => itm.VehicleModelName).HasColumnType("nvarchar").HasMaxLength(200);
b.Property(itm => itm.VehicleModelDesc).HasColumnType("nvarchar").HasMaxLength(200);
b.Property(itm => itm.Spec).HasColumnType("varchar").HasMaxLength(50);
b.Property(itm => itm.SpecDesc).HasColumnType("nvarchar").HasMaxLength(200);
b.Property(itm => itm.Type).HasColumnType("varchar").HasMaxLength(50);
b.Property(itm => itm.PaintOfflineTime).HasColumnType("datetime");
b.Property(itm => itm.OnlineTime).HasColumnType("datetime");
b.Property(itm => itm.InteriorColor).HasColumnType("varchar").HasMaxLength(50);
b.Property(itm => itm.ExteriorTrimmingColor).HasColumnType("varchar").HasMaxLength(50);
b.Property(itm => itm.SerialNum).HasColumnType("varchar").HasMaxLength(50);
b.Property(itm => itm.HostSN).HasColumnType("int");
b.Property(itm => itm.ProductLine).HasColumnType("varchar").HasMaxLength(50);
b.Property(itm => itm.Target).HasColumnType("nvarchar").HasMaxLength(200);
b.Property(itm => itm.Remark).HasColumnType("varchar").HasMaxLength(200);
b.Property(itm => itm.CreateTime).HasColumnType("datetime2");
b.Property(itm => itm.CreatePerson).HasColumnType("varchar").HasMaxLength(50);
b.Property(itm => itm.ImportTime).HasColumnType("datetime2").HasMaxLength(50);
b.Property(itm => itm.ImportPerson).HasColumnType("varchar").HasMaxLength(50);
//b.HasIndex(itm => itm.HostSN).HasDatabaseName("IX_ImportRec_HostSN");
b.Property(itm => itm.Remark2).HasColumnType("varchar").HasMaxLength(200);
b.Property(itm => itm.Remark3).HasColumnType("varchar").HasMaxLength(200);
b.Property(itm => itm.Remark4).HasColumnType("varchar").HasMaxLength(200);
b.Property(itm => itm.Remark5).HasColumnType("varchar").HasMaxLength(200);
});
builder.Entity<ImportRecordHis>(b =>
{
b.ToTable(NewJitConsts.DbTablePrefix + nameof(ImportRecordHis));
b.ConfigureByConvention();//配置/映射继承的属性,应始终对你所有的实体使用它
b.Property(itm => itm.Factory).HasColumnType("varchar").HasMaxLength(50);
b.Property(itm => itm.VehicleLocation).HasColumnType("varchar").HasMaxLength(50);
b.Property(itm => itm.WorkLocation).HasColumnType("varchar").HasMaxLength(50);
b.Property(itm => itm.Vin).HasColumnType("varchar").HasMaxLength(50);
b.Property(itm => itm.VehicleBodyCode).HasColumnType("varchar").HasMaxLength(50);
b.Property(itm => itm.VehicleModelCode).HasColumnType("varchar").HasMaxLength(50);
b.Property(itm => itm.VehicleModelName).HasColumnType("nvarchar").HasMaxLength(200);
b.Property(itm => itm.VehicleModelDesc).HasColumnType("nvarchar").HasMaxLength(200);
b.Property(itm => itm.Spec).HasColumnType("varchar").HasMaxLength(50);
b.Property(itm => itm.SpecDesc).HasColumnType("nvarchar").HasMaxLength(200);
b.Property(itm => itm.Type).HasColumnType("varchar").HasMaxLength(50);
b.Property(itm => itm.PaintOfflineTime).HasColumnType("datetime");
b.Property(itm => itm.OnlineTime).HasColumnType("datetime");
b.Property(itm => itm.InteriorColor).HasColumnType("varchar").HasMaxLength(50);
b.Property(itm => itm.ExteriorTrimmingColor).HasColumnType("varchar").HasMaxLength(50);
b.Property(itm => itm.SerialNum).HasColumnType("varchar").HasMaxLength(50);
b.Property(itm => itm.HostSN).HasColumnType("int");
b.Property(itm => itm.ProductLine).HasColumnType("varchar").HasMaxLength(50);
b.Property(itm => itm.Target).HasColumnType("nvarchar").HasMaxLength(200);
b.Property(itm => itm.Remark).HasColumnType("varchar").HasMaxLength(200);
b.Property(itm => itm.CreateTime).HasColumnType("datetime2");
b.Property(itm => itm.CreatePerson).HasColumnType("varchar").HasMaxLength(50);
b.Property(itm => itm.ImportTime).HasColumnType("datetime2").HasMaxLength(50);
b.Property(itm => itm.ImportPerson).HasColumnType("varchar").HasMaxLength(50);
b.HasIndex(itm => itm.HostSN).HasDatabaseName("IX_ImportRecHis_HostSN");
b.Property(itm => itm.Remark2).HasColumnType("varchar").HasMaxLength(200);
b.Property(itm => itm.Remark3).HasColumnType("varchar").HasMaxLength(200);
b.Property(itm => itm.Remark4).HasColumnType("varchar").HasMaxLength(200);
b.Property(itm => itm.Remark5).HasColumnType("varchar").HasMaxLength(200);
});
builder.Entity<LastImportHostSN>(b =>
{
b.ToTable(NewJitConsts.DbTablePrefix + nameof(LastImportHostSN));
b.ConfigureByConvention();//配置/映射继承的属性,应始终对你所有的实体使用它
b.Property(itm => itm.ProductLineCode).HasColumnType("varchar").HasMaxLength(50);
b.Property(itm => itm.HostSN).HasColumnType("int");
});
#endregion
} }
} }
} }

8
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Web/appsettings.json

@ -66,10 +66,10 @@
}, },
"ProductLineTimeoutRemind": { "ProductLineTimeoutRemind": {
"01": 30, "01": 40,
"05": 30, "05": 40,
"07": 30, "07": 40,
"08": 30 "08": 40
} }
}, },
"Serilog": { "Serilog": {

Loading…
Cancel
Save