姜旭之
1 year ago
43 changed files with 687 additions and 213 deletions
@ -0,0 +1,54 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Microsoft.AspNetCore.Http; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using Microsoft.Extensions.Logging; |
|||
using WTA.Application.Identity.Entities.SystemManagement; |
|||
using WTA.Shared.Application; |
|||
using WTA.Shared.Attributes; |
|||
using WTA.Shared.Controllers; |
|||
using WTA.Shared.Data; |
|||
|
|||
namespace WTA.Application.Identity.Controllers; |
|||
|
|||
public class BBAC_SE_REPORTController : GenericController<BBAC_SE_REPORT, BBAC_SE_REPORT, BBAC_SE_REPORT, BBAC_SE_REPORT, BBAC_SE_REPORT, BBAC_SE_REPORT> |
|||
{ |
|||
public BBAC_SE_REPORTController(ILogger<BBAC_SE_REPORT> logger, IRepository<BBAC_SE_REPORT> repository) : base(logger, repository) |
|||
{ |
|||
} |
|||
|
|||
[NonAction] |
|||
public override IActionResult Create([FromBody] BBAC_SE_REPORT model) |
|||
{ |
|||
return base.Create(model); |
|||
} |
|||
|
|||
[NonAction] |
|||
public override IActionResult Delete([FromBody] Guid[] guids) |
|||
{ |
|||
return base.Delete(guids); |
|||
} |
|||
|
|||
[NonAction] |
|||
public override IActionResult Export([FromBody] PaginationModel<BBAC_SE_REPORT, BBAC_SE_REPORT> model, bool includeAll = false, bool includeDeleted = false) |
|||
{ |
|||
return base.Export(model, includeAll, includeDeleted); |
|||
} |
|||
|
|||
[NonAction] |
|||
public override IActionResult Import([Required] IFormFile file, bool partial = false, bool replace = false) |
|||
{ |
|||
return base.Import(file, partial, replace); |
|||
} |
|||
|
|||
[NonAction] |
|||
public override IActionResult Update([FromBody] BBAC_SE_REPORT model) |
|||
{ |
|||
return base.Update(model); |
|||
} |
|||
|
|||
[HttpPost, Display(Name = "生成比对"), Multiple] |
|||
public IActionResult? ExportEDIJob() |
|||
{ |
|||
return null; |
|||
} |
|||
} |
@ -0,0 +1,60 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Microsoft.AspNetCore.Authorization; |
|||
using Microsoft.AspNetCore.Http; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using WTA.Application.Identity.Entities.SystemManagement; |
|||
using WTA.Application.Identity.Entities.SystemManagement.Group; |
|||
using WTA.Shared.Application; |
|||
using WTA.Shared.Attributes; |
|||
using WTA.Shared.Controllers; |
|||
|
|||
namespace WTA.Application.Identity.Controllers; |
|||
|
|||
[Route("api/{culture=zh}/[controller]/[action]")]
|
|||
public class BJ_PUB_CAN_SAController : BaseController, IResourceService<BJ_PUB_CAN_SA> |
|||
{ |
|||
private readonly GenericController<PUB_CAN_SA, PUB_CAN_SA, PUB_CAN_SA, PUB_CAN_SA, PUB_CAN_SA, PUB_CAN_SA> _genericController; |
|||
|
|||
public BJ_PUB_CAN_SAController(GenericController<PUB_CAN_SA, PUB_CAN_SA, PUB_CAN_SA, PUB_CAN_SA, PUB_CAN_SA, PUB_CAN_SA> genericController) |
|||
{ |
|||
this._genericController = genericController; |
|||
} |
|||
|
|||
[HttpGet] |
|||
public virtual IActionResult Index() |
|||
{ |
|||
return this._genericController.Index(); |
|||
} |
|||
|
|||
[HttpPost, Multiple, Order(-4), HtmlClass("el-button--primary")] |
|||
public virtual IActionResult Index([FromBody] PaginationModel<PUB_CAN_SA, PUB_CAN_SA> model) |
|||
{ |
|||
return this._genericController.Index(model); |
|||
} |
|||
|
|||
[HttpGet, AllowAnonymous, Multiple, Order(-2), HtmlClass("el-button--primary")] |
|||
public virtual IActionResult Import() |
|||
{ |
|||
return this._genericController.Import(); |
|||
} |
|||
|
|||
[Consumes("multipart/form-data")] |
|||
[HttpPost, Multiple, Order(-2), HtmlClass("el-button--primary")] |
|||
public virtual IActionResult Import([Required] IFormFile file, bool partial = false, bool replace = false) |
|||
{ |
|||
return this._genericController.Import(file, partial, replace); |
|||
} |
|||
|
|||
[HttpPost, Multiple, Order(0), HtmlClass("el-button--danger")] |
|||
public virtual IActionResult Delete([FromBody] Guid[] guids) |
|||
{ |
|||
return this._genericController.Delete(guids); |
|||
} |
|||
} |
|||
|
|||
[Order(1)] |
|||
[BJDataInputGroup] |
|||
[Display(Name = "结算数据")] |
|||
public class BJ_PUB_CAN_SA : IResource |
|||
{ |
|||
} |
@ -0,0 +1,45 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using WTA.Application.Identity.Entities.SystemManagement; |
|||
using WTA.Application.Identity.Entities.SystemManagement.Group; |
|||
using WTA.Shared.Application; |
|||
using WTA.Shared.Attributes; |
|||
using WTA.Shared.Controllers; |
|||
|
|||
namespace WTA.Application.Identity.Controllers; |
|||
|
|||
[Route("api/{culture=zh}/[controller]/[action]")]
|
|||
public class BJ_PUB_CAN_SA_DETAILController : BaseController, IResourceService<BJ_PUB_CAN_SA_DETAIL> |
|||
{ |
|||
private readonly GenericController<PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL> _genericController; |
|||
|
|||
public BJ_PUB_CAN_SA_DETAILController(GenericController<PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL> genericController) |
|||
{ |
|||
this._genericController = genericController; |
|||
} |
|||
|
|||
[HttpGet] |
|||
public virtual IActionResult Index() |
|||
{ |
|||
return this._genericController.Index(); |
|||
} |
|||
|
|||
[HttpPost, Multiple, Order(-4), HtmlClass("el-button--primary")] |
|||
public virtual IActionResult Index([FromBody] PaginationModel<PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL> model) |
|||
{ |
|||
return this._genericController.Index(model); |
|||
} |
|||
|
|||
[HttpPost, Multiple, Order(-1), HtmlClass("el-button--warning")] |
|||
public virtual IActionResult Export([FromBody] PaginationModel<PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL> model, bool includeAll = false, bool includeDeleted = false) |
|||
{ |
|||
return this._genericController.Export(model, includeAll, includeDeleted); |
|||
} |
|||
} |
|||
|
|||
[Hidden] |
|||
[Display(Name = "结算数据")] |
|||
[BJDataInputGroup] |
|||
public class BJ_PUB_CAN_SA_DETAIL : IResource |
|||
{ |
|||
} |
@ -0,0 +1,46 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using WTA.Application.Identity.Entities.SystemManagement; |
|||
using WTA.Application.Identity.Entities.SystemManagement.Group; |
|||
using WTA.Shared.Application; |
|||
using WTA.Shared.Attributes; |
|||
using WTA.Shared.Controllers; |
|||
using RouteAttribute = Microsoft.AspNetCore.Mvc.RouteAttribute; |
|||
|
|||
namespace WTA.Application.Identity.Controllers; |
|||
|
|||
[Route("api/{culture=zh}/[controller]/[action]")]
|
|||
public class BJ_PUB_SE_DETAILController : BaseController, IResourceService<BJ_PUB_SE_DETAIL> |
|||
{ |
|||
private readonly GenericController<PUB_SE_DETAIL, PUB_SE_DETAIL, PUB_SE_DETAIL, PUB_SE_DETAIL, PUB_SE_DETAIL, PUB_SE_DETAIL> _genericController; |
|||
|
|||
public BJ_PUB_SE_DETAILController(GenericController<PUB_SE_DETAIL, PUB_SE_DETAIL, PUB_SE_DETAIL, PUB_SE_DETAIL, PUB_SE_DETAIL, PUB_SE_DETAIL> genericController) |
|||
{ |
|||
this._genericController = genericController; |
|||
} |
|||
|
|||
[HttpGet] |
|||
public virtual IActionResult Index() |
|||
{ |
|||
return this._genericController.Index(); |
|||
} |
|||
|
|||
[HttpPost, Multiple, Order(-4), HtmlClass("el-button--primary")] |
|||
public virtual IActionResult Index([FromBody] PaginationModel<PUB_SE_DETAIL, PUB_SE_DETAIL> model) |
|||
{ |
|||
return this._genericController.Index(model); |
|||
} |
|||
|
|||
[HttpPost, Multiple, Order(-1), HtmlClass("el-button--warning")] |
|||
public virtual IActionResult Export([FromBody] PaginationModel<PUB_SE_DETAIL, PUB_SE_DETAIL> model, bool includeAll = false, bool includeDeleted = false) |
|||
{ |
|||
return this._genericController.Export(model, includeAll, includeDeleted); |
|||
} |
|||
} |
|||
|
|||
[Order(2)] |
|||
[BJDataInputGroup] |
|||
[Display(Name = "发运数据")] |
|||
public class BJ_PUB_SE_DETAIL : IResource |
|||
{ |
|||
} |
@ -1,34 +1,36 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.ComponentModel.DataAnnotations; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using Microsoft.AspNetCore.Http; |
|||
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 BJ_SE_DETAILController : GenericController<BJ_SE_DETAIL, BJ_SE_DETAIL, BJ_SE_DETAIL, BJ_SE_DETAIL, BJ_SE_DETAIL, BJ_SE_DETAIL> |
|||
public class BOMController : GenericController<BOM, BOM, BOM, BOM, BOM, BOM> |
|||
{ |
|||
public BJ_SE_DETAILController(ILogger<BJ_SE_DETAIL> logger, IRepository<BJ_SE_DETAIL> repository) : base(logger, repository) |
|||
public BOMController(ILogger<BOM> logger, IRepository<BOM> repository) : base(logger, repository) |
|||
{ |
|||
} |
|||
|
|||
[NonAction] |
|||
public override IActionResult Import([Required] IFormFile file, bool partial = false, bool replace = false) |
|||
public override IActionResult Create([FromBody] BOM model) |
|||
{ |
|||
return base.Import(file); |
|||
return base.Create(model); |
|||
} |
|||
|
|||
[NonAction] |
|||
public override IActionResult Delete([FromBody] Guid[] guids) |
|||
{ |
|||
return base.Delete(guids); |
|||
} |
|||
|
|||
[NonAction] |
|||
public override IActionResult Create([FromBody] BJ_SE_DETAIL model) |
|||
public override IActionResult Import([Required] IFormFile file, bool partial = false, bool replace = false) |
|||
{ |
|||
return base.Create(model); |
|||
return base.Import(file, partial, replace); |
|||
} |
|||
} |
@ -0,0 +1,54 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Microsoft.AspNetCore.Http; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using Microsoft.Extensions.Logging; |
|||
using WTA.Application.Identity.Entities.SystemManagement; |
|||
using WTA.Shared.Application; |
|||
using WTA.Shared.Attributes; |
|||
using WTA.Shared.Controllers; |
|||
using WTA.Shared.Data; |
|||
|
|||
namespace WTA.Application.Identity.Controllers; |
|||
|
|||
public class HBPO_SE_REPORTController : GenericController<HBPO_SE_REPORT, HBPO_SE_REPORT, HBPO_SE_REPORT, HBPO_SE_REPORT, HBPO_SE_REPORT, HBPO_SE_REPORT> |
|||
{ |
|||
public HBPO_SE_REPORTController(ILogger<HBPO_SE_REPORT> logger, IRepository<HBPO_SE_REPORT> repository) : base(logger, repository) |
|||
{ |
|||
} |
|||
|
|||
[NonAction] |
|||
public override IActionResult Create([FromBody] HBPO_SE_REPORT model) |
|||
{ |
|||
return base.Create(model); |
|||
} |
|||
|
|||
[NonAction] |
|||
public override IActionResult Delete([FromBody] Guid[] guids) |
|||
{ |
|||
return base.Delete(guids); |
|||
} |
|||
|
|||
[NonAction] |
|||
public override IActionResult Export([FromBody] PaginationModel<HBPO_SE_REPORT, HBPO_SE_REPORT> model, bool includeAll = false, bool includeDeleted = false) |
|||
{ |
|||
return base.Export(model, includeAll, includeDeleted); |
|||
} |
|||
|
|||
[NonAction] |
|||
public override IActionResult Import([Required] IFormFile file, bool partial = false, bool replace = false) |
|||
{ |
|||
return base.Import(file, partial, replace); |
|||
} |
|||
|
|||
[NonAction] |
|||
public override IActionResult Update([FromBody] HBPO_SE_REPORT model) |
|||
{ |
|||
return base.Update(model); |
|||
} |
|||
|
|||
[HttpPost, Display(Name = "生成比对"), Multiple] |
|||
public IActionResult? ExportEDIJob() |
|||
{ |
|||
return null; |
|||
} |
|||
} |
@ -0,0 +1,60 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Microsoft.AspNetCore.Authorization; |
|||
using Microsoft.AspNetCore.Http; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using WTA.Application.Identity.Entities.SystemManagement; |
|||
using WTA.Application.Identity.Entities.SystemManagement.Group; |
|||
using WTA.Shared.Application; |
|||
using WTA.Shared.Attributes; |
|||
using WTA.Shared.Controllers; |
|||
|
|||
namespace WTA.Application.Identity.Controllers; |
|||
|
|||
[Route("api/{culture=zh}/[controller]/[action]")]
|
|||
public class IN_PUB_CAN_SAController : BaseController, IResourceService<IN_PUB_CAN_SA> |
|||
{ |
|||
private readonly GenericController<PUB_CAN_SA, PUB_CAN_SA, PUB_CAN_SA, PUB_CAN_SA, PUB_CAN_SA, PUB_CAN_SA> _genericController; |
|||
|
|||
public IN_PUB_CAN_SAController(GenericController<PUB_CAN_SA, PUB_CAN_SA, PUB_CAN_SA, PUB_CAN_SA, PUB_CAN_SA, PUB_CAN_SA> genericController) |
|||
{ |
|||
this._genericController = genericController; |
|||
} |
|||
|
|||
[HttpGet] |
|||
public virtual IActionResult Index() |
|||
{ |
|||
return this._genericController.Index(); |
|||
} |
|||
|
|||
[HttpPost, Multiple, Order(-4), HtmlClass("el-button--primary")] |
|||
public virtual IActionResult Index([FromBody] PaginationModel<PUB_CAN_SA, PUB_CAN_SA> model) |
|||
{ |
|||
return this._genericController.Index(model); |
|||
} |
|||
|
|||
[HttpGet, AllowAnonymous, Multiple, Order(-2), HtmlClass("el-button--primary")] |
|||
public virtual IActionResult Import() |
|||
{ |
|||
return this._genericController.Import(); |
|||
} |
|||
|
|||
[Consumes("multipart/form-data")] |
|||
[HttpPost, Multiple, Order(-2), HtmlClass("el-button--primary")] |
|||
public virtual IActionResult Import([Required] IFormFile file, bool partial = false, bool replace = false) |
|||
{ |
|||
return this._genericController.Import(file, partial, replace); |
|||
} |
|||
|
|||
[HttpPost, Multiple, Order(0), HtmlClass("el-button--danger")] |
|||
public virtual IActionResult Delete([FromBody] Guid[] guids) |
|||
{ |
|||
return this._genericController.Delete(guids); |
|||
} |
|||
} |
|||
|
|||
[Order(1)] |
|||
[INDataInputGroup] |
|||
[Display(Name = "结算数据")] |
|||
public class IN_PUB_CAN_SA : IResource |
|||
{ |
|||
} |
@ -0,0 +1,45 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using WTA.Application.Identity.Entities.SystemManagement; |
|||
using WTA.Application.Identity.Entities.SystemManagement.Group; |
|||
using WTA.Shared.Application; |
|||
using WTA.Shared.Attributes; |
|||
using WTA.Shared.Controllers; |
|||
|
|||
namespace WTA.Application.Identity.Controllers; |
|||
|
|||
[Route("api/{culture=zh}/[controller]/[action]")]
|
|||
public class IN_PUB_CAN_SA_DETAILController : BaseController, IResourceService<IN_PUB_CAN_SA_DETAIL> |
|||
{ |
|||
private readonly GenericController<PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL> _genericController; |
|||
|
|||
public IN_PUB_CAN_SA_DETAILController(GenericController<PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL> genericController) |
|||
{ |
|||
this._genericController = genericController; |
|||
} |
|||
|
|||
[HttpGet] |
|||
public virtual IActionResult Index() |
|||
{ |
|||
return this._genericController.Index(); |
|||
} |
|||
|
|||
[HttpPost, Multiple, Order(-4), HtmlClass("el-button--primary")] |
|||
public virtual IActionResult Index([FromBody] PaginationModel<PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL> model) |
|||
{ |
|||
return this._genericController.Index(model); |
|||
} |
|||
|
|||
[HttpPost, Multiple, Order(-1), HtmlClass("el-button--warning")] |
|||
public virtual IActionResult Export([FromBody] PaginationModel<PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL> model, bool includeAll = false, bool includeDeleted = false) |
|||
{ |
|||
return this._genericController.Export(model, includeAll, includeDeleted); |
|||
} |
|||
} |
|||
[Hidden] |
|||
[Display(Name = "结算数据")] |
|||
[INDataInputGroup] |
|||
[Order(1)] |
|||
public class IN_PUB_CAN_SA_DETAIL : IResource |
|||
{ |
|||
} |
@ -0,0 +1,53 @@ |
|||
using System; |
|||
using System.Collections.Generic; |
|||
using System.ComponentModel.DataAnnotations; |
|||
using System.Linq; |
|||
using System.Text; |
|||
using System.Threading.Tasks; |
|||
using DocumentFormat.OpenXml.Wordprocessing; |
|||
using Microsoft.AspNetCore.Components; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using WTA.Application.Identity.Entities.SystemManagement; |
|||
using WTA.Application.Identity.Entities.SystemManagement.Group; |
|||
using WTA.Shared.Application; |
|||
using WTA.Shared.Attributes; |
|||
using WTA.Shared.Controllers; |
|||
using RouteAttribute = Microsoft.AspNetCore.Mvc.RouteAttribute; |
|||
|
|||
namespace WTA.Application.Identity.Controllers; |
|||
[Route("api/{culture=zh}/[controller]/[action]")]
|
|||
public class IN_PUB_SE_DETAILController : BaseController, IResourceService<IN_PUB_SE_DETAIL> |
|||
{ |
|||
private readonly GenericController<PUB_SE_DETAIL, PUB_SE_DETAIL, PUB_SE_DETAIL, PUB_SE_DETAIL, PUB_SE_DETAIL, PUB_SE_DETAIL> _genericController; |
|||
|
|||
public IN_PUB_SE_DETAILController(GenericController<PUB_SE_DETAIL, PUB_SE_DETAIL, PUB_SE_DETAIL, PUB_SE_DETAIL, PUB_SE_DETAIL, PUB_SE_DETAIL> genericController) |
|||
{ |
|||
this._genericController = genericController; |
|||
} |
|||
|
|||
[HttpGet] |
|||
public virtual IActionResult Index() |
|||
{ |
|||
return this._genericController.Index(); |
|||
} |
|||
|
|||
[HttpPost, Multiple, Order(-4), HtmlClass("el-button--primary")] |
|||
public virtual IActionResult Index([FromBody] PaginationModel<PUB_SE_DETAIL, PUB_SE_DETAIL> model) |
|||
{ |
|||
return this._genericController.Index(model); |
|||
} |
|||
|
|||
[HttpPost, Multiple, Order(-1), HtmlClass("el-button--warning")] |
|||
public virtual IActionResult Export([FromBody] PaginationModel<PUB_SE_DETAIL, PUB_SE_DETAIL> model, bool includeAll = false, bool includeDeleted = false) |
|||
{ |
|||
return this._genericController.Export(model, includeAll, includeDeleted); |
|||
} |
|||
} |
|||
[Order(2)] |
|||
[INDataInputGroup] |
|||
[Display(Name = "发运数据")] |
|||
public class IN_PUB_SE_DETAIL : IResource |
|||
{ |
|||
|
|||
} |
|||
|
@ -1,34 +0,0 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Microsoft.AspNetCore.Http; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using Microsoft.Extensions.Logging; |
|||
using WTA.Application.Identity.Entities.SystemManagement; |
|||
using WTA.Shared.Controllers; |
|||
using WTA.Shared.Data; |
|||
|
|||
namespace WTA.Application.Identity.Controllers; |
|||
|
|||
public class IN_SE_DETAILController : GenericController<IN_SE_DETAIL, IN_SE_DETAIL, IN_SE_DETAIL, IN_SE_DETAIL, IN_SE_DETAIL, IN_SE_DETAIL> |
|||
{ |
|||
public IN_SE_DETAILController(ILogger<IN_SE_DETAIL> logger, IRepository<IN_SE_DETAIL> repository) : base(logger, repository) |
|||
{ |
|||
} |
|||
|
|||
[NonAction] |
|||
public override IActionResult Import([Required] IFormFile importexcelfile, bool partial = false, bool replace = false) |
|||
{ |
|||
return base.Import(importexcelfile); |
|||
} |
|||
|
|||
[NonAction] |
|||
public override IActionResult Delete([FromBody] Guid[] guids) |
|||
{ |
|||
return base.Delete(guids); |
|||
} |
|||
|
|||
[NonAction] |
|||
public override IActionResult Create([FromBody] IN_SE_DETAIL model) |
|||
{ |
|||
return base.Create(model); |
|||
} |
|||
} |
@ -0,0 +1,72 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Microsoft.AspNetCore.Authorization; |
|||
using Microsoft.AspNetCore.Http; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using WTA.Application.Identity.Entities.SystemManagement; |
|||
using WTA.Application.Identity.Entities.SystemManagement.Group; |
|||
using WTA.Shared.Application; |
|||
using WTA.Shared.Attributes; |
|||
using WTA.Shared.Controllers; |
|||
|
|||
namespace WTA.Application.Identity.Controllers; |
|||
|
|||
[Route("api/{culture=zh}/[controller]/[action]")]
|
|||
public class JIT_PUB_CAN_SAController : BaseController, IResourceService<JIT_PUB_CAN_SA> |
|||
{ |
|||
private readonly GenericController<PUB_CAN_SA, PUB_CAN_SA, PUB_CAN_SA, PUB_CAN_SA, PUB_CAN_SA, PUB_CAN_SA> _genericController; |
|||
|
|||
public JIT_PUB_CAN_SAController(GenericController<PUB_CAN_SA, PUB_CAN_SA, PUB_CAN_SA, PUB_CAN_SA, PUB_CAN_SA, PUB_CAN_SA> genericController) |
|||
{ |
|||
this._genericController = genericController; |
|||
} |
|||
|
|||
//[NonAction]
|
|||
//public override IActionResult Create([FromBody] PUB_CAN_SA model)
|
|||
//{
|
|||
// return base.Create(model);
|
|||
//}
|
|||
|
|||
//[NonAction]
|
|||
//public override IActionResult Export([FromBody] PaginationModel<PUB_CAN_SA, PUB_CAN_SA> model, bool includeAll = false, bool includeDeleted = false)
|
|||
//{
|
|||
// return base.Export(model, includeAll, includeDeleted);
|
|||
//}
|
|||
|
|||
[HttpGet] |
|||
public virtual IActionResult Index() |
|||
{ |
|||
return this._genericController.Index(); |
|||
} |
|||
|
|||
[HttpPost, Multiple, Order(-4), HtmlClass("el-button--primary")] |
|||
public virtual IActionResult Index([FromBody] PaginationModel<PUB_CAN_SA, PUB_CAN_SA> model) |
|||
{ |
|||
return this._genericController.Index(model); |
|||
} |
|||
|
|||
[HttpGet, AllowAnonymous, Multiple, Order(-2), HtmlClass("el-button--primary")] |
|||
public virtual IActionResult Import() |
|||
{ |
|||
return this._genericController.Import(); |
|||
} |
|||
|
|||
[Consumes("multipart/form-data")] |
|||
[HttpPost, Multiple, Order(-2), HtmlClass("el-button--primary")] |
|||
public virtual IActionResult Import([Required] IFormFile file, bool partial = false, bool replace = false) |
|||
{ |
|||
return this._genericController.Import(file, partial, replace); |
|||
} |
|||
|
|||
[HttpPost, Multiple, Order(0), HtmlClass("el-button--danger")] |
|||
public virtual IActionResult Delete([FromBody] Guid[] guids) |
|||
{ |
|||
return this._genericController.Delete(guids); |
|||
} |
|||
} |
|||
|
|||
[Display(Name = "结算数据")] |
|||
[JITDataInputGroup] |
|||
[Order(1)] |
|||
public class JIT_PUB_CAN_SA : IResource |
|||
{ |
|||
} |
@ -0,0 +1,45 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using WTA.Application.Identity.Entities.SystemManagement; |
|||
using WTA.Application.Identity.Entities.SystemManagement.Group; |
|||
using WTA.Shared.Application; |
|||
using WTA.Shared.Attributes; |
|||
using WTA.Shared.Controllers; |
|||
|
|||
namespace WTA.Application.Identity.Controllers; |
|||
|
|||
[Route("api/{culture=zh}/[controller]/[action]")]
|
|||
public class JIT_PUB_CAN_SA_DETAILController : BaseController, IResourceService<JIT_PUB_CAN_SA_DETAIL> |
|||
{ |
|||
private readonly GenericController<PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL> _genericController; |
|||
|
|||
public JIT_PUB_CAN_SA_DETAILController(GenericController<PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL> genericController) |
|||
{ |
|||
this._genericController = genericController; |
|||
} |
|||
|
|||
[HttpGet] |
|||
public virtual IActionResult Index() |
|||
{ |
|||
return this._genericController.Index(); |
|||
} |
|||
|
|||
[HttpPost, Multiple, Order(-4), HtmlClass("el-button--primary")] |
|||
public virtual IActionResult Index([FromBody] PaginationModel<PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL> model) |
|||
{ |
|||
return this._genericController.Index(model); |
|||
} |
|||
|
|||
[HttpPost, Multiple, Order(-1), HtmlClass("el-button--warning")] |
|||
public virtual IActionResult Export([FromBody] PaginationModel<PUB_CAN_SA_DETAIL, PUB_CAN_SA_DETAIL> model, bool includeAll = false, bool includeDeleted = false) |
|||
{ |
|||
return this._genericController.Export(model, includeAll, includeDeleted); |
|||
} |
|||
} |
|||
|
|||
[Hidden] |
|||
[Display(Name = "结算数据")] |
|||
[JITDataInputGroup] |
|||
public class JIT_PUB_CAN_SA_DETAIL : IResource |
|||
{ |
|||
} |
@ -0,0 +1,46 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using WTA.Application.Identity.Entities.SystemManagement; |
|||
using WTA.Application.Identity.Entities.SystemManagement.Group; |
|||
using WTA.Shared.Application; |
|||
using WTA.Shared.Attributes; |
|||
using WTA.Shared.Controllers; |
|||
using RouteAttribute = Microsoft.AspNetCore.Mvc.RouteAttribute; |
|||
|
|||
namespace WTA.Application.Identity.Controllers; |
|||
|
|||
[Route("api/{culture=zh}/[controller]/[action]")]
|
|||
public class JIT_PUB_SE_DETAILController : BaseController, IResourceService<JIT_PUB_SE_DETAIL> |
|||
{ |
|||
private readonly GenericController<PUB_SE_DETAIL, PUB_SE_DETAIL, PUB_SE_DETAIL, PUB_SE_DETAIL, PUB_SE_DETAIL, PUB_SE_DETAIL> _genericController; |
|||
|
|||
public JIT_PUB_SE_DETAILController(GenericController<PUB_SE_DETAIL, PUB_SE_DETAIL, PUB_SE_DETAIL, PUB_SE_DETAIL, PUB_SE_DETAIL, PUB_SE_DETAIL> genericController) |
|||
{ |
|||
this._genericController = genericController; |
|||
} |
|||
|
|||
[HttpGet] |
|||
public virtual IActionResult Index() |
|||
{ |
|||
return this._genericController.Index(); |
|||
} |
|||
|
|||
[HttpPost, Multiple, Order(-4), HtmlClass("el-button--primary")] |
|||
public virtual IActionResult Index([FromBody] PaginationModel<PUB_SE_DETAIL, PUB_SE_DETAIL> model) |
|||
{ |
|||
return this._genericController.Index(model); |
|||
} |
|||
|
|||
[HttpPost, Multiple, Order(-1), HtmlClass("el-button--warning")] |
|||
public virtual IActionResult Export([FromBody] PaginationModel<PUB_SE_DETAIL, PUB_SE_DETAIL> model, bool includeAll = false, bool includeDeleted = false) |
|||
{ |
|||
return this._genericController.Export(model, includeAll, includeDeleted); |
|||
} |
|||
} |
|||
|
|||
[Order(2)] |
|||
[JITDataInputGroup] |
|||
[Display(Name = "发运数据")] |
|||
public class JIT_PUB_SE_DETAIL : IResource |
|||
{ |
|||
} |
@ -1,34 +0,0 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
using Microsoft.AspNetCore.Http; |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using Microsoft.Extensions.Logging; |
|||
using WTA.Application.Identity.Entities.SystemManagement; |
|||
using WTA.Shared.Controllers; |
|||
using WTA.Shared.Data; |
|||
|
|||
namespace WTA.Application.Identity.Controllers; |
|||
|
|||
public class JIT_SE_DETAILController : GenericController<JIT_SE_DETAIL, JIT_SE_DETAIL, JIT_SE_DETAIL, JIT_SE_DETAIL, JIT_SE_DETAIL, JIT_SE_DETAIL> |
|||
{ |
|||
public JIT_SE_DETAILController(ILogger<JIT_SE_DETAIL> logger, IRepository<JIT_SE_DETAIL> repository) : base(logger, repository) |
|||
{ |
|||
} |
|||
|
|||
[NonAction] |
|||
public override IActionResult Import([Required] IFormFile importexcelfile, bool partial = false, bool replace = false) |
|||
{ |
|||
return base.Import(importexcelfile); |
|||
} |
|||
|
|||
[NonAction] |
|||
public override IActionResult Delete([FromBody] Guid[] guids) |
|||
{ |
|||
return base.Delete(guids); |
|||
} |
|||
|
|||
[NonAction] |
|||
public override IActionResult Create([FromBody] JIT_SE_DETAIL model) |
|||
{ |
|||
return base.Create(model); |
|||
} |
|||
} |
@ -0,0 +1,20 @@ |
|||
using Microsoft.AspNetCore.Mvc; |
|||
using Microsoft.Extensions.Logging; |
|||
using WTA.Application.Identity.Entities.SystemManagement; |
|||
using WTA.Shared.Controllers; |
|||
using WTA.Shared.Data; |
|||
|
|||
namespace WTA.Application.Identity.Controllers; |
|||
|
|||
public class PURCHASE_PRICEController : GenericController<PURCHASE_PRICE, PURCHASE_PRICE, PURCHASE_PRICE, PURCHASE_PRICE, PURCHASE_PRICE, PURCHASE_PRICE> |
|||
{ |
|||
public PURCHASE_PRICEController(ILogger<PURCHASE_PRICE> logger, IRepository<PURCHASE_PRICE> repository) : base(logger, repository) |
|||
{ |
|||
} |
|||
|
|||
[NonAction] |
|||
public override IActionResult Create([FromBody] PURCHASE_PRICE model) |
|||
{ |
|||
return base.Create(model); |
|||
} |
|||
} |
@ -1,33 +0,0 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
using WTA.Application.Identity.Entities.SystemManagement.Group; |
|||
using WTA.Shared.Domain; |
|||
|
|||
namespace WTA.Application.Identity.Entities.SystemManagement; |
|||
[BJDataInputGroup] |
|||
[Display(Name = "备件发运数据查询")] |
|||
public class BJ_SE_DETAIL : BaseEntity |
|||
{ |
|||
[Display(Name = "LU+生产码")] |
|||
public string KeyCode { get; set; } = null!; |
|||
|
|||
[Display(Name = "期间")] |
|||
public string Version { get; set; } = null!; |
|||
|
|||
[Display(Name = "零件号")] |
|||
public string LU { get; set; } = null!; |
|||
|
|||
[Display(Name = ("ASN单号"))] |
|||
public string PN { get; set; } = null!; |
|||
|
|||
[Display(Name = ("发货数量"))] |
|||
public decimal Qty { get; set; } |
|||
|
|||
[Display(Name = ("订单时间"))] |
|||
public DateTime BeginDate { get; set; } |
|||
|
|||
[Display(Name = ("发货时间"))] |
|||
public DateTime ShippingDate { get; set; } |
|||
|
|||
[Display(Name = ("Wms发货单号"))] |
|||
public string WmsBillNum { get; set; } = null!; |
|||
} |
@ -1,34 +0,0 @@ |
|||
using System.ComponentModel.DataAnnotations; |
|||
using WTA.Application.Identity.Entities.SystemManagement.Group; |
|||
using WTA.Shared.Domain; |
|||
|
|||
namespace WTA.Application.Identity.Entities.SystemManagement; |
|||
|
|||
[INDataInputGroup] |
|||
[Display(Name = "印度件发运数据查询")] |
|||
public class IN_SE_DETAIL : BaseEntity |
|||
{ |
|||
[Display(Name = "LU+生产码")] |
|||
public string KeyCode { get; set; } = null!; |
|||
|
|||
[Display(Name = "期间")] |
|||
public string Version { get; set; } = null!; |
|||
|
|||
[Display(Name = "零件号")] |
|||
public string LU { get; set; } = null!; |
|||
|
|||
[Display(Name = "交付识别号")] |
|||
public string PN { get; set; } = null!; |
|||
|
|||
[Display(Name = "发货数量")] |
|||
public decimal Qty { get; set; } |
|||
|
|||
[Display(Name = "开始时间")] |
|||
public DateTime BeginDate { get; set; } |
|||
|
|||
[Display(Name = "发货时间")] |
|||
public DateTime ShippingDate { get; set; } |
|||
|
|||
[Display(Name = "WMS发货单号")] |
|||
public string WmsBillNum { get; set; } = null!; |
|||
} |
@ -1,35 +0,0 @@ |
|||
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; |
|||
[JITDataInputGroup] |
|||
[Display(Name = "JIT发运数据查询")] |
|||
public class JIT_SE_DETAIL : BaseEntity |
|||
{ |
|||
[Display(Name = "LU+生产码")] |
|||
public string KeyCode { get; set; } = null!; |
|||
|
|||
[Display(Name = "期间")] |
|||
public string Version { get; set; } = null!; |
|||
|
|||
[Display(Name = "零件号")] |
|||
public string LU { get; set; } = null!; |
|||
|
|||
[Display(Name = ("ASN单号"))] |
|||
public string PN { get; set; } = null!; |
|||
|
|||
[Display(Name = ("发货数量"))] |
|||
public decimal Qty { get; set; } |
|||
|
|||
[Display(Name = ("订单时间"))] |
|||
public DateTime BeginDate { get; set; } |
|||
|
|||
[Display(Name = ("发货时间"))] |
|||
public DateTime ShippingDate { get; set; } |
|||
|
|||
[Display(Name = ("Wms发货单号"))] |
|||
public string WmsBillNum { get; set; } = null!; |
|||
|
|||
} |
Loading…
Reference in new issue