|
@ -74,7 +74,7 @@ namespace Win.Sfs.SettleAccount.Entities.Controls |
|
|
[HttpPost] |
|
|
[HttpPost] |
|
|
[Route("ExcelImport")] |
|
|
[Route("ExcelImport")] |
|
|
[DisableRequestSizeLimit] |
|
|
[DisableRequestSizeLimit] |
|
|
[Authorize(SettleAccountPermissions.CentralizedControls.Default)] |
|
|
[Authorize(SettleAccountPermissions.CentralizedControls.Create)] |
|
|
public async Task<string> CentralizedControlUploadExcelImport([FromForm] IFormFileCollection files,Guid branchId) |
|
|
public async Task<string> CentralizedControlUploadExcelImport([FromForm] IFormFileCollection files,Guid branchId) |
|
|
{ |
|
|
{ |
|
|
ExportImporter _exportImporter = new ExportImporter(); |
|
|
ExportImporter _exportImporter = new ExportImporter(); |
|
@ -101,7 +101,6 @@ namespace Win.Sfs.SettleAccount.Entities.Controls |
|
|
/// <returns>实体DTO</returns>
|
|
|
/// <returns>实体DTO</returns>
|
|
|
[HttpGet] |
|
|
[HttpGet] |
|
|
[Route("{id}")] |
|
|
[Route("{id}")] |
|
|
[Authorize(SettleAccountPermissions.CentralizedControls.Default)] |
|
|
|
|
|
virtual public async Task<CentralizedControlDto> GetAsync(Guid id) |
|
|
virtual public async Task<CentralizedControlDto> GetAsync(Guid id) |
|
|
{ |
|
|
{ |
|
|
var result = await GetFromCacheAsync(id); |
|
|
var result = await GetFromCacheAsync(id); |
|
@ -140,7 +139,6 @@ namespace Win.Sfs.SettleAccount.Entities.Controls |
|
|
/// <returns>实体DTO列表</returns>
|
|
|
/// <returns>实体DTO列表</returns>
|
|
|
[HttpPost] |
|
|
[HttpPost] |
|
|
[Route("list")] |
|
|
[Route("list")] |
|
|
[Authorize(SettleAccountPermissions.CentralizedControls.Default)] |
|
|
|
|
|
virtual public async Task<PagedResultDto<CentralizedControlDto>> GetListAsync(CentralizedControlRequestDto input) |
|
|
virtual public async Task<PagedResultDto<CentralizedControlDto>> GetListAsync(CentralizedControlRequestDto input) |
|
|
{ |
|
|
{ |
|
|
var entities = await _repository.GetListByFilterAsync(input.BranchId, input.Filters, input.Sorting, input.MaxResultCount, |
|
|
var entities = await _repository.GetListByFilterAsync(input.BranchId, input.Filters, input.Sorting, input.MaxResultCount, |
|
@ -159,7 +157,6 @@ namespace Win.Sfs.SettleAccount.Entities.Controls |
|
|
/// <returns>实体总数</returns>
|
|
|
/// <returns>实体总数</returns>
|
|
|
[HttpGet] |
|
|
[HttpGet] |
|
|
[Route("count")] |
|
|
[Route("count")] |
|
|
[Authorize(SettleAccountPermissions.CentralizedControls.Default)] |
|
|
|
|
|
virtual public async Task<long> GetTotalCountAsync(Guid branchId) |
|
|
virtual public async Task<long> GetTotalCountAsync(Guid branchId) |
|
|
{ |
|
|
{ |
|
|
return await _repository.GetCountAsync(branchId); |
|
|
return await _repository.GetCountAsync(branchId); |
|
@ -171,7 +168,6 @@ namespace Win.Sfs.SettleAccount.Entities.Controls |
|
|
/// <returns>实体DTO列表</returns>
|
|
|
/// <returns>实体DTO列表</returns>
|
|
|
[HttpGet] |
|
|
[HttpGet] |
|
|
[Route("all")] |
|
|
[Route("all")] |
|
|
[Authorize(SettleAccountPermissions.CentralizedControls.Default)] |
|
|
|
|
|
virtual public async Task<ListResultDto<CentralizedControlDto>> GetAllAsync(Guid branchId) |
|
|
virtual public async Task<ListResultDto<CentralizedControlDto>> GetAllAsync(Guid branchId) |
|
|
{ |
|
|
{ |
|
|
var entities = await _repository.GetAllAsync(branchId, true); |
|
|
var entities = await _repository.GetAllAsync(branchId, true); |
|
@ -284,6 +280,7 @@ namespace Win.Sfs.SettleAccount.Entities.Controls |
|
|
} |
|
|
} |
|
|
[HttpPost] |
|
|
[HttpPost] |
|
|
[Route("open")] |
|
|
[Route("open")] |
|
|
|
|
|
[Authorize(SettleAccountPermissions.CentralizedControls.Create)] |
|
|
public async Task<bool> OpenVersion(List<Guid> ids) |
|
|
public async Task<bool> OpenVersion(List<Guid> ids) |
|
|
{ |
|
|
{ |
|
|
foreach (var id in ids) |
|
|
foreach (var id in ids) |
|
@ -296,6 +293,7 @@ namespace Win.Sfs.SettleAccount.Entities.Controls |
|
|
} |
|
|
} |
|
|
[HttpPost] |
|
|
[HttpPost] |
|
|
[Route("close")] |
|
|
[Route("close")] |
|
|
|
|
|
[Authorize(SettleAccountPermissions.CentralizedControls.Create)] |
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// 关闭版本
|
|
|
/// 关闭版本
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|