|
|
@ -84,21 +84,24 @@ namespace SettleAccount.Job.Services.Report |
|
|
|
var _lsExport= GetReport(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(); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|