Browse Source

更新版本

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

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

@ -84,20 +84,23 @@ 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
var result = _exporter.Append(_lsExport, "汇总核对表1")
//.SeparateBySheet()
//.Append(_lsleft, "汇总核对表2")
.ExportAppendDataAsByteArray();
result.ShouldNotBeNull();
_fileContainer.SaveAsync(String.Format("结算未结寄售核对表{0}.xlsx",Guid.NewGuid().ToString("N")), result.Result, true);
//ExcelExporter _exporter = new ExcelExporter();//导出Excel
//var result = _exporter.Append(_lsExport, "汇总核对表1")
////.SeparateBySheet()
////.Append(_lsleft, "汇总核对表2")
//.ExportAppendDataAsByteArray();
//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();

Loading…
Cancel
Save