This commit is contained in:
毛财君
2023-06-30 17:58:48 +08:00
parent cdd2235535
commit 9c6962d0c4
15 changed files with 1074 additions and 1576 deletions

View File

@@ -1,33 +1,24 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
using System.Web;
using Ewide.Core;
using Ewide.Core.Service;
using Ewide.Core;
using Furion;
using Furion.ClayObject.Extensions;
using Furion.DatabaseAccessor;
using Furion.DatabaseAccessor.Extensions;
using Furion.DataEncryption;
using Furion.DataEncryption.Extensions;
using Furion.DynamicApiController;
using Furion.FriendlyException;
using Furion.RemoteRequest.Extensions;
using Google.Protobuf.Reflection;
using Mapster;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Caching.Memory;
using Microsoft.Extensions.Options;
using Newtonsoft.Json.Linq;
using NPOI.HPSF;
using Org.BouncyCastle.Crypto;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Web;
using Vote.Services.Dto;
using Vote.Services.Entities;

View File

@@ -198,7 +198,7 @@ namespace Vote.Services.Tools
outputPath = savePath + DateTime.Now.ToString("yyyyMMddHHmmsss") + "-" + template_name;
using (var filess = new FileStream(outputPath, FileMode.Create, FileAccess.Write, FileShare.Read))
{
workbook.Write(filess);
workbook.Write(filess, true);
}
}
}
@@ -254,7 +254,7 @@ namespace Vote.Services.Tools
outputPath = savePath + DateTime.Now.ToString("yyyyMMddHHmmsss") + "-" + template_name;
using (var filess = new FileStream(outputPath, FileMode.Create, FileAccess.Write, FileShare.Read))
{
workbook.Write(filess);
workbook.Write(filess, true);
}
}
}
@@ -326,7 +326,7 @@ namespace Vote.Services.Tools
outputPath = savePath + DateTime.Now.ToString("yyyyMMddHHmmsss") + "-" + template_name;
using (var filess = new FileStream(outputPath, FileMode.Create, FileAccess.Write, FileShare.Read))
{
workbook.Write(filess);
workbook.Write(filess, true);
}
}
}

View File

@@ -4,7 +4,7 @@ using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ICSharpCode.SharpZipLib.Checksums;
using ICSharpCode.SharpZipLib.Checksum;
using ICSharpCode.SharpZipLib.Zip;
namespace Vote.Services.Tools

View File

@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net5.0</TargetFramework>
@@ -10,16 +10,17 @@
<ItemGroup>
<PackageReference Include="Aspose.Words" Version="23.1.0" />
<PackageReference Include="Furion" Version="4.8.7.6" />
<PackageReference Include="HtmlAgilityPack" Version="1.11.46" />
<PackageReference Include="NPOI" Version="2.6.0" />
<PackageReference Include="OnceMi.AspNetCore.OSS" Version="1.1.9" />
<PackageReference Include="SharpZipLib" Version="1.4.2" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Ewide.Core\Ewide.Core.csproj" />
</ItemGroup>
<ItemGroup>
<!--<ItemGroup>
<Reference Include="ICSharpCode.SharpZipLib">
<HintPath>..\Ewide.Web.Entry\bin\Debug\net5.0\ICSharpCode.SharpZipLib.dll</HintPath>
</Reference>
@@ -35,6 +36,6 @@
<Reference Include="NPOI.OpenXmlFormats">
<HintPath>..\Ewide.Web.Entry\bin\Debug\net5.0\NPOI.OpenXmlFormats.dll</HintPath>
</Reference>
</ItemGroup>
</ItemGroup>-->
</Project>