|
|
|
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 INVOICE_GRPController : GenericController<INVOICE_GRP, INVOICE_GRP, INVOICE_GRP, INVOICE_GRP, INVOICE_GRP, INVOICE_GRP>
|
|
|
|
{
|
|
|
|
public INVOICE_GRPController(ILogger<INVOICE_GRP> logger, IRepository<INVOICE_GRP> repository) : base(logger, repository)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
[NonAction]
|
|
|
|
public override IActionResult Import([Required] IFormFile file, bool partial = false, bool replace = false)
|
|
|
|
{
|
|
|
|
return base.Import(file);
|
|
|
|
}
|
|
|
|
|
|
|
|
[NonAction]
|
|
|
|
public override IActionResult Delete([FromBody] Guid[] guids)
|
|
|
|
{
|
|
|
|
return base.Delete(guids);
|
|
|
|
}
|
|
|
|
|
|
|
|
[NonAction]
|
|
|
|
public override IActionResult Export([FromBody] PaginationModel<INVOICE_GRP, INVOICE_GRP> model, bool includeAll = false, bool includeDeleted = false)
|
|
|
|
{
|
|
|
|
return base.Export(model, includeAll, includeDeleted);
|
|
|
|
}
|
|
|
|
|
|
|
|
[NonAction]
|
|
|
|
public override IActionResult Create([FromBody] INVOICE_GRP model)
|
|
|
|
{
|
|
|
|
return base.Create(model);
|
|
|
|
}
|
|
|
|
|
|
|
|
[HttpPost, Display(Name = "导入开票文件"), Multiple]
|
|
|
|
public IActionResult? INVOICE_UploadExcelImport()
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
[HttpPost, Display(Name = "审核通过"), Multiple]
|
|
|
|
public IActionResult? ApprovalPassed()
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
[HttpPost, Display(Name = "同步寄售库至QAD"), Multiple]
|
|
|
|
public IActionResult? SendWmsQAD()
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
[HttpPost, Display(Name = "退回"), Multiple]
|
|
|
|
public IActionResult? Reject()
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|