Browse Source

更新版本

FoShanPG
Administrator 3 years ago
parent
commit
ef1adc6201
  1. 24
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsOutputSumInterfaceAppService.cs
  2. 11
      src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsUnInterface.cs
  3. 7
      src/Modules/SettleAccount/src/SettleAccount.Application/SettleAccount.Application.xml
  4. 31
      src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/ErpSumOutputDapperRepository.cs

24
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsOutputSumInterfaceAppService.cs

@ -80,22 +80,22 @@ namespace Win.Sfs.SettleAccount.Entities.WMS
_excelImportService = excelImportService; _excelImportService = excelImportService;
} }
[HttpPost] //[HttpPost]
[Route("ExcelImport")] //[Route("ExcelImport")]
[UnitOfWork(false)] //[UnitOfWork(false)]
//[Authorize(SettleAccountPermissions.PriceLists.Create)] ////[Authorize(SettleAccountPermissions.PriceLists.Create)]
virtual public async Task<string> ImportAsync([FromForm] IFormFileCollection files, string version,string accountDate) //virtual public async Task<string> ImportAsync([FromForm] IFormFileCollection files, string version,string accountDate)
{ //{
ExportImporter _exportImporter = new ExportImporter(); // ExportImporter _exportImporter = new ExportImporter();
var result = await _exportImporter.UploadExcelImport<WmsOutputSumReport>(files, _excelImportService); // var result = await _exportImporter.UploadExcelImport<WmsOutputSumReport>(files, _excelImportService);
var _list = result.Where(p => p. != 0).ToList(); // var _list = result.Where(p => p.实际出库数量 != 0).ToList();
_dapper.InsertWmsSum(_list, version,DateTime.Parse(accountDate)); // _dapper.InsertWmsSum(_list, version,DateTime.Parse(accountDate));
return ApplicationConsts.SuccessStr; // return ApplicationConsts.SuccessStr;
} //}
/// <summary> /// <summary>
/// 准时化出库主表 /// 准时化出库主表
/// </summary> /// </summary>

11
src/Modules/SettleAccount/src/SettleAccount.Application/Entities/WMS/WmsUnInterface.cs

@ -104,10 +104,7 @@ namespace Win.Sfs.SettleAccount.Entities.WMS
} }
} }
await _wmsRepository.GetDbContext().BulkInsertAsync(_lst); await _wmsRepository.GetDbContext().BulkInsertAsync(_lst);
return ApplicationConsts.SuccessStr; return ApplicationConsts.SuccessStr;
} }
@ -147,18 +144,13 @@ namespace Win.Sfs.SettleAccount.Entities.WMS
virtual public async Task<string> ExportAsync(WmsRequestDetailReportDto input) virtual public async Task<string> ExportAsync(WmsRequestDetailReportDto input)
{ {
var entities = await _wmsRepository.GetListByFilterAsync(GuidGenerator.Create(), input.Filters, input.Sorting, int.MaxValue, var entities = await _wmsRepository.GetListByFilterAsync(GuidGenerator.Create(), input.Filters, input.Sorting, int.MaxValue,
0, true); 0, true);
IExporter _excel = new ExcelExporter(); IExporter _excel = new ExcelExporter();
byte[] result = null; byte[] result = null;
var _fileName = string.Format("汇总合计报表_{0}.xlsx", Guid.NewGuid().ToString()); var _fileName = string.Format("汇总合计报表_{0}.xlsx", Guid.NewGuid().ToString());
result = await _excel.ExportAsByteArray(entities); result = await _excel.ExportAsByteArray(entities);
result.ShouldNotBeNull(); result.ShouldNotBeNull();
//保存导出文件到服务器存成二进制 //保存导出文件到服务器存成二进制
await _excelImportService.SaveBlobAsync( await _excelImportService.SaveBlobAsync(
new SaveExcelImportInputDto new SaveExcelImportInputDto
@ -168,9 +160,6 @@ namespace Win.Sfs.SettleAccount.Entities.WMS
} }
); );
return _fileName; return _fileName;
} }

7
src/Modules/SettleAccount/src/SettleAccount.Application/SettleAccount.Application.xml

@ -4297,6 +4297,13 @@
<param name="files">上传的文件(前端已经限制只能上传一个附件)</param> <param name="files">上传的文件(前端已经限制只能上传一个附件)</param>
<returns></returns> <returns></returns>
</member> </member>
<member name="M:Win.Sfs.SettleAccount.Reports.ReportServices.ReportService.HQFactoryUnSettledDetailDiffExportService(Win.Sfs.SettleAccount.Reports.ReportRequestDto.HQKanbanRequestDto)">
<summary>
红旗未结核对
</summary>
<param name="files">上传的文件(前端已经限制只能上传一个附件)</param>
<returns></returns>
</member>
<member name="M:Win.Sfs.SettleAccount.Reports.ReportServices.ReportService.HQHSharePartSettledDetailDiffExportServiceMake(Win.Sfs.SettleAccount.Reports.ReportRequestDto.HQKanbanRequestDto)"> <member name="M:Win.Sfs.SettleAccount.Reports.ReportServices.ReportService.HQHSharePartSettledDetailDiffExportServiceMake(Win.Sfs.SettleAccount.Reports.ReportRequestDto.HQKanbanRequestDto)">
<summary> <summary>
红旗工厂备件明细 红旗工厂备件明细

31
src/Modules/SettleAccount/src/SettleAccount.EntityFrameworkCore/Repository/SettleAccountJob/Report/ErpSumOutputDapperRepository.cs

@ -9,6 +9,7 @@ using System.Threading.Tasks;
using Volo.Abp.DependencyInjection; using Volo.Abp.DependencyInjection;
using Volo.Abp.Domain.Repositories.Dapper; using Volo.Abp.Domain.Repositories.Dapper;
using Volo.Abp.EntityFrameworkCore; using Volo.Abp.EntityFrameworkCore;
using Win.Sfs.SettleAccount.Entities;
namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report
{ {
@ -167,7 +168,7 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report
public virtual void InsertWmsSum(List<WmsOutputSumReport> p_list,string version,DateTime accountDate) public virtual void InsertWmsSum(List<WmsDetailReport> p_list,string version,DateTime accountDate)
{ {
StringBuilder _buffer = new StringBuilder(); StringBuilder _buffer = new StringBuilder();
var billnum ="S" +DateTime.Now.ToString("yyyyMMddhhmmss"); var billnum ="S" +DateTime.Now.ToString("yyyyMMddhhmmss");
@ -224,27 +225,27 @@ namespace Win.Sfs.SettleAccount.Repository.SettleAccountJob.Report
sql = string.Format(sql, sql = string.Format(sql,
taskid, taskid,
itm., itm.LineNumber.ToString(),
itm., itm.BillNum,
"ZKE1", "ZKE1",
"1001", "1001",
"00", "00",
itm., itm.SaleCode,
itm., itm.ClientCode,
itm., itm.ClientCode,
itm., itm.SettleCode,
itm., itm.MaterialCode,
"1000", "1000",
string.Empty, string.Empty,
itm., itm.Price,
itm., itm.OutputQty,
itm., itm.Client,
itm., itm.MaterialGroupCode,
itm., itm.MaterialGroup,
itm., itm.Type,
itm., itm.OutPutAmt,
"0", "0",
billnum billnum

Loading…
Cancel
Save