wanggang 1 year ago
parent
commit
7c270d9416
  1. 2
      docs/demo/src/WTA.Application/Identity/Data/IdentityDbSeed.cs
  2. 1
      docs/demo/src/WTA.Application/Identity/Entities/SystemManagement/INVOICE.cs

2
docs/demo/src/WTA.Application/Identity/Data/IdentityDbSeed.cs

@ -141,6 +141,8 @@ public class IdentityDbSeed : IDbSeed<IdentityDbContext>
context.Set<BJ_DN_DETAIL>().Add(new BJ_DN_DETAIL { KeyCode = "测试数据", Version = "测试数据", LU = "测试数据", PN = "测试数据", Site = "测试数据", SettleDate = new DateTime(), State = "测试数据", INVGroupNum = "测试数据", GroupNum = "测试数据", DNBillNum = "测试数据" }); context.Set<BJ_DN_DETAIL>().Add(new BJ_DN_DETAIL { KeyCode = "测试数据", Version = "测试数据", LU = "测试数据", PN = "测试数据", Site = "测试数据", SettleDate = new DateTime(), State = "测试数据", INVGroupNum = "测试数据", GroupNum = "测试数据", DNBillNum = "测试数据" });
context.Set<IN_DN>().Add(new IN_DN { Version = "测试数据", DNBillNum = "123", StockCount = "测试数据" }); context.Set<IN_DN>().Add(new IN_DN { Version = "测试数据", DNBillNum = "123", StockCount = "测试数据" });
context.Set<IN_DN_DETAIL>().Add(new IN_DN_DETAIL { KeyCode = "测试数据", Version = "测试数据", LU = "测试数据", PU = "测试数据", Site = "测试数据", SettleDate = new DateTime(), State = "测试数据", INVGroupNum = "测试数据", GroupNum = "测试数据", DNBillNum = "测试数据" }); context.Set<IN_DN_DETAIL>().Add(new IN_DN_DETAIL { KeyCode = "测试数据", Version = "测试数据", LU = "测试数据", PU = "测试数据", Site = "测试数据", SettleDate = new DateTime(), State = "测试数据", INVGroupNum = "测试数据", GroupNum = "测试数据", DNBillNum = "测试数据" });
context.Set<INVOICE>().Add(new INVOICE { RealnvBillNum = "测试数据", InvbillNum = "123", INVGroupNum = "测试数据", FileName ="测试数据",BusinessType="测试数据"});
context.Set<INVOICE_DETAIL>().Add(new INVOICE_DETAIL { LU = "测试数据", InvbillNum = "123"});
} }
private void InitDictionaries(DbContext context) private void InitDictionaries(DbContext context)

1
docs/demo/src/WTA.Application/Identity/Entities/SystemManagement/INVOICE.cs

@ -13,6 +13,7 @@ public class INVOICE : BaseEntity
public string RealnvBillNum { get; set; } = null!; public string RealnvBillNum { get; set; } = null!;
[Display(Name = "系统生成发票号")] [Display(Name = "系统生成发票号")]
[OneToMany<INVOICE_DETAIL>]
public string InvbillNum { get; set; } = null!; public string InvbillNum { get; set; } = null!;
[Display(Name = "未税金额")] [Display(Name = "未税金额")]

Loading…
Cancel
Save