Browse Source

update

master
姜旭之 1 year ago
parent
commit
0f7d598a6f
  1. 32
      docs/demo/src/WTA.Application/Identity/Controllers/CodeSettingController.cs
  2. 10
      docs/demo/src/WTA.Application/Identity/Data/IdentityDbSeed.cs
  3. 2
      docs/demo/src/WTA.Application/Identity/Entities/SystemManagement/BBAC_SE_DETAIL.cs
  4. 29
      docs/demo/src/WTA.Application/Identity/Entities/SystemManagement/CodeSetting.cs
  5. 2
      docs/demo/src/WTA.Application/Identity/Entities/SystemManagement/HBPO_NOT_SA_DETAIL.cs
  6. 1
      docs/demo/src/WTA.Application/Identity/Entities/SystemManagement/HBPO_SA.cs
  7. 3
      docs/demo/src/WTA.Application/Identity/Entities/SystemManagement/HBPO_SE_DETAIL.cs
  8. 2
      docs/demo/src/WTA.Application/Identity/Entities/SystemManagement/HBPO_SE_EDI.cs

32
docs/demo/src/WTA.Application/Identity/Controllers/CodeSettingController.cs

@ -0,0 +1,32 @@
using System.ComponentModel.DataAnnotations;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Logging;
using WTA.Application.Identity.Entities.SystemManagement;
using WTA.Shared.Application;
using WTA.Shared.Controllers;
using WTA.Shared.Data;
namespace WTA.Application.Identity.Controllers;
public class CodeSettingController : GenericController<CodeSetting, CodeSetting, CodeSetting, CodeSetting, CodeSetting, CodeSetting>
{
public CodeSettingController(ILogger<CodeSetting> logger, IRepository<CodeSetting> repository) : base(logger, repository)
{
}
[Display(Name = "导出Excel")]
public override IActionResult Export([FromBody] PaginationModel<CodeSetting, CodeSetting> model, bool includeAll = false, bool includeDeleted = false)
{
return base.Export(model, includeAll, includeDeleted);
}
[Display(Name = "搜索")]
public override IActionResult Index([FromBody] PaginationModel<CodeSetting, CodeSetting> model)
{
return base.Index(model);
}
[Display(Name = "新增")]
public override IActionResult Create([FromBody] CodeSetting model)
{
return base.Create(model);
}
}

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

@ -172,10 +172,20 @@ public class IdentityDbSeed : IDbSeed<IdentityDbContext>
context.Set<INVOICE_NOT_SETTLE>().Add(new INVOICE_NOT_SETTLE { InvGroupNum = "分组号测试数据一", Version = "测试数据", SettleGroupNum = "测试数据", LU = "测试数据", LU1 = "测试数据", Extend1 = "测试数据", Extend2 = "测试数据" });
context.Set<INVOICE_NOT_SETTLE>().Add(new INVOICE_NOT_SETTLE { InvGroupNum = "分组号测试数据二", Version = "测试数据", SettleGroupNum = "测试数据", LU = "测试数据", LU1 = "测试数据", Extend1 = "测试数据", Extend2 = "测试数据" });
context.Set<HBPO_SE_REPORT>().Add(new HBPO_SE_REPORT { KeyCode = "测试数据", Version = "测试数据", LU = "测试数据", PN = "测试数据", SeqNumber = "测试数据", AssemblyCode = "测试数据", InjectionCode = "测试数据", BeginDate = new DateTime(), ShippingDate = new DateTime(), WmsBillNum = "测试数据" });
context.Set<BBAC_SE_REPORT>().Add(new BBAC_SE_REPORT { KeyCode = "测试数据", Version = "测试数据", LU = "测试数据", PN = "测试数据", SeqNumber = "测试数据", AssemblyCode = "测试数据", InjectionCode = "测试数据", BeginDate = new DateTime(), ShippingDate = new DateTime(), WmsBillNum = "测试数据" });
context.Set<PUB_SA>().Add(new PUB_SA { Version = "测试数据", State = "测试数据", BillNum = "1号测试数据" });
context.Set<PUB_SA>().Add(new PUB_SA { Version = "测试数据", State = "测试数据", BillNum = "2号测试数据" });
context.Set<PUB_SA>().Add(new PUB_SA { Version = "测试数据", State = "测试数据", BillNum = "3号测试数据" });
context.Set<PUB_SA>().Add(new PUB_SA { Version = "测试数据", State = "测试数据", BillNum = "一号测试数据" });
context.Set<PUB_SA>().Add(new PUB_SA { Version = "测试数据", State = "测试数据", BillNum = "二号测试数据" });
context.Set<PUB_SA>().Add(new PUB_SA { Version = "测试数据", State = "测试数据", BillNum = "三号测试数据" });
context.Set<PUB_SA_DETAIL>().Add(new PUB_SA_DETAIL { KeyCode = "测试数据", Version = "测试数据", BillNum = "1号测试数据", LU = "测试数据", PN = "测试数据", Site = "测试数据", InvGroupNum = "测试数据", SettleDate = new DateTime(), Extend1 = "测试数据", Extend2 = "测试数据", Extend3 = "测试数据", GroupNum = "测试数据" });
context.Set<PUB_SA_DETAIL>().Add(new PUB_SA_DETAIL { KeyCode = "测试数据", Version = "测试数据", BillNum = "2号测试数据", LU = "测试数据", PN = "测试数据", Site = "测试数据", InvGroupNum = "测试数据", SettleDate = new DateTime(), Extend1 = "测试数据", Extend2 = "测试数据", Extend3 = "测试数据", GroupNum = "测试数据" });
context.Set<PUB_SA_DETAIL>().Add(new PUB_SA_DETAIL { KeyCode = "测试数据", Version = "测试数据", BillNum = "3号测试数据", LU = "测试数据", PN = "测试数据", Site = "测试数据", InvGroupNum = "测试数据", SettleDate = new DateTime(), Extend1 = "测试数据", Extend2 = "测试数据", Extend3 = "测试数据", GroupNum = "测试数据" });
context.Set<PUB_SA_DETAIL>().Add(new PUB_SA_DETAIL { KeyCode = "测试数据", Version = "测试数据", BillNum = "一号测试数据", LU = "测试数据", PN = "测试数据", Site = "测试数据", InvGroupNum = "测试数据", SettleDate = new DateTime(), Extend1 = "测试数据", Extend2 = "测试数据", Extend3 = "测试数据", GroupNum = "测试数据" });
context.Set<PUB_SA_DETAIL>().Add(new PUB_SA_DETAIL { KeyCode = "测试数据", Version = "测试数据", BillNum = "二号测试数据", LU = "测试数据", PN = "测试数据", Site = "测试数据", InvGroupNum = "测试数据", SettleDate = new DateTime(), Extend1 = "测试数据", Extend2 = "测试数据", Extend3 = "测试数据", GroupNum = "测试数据" });
context.Set<PUB_SA_DETAIL>().Add(new PUB_SA_DETAIL { KeyCode = "测试数据", Version = "测试数据", BillNum = "三号测试数据", LU = "测试数据", PN = "测试数据", Site = "测试数据", InvGroupNum = "测试数据", SettleDate = new DateTime(), Extend1 = "测试数据", Extend2 = "测试数据", Extend3 = "测试数据", GroupNum = "测试数据" });
}
private static void InitDictionaries(DbContext context)

2
docs/demo/src/WTA.Application/Identity/Entities/SystemManagement/BBAC_SE_DETAIL.cs

@ -5,7 +5,7 @@ using WTA.Shared.Domain;
namespace WTA.Application.Identity.Entities.SystemManagement;
[Order(4)]
[Order(2)]
[JISBBACDataInputGroup]
[Display(Name = "JIS发运数据")]
//BBAC发运单

29
docs/demo/src/WTA.Application/Identity/Entities/SystemManagement/CodeSetting.cs

@ -0,0 +1,29 @@
using System.ComponentModel.DataAnnotations;
using WTA.Shared.Attributes;
using WTA.Shared.Domain;
namespace WTA.Application.Identity.Entities.SystemManagement;
[SystemManagement]
[Order(4)]
[Display(Name = "通用代码")]
public class CodeSetting : BaseEntity
{
/// <summary>
/// 项目
/// </summary>
[Display(Name = "项目")]
public string Project { set; get; } = null!;
/// <summary>
/// 值
/// </summary>
[Display(Name = "值")]
public string Value { set; get; } = null!;
/// <summary>
/// 描述
/// </summary>
[Display(Name = "描述")]
public string Description { set; get; } = null!;
}

2
docs/demo/src/WTA.Application/Identity/Entities/SystemManagement/HBPO_NOT_SA_DETAIL.cs

@ -1,5 +1,6 @@
using System.ComponentModel.DataAnnotations;
using WTA.Application.Identity.Entities.SystemManagement.Group;
using WTA.Shared.Attributes;
using WTA.Shared.Domain;
namespace WTA.Application.Identity.Entities.SystemManagement;
@ -29,6 +30,7 @@ namespace WTA.Application.Identity.Entities.SystemManagement;
// [Display(Name = "明细记录行数")]
// public string RecordCount { get; set; } = null!;
//}
[Order(2)]
[JISHBPOSettlementInvoicingGroup]
[Display(Name = "不可结算单")]
//HBPO不可结算导入明细

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

@ -4,6 +4,7 @@ using WTA.Shared.Attributes;
using WTA.Shared.Domain;
namespace WTA.Application.Identity.Entities.SystemManagement;
[Order(1)]
[JISHBPODataInputGroup]
[Display(Name = "JIS结算数据")]
//HBPO结算导入

3
docs/demo/src/WTA.Application/Identity/Entities/SystemManagement/HBPO_SE_DETAIL.cs

@ -1,9 +1,10 @@
using System.ComponentModel.DataAnnotations;
using WTA.Application.Identity.Entities.SystemManagement.Group;
using WTA.Shared.Attributes;
using WTA.Shared.Domain;
namespace WTA.Application.Identity.Entities.SystemManagement;
[Order(2)]
[Display(Name = "JIS发运数据")]
//HBPO发运数据
[JISHBPODataInputGroup]

2
docs/demo/src/WTA.Application/Identity/Entities/SystemManagement/HBPO_SE_EDI.cs

@ -1,8 +1,10 @@
using System.ComponentModel.DataAnnotations;
using WTA.Application.Identity.Entities.SystemManagement.Group;
using WTA.Shared.Attributes;
using WTA.Shared.Domain;
namespace WTA.Application.Identity.Entities.SystemManagement;
[Order(3)]
[JISHBPODataInputGroup]
[Display(Name = "EDI数据")]
//HBPO的EDI数据

Loading…
Cancel
Save