Browse Source

创建打印表实体、服务等

master
liuyunfeng 1 year ago
parent
commit
fb3d2ebf11
  1. 143
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/PrintTable/Dtos/AlreadyPrintDto.cs
  2. 141
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/PrintTable/Dtos/WaitPrintDto.cs
  3. 4
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/WY.NewJit.Application.Contracts.csproj
  4. 190
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/WY.NewJit.Application.Contracts.xml
  5. 7
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/NewJitApplicationAutoMapperProfile.cs
  6. 12
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/PrintTable/AlreadyPrintAppService.cs
  7. 12
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application/PrintTable/WaitPrintAppService.cs
  8. 113
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/PrintTable/Entitys/AlreadyPrint.cs
  9. 113
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/PrintTable/Entitys/WaitPrint.cs
  10. 12
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/PrintTable/Services/AlreadyPrintDomainService.cs
  11. 12
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/PrintTable/Services/WaitPrintDomainService.cs
  12. 6
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore/EntityFrameworkCore/NewJitDbContext.cs
  13. 15
      src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.EntityFrameworkCore/EntityFrameworkCore/NewJitDbContextModelCreatingExtensions.cs

143
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/PrintTable/Dtos/AlreadyPrintDto.cs

@ -0,0 +1,143 @@
using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
using System;
using System.Collections.Generic;
using System.Text;
using Volo.Abp.Application.Dtos;
namespace WY.NewJit.PrintTable
{
/// <summary>
/// 零件查询结果DTO
/// </summary>
[ExcelExporter(Name = "已打印表", AutoFitAllColumn = true, MaxRowNumberOnASheet = 1000)] //一个Sheet最大允许的行数,设置了之后将输出多个Sheet
[Serializable]
public class AlreadyPrintDto
{
/// <summary>
/// 对应M100的Id
/// </summary>
public Guid M100Id { get; set; }
/// <summary>
/// 业务类型:1 门板 2 其它柱护板 3 柱护板
/// </summary>
[ExporterHeader(DisplayName = "业务类型")]
[ImporterHeader(Name = "业务类型")]
public string BusinessType { get; set; }
/// <summary>
/// 产线
/// </summary>
[ExporterHeader(DisplayName = "产线")]
[ImporterHeader(Name = "产线")]
public string ProductLine { get; set; }
/// <summary>
/// 上线时间
/// </summary>
[ExporterHeader(DisplayName = "上线时间")]
[ImporterHeader(Name = "上线时间")]
public DateTime OnlineTime { get; set; }
/// <summary>
/// 大众排序号
/// </summary>
[ExporterHeader(DisplayName = "大众排序号")]
[ImporterHeader(Name = "大众排序号")]
public int HostSN { get; set; }
/// <summary>
/// 订单号
/// </summary>
[ExporterHeader(DisplayName = "订单号")]
[ImporterHeader(Name = "订单号")]
public string KNR { get; set; }
/// <summary>
/// 底盘号(为空时是补充的断号记录)
/// </summary>
[ExporterHeader(DisplayName = "底盘号")]
[ImporterHeader(Name = "底盘号")]
public string VIN { get; set; }
/// <summary>
/// 车型
/// </summary>
[ExporterHeader(DisplayName = "车型")]
[ImporterHeader(Name = "车型")]
public string VehicleModelCode { get; set; }
/// <summary>
/// 总成组ID
/// </summary>
[ExporterHeader(DisplayName = "总成组ID")]
[ImporterHeader(Name = "总成组ID")]
public Guid? AssemblyID { get; set; }
/// <summary>
/// 单据状态:1 未解析 2 已解析 4 断号
/// </summary>
[ExporterHeader(DisplayName = "单据状态")]
[ImporterHeader(Name = "单据状态")]
public string BillStatus { get; set; }
/// <summary>
/// 打印类型: 1 顺序打印 2 补账打印
/// </summary>
[ExporterHeader(DisplayName = "打印类型")]
[ImporterHeader(Name = "打印类型")]
public int PrintType { get; set; }
/// <summary>
/// 自定义排序号(910001 910002 等)
/// </summary>
[ExporterHeader(DisplayName = "自定义排序号")]
[ImporterHeader(Name = "自定义排序号")]
public int HostSN2 { get; set; }
/// <summary>
/// 描述
/// </summary>
[ExporterHeader(DisplayName = "描述")]
[ImporterHeader(Name = "描述")]
public string Description { get; set; }
/// <summary>
/// 接收时间
/// </summary>
[ExporterHeader(DisplayName = "接收时间")]
[ImporterHeader(Name = "接收时间")]
public DateTime? ReceiveTime { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[ExporterHeader(DisplayName = "创建时间")]
[ImporterHeader(Name = "创建时间")]
public DateTime? CreationTime { get; set; }
/// <summary>
/// 创建人
/// </summary>
[ExporterHeader(DisplayName = "创建人")]
[ImporterHeader(Name = "创建人")]
public Guid? CreatorId { get; set; }
/// <summary>
/// 最后修改时间
/// </summary>
[ExporterHeader(DisplayName = "最后修改时间")]
[ImporterHeader(Name = "最后修改时间")]
public DateTime? LastModificationTime { get; set; }
/// <summary>
/// 最后修改人
/// </summary>
[ExporterHeader(DisplayName = "最后修改人")]
[ImporterHeader(Name = "最后修改人")]
public Guid? LastModifierId { get; set; }
}
}

141
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Application.Contracts/PrintTable/Dtos/WaitPrintDto.cs

@ -0,0 +1,141 @@
using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
using System;
using System.Collections.Generic;
using System.Text;
using Volo.Abp.Application.Dtos;
namespace WY.NewJit.PrintTable
{
/// <summary>
/// 零件查询结果DTO
/// </summary>
[ExcelExporter(Name = "未打印表", AutoFitAllColumn = true, MaxRowNumberOnASheet = 1000)] //一个Sheet最大允许的行数,设置了之后将输出多个Sheet
[Serializable]
public class WaitPrintDto
{
/// <summary>
/// 对应M100的Id
/// </summary>
public Guid M100Id { get; set; }
/// <summary>
/// 业务类型:1 门板 2 其它柱护板 3 柱护板
/// </summary>
[ExporterHeader(DisplayName = "业务类型")]
[ImporterHeader(Name = "业务类型")]
public string BusinessType { get; set; }
/// <summary>
/// 产线
/// </summary>
[ExporterHeader(DisplayName = "产线")]
[ImporterHeader(Name = "产线")]
public string ProductLine { get; set; }
/// <summary>
/// 上线时间
/// </summary>
[ExporterHeader(DisplayName = "上线时间")]
[ImporterHeader(Name = "上线时间")]
public DateTime OnlineTime { get; set; }
/// <summary>
/// 大众排序号
/// </summary>
[ExporterHeader(DisplayName = "大众排序号")]
[ImporterHeader(Name = "大众排序号")]
public int HostSN { get; set; }
/// <summary>
/// 订单号
/// </summary>
[ExporterHeader(DisplayName = "订单号")]
[ImporterHeader(Name = "订单号")]
public string KNR { get; set; }
/// <summary>
/// 底盘号(为空时是补充的断号记录)
/// </summary>
[ExporterHeader(DisplayName = "底盘号")]
[ImporterHeader(Name = "底盘号")]
public string VIN { get; set; }
/// <summary>
/// 车型
/// </summary>
[ExporterHeader(DisplayName = "车型")]
[ImporterHeader(Name = "车型")]
public string VehicleModelCode { get; set; }
/// <summary>
/// 总成组ID
/// </summary>
[ExporterHeader(DisplayName = "总成组ID")]
[ImporterHeader(Name = "总成组ID")]
public Guid? AssemblyID { get; set; }
/// <summary>
/// 单据状态:1 未解析 2 已解析 4 断号
/// </summary>
[ExporterHeader(DisplayName = "单据状态")]
[ImporterHeader(Name = "单据状态")]
public string BillStatus { get; set; }
/// <summary>
/// 打印类型: 1 顺序打印 2 补账打印
/// </summary>
[ExporterHeader(DisplayName = "打印类型")]
[ImporterHeader(Name = "打印类型")]
public int PrintType { get; set; }
/// <summary>
/// 自定义排序号(910001 910002 等)
/// </summary>
[ExporterHeader(DisplayName = "自定义排序号")]
[ImporterHeader(Name = "自定义排序号")]
public int HostSN2 { get; set; }
/// <summary>
/// 描述
/// </summary>
[ExporterHeader(DisplayName = "描述")]
[ImporterHeader(Name = "描述")]
public string Description { get; set; }
/// <summary>
/// 接收时间
/// </summary>
[ExporterHeader(DisplayName = "接收时间")]
[ImporterHeader(Name = "接收时间")]
public DateTime? ReceiveTime { get; set; }
/// <summary>
/// 创建时间
/// </summary>
[ExporterHeader(DisplayName = "创建时间")]
[ImporterHeader(Name = "创建时间")]
public DateTime? CreationTime { get; set; }
/// <summary>
/// 创建人
/// </summary>
[ExporterHeader(DisplayName = "创建人")]
[ImporterHeader(Name = "创建人")]
public Guid? CreatorId { get; set; }
/// <summary>
/// 最后修改时间
/// </summary>
[ExporterHeader(DisplayName = "最后修改时间")]
[ImporterHeader(Name = "最后修改时间")]
public DateTime? LastModificationTime { get; set; }
/// <summary>
/// 最后修改人
/// </summary>
[ExporterHeader(DisplayName = "最后修改人")]
[ImporterHeader(Name = "最后修改人")]
public Guid? LastModifierId { get; set; }
}
}

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

@ -31,4 +31,8 @@
<PackageReference Include="Volo.Abp.SettingManagement.Application.Contracts" Version="4.3.3" />
</ItemGroup>
<ItemGroup>
<Folder Include="PrintTable\Interfaces\" />
</ItemGroup>
</Project>

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

@ -3427,5 +3427,195 @@
读取记录数
</summary>
</member>
<member name="T:WY.NewJit.PrintTable.AlreadyPrintDto">
<summary>
零件查询结果DTO
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.AlreadyPrintDto.M100Id">
<summary>
对应M100的Id
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.AlreadyPrintDto.BusinessType">
<summary>
业务类型:1 门板 2 其它柱护板 3 柱护板
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.AlreadyPrintDto.ProductLine">
<summary>
产线
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.AlreadyPrintDto.OnlineTime">
<summary>
上线时间
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.AlreadyPrintDto.HostSN">
<summary>
大众排序号
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.AlreadyPrintDto.KNR">
<summary>
订单号
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.AlreadyPrintDto.VIN">
<summary>
底盘号(为空时是补充的断号记录)
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.AlreadyPrintDto.VehicleModelCode">
<summary>
车型
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.AlreadyPrintDto.AssemblyID">
<summary>
总成组ID
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.AlreadyPrintDto.BillStatus">
<summary>
单据状态:1 未解析 2 已解析 4 断号
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.AlreadyPrintDto.PrintType">
<summary>
打印类型: 1 顺序打印 2 补账打印
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.AlreadyPrintDto.HostSN2">
<summary>
自定义排序号(910001 910002 等)
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.AlreadyPrintDto.Description">
<summary>
描述
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.AlreadyPrintDto.ReceiveTime">
<summary>
接收时间
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.AlreadyPrintDto.CreationTime">
<summary>
创建时间
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.AlreadyPrintDto.CreatorId">
<summary>
创建人
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.AlreadyPrintDto.LastModificationTime">
<summary>
最后修改时间
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.AlreadyPrintDto.LastModifierId">
<summary>
最后修改人
</summary>
</member>
<member name="T:WY.NewJit.PrintTable.WaitPrintDto">
<summary>
零件查询结果DTO
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.WaitPrintDto.M100Id">
<summary>
对应M100的Id
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.WaitPrintDto.BusinessType">
<summary>
业务类型:1 门板 2 其它柱护板 3 柱护板
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.WaitPrintDto.ProductLine">
<summary>
产线
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.WaitPrintDto.OnlineTime">
<summary>
上线时间
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.WaitPrintDto.HostSN">
<summary>
大众排序号
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.WaitPrintDto.KNR">
<summary>
订单号
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.WaitPrintDto.VIN">
<summary>
底盘号(为空时是补充的断号记录)
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.WaitPrintDto.VehicleModelCode">
<summary>
车型
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.WaitPrintDto.AssemblyID">
<summary>
总成组ID
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.WaitPrintDto.BillStatus">
<summary>
单据状态:1 未解析 2 已解析 4 断号
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.WaitPrintDto.PrintType">
<summary>
打印类型: 1 顺序打印 2 补账打印
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.WaitPrintDto.HostSN2">
<summary>
自定义排序号(910001 910002 等)
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.WaitPrintDto.Description">
<summary>
描述
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.WaitPrintDto.ReceiveTime">
<summary>
接收时间
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.WaitPrintDto.CreationTime">
<summary>
创建时间
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.WaitPrintDto.CreatorId">
<summary>
创建人
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.WaitPrintDto.LastModificationTime">
<summary>
最后修改时间
</summary>
</member>
<member name="P:WY.NewJit.PrintTable.WaitPrintDto.LastModifierId">
<summary>
最后修改人
</summary>
</member>
</members>
</doc>

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

@ -6,6 +6,7 @@ using WY.NewJit.Extends;
using WY.NewJit.MsgBaseData;
using WY.NewJit.MsgCheck;
using WY.NewJit.MsgCheck.UnknownAssemblys;
using WY.NewJit.PrintTable;
namespace WY.NewJit
{
@ -100,6 +101,12 @@ namespace WY.NewJit
#endregion
#region 打印表
CreateMap<WaitPrint, WaitPrintDto>().ReverseMap();
CreateMap<AlreadyPrint, AlreadyPrintDto>().ReverseMap();
#endregion
}
}
}

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

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WY.NewJit.PrintTable
{
internal class AlreadyPrintAppService
{
}
}

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

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WY.NewJit.PrintTable
{
internal class WaitPrintAppService
{
}
}

113
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/PrintTable/Entitys/AlreadyPrint.cs

@ -0,0 +1,113 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
using Volo.Abp.Domain.Entities.Auditing;
namespace WY.NewJit.PrintTable
{
/// <summary>
/// 未打印表
/// </summary>
public class AlreadyPrint : Entity<Guid>
{
/// <summary>
///
/// </summary>
//public Guid Id { get; set; }
/// <summary>
/// 3 柱护板
/// </summary>
public Guid M100Id { get; set; }
/// <summary>
/// 业务类型:1 门板 2 其它柱护板 3 柱护板
/// </summary>
public string BusinessType { get; set; }
/// <summary>
/// 产线
/// </summary>
public string ProductLine { get; set; }
/// <summary>
/// 上线时间
/// </summary>
public DateTime OnlineTime { get; set; }
/// <summary>
/// 大众排序号
/// </summary>
public int HostSN { get; set; }
/// <summary>
/// 订单号
/// </summary>
public string KNR { get; set; }
/// <summary>
/// 底盘号(为空时是补充的断号记录)
/// </summary>
public string VIN { get; set; }
/// <summary>
/// 车型
/// </summary>
public string VehicleModelCode { get; set; }
/// <summary>
/// 总成组ID
/// </summary>
public Guid? AssemblyID { get; set; }
/// <summary>
/// 单据状态:1 未解析 2 已解析 4 断号
/// </summary>
public string BillStatus { get; set; }
/// <summary>
/// 打印类型: 1 顺序打印 2 补账打印
/// </summary>
public int PrintType { get; set; }
/// <summary>
/// 自定义排序号(910001 910002 等)
/// </summary>
public int HostSN2 { get; set; }
/// <summary>
/// 描述
/// </summary>
public string Description { get; set; }
/// <summary>
/// 接收时间
/// </summary>
public DateTime? ReceiveTime { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime? CreationTime { get; set; }
/// <summary>
/// 创建人
/// </summary>
public Guid? CreatorId { get; set; }
/// <summary>
/// 最后修改时间
/// </summary>
public DateTime? LastModificationTime { get; set; }
/// <summary>
/// 最后修改人
/// </summary>
public Guid? LastModifierId { get; set; }
}
}

113
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/PrintTable/Entitys/WaitPrint.cs

@ -0,0 +1,113 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Domain.Entities;
using Volo.Abp.Domain.Entities.Auditing;
namespace WY.NewJit.PrintTable
{
/// <summary>
/// 未打印表
/// </summary>
public class WaitPrint : Entity<Guid>
{
/// <summary>
///
/// </summary>
//public Guid Id { get; set; }
/// <summary>
/// 3 柱护板
/// </summary>
public Guid M100Id { get; set; }
/// <summary>
/// 业务类型:1 门板 2 其它柱护板 3 柱护板
/// </summary>
public string BusinessType { get; set; }
/// <summary>
/// 产线
/// </summary>
public string ProductLine { get; set; }
/// <summary>
/// 上线时间
/// </summary>
public DateTime OnlineTime { get; set; }
/// <summary>
/// 大众排序号
/// </summary>
public int HostSN { get; set; }
/// <summary>
/// 订单号
/// </summary>
public string KNR { get; set; }
/// <summary>
/// 底盘号(为空时是补充的断号记录)
/// </summary>
public string VIN { get; set; }
/// <summary>
/// 车型
/// </summary>
public string VehicleModelCode { get; set; }
/// <summary>
/// 总成组ID
/// </summary>
public Guid? AssemblyID { get; set; }
/// <summary>
/// 单据状态:1 未解析 2 已解析 4 断号
/// </summary>
public string BillStatus { get; set; }
/// <summary>
/// 打印类型: 1 顺序打印 2 补账打印
/// </summary>
public int PrintType { get; set; }
/// <summary>
/// 自定义排序号(910001 910002 等)
/// </summary>
public int HostSN2 { get; set; }
/// <summary>
/// 描述
/// </summary>
public string Description { get; set; }
/// <summary>
/// 接收时间
/// </summary>
public DateTime? ReceiveTime { get; set; }
/// <summary>
/// 创建时间
/// </summary>
public DateTime? CreationTime { get; set; }
/// <summary>
/// 创建人
/// </summary>
public Guid? CreatorId { get; set; }
/// <summary>
/// 最后修改时间
/// </summary>
public DateTime? LastModificationTime { get; set; }
/// <summary>
/// 最后修改人
/// </summary>
public Guid? LastModifierId { get; set; }
}
}

12
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/PrintTable/Services/AlreadyPrintDomainService.cs

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WY.NewJit.PrintTable.Services
{
internal class AlreadyPrintDomainService
{
}
}

12
src/Modules/新版JIT或JIS系统服务端/src/WY.NewJit.Domain/PrintTable/Services/WaitPrintDomainService.cs

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WY.NewJit.PrintTable.Services
{
internal class WaitPrintDomainService
{
}
}

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

@ -16,6 +16,7 @@ using WY.NewJit.Extends.PaiGe;
using WY.NewJit.Commons;
using WY.NewJit.Extends.PaiGe.WMS;
using WY.NewJit.MsgBaseData.Entitys;
using WY.NewJit.PrintTable;
namespace WY.NewJit.EntityFrameworkCore
{
@ -146,6 +147,11 @@ namespace WY.NewJit.EntityFrameworkCore
#endregion
#region 打印表
public DbSet<WaitPrint> wait_print { get; set; }
public DbSet<AlreadyPrint> already_print { get; set; }
#endregion
/* Add DbSet properties for your Aggregate Roots / Entities here.
* Also map them inside NewJitDbContextModelCreatingExtensions.ConfigureNewJit
*/

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

@ -11,6 +11,7 @@ using WY.NewJit.MsgBaseData.Entitys;
using WY.NewJit.MsgCheck;
using WY.NewJit.MsgConversion;
using WY.NewJit.MsgTransmission;
using WY.NewJit.PrintTable;
using WY.NewJit.TianHe;
namespace WY.NewJit.EntityFrameworkCore
@ -580,6 +581,20 @@ namespace WY.NewJit.EntityFrameworkCore
#endregion
#region 打印表
builder.Entity<WaitPrint>(b =>
{
b.ToTable(NewJitConsts.DbTablePrefix + nameof(WaitPrint)); //将Book实体映射到数据库表XXXBooks
b.ConfigureByConvention();//配置/映射继承的属性,应始终对你所有的实体使用它
});
builder.Entity<AlreadyPrint>(b =>
{
b.ToTable(NewJitConsts.DbTablePrefix + nameof(AlreadyPrint)); //将Book实体映射到数据库表XXXBooks
b.ConfigureByConvention();//配置/映射继承的属性,应始终对你所有的实体使用它
});
#endregion
}
}
}
Loading…
Cancel
Save