|
|
|
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_SAController : GenericController<BBAC_SA, BBAC_SA, BBAC_SA, BBAC_SA, BBAC_SA, BBAC_SA>
|
|
|
|
{
|
|
|
|
public BBAC_SAController(ILogger<BBAC_SA> logger, IRepository<BBAC_SA> repository) : base(logger, repository)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
[NonAction]
|
|
|
|
public override IActionResult Delete([FromBody] Guid[] guids)
|
|
|
|
{
|
|
|
|
return base.Delete(guids);
|
|
|
|
}
|
|
|
|
|
|
|
|
[NonAction]
|
|
|
|
public override IActionResult Import([Required] IFormFile file, bool partial = false, bool replace = false)
|
|
|
|
{
|
|
|
|
return base.Import(file);
|
|
|
|
}
|
|
|
|
|
|
|
|
[NonAction]
|
|
|
|
public override IActionResult Export([FromBody] PaginationModel<BBAC_SA, BBAC_SA> model, bool includeAll = false, bool includeDeleted = false)
|
|
|
|
{
|
|
|
|
return base.Export(model, includeAll, includeDeleted);
|
|
|
|
}
|
|
|
|
|
|
|
|
[NonAction]
|
|
|
|
public override IActionResult Create([FromBody] BBAC_SA model)
|
|
|
|
{
|
|
|
|
return base.Create(model);
|
|
|
|
}
|
|
|
|
|
|
|
|
[HttpPost, Display(Name = "下载")]
|
|
|
|
public IActionResult? Download()//download
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
[HttpPost, Display(Name = "生成出库单"), Multiple]
|
|
|
|
public IActionResult? CreateOutOrdersAsync()
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
}
|