Browse Source

更新版本

FoShanPG
Administrator 3 years ago
parent
commit
b5df3aa6a4
  1. 23
      src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/UnSettledSumService.cs

23
src/Modules/SettleAccount/src/SettleAccount.Job/Services/Report/UnSettledSumService.cs

@ -84,22 +84,25 @@ namespace SettleAccount.Job.Services.Report
var _lsExport= GetReport(id,exportName,p_list); var _lsExport= GetReport(id,exportName,p_list);
var _lsleft = GetLeftReport(id, exportName, p_list); var _lsleft = GetLeftReport(id, exportName, p_list);
var _first = exportName.FirstOrDefault();
ExcelExporter _exporter = new ExcelExporter();//导出Excel //ExcelExporter _exporter = new ExcelExporter();//导出Excel
var result = _exporter.Append(_lsExport, "汇总核对表1") //var result = _exporter.Append(_lsExport, "汇总核对表1")
//.SeparateBySheet() ////.SeparateBySheet()
//.Append(_lsleft, "汇总核对表2") ////.Append(_lsleft, "汇总核对表2")
.ExportAppendDataAsByteArray(); //.ExportAppendDataAsByteArray();
result.ShouldNotBeNull();
_fileContainer.SaveAsync(String.Format("结算未结寄售核对表{0}.xlsx",Guid.NewGuid().ToString("N")), result.Result, true);
//result.ShouldNotBeNull();
//_fileContainer.SaveAsync(String.Format("结算未结寄售核对表{0}.xlsx",Guid.NewGuid().ToString("N")), result.Result, true);
var _first = exportName.FirstOrDefault();
_outputService.Export<UnSettledSum>(id, _first, _lsExport);
return id.ToString();
return id.ToString(); return id.ToString();

Loading…
Cancel
Save