导出名称
This commit is contained in:
@@ -38,7 +38,7 @@ public static class ExcelExportHelper
|
||||
|
||||
return new FileStreamResult(memoryStream, "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet")
|
||||
{
|
||||
FileDownloadName = $"{exportFileNamePrefix}_{doc.Name.Substring(0,doc.Name.LastIndexOf('.'))}——{DateTime.Now.ToString("yyyyMMddHHmmss")}.xlsx"
|
||||
FileDownloadName = $"{exportFileNamePrefix}_{doc.Name.Substring(0,doc.Name.LastIndexOf('.'))}_{DateTime.Now.ToString("yyyyMMddHHmmss")}.xlsx"
|
||||
};
|
||||
|
||||
#endregion
|
||||
|
||||
@@ -10,11 +10,18 @@ namespace IRaCIS.Application.Services
|
||||
[ ApiExplorerSettings(GroupName = "Institution")]
|
||||
public class TestService : BaseService
|
||||
{
|
||||
private readonly IRepository<Dictionary> _dicRepository;
|
||||
|
||||
public TestService(IRepository<Dictionary> dicRepository)
|
||||
{
|
||||
_dicRepository = dicRepository;
|
||||
}
|
||||
|
||||
[HttpPost]
|
||||
public string Get(testModel testModel)
|
||||
{
|
||||
|
||||
var c = _repository.Where<Dictionary>().Select(t=>t.MappedValue).First();
|
||||
var c = _dicRepository.Where(t=>t.ParentId!=null).Select(t=>t.MappedValue).First();
|
||||
CultureInfo culture = CultureInfo.CurrentUICulture;
|
||||
|
||||
var a = 123;
|
||||
|
||||
Reference in New Issue
Block a user