master
赵华宇 3 years ago
commit
793fe1b50e
  1. 11
      Application.Shared/Application.Shared.csproj
  2. 8
      Application.Shared/Class1.cs
  3. 45
      Application.Shared/Dtos/Units/Imports/BPC.cs
  4. 18
      Application.Shared/Dtos/Units/Imports/BaseInstitusion.cs
  5. 31
      Application.Shared/Dtos/Units/Imports/GasStation.cs
  6. 51
      Application.Shared/Dtos/Units/Imports/Hotel.cs
  7. 10
      Application.Shared/Dtos/Units/Imports/ISurvey.cs
  8. 84
      Application.Shared/Dtos/Units/Imports/IndustrialEnterprise.cs
  9. 44
      Application.Shared/Dtos/Units/Imports/InflammableAndExplosiveProductionUnit.cs
  10. 46
      Application.Shared/Dtos/Units/Imports/InflammableAndExplosiveStore.cs
  11. 31
      Application.Shared/Dtos/Units/Imports/LiquefiedGasStation.cs
  12. 46
      Application.Shared/Dtos/Units/Imports/Market.cs
  13. 32
      Application.Shared/Dtos/Units/Imports/MedicalInstitution.cs
  14. 56
      Application.Shared/Dtos/Units/Imports/Other.cs
  15. 50
      Application.Shared/Dtos/Units/Imports/PublicEntertainment.cs
  16. 53
      Application.Shared/Dtos/Units/Imports/School.cs
  17. 46
      Application.Shared/Dtos/Units/Imports/StateOrgan.cs
  18. 42
      Application.Shared/Dtos/Units/Imports/Storage.cs
  19. 52
      Application.Shared/Dtos/Units/Imports/TallBuilding.cs
  20. 51
      Application.Shared/Dtos/Units/Imports/UnderGround.cs
  21. 46
      Application.Shared/Dtos/Units/Imports/WelfareInstitution.cs
  22. 92
      Application.Shared/Dtos/Units/UnitOutputDto.cs
  23. 39
      Application.Shared/Dtos/Waters/Imports/Water.cs
  24. 150
      Application.Shared/obj/Application.Shared.csproj.nuget.dgspec.json
  25. 15
      Application.Shared/obj/Application.Shared.csproj.nuget.g.props
  26. 2
      Application.Shared/obj/Application.Shared.csproj.nuget.g.targets
  27. 4
      Application.Shared/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs
  28. 23
      Application.Shared/obj/Debug/netcoreapp3.1/Application.Shared.AssemblyInfo.cs
  29. 1
      Application.Shared/obj/Debug/netcoreapp3.1/Application.Shared.AssemblyInfoInputs.cache
  30. 3
      Application.Shared/obj/Debug/netcoreapp3.1/Application.Shared.GeneratedMSBuildEditorConfig.editorconfig
  31. BIN
      Application.Shared/obj/Debug/netcoreapp3.1/Application.Shared.assets.cache
  32. BIN
      Application.Shared/obj/Debug/netcoreapp3.1/Application.Shared.csproj.AssemblyReference.cache
  33. 0
      Application.Shared/obj/Debug/netcoreapp3.1/Application.Shared.csproj.BuildWithSkipAnalyzers
  34. 0
      Application.Shared/obj/Debug/netcoreapp3.1/Application.Shared.csproj.CopyComplete
  35. 1
      Application.Shared/obj/Debug/netcoreapp3.1/Application.Shared.csproj.CoreCompileInputs.cache
  36. 13
      Application.Shared/obj/Debug/netcoreapp3.1/Application.Shared.csproj.FileListAbsolute.txt
  37. BIN
      Application.Shared/obj/Debug/netcoreapp3.1/Application.Shared.dll
  38. BIN
      Application.Shared/obj/Debug/netcoreapp3.1/Application.Shared.pdb
  39. 6711
      Application.Shared/obj/project.assets.json
  40. 137
      Application.Shared/obj/project.nuget.cache
  41. 17
      Application/Application.csproj
  42. 17
      Application/AutoMapperProfiles.cs
  43. 8
      Application/Class1.cs
  44. 31
      Application/Services/FireHydrants/FireHydrantAppService.cs
  45. 13
      Application/Services/FireHydrants/IFireHydrantAppService.cs
  46. 13
      Application/Services/UMEs/IUMEsAppService.cs
  47. 32
      Application/Services/UMEs/UMEsAppService.cs
  48. 16
      Application/Services/Units/IUnitAppService.cs
  49. 48
      Application/Services/Units/UnitAppService.cs
  50. 13
      Application/Services/Water/IWaterAppService.cs
  51. 34
      Application/Services/Water/WaterAppService.cs
  52. 19
      BackGround/BackGround.csproj
  53. 22
      BackGround/Hangfire/JobRegisters/FireHydrant/ImportFireHydrantsJobRegister.cs
  54. 22
      BackGround/Hangfire/JobRegisters/UMEs/UMEImportJobRegister.cs
  55. 22
      BackGround/Hangfire/JobRegisters/Units/ImportJobRegister.cs
  56. 22
      BackGround/Hangfire/JobRegisters/Water/ImportWaterJobRegister.cs
  57. 12
      BackGround/Hangfire/Jobs/FireHydrant/IImportFireHydrantsJob.cs
  58. 201
      BackGround/Hangfire/Jobs/FireHydrant/ImportFireHydrantsJob.cs
  59. 145
      BackGround/Hangfire/Jobs/UMEs/ImportUMEsJob.cs
  60. 130
      BackGround/Hangfire/Jobs/UMEs/UMETableResolver.cs
  61. 49
      BackGround/Hangfire/Jobs/Units/FireHydrantTableResolver.cs
  62. 12
      BackGround/Hangfire/Jobs/Units/IImportUnitsJob.cs
  63. 937
      BackGround/Hangfire/Jobs/Units/ImportUnitsJob.cs
  64. 12
      BackGround/Hangfire/Jobs/Waters/IImportWaterJob.cs
  65. 156
      BackGround/Hangfire/Jobs/Waters/ImportWaterJob.cs
  66. 37
      BackGround/HangfireInjection.cs
  67. 411
      BackGround/obj/BackGround.csproj.nuget.dgspec.json
  68. 15
      BackGround/obj/BackGround.csproj.nuget.g.props
  69. 2
      BackGround/obj/BackGround.csproj.nuget.g.targets
  70. 4
      BackGround/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs
  71. 23
      BackGround/obj/Debug/netcoreapp3.1/BackGround.AssemblyInfo.cs
  72. 1
      BackGround/obj/Debug/netcoreapp3.1/BackGround.AssemblyInfoInputs.cache
  73. 3
      BackGround/obj/Debug/netcoreapp3.1/BackGround.GeneratedMSBuildEditorConfig.editorconfig
  74. BIN
      BackGround/obj/Debug/netcoreapp3.1/BackGround.assets.cache
  75. BIN
      BackGround/obj/Debug/netcoreapp3.1/BackGround.csproj.AssemblyReference.cache
  76. 0
      BackGround/obj/Debug/netcoreapp3.1/BackGround.csproj.BuildWithSkipAnalyzers
  77. 0
      BackGround/obj/Debug/netcoreapp3.1/BackGround.csproj.CopyComplete
  78. 1
      BackGround/obj/Debug/netcoreapp3.1/BackGround.csproj.CoreCompileInputs.cache
  79. 21
      BackGround/obj/Debug/netcoreapp3.1/BackGround.csproj.FileListAbsolute.txt
  80. BIN
      BackGround/obj/Debug/netcoreapp3.1/BackGround.dll
  81. BIN
      BackGround/obj/Debug/netcoreapp3.1/BackGround.pdb
  82. 7726
      BackGround/obj/project.assets.json
  83. 157
      BackGround/obj/project.nuget.cache
  84. 8
      Domain.Service/Class1.cs
  85. 12
      Domain.Service/Domain.Service.csproj
  86. 81
      Domain.Service/FileUpload/FileUploader.cs
  87. 13
      Domain.Service/FileUpload/IFileUploader.cs
  88. 4
      Domain.Service/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs
  89. 23
      Domain.Service/obj/Debug/netcoreapp3.1/Domain.Service.AssemblyInfo.cs
  90. 1
      Domain.Service/obj/Debug/netcoreapp3.1/Domain.Service.AssemblyInfoInputs.cache
  91. 3
      Domain.Service/obj/Debug/netcoreapp3.1/Domain.Service.GeneratedMSBuildEditorConfig.editorconfig
  92. BIN
      Domain.Service/obj/Debug/netcoreapp3.1/Domain.Service.assets.cache
  93. BIN
      Domain.Service/obj/Debug/netcoreapp3.1/Domain.Service.csproj.AssemblyReference.cache
  94. 0
      Domain.Service/obj/Debug/netcoreapp3.1/Domain.Service.csproj.BuildWithSkipAnalyzers
  95. 0
      Domain.Service/obj/Debug/netcoreapp3.1/Domain.Service.csproj.CopyComplete
  96. 1
      Domain.Service/obj/Debug/netcoreapp3.1/Domain.Service.csproj.CoreCompileInputs.cache
  97. 19
      Domain.Service/obj/Debug/netcoreapp3.1/Domain.Service.csproj.FileListAbsolute.txt
  98. BIN
      Domain.Service/obj/Debug/netcoreapp3.1/Domain.Service.dll
  99. BIN
      Domain.Service/obj/Debug/netcoreapp3.1/Domain.Service.pdb
  100. 336
      Domain.Service/obj/Domain.Service.csproj.nuget.dgspec.json
  101. Some files were not shown because too many files have changed in this diff Show More

11
Application.Shared/Application.Shared.csproj

@ -0,0 +1,11 @@ @@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Infrastructure\Infrastructure.csproj" />
</ItemGroup>
</Project>

8
Application.Shared/Class1.cs

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
using System;
namespace Application.Shared
{
public class Class1
{
}
}

45
Application.Shared/Dtos/Units/Imports/BPC.cs

@ -0,0 +1,45 @@ @@ -0,0 +1,45 @@
using System;
using System.Collections.Generic;
using System.Text;
using Infrastructure.Excel.Attributes;
namespace Application.Shared.Dtos.Units.Imports
{
[TableDto(Name = "广电、邮政、通信")]
[TableHeader(Title = "广电、邮政、通信单位统计表", HorizontalAlignment = HeaderHorizontalAlignment.Center, StartRowIndex = 0, StartCellIndex = 0, EndRowIndex = 0, Auto = true)]
public class BPC
{
[ExcelColumn(Name = "序号", Sort = 1)]
public int Index { get; set; }
[ExcelColumn(Name = "单位名称", Sort = 2)]
public string Name { get; set; }
[ExcelColumn(Name = "所在旗县(市区)", Sort = 3)]
public string Area { get; set; }
[ExcelColumn(Name = "监管级别(一、二、三)", Sort = 4)]
public string RegulatoryLevel { get; set; }
[ExcelColumn(Name = "概况", Sort = 5)]
public PBCSurvey Survey { get; set; }
[ExcelColumn(Name = "消防安全责任人", Sort = 6)]
public PersonInChargeOfSafety PersonInChargeOfSafetyInfo { get; set; }
[ExcelColumn(Name = "消防安全管理人", Sort = 7)]
public SecurityAdministrator SecurityAdministratorInfo { get; set; }
[ExcelColumn(Name = "经度", Sort = 8)]
public string Longitude { get; set; }
[ExcelColumn(Name = "纬度", Sort = 9)]
public string Latitude { get; set; }
}
[TableColumnDto]
public class PBCSurvey:ISurvey
{
[ExcelColumn(Name = "建筑高度(米)", Sort = 2)]
public string Height { get; set; }
public int HeightValue { get; set; }
[ExcelColumn(Name = "建筑面积(平方米)", Sort = 3)]
public string Area { get; set; }
[ExcelColumn(Name = "建筑层数(层)", Sort = 1)]
public string UsageNature { get; set; }
public string UsageNatureValue { get; set; }
}
}

18
Application.Shared/Dtos/Units/Imports/BaseInstitusion.cs

@ -0,0 +1,18 @@ @@ -0,0 +1,18 @@
using Infrastructure.Excel.Attributes;
using System;
using System.Collections.Generic;
using System.Text;
namespace Application.Shared.Dtos.Units.Imports
{
public interface IInstitusion
{
int Index { get; set; }
string Name { get; set; }
string Area { get; set; }
string RegulatoryLevel { get; set; }
ISurvey Survey { get; set; }
PersonInChargeOfSafety PersonInChargeOfSafetyInfo { get; set; }
SecurityAdministrator SecurityAdministratorInfo { get; set; }
}
}

31
Application.Shared/Dtos/Units/Imports/GasStation.cs

@ -0,0 +1,31 @@ @@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Text;
using Infrastructure.Excel.Attributes;
namespace Application.Shared.Dtos.Units.Imports
{
[TableDto(Name = "加油站")]
[TableHeader(Title = "加油站统计表", HorizontalAlignment = HeaderHorizontalAlignment.Center, StartRowIndex = 0, StartCellIndex = 0, EndRowIndex = 0, Auto = true)]
public class GasStation
{
[ExcelColumn(Name = "序号", Sort = 1)]
public int Index { get; set; }
[ExcelColumn(Name = "单位名称", Sort = 2)]
public string Name { get; set; }
[ExcelColumn(Name = "所在旗县(市区)", Sort = 3)]
public string Area { get; set; }
[ExcelColumn(Name = "监管级别(一、二、三)", Sort = 4,Enums = new []{ "一", "二", "三" })]
public string RegulatoryLevel { get; set; }
[ExcelColumn(Name = "总储量(m3 )", Sort = 5)]
public string TotalReserves { get; set; }
[ExcelColumn(Name = "消防安全责任人", Sort = 6)]
public PersonInChargeOfSafety PersonInChargeOfSafetyInfo { get; set; }
[ExcelColumn(Name = "消防安全管理人", Sort = 7)]
public SecurityAdministrator SecurityAdministratorInfo { get; set; }
[ExcelColumn(Name = "经度", Sort = 8)]
public string Longitude { get; set; }
[ExcelColumn(Name = "纬度", Sort = 9)]
public string Latitude { get; set; }
}
}

51
Application.Shared/Dtos/Units/Imports/Hotel.cs

@ -0,0 +1,51 @@ @@ -0,0 +1,51 @@
using System;
using System.Collections.Generic;
using System.Text;
using Infrastructure.Excel.Attributes;
namespace Application.Shared.Dtos.Units.Imports
{
[TableDto(Name = "宾馆饭店")]
[TableHeader(Title = "宾馆、饭店统计表", HorizontalAlignment = HeaderHorizontalAlignment.Center, StartRowIndex = 0, StartCellIndex = 0, EndRowIndex = 0, Auto = true)]
public class Hotel
{
[ExcelColumn(Name = "序号", Sort = 1)]
public int Index { get; set; }
[ExcelColumn(Name = "单位名称", Sort = 2)]
public string Name { get; set; }
[ExcelColumn(Name = "所在旗县(市区)", Sort = 3)]
public string Area { get; set; }
[ExcelColumn(Name = "监管级别(一、二、三)", Sort = 4)]
public string RegulatoryLevel { get; set; }
[ExcelColumn(Name = "概况", Sort = 5)]
public HotelSurvey Survey { get; set; }
[ExcelColumn(Name = "消防安全责任人", Sort = 6)]
public PersonInChargeOfSafety PersonInChargeOfSafetyInfo { get; set; }
[ExcelColumn(Name = "消防安全管理人", Sort = 7)]
public SecurityAdministrator SecurityAdministratorInfo { get; set; }
[ExcelColumn(Name = "经度", Sort = 8)]
public string Longitude { get; set; }
[ExcelColumn(Name = "纬度", Sort = 9)]
public string Latitude { get; set; }
public Hotel()
{
Survey = new HotelSurvey();
PersonInChargeOfSafetyInfo = new PersonInChargeOfSafety();
SecurityAdministratorInfo = new SecurityAdministrator();
}
}
[TableColumnDto]
public class HotelSurvey
{
[ExcelColumn(Name = "建筑高度(m)", Sort = 2)]
public string Height { get; set; }
[ExcelColumn(Name = "建筑面积(m2)", Sort = 1)]
public string Area { get; set; }
[ExcelColumn(Name = "职工人数(人)", Sort = 3)]
public string EmployeeCount { get; set; }
}
}

10
Application.Shared/Dtos/Units/Imports/ISurvey.cs

@ -0,0 +1,10 @@ @@ -0,0 +1,10 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Application.Shared.Dtos.Units.Imports
{
public interface ISurvey
{
}
}

84
Application.Shared/Dtos/Units/Imports/IndustrialEnterprise.cs

@ -0,0 +1,84 @@ @@ -0,0 +1,84 @@
using Infrastructure.Excel.Attributes;
using System;
using System.Collections.Generic;
using System.Text;
namespace Application.Shared.Dtos.Units.Imports
{
[TableDto(Name = "工业企业统计表")]
[TableHeader(Title = "工业企业统计表",HorizontalAlignment = HeaderHorizontalAlignment.Center,StartRowIndex = 0,StartCellIndex = 0,EndRowIndex = 0,Auto = true)]
public class IndustrialEnterprise
{
[ExcelColumn(Name = "序号", Sort = 1)]
public int Index { get; set; }
[ExcelColumn(Name = "单位名称", Sort = 2)]
public string Name { get; set; }
[ExcelColumn(Name = "所在旗县(市区)",Sort = 3)]
public string Area { get; set; }
[ExcelColumn(Name = "监管级别(一、二、三)", Sort = 4)]
public string RegulatoryLevel { get; set; }
[ExcelColumn(Name = "概况", Sort = 5)]
public IndustrialSurvey Survey { get; set; }
[ExcelColumn(Name = "消防安全责任人", Sort = 6)]
public PersonInChargeOfSafety PersonInChargeOfSafetyInfo { get; set; }
[ExcelColumn(Name = "消防安全管理人", Sort = 7)]
public SecurityAdministrator SecurityAdministratorInfo { get; set; }
[ExcelColumn(Name = "经度", Sort = 8)]
public string Longitude { get; set; }
[ExcelColumn(Name = "纬度", Sort = 9)]
public string Latitude { get; set; }
public IndustrialEnterprise()
{
Survey = new IndustrialSurvey();
PersonInChargeOfSafetyInfo = new PersonInChargeOfSafety();
SecurityAdministratorInfo = new SecurityAdministrator();
}
}
[TableColumnDto]
public class IndustrialSurvey
{
[ExcelColumn(Name = "主要产品", Sort = 1)]
public string MainProduct { get; set; }
[ExcelColumn(Name = "年产值", Sort = 2)]
public string AnnualOutputValue { get; set; }
[ExcelColumn(Name = "职工人数(人)", Sort = 3)]
public string EmployeeCount { get; set; }
public int EmployeeCountValue { get; set; }
[ExcelColumn(Name = "建筑高度(m)", Sort = 4)]
public string BuildingHeight { get; set; }
public int BuildingHeightValue { get; set; }
[ExcelColumn(Name = "占地面积(m2)", Sort = 5)]
public string AreaCovered { get; set; }
public decimal AreaCoveredValue { get; set; }
[ExcelColumn(Name = "建筑面积(m2)", Sort = 6)]
public string BuildUpArea { get; set; }
public int BuildUpAreaValue { get; set; }
}
[TableColumnDto]
public class PersonInChargeOfSafety
{
[ExcelColumn(Name = "姓名", Sort = 1)]
public string Name { get; set; }
[ExcelColumn(Name = "联系电话", Sort = 2)]
public string Phone { get; set; }
}
[TableColumnDto]
public class SecurityAdministrator
{
[ExcelColumn(Name = "姓名", Sort = 1)]
public string Name { get; set; }
[ExcelColumn(Name = "联系电话", Sort = 2)]
public string Phone { get; set; }
}
}

44
Application.Shared/Dtos/Units/Imports/InflammableAndExplosiveProductionUnit.cs

@ -0,0 +1,44 @@ @@ -0,0 +1,44 @@
using Infrastructure.Excel.Attributes;
using System;
using System.Collections.Generic;
using System.Text;
namespace Application.Shared.Dtos.Units.Imports
{
[TableDto(Name = "易燃易爆生产单位")]
[TableHeader(Title = "易燃易爆危险品生产单位统计表", HorizontalAlignment = HeaderHorizontalAlignment.Center, StartRowIndex = 0, StartCellIndex = 0, EndRowIndex = 0, Auto = true)]
public class InflammableAndExplosiveProductionUnit
{
[ExcelColumn(Name = "序号", Sort = 1)]
public int Index { get; set; }
[ExcelColumn(Name = "单位名称", Sort = 2)]
public string Name { get; set; }
[ExcelColumn(Name = "所在旗县(市区)", Sort = 3)]
public string Area { get; set; }
[ExcelColumn(Name = "监管级别(一、二、三)", Sort = 4)]
public string RegulatoryLevel { get; set; }
[ExcelColumn(Name = "概况", Sort = 5)]
public IEPUSurvey Survey { get; set; }
[ExcelColumn(Name = "消防安全责任人", Sort = 6)]
public PersonInChargeOfSafety PersonInChargeOfSafetyInfo { get; set; }
[ExcelColumn(Name = "消防安全管理人", Sort = 7)]
public SecurityAdministrator SecurityAdministratorInfo { get; set; }
[ExcelColumn(Name = "经度", Sort = 8)]
public string Longitude { get; set; }
[ExcelColumn(Name = "纬度", Sort = 9)]
public string Latitude { get; set; }
}
[TableColumnDto]
public class IEPUSurvey
{
[ExcelColumn(Name = "主要危险物品名称", Sort = 1)]
public string MainDangerousProduct { get; set; }
[ExcelColumn(Name = "储存量(m3)", Sort = 2)]
public string Storage { get; set; }
[ExcelColumn(Name = "占地面积(m2)", Sort = 3)]
public string Area { get; set; }
}
}

46
Application.Shared/Dtos/Units/Imports/InflammableAndExplosiveStore.cs

@ -0,0 +1,46 @@ @@ -0,0 +1,46 @@
using System;
using System.Collections.Generic;
using System.Text;
using Infrastructure.Excel.Attributes;
namespace Application.Shared.Dtos.Units.Imports
{
[TableDto(Name = "易燃易爆物品库")]
[TableHeader(Title = "易燃易爆危险品存储库统计表", HorizontalAlignment = HeaderHorizontalAlignment.Center, StartRowIndex = 0, StartCellIndex = 0, EndRowIndex = 0, Auto = true)]
public class InflammableAndExplosiveStore
{
[ExcelColumn(Name = "序号", Sort = 1)]
public int Index { get; set; }
[ExcelColumn(Name = "单位名称", Sort = 2)]
public string Name { get; set; }
[ExcelColumn(Name = "所在旗县(市区)", Sort = 3)]
public string Area { get; set; }
[ExcelColumn(Name = "监管级别(一、二、三)", Sort = 4)]
public string RegulatoryLevel { get; set; }
[ExcelColumn(Name = "概况", Sort = 5)]
public IESSurvey Survey { get; set; }
[ExcelColumn(Name = "消防安全责任人", Sort = 6)]
public PersonInChargeOfSafety PersonInChargeOfSafetyInfo { get; set; }
[ExcelColumn(Name = "消防安全管理人", Sort = 7)]
public SecurityAdministrator SecurityAdministratorInfo { get; set; }
[ExcelColumn(Name = "经度", Sort = 8)]
public string Longitude { get; set; }
[ExcelColumn(Name = "纬度", Sort = 9)]
public string Latitude { get; set; }
}
[TableColumnDto]
public class IESSurvey
{
[ExcelColumn(Name = "主要危险物品名称", Sort = 1)]
public string MainDangerousProduct { get; set; }
[ExcelColumn(Name = "储量(m3)", Sort = 2)]
public string Storage { get; set; }
public double StorageValue { get; set; }
[ExcelColumn(Name = "占地面积(m2)", Sort = 3)]
public string Area { get; set; }
public double AreaValue { get; set; }
}
}

31
Application.Shared/Dtos/Units/Imports/LiquefiedGasStation.cs

@ -0,0 +1,31 @@ @@ -0,0 +1,31 @@
using System;
using System.Collections.Generic;
using System.Text;
using Infrastructure.Excel.Attributes;
namespace Application.Shared.Dtos.Units.Imports
{
[TableDto(Name = "液化气站")]
[TableHeader(Title = "石油液化气、天然气站统计表", HorizontalAlignment = HeaderHorizontalAlignment.Center, StartRowIndex = 0, StartCellIndex = 0, EndRowIndex = 0, Auto = true)]
public class LiquefiedGasStation
{
[ExcelColumn(Name = "序号", Sort = 1)]
public int Index { get; set; }
[ExcelColumn(Name = "单位名称", Sort = 2)]
public string Name { get; set; }
[ExcelColumn(Name = "所在旗县(市区)", Sort = 3)]
public string Area { get; set; }
[ExcelColumn(Name = "监管级别(一、二、三)", Sort = 4, Enums = new[] { "一", "二", "三" })]
public string RegulatoryLevel { get; set; }
[ExcelColumn(Name = "总储量(m3)", Sort = 5)]
public string TotalReserves { get; set; }
[ExcelColumn(Name = "消防安全责任人", Sort = 6)]
public PersonInChargeOfSafety PersonInChargeOfSafetyInfo { get; set; }
[ExcelColumn(Name = "消防安全管理人", Sort = 7)]
public SecurityAdministrator SecurityAdministratorInfo { get; set; }
[ExcelColumn(Name = "经度", Sort = 8)]
public string Longitude { get; set; }
[ExcelColumn(Name = "纬度", Sort = 9)]
public string Latitude { get; set; }
}
}

46
Application.Shared/Dtos/Units/Imports/Market.cs

@ -0,0 +1,46 @@ @@ -0,0 +1,46 @@
using System;
using System.Collections.Generic;
using System.Text;
using Infrastructure.Excel.Attributes;
namespace Application.Shared.Dtos.Units.Imports
{
[TableDto(Name = "商场、集贸市场")]
[TableHeader(Title = "商场、集贸市场统计表", HorizontalAlignment = HeaderHorizontalAlignment.Center, StartRowIndex = 0, StartCellIndex = 0, EndRowIndex = 0, Auto = true)]
public class Market
{
[ExcelColumn(Name = "序号", Sort = 1)]
public int Index { get; set; }
[ExcelColumn(Name = "单位名称", Sort = 2)]
public string Name { get; set; }
[ExcelColumn(Name = "所在旗县(市区)", Sort = 3)]
public string Area { get; set; }
[ExcelColumn(Name = "监管级别(一、二、三)", Sort = 4)]
public string RegulatoryLevel { get; set; }
[ExcelColumn(Name = "概况", Sort = 5)]
public MarketSurvey Survey { get; set; }
[ExcelColumn(Name = "消防安全责任人", Sort = 6)]
public PersonInChargeOfSafety PersonInChargeOfSafetyInfo { get; set; }
[ExcelColumn(Name = "消防安全管理人", Sort = 7)]
public SecurityAdministrator SecurityAdministratorInfo { get; set; }
[ExcelColumn(Name = "经度", Sort = 8)]
public string Longitude { get; set; }
[ExcelColumn(Name = "纬度", Sort = 9)]
public string Latitude { get; set; }
}
[TableColumnDto]
public class MarketSurvey
{
[ExcelColumn(Name = "建筑高度(米)", Sort = 1)]
public string Height { get; set; }
public int HeightValue { get; set; }
[ExcelColumn(Name = "建筑面积(m2)", Sort = 3)]
public string Area { get; set; }
public double AreaValue { get; set; }
[ExcelColumn(Name = "建筑层数(层)", Sort = 2)]
public string UsageNature { get; set; }
public string UsageNatureValue { get; set; }
}
}

32
Application.Shared/Dtos/Units/Imports/MedicalInstitution.cs

@ -0,0 +1,32 @@ @@ -0,0 +1,32 @@
using System;
using System.Collections.Generic;
using System.Text;
using Infrastructure.Excel.Attributes;
namespace Application.Shared.Dtos.Units.Imports
{
[TableDto(Name = "医疗机构")]
[TableHeader(Title = "医疗机构统计表", HorizontalAlignment = HeaderHorizontalAlignment.Center, StartRowIndex = 0, StartCellIndex = 0, EndRowIndex = 0, Auto = true)]
public class MedicalInstitution
{
[ExcelColumn(Name = "序号", Sort = 1)]
public int Index { get; set; }
[ExcelColumn(Name = "单位名称", Sort = 2)]
public string Name { get; set; }
[ExcelColumn(Name = "所在旗县(市区)", Sort = 3)]
public string Area { get; set; }
[ExcelColumn(Name = "监管级别(一、二、三)", Sort = 4)]
public string RegulatoryLevel { get; set; }
[ExcelColumn(Name = "概况", Sort = 5)]
public WelfareInstitutionSurvey Survey { get; set; }
[ExcelColumn(Name = "消防安全责任人", Sort = 6)]
public PersonInChargeOfSafety PersonInChargeOfSafetyInfo { get; set; }
[ExcelColumn(Name = "消防安全管理人", Sort = 7)]
public SecurityAdministrator SecurityAdministratorInfo { get; set; }
[ExcelColumn(Name = "经度", Sort = 8)]
public string Longitude { get; set; }
[ExcelColumn(Name = "纬度", Sort = 9)]
public string Latitude { get; set; }
}
}

56
Application.Shared/Dtos/Units/Imports/Other.cs

@ -0,0 +1,56 @@ @@ -0,0 +1,56 @@
using System;
using System.Collections.Generic;
using System.Text;
using Infrastructure.Excel.Attributes;
namespace Application.Shared.Dtos.Units.Imports
{
[TableDto(Name = "其他")]
[TableHeader(Title = "其他社会单位统计表", HorizontalAlignment = HeaderHorizontalAlignment.Center, StartRowIndex = 0, StartCellIndex = 0, EndRowIndex = 0, Auto = true)]
public class Other
{
[ExcelColumn(Name = "序号", Sort = 1)]
public int Index { get; set; }
[ExcelColumn(Name = "单位名称", Sort = 2)]
public string Name { get; set; }
[ExcelColumn(Name = "所在旗县(市区)", Sort = 3)]
public string Area { get; set; }
[ExcelColumn(Name = "监管级别(一、二、三)", Sort = 4)]
public string RegulatoryLevel { get; set; }
[ExcelColumn(Name = "概况", Sort = 5)]
public OtherSurvey Survey { get; set; }
[ExcelColumn(Name = "消防安全责任人", Sort = 6)]
public PersonInChargeOfSafety PersonInChargeOfSafetyInfo { get; set; }
[ExcelColumn(Name = "消防安全管理人", Sort = 7)]
public SecurityAdministrator SecurityAdministratorInfo { get; set; }
[ExcelColumn(Name = "经度", Sort = 8)]
public string Longitude { get; set; }
[ExcelColumn(Name = "纬度", Sort = 9)]
public string Latitude { get; set; }
public Other()
{
Survey = new OtherSurvey();
PersonInChargeOfSafetyInfo = new PersonInChargeOfSafety();
SecurityAdministratorInfo = new SecurityAdministrator();
}
}
[TableColumnDto]
public class OtherSurvey
{
[ExcelColumn(Name = "建筑高度(米)", Sort = 3)]
public string Height { get; set; }
public int HeightValue { get; set; }
[ExcelColumn(Name = "建筑面积(平方米)", Sort = 4)]
public string Area { get; set; }
public double AreaValue { get; set; }
[ExcelColumn(Name = "使用性质", Sort = 1)]
public string UsageNature { get; set; }
[ExcelColumn(Name = "职工人数(人)", Sort = 2)]
public string EmployeeCount { get; set; }
public int EmployeeCountValue { get; set; }
}
}

50
Application.Shared/Dtos/Units/Imports/PublicEntertainment.cs

@ -0,0 +1,50 @@ @@ -0,0 +1,50 @@
using System;
using System.Collections.Generic;
using System.Text;
using Infrastructure.Excel.Attributes;
namespace Application.Shared.Dtos.Units.Imports
{
[TableDto(Name = "公共娱乐")]
[TableHeader(Title = "公共娱乐场所统计表", HorizontalAlignment = HeaderHorizontalAlignment.Center, StartRowIndex = 0, StartCellIndex = 0, EndRowIndex = 0, Auto = true)]
public class PublicEntertainment
{
[ExcelColumn(Name = "序号", Sort = 1)]
public int Index { get; set; }
[ExcelColumn(Name = "单位名称", Sort = 2)]
public string Name { get; set; }
[ExcelColumn(Name = "所在旗县(市区)", Sort = 3)]
public string Area { get; set; }
[ExcelColumn(Name = "监管级别(一、二、三)", Sort = 4)]
public string RegulatoryLevel { get; set; }
[ExcelColumn(Name = "概况", Sort = 5)]
public PublicEntertainmentSurvey Survey { get; set; }
[ExcelColumn(Name = "消防安全责任人", Sort = 6)]
public PersonInChargeOfSafety PersonInChargeOfSafetyInfo { get; set; }
[ExcelColumn(Name = "消防安全管理人", Sort = 7)]
public SecurityAdministrator SecurityAdministratorInfo { get; set; }
[ExcelColumn(Name = "经度", Sort = 8)]
public string Longitude { get; set; }
[ExcelColumn(Name = "纬度", Sort = 9)]
public string Latitude { get; set; }
}
[TableColumnDto]
public class PublicEntertainmentSurvey
{
[ExcelColumn(Name = "许可容纳人数(人)", Sort = 1)]
public string PeopleCount { get; set; }
public int PeopleCountValue { get; set; }
[ExcelColumn(Name = "建筑层数(层)", Sort = 2)]
public string FloorNumber { get; set; }
[ExcelColumn(Name = "建筑高度(米)", Sort = 3)]
public string Height { get; set; }
public int HeightValue { get; set; }
[ExcelColumn(Name = "建筑面积(平方米)", Sort = 4)]
public string Area { get; set; }
public double AreaValue { get; set; }
}
}

53
Application.Shared/Dtos/Units/Imports/School.cs

@ -0,0 +1,53 @@ @@ -0,0 +1,53 @@
using System;
using System.Collections.Generic;
using System.Text;
using Infrastructure.Excel.Attributes;
namespace Application.Shared.Dtos.Units.Imports
{
[TableDto(Name = "学校")]
[TableHeader(Title = "学校统计表", HorizontalAlignment = HeaderHorizontalAlignment.Center, StartRowIndex = 0, StartCellIndex = 0, EndRowIndex = 0, Auto = true)]
public class School
{
[ExcelColumn(Name = "序号", Sort = 1)]
public int Index { get; set; }
[ExcelColumn(Name = "单位名称", Sort = 2)]
public string Name { get; set; }
[ExcelColumn(Name = "所在旗县(市区)", Sort = 3)]
public string Area { get; set; }
[ExcelColumn(Name = "监管级别(一、二、三)", Sort = 4)]
public string RegulatoryLevel { get; set; }
[ExcelColumn(Name = "概况", Sort = 5)]
public SchoolSurvey Survey { get; set; }
[ExcelColumn(Name = "消防安全责任人", Sort = 6)]
public PersonInChargeOfSafety PersonInChargeOfSafetyInfo { get; set; }
[ExcelColumn(Name = "消防安全管理人", Sort = 7)]
public SecurityAdministrator SecurityAdministratorInfo { get; set; }
[ExcelColumn(Name = "经度", Sort = 8)]
public string Longitude { get; set; }
[ExcelColumn(Name = "纬度", Sort = 9)]
public string Latitude { get; set; }
}
[TableColumnDto]
public class SchoolSurvey
{
[ExcelColumn(Name = "类别(大学、中学、小学、幼儿园)", Sort = 1,Enums = new []{ "幼儿园", "小学", "中学", "大学"})]
public string Type { get; set; }
[ExcelColumn(Name = "学生人数 (人)", Sort = 2)]
public string StudentCount { get; set; }
public int StudentCountValue { get; set; }
[ExcelColumn(Name = "建筑层数 (层)", Sort = 3)]
public string UsageNature { get; set; }
public string UsageNatureValue { get; set; }
[ExcelColumn(Name = "建筑高度 (米)", Sort = 4)]
public string Height { get; set; }
public int HeightValue { get; set; }
[ExcelColumn(Name = "建筑面积(平方米)", Sort = 5)]
public string Area { get; set; }
public double AreaValue { get; set; }
}
}

46
Application.Shared/Dtos/Units/Imports/StateOrgan.cs

@ -0,0 +1,46 @@ @@ -0,0 +1,46 @@
using System;
using System.Collections.Generic;
using System.Text;
using Infrastructure.Excel.Attributes;
namespace Application.Shared.Dtos.Units.Imports
{
[TableDto(Name = "国家机关")]
[TableHeader(Title = "国家机关统计表", HorizontalAlignment = HeaderHorizontalAlignment.Center, StartRowIndex = 0, StartCellIndex = 0, EndRowIndex = 0, Auto = true)]
public class StateOrgan
{
[ExcelColumn(Name = "序号", Sort = 1)]
public int Index { get; set; }
[ExcelColumn(Name = "建筑名称", Sort = 2)]
public string Name { get; set; }
[ExcelColumn(Name = "所在旗县(市区)", Sort = 3)]
public string Area { get; set; }
[ExcelColumn(Name = "监管级别(一、二、三)", Sort = 4)]
public string RegulatoryLevel { get; set; }
[ExcelColumn(Name = "概况", Sort = 5)]
public StateOrganSurvey Survey { get; set; }
[ExcelColumn(Name = "消防安全责任人", Sort = 6)]
public PersonInChargeOfSafety PersonInChargeOfSafetyInfo { get; set; }
[ExcelColumn(Name = "消防安全管理人", Sort = 7)]
public SecurityAdministrator SecurityAdministratorInfo { get; set; }
[ExcelColumn(Name = "经度", Sort = 8)]
public string Longitude { get; set; }
[ExcelColumn(Name = "纬度", Sort = 9)]
public string Latitude { get; set; }
}
[TableColumnDto]
public class StateOrganSurvey
{
[ExcelColumn(Name = "建筑高度(米)", Sort = 2)]
public string Height { get; set; }
public int HeightValue { get; set; }
[ExcelColumn(Name = "建筑面积(平方米)", Sort = 3)]
public string Area { get; set; }
public double AreaValue { get; set; }
[ExcelColumn(Name = "建筑层数(层)", Sort = 1)]
public string UsageNature { get; set; }
public string UsageNatureValue { get; set; }
}
}

42
Application.Shared/Dtos/Units/Imports/Storage.cs

@ -0,0 +1,42 @@ @@ -0,0 +1,42 @@
using System;
using System.Collections.Generic;
using System.Text;
using Infrastructure.Excel.Attributes;
namespace Application.Shared.Dtos.Units.Imports
{
[TableDto(Name = "仓储")]
[TableHeader(Title = "仓储、物流单位统计表", HorizontalAlignment = HeaderHorizontalAlignment.Center, StartRowIndex = 0, StartCellIndex = 0, EndRowIndex = 0, Auto = true)]
public class Storage
{
[ExcelColumn(Name = "序号", Sort = 1)]
public int Index { get; set; }
[ExcelColumn(Name = "单位名称", Sort = 2)]
public string Name { get; set; }
[ExcelColumn(Name = "所在旗县(市区)", Sort = 3)]
public string Area { get; set; }
[ExcelColumn(Name = "监管级别(一、二、三)", Sort = 4)]
public string RegulatoryLevel { get; set; }
[ExcelColumn(Name = "概况", Sort = 5)]
public StorageSurvey Survey { get; set; }
[ExcelColumn(Name = "消防安全责任人", Sort = 6)]
public PersonInChargeOfSafety PersonInChargeOfSafetyInfo { get; set; }
[ExcelColumn(Name = "消防安全管理人", Sort = 7)]
public SecurityAdministrator SecurityAdministratorInfo { get; set; }
[ExcelColumn(Name = "经度", Sort = 8)]
public string Longitude { get; set; }
[ExcelColumn(Name = "纬度", Sort = 9)]
public string Latitude { get; set; }
}
[TableColumnDto]
public class StorageSurvey
{
[ExcelColumn(Name = "仓储物品种类", Sort = 1)]
public string StorageGoods { get; set; }
[ExcelColumn(Name = "建筑面积(m2)", Sort = 2)]
public string Area { get; set; }
[ExcelColumn(Name = "储量(吨)", Sort = 3)]
public string Reserves { get; set; }
}
}

52
Application.Shared/Dtos/Units/Imports/TallBuilding.cs

@ -0,0 +1,52 @@ @@ -0,0 +1,52 @@
using System;
using System.Collections.Generic;
using System.Text;
using Infrastructure.Excel.Attributes;
namespace Application.Shared.Dtos.Units.Imports
{
[TableDto(Name = "高层")]
[TableHeader(Title = "高层公共建筑统计表", HorizontalAlignment = HeaderHorizontalAlignment.Center, StartRowIndex = 0, StartCellIndex = 0, EndRowIndex = 0, Auto = true)]
public class TallBuilding
{
[ExcelColumn(Name = "序号", Sort = 1)]
public int Index { get; set; }
[ExcelColumn(Name = "建筑名称", Sort = 2)]
public string Name { get; set; }
[ExcelColumn(Name = "所在旗县(市区)", Sort = 3)]
public string Area { get; set; }
[ExcelColumn(Name = "监管级别(一、二、三)", Sort = 4)]
public string RegulatoryLevel { get; set; }
[ExcelColumn(Name = "概况", Sort = 5)]
public BuildingSurvey Survey { get; set; }
[ExcelColumn(Name = "消防安全责任人", Sort = 6)]
public PersonInChargeOfSafety PersonInChargeOfSafetyInfo { get; set; }
[ExcelColumn(Name = "消防安全管理人", Sort = 7)]
public SecurityAdministrator SecurityAdministratorInfo { get; set; }
[ExcelColumn(Name = "经度", Sort = 8)]
public string Longitude { get; set; }
[ExcelColumn(Name = "纬度", Sort = 9)]
public string Latitude { get; set; }
public TallBuilding()
{
Survey=new BuildingSurvey();
PersonInChargeOfSafetyInfo = new PersonInChargeOfSafety();
SecurityAdministratorInfo = new SecurityAdministrator();
}
}
[TableColumnDto]
public class BuildingSurvey
{
[ExcelColumn(Name = "建筑高度(m)", Sort = 1)]
public string Height { get; set; }
public int HeightValue { get; set; }
[ExcelColumn(Name = "建筑面积(m2)", Sort = 2)]
public string Area { get; set; }
public double AreaValue { get; set; }
[ExcelColumn(Name = "使用性质", Sort = 3)]
public string UsageNature { get; set; }
}
}

51
Application.Shared/Dtos/Units/Imports/UnderGround.cs

@ -0,0 +1,51 @@ @@ -0,0 +1,51 @@
using System;
using System.Collections.Generic;
using System.Text;
using Infrastructure.Excel.Attributes;
namespace Application.Shared.Dtos.Units.Imports
{
[TableDto(Name = "地下")]
[TableHeader(Title = "地下建筑统计表", HorizontalAlignment = HeaderHorizontalAlignment.Center, StartRowIndex = 0, StartCellIndex = 0, EndRowIndex = 0, Auto = true)]
public class UnderGround
{
[ExcelColumn(Name = "序号", Sort = 1)]
public int Index { get; set; }
[ExcelColumn(Name = "建筑名称", Sort = 2)]
public string Name { get; set; }
[ExcelColumn(Name = "所在旗县(市区)", Sort = 3)]
public string Area { get; set; }
[ExcelColumn(Name = "监管级别(一、二、三)", Sort = 4)]
public string RegulatoryLevel { get; set; }
[ExcelColumn(Name = "概况", Sort = 5)]
public UnderGroundSurvey Survey { get; set; }
[ExcelColumn(Name = "消防安全责任人", Sort = 6)]
public PersonInChargeOfSafety PersonInChargeOfSafetyInfo { get; set; }
[ExcelColumn(Name = "消防安全管理人", Sort = 7)]
public SecurityAdministrator SecurityAdministratorInfo { get; set; }
[ExcelColumn(Name = "经度", Sort = 8)]
public string Longitude { get; set; }
[ExcelColumn(Name = "纬度", Sort = 9)]
public string Latitude { get; set; }
public UnderGround()
{
Survey = new UnderGroundSurvey();
PersonInChargeOfSafetyInfo = new PersonInChargeOfSafety();
SecurityAdministratorInfo = new SecurityAdministrator();
}
}
[TableColumnDto]
public class UnderGroundSurvey
{
public int HeightValue { get; set; }
[ExcelColumn(Name = "建筑面积(m2)", Sort = 1)]
public string Area { get; set; }
public double AreaValue { get; set; }
[ExcelColumn(Name = "使用性质", Sort = 2)]
public string UsageNature { get; set; }
}
}

46
Application.Shared/Dtos/Units/Imports/WelfareInstitution.cs

@ -0,0 +1,46 @@ @@ -0,0 +1,46 @@
using System;
using System.Collections.Generic;
using System.Text;
using Infrastructure.Excel.Attributes;
namespace Application.Shared.Dtos.Units.Imports
{
[TableDto(Name = "福利机构")]
[TableHeader(Title = "社会福利机构统计表", HorizontalAlignment = HeaderHorizontalAlignment.Center, StartRowIndex = 0, StartCellIndex = 0, EndRowIndex = 0, Auto = true)]
public class WelfareInstitution
{
[ExcelColumn(Name = "序号", Sort = 1)]
public int Index { get; set; }
[ExcelColumn(Name = "单位名称", Sort = 2)]
public string Name { get; set; }
[ExcelColumn(Name = "所在旗县(市区)", Sort = 3)]
public string Area { get; set; }
[ExcelColumn(Name = "监管级别(一、二、三)", Sort = 4)]
public string RegulatoryLevel { get; set; }
[ExcelColumn(Name = "概况", Sort = 5)]
public WelfareInstitutionSurvey Survey { get; set; }
[ExcelColumn(Name = "消防安全责任人", Sort = 6)]
public PersonInChargeOfSafety PersonInChargeOfSafetyInfo { get; set; }
[ExcelColumn(Name = "消防安全管理人", Sort = 7)]
public SecurityAdministrator SecurityAdministratorInfo { get; set; }
[ExcelColumn(Name = "经度", Sort = 8)]
public string Longitude { get; set; }
[ExcelColumn(Name = "纬度", Sort = 9)]
public string Latitude { get; set; }
}
[TableColumnDto]
public class WelfareInstitutionSurvey
{
[ExcelColumn(Name = "床位数(张)", Sort = 1)]
public string BedCount { get; set; }
[ExcelColumn(Name = "建筑层数(层)", Sort = 2)]
public string FloorNumber { get; set; }
[ExcelColumn(Name = "建筑高度(米)", Sort = 3)]
public string Height { get; set; }
[ExcelColumn(Name = "建筑面积(平方米)", Sort = 4)]
public string Area { get; set; }
}
}

92
Application.Shared/Dtos/Units/UnitOutputDto.cs

@ -0,0 +1,92 @@ @@ -0,0 +1,92 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace Application.Shared.Dtos.Units
{
public class UnitOutputDto
{
public int Id { get; set; }
/// <summary>
/// 微擎小程序/公众号ID
/// </summary>
public int Uniacid { get; set; }
/// <summary>
/// 团体ID
/// </summary>
public int GroupId { get; set; }
/// <summary>
/// 单位分类ID,关联表building_category
/// </summary>
public int CategoryId { get; set; }
/// <summary>
/// 坐标纬度
/// </summary>
public float Latitude { get; set; }
/// <summary>
/// 坐标经度
/// </summary>
public float Longitude { get; set; }
/// <summary>
/// 地址名称
/// </summary>
public string LocationName { get; set; }
/// <summary>
/// 单位名称
/// </summary>
public string Name { get; set; }
/// <summary>
/// 重要等级
/// </summary>
public Int16 ImportantRating { get; set; }
/// <summary>
/// 监管等级
/// </summary>
public Int16 SuperviseLevel { get; set; }
/// <summary>
/// 上级单位ID
/// </summary>
public int ParentUnitId { get; set; }
/// <summary>
/// 负责人姓名
/// </summary>
public string PrincipalName { get; set; }
/// <summary>
/// 负责人联系电话
/// </summary>
public string PrincipalPhoneNum { get; set; }
/// <summary>
/// 人数
/// </summary>
public Int16 PeopleNum { get; set; }
/// <summary>
/// 占地面积
/// </summary>
public int CoverArea { get; set; }
/// <summary>
/// 使用面积
/// </summary>
public int UseArea { get; set; }
/// <summary>
/// 图片集合
/// </summary>
public string Imgs { get; set; }
/// <summary>
/// 备注
/// </summary>
public string Remark { get; set; }
/// <summary>
/// 附件信息集合
/// </summary>
public string Attachments { get; set; }
/// <summary>
/// 操作员ID
/// </summary>
public int OperatorId { get; set; }
/// <summary>
/// 更新时间
/// </summary>
public DateTime UpdateTime { get; set; }
}
}

39
Application.Shared/Dtos/Waters/Imports/Water.cs

@ -0,0 +1,39 @@ @@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
using System.Text;
using Infrastructure.Excel.Attributes;
namespace Application.Shared.Dtos.Waters.Imports
{
[TableDto(Name = "伊金霍洛旗中队")]
[TableHeader(Title = "伊旗中队水源普查台账统计表", HorizontalAlignment = HeaderHorizontalAlignment.Center, StartRowIndex = 0, StartCellIndex = 0, EndRowIndex = 0, Auto = true)]
[TableHeader(Title = "填报人:苗境楷(通讯员)普查人:颜炳亮(中队长) 审核人:蔺鹏宏(大队长)", HorizontalAlignment = HeaderHorizontalAlignment.Center, StartRowIndex = 0, StartCellIndex = 0, EndRowIndex = 0, Auto = true)]
public class Water
{
[ExcelColumn(Name = "序号", Sort = 1)]
public int Index { get; set; }
[ExcelColumn(Name = "旗(县、区)", Sort = 3)]
public string Area { get; set; }
[ExcelColumn(Name = "街道(路段)", Sort = 4)]
public string Street { get; set; }
[ExcelColumn(Name = "具体位置", Sort = 5)]
public string Position { get; set; }
[ExcelColumn(Name = "水源现状", Sort = 6)]
public string WaterStatus { get; set; }
[ExcelColumn(Name = "坐标", Sort = 7)]
public WaterPoint Point { get; set; }
[ExcelColumn(Name = "建设日期", Sort = 8)]
public string ConstructionDate { get; set; }
[ExcelColumn(Name = "普查日期", Sort = 9)]
public string CensusDate { get; set; }
}
[TableColumnDto]
public class WaterPoint
{
[ExcelColumn(Name = "N", Sort = 1)]
public string NorthLatitude { get; set; }
[ExcelColumn(Name = "E", Sort = 2)]
public string EastLongitude { get; set; }
}
}

150
Application.Shared/obj/Application.Shared.csproj.nuget.dgspec.json

@ -0,0 +1,150 @@ @@ -0,0 +1,150 @@
{
"format": 1,
"restore": {
"C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Application.Shared\\Application.Shared.csproj": {}
},
"projects": {
"C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Application.Shared\\Application.Shared.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Application.Shared\\Application.Shared.csproj",
"projectName": "Application.Shared",
"projectPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Application.Shared\\Application.Shared.csproj",
"packagesPath": "C:\\Users\\NineFishes\\.nuget\\packages\\",
"outputPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Application.Shared\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\NineFishes\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://www.nuget.org/api/v2/": {}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"projectReferences": {
"C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Infrastructure\\Infrastructure.csproj": {
"projectPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Infrastructure\\Infrastructure.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.202\\RuntimeIdentifierGraph.json"
}
}
},
"C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Infrastructure\\Infrastructure.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Infrastructure\\Infrastructure.csproj",
"projectName": "Infrastructure",
"projectPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Infrastructure\\Infrastructure.csproj",
"packagesPath": "C:\\Users\\NineFishes\\.nuget\\packages\\",
"outputPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Infrastructure\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\NineFishes\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://www.nuget.org/api/v2/": {}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"dependencies": {
"Autofac": {
"target": "Package",
"version": "[6.2.0, )"
},
"Autofac.Extensions.DependencyInjection": {
"target": "Package",
"version": "[7.1.0, )"
},
"Autofac.Extras.DynamicProxy": {
"target": "Package",
"version": "[6.0.0, )"
},
"Microsoft.AspNetCore.Mvc.Core": {
"target": "Package",
"version": "[2.2.5, )"
},
"Microsoft.Extensions.DependencyModel": {
"target": "Package",
"version": "[5.0.0, )"
},
"NPOI": {
"target": "Package",
"version": "[2.5.3, )"
},
"Newtonsoft.Json": {
"target": "Package",
"version": "[13.0.1, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.202\\RuntimeIdentifierGraph.json"
}
}
}
}
}

15
Application.Shared/obj/Application.Shared.csproj.nuget.g.props

@ -0,0 +1,15 @@ @@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\NineFishes\.nuget\packages\</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.1.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\NineFishes\.nuget\packages\" />
</ItemGroup>
</Project>

2
Application.Shared/obj/Application.Shared.csproj.nuget.g.targets

@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />

4
Application.Shared/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs

@ -0,0 +1,4 @@ @@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")]

23
Application.Shared/obj/Debug/netcoreapp3.1/Application.Shared.AssemblyInfo.cs

@ -0,0 +1,23 @@ @@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Application.Shared")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Application.Shared")]
[assembly: System.Reflection.AssemblyTitleAttribute("Application.Shared")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// 由 MSBuild WriteCodeFragment 类生成。

1
Application.Shared/obj/Debug/netcoreapp3.1/Application.Shared.AssemblyInfoInputs.cache

@ -0,0 +1 @@ @@ -0,0 +1 @@
cccd3f9fe8024b56b9e57e122f65e9779d501b6f

3
Application.Shared/obj/Debug/netcoreapp3.1/Application.Shared.GeneratedMSBuildEditorConfig.editorconfig

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
is_global = true
build_property.RootNamespace = Application.Shared
build_property.ProjectDir = C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Application.Shared\

BIN
Application.Shared/obj/Debug/netcoreapp3.1/Application.Shared.assets.cache

Binary file not shown.

BIN
Application.Shared/obj/Debug/netcoreapp3.1/Application.Shared.csproj.AssemblyReference.cache

Binary file not shown.

0
Application.Shared/obj/Debug/netcoreapp3.1/Application.Shared.csproj.BuildWithSkipAnalyzers

0
Application.Shared/obj/Debug/netcoreapp3.1/Application.Shared.csproj.CopyComplete

1
Application.Shared/obj/Debug/netcoreapp3.1/Application.Shared.csproj.CoreCompileInputs.cache

@ -0,0 +1 @@ @@ -0,0 +1 @@
225709680ddbd3ef998cff4980e6b471b068f3c1

13
Application.Shared/obj/Debug/netcoreapp3.1/Application.Shared.csproj.FileListAbsolute.txt

@ -0,0 +1,13 @@ @@ -0,0 +1,13 @@
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Application.Shared\bin\Debug\netcoreapp3.1\Application.Shared.deps.json
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Application.Shared\bin\Debug\netcoreapp3.1\Application.Shared.dll
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Application.Shared\bin\Debug\netcoreapp3.1\Application.Shared.pdb
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Application.Shared\bin\Debug\netcoreapp3.1\Infrastructure.dll
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Application.Shared\bin\Debug\netcoreapp3.1\Infrastructure.pdb
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Application.Shared\obj\Debug\netcoreapp3.1\Application.Shared.csproj.AssemblyReference.cache
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Application.Shared\obj\Debug\netcoreapp3.1\Application.Shared.GeneratedMSBuildEditorConfig.editorconfig
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Application.Shared\obj\Debug\netcoreapp3.1\Application.Shared.AssemblyInfoInputs.cache
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Application.Shared\obj\Debug\netcoreapp3.1\Application.Shared.AssemblyInfo.cs
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Application.Shared\obj\Debug\netcoreapp3.1\Application.Shared.csproj.CoreCompileInputs.cache
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Application.Shared\obj\Debug\netcoreapp3.1\Application.Shared.csproj.CopyComplete
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Application.Shared\obj\Debug\netcoreapp3.1\Application.Shared.dll
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Application.Shared\obj\Debug\netcoreapp3.1\Application.Shared.pdb

BIN
Application.Shared/obj/Debug/netcoreapp3.1/Application.Shared.dll

Binary file not shown.

BIN
Application.Shared/obj/Debug/netcoreapp3.1/Application.Shared.pdb

Binary file not shown.

6711
Application.Shared/obj/project.assets.json

File diff suppressed because it is too large Load Diff

137
Application.Shared/obj/project.nuget.cache

@ -0,0 +1,137 @@ @@ -0,0 +1,137 @@
{
"version": 2,
"dgSpecHash": "vtd89qPRNaQdVUvovNAa83X8OFgtXNBzsXXNUsYtm/gj+bfnQwg4FusnSiv56M2X6BXQCH6Nr/ZVGUYxZ2M+eQ==",
"success": true,
"projectFilePath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Application.Shared\\Application.Shared.csproj",
"expectedPackageFiles": [
"C:\\Users\\NineFishes\\.nuget\\packages\\autofac\\6.2.0\\autofac.6.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\autofac.extensions.dependencyinjection\\7.1.0\\autofac.extensions.dependencyinjection.7.1.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\autofac.extras.dynamicproxy\\6.0.0\\autofac.extras.dynamicproxy.6.0.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\castle.core\\4.4.0\\castle.core.4.4.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.authentication.abstractions\\2.2.0\\microsoft.aspnetcore.authentication.abstractions.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.authentication.core\\2.2.0\\microsoft.aspnetcore.authentication.core.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.authorization\\2.2.0\\microsoft.aspnetcore.authorization.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.authorization.policy\\2.2.0\\microsoft.aspnetcore.authorization.policy.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.hosting.abstractions\\2.2.0\\microsoft.aspnetcore.hosting.abstractions.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.hosting.server.abstractions\\2.2.0\\microsoft.aspnetcore.hosting.server.abstractions.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.http\\2.2.0\\microsoft.aspnetcore.http.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.http.abstractions\\2.2.0\\microsoft.aspnetcore.http.abstractions.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.http.extensions\\2.2.0\\microsoft.aspnetcore.http.extensions.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.http.features\\2.2.0\\microsoft.aspnetcore.http.features.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.mvc.abstractions\\2.2.0\\microsoft.aspnetcore.mvc.abstractions.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.mvc.core\\2.2.5\\microsoft.aspnetcore.mvc.core.2.2.5.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.responsecaching.abstractions\\2.2.0\\microsoft.aspnetcore.responsecaching.abstractions.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.routing\\2.2.0\\microsoft.aspnetcore.routing.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.routing.abstractions\\2.2.0\\microsoft.aspnetcore.routing.abstractions.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.webutilities\\2.2.0\\microsoft.aspnetcore.webutilities.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.extensions.configuration.abstractions\\2.2.0\\microsoft.extensions.configuration.abstractions.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.extensions.dependencyinjection\\2.2.0\\microsoft.extensions.dependencyinjection.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.extensions.dependencyinjection.abstractions\\2.2.0\\microsoft.extensions.dependencyinjection.abstractions.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.extensions.dependencymodel\\5.0.0\\microsoft.extensions.dependencymodel.5.0.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.extensions.fileproviders.abstractions\\2.2.0\\microsoft.extensions.fileproviders.abstractions.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.extensions.hosting.abstractions\\2.2.0\\microsoft.extensions.hosting.abstractions.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.extensions.logging.abstractions\\2.2.0\\microsoft.extensions.logging.abstractions.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.extensions.objectpool\\2.2.0\\microsoft.extensions.objectpool.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.extensions.options\\2.2.0\\microsoft.extensions.options.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.extensions.primitives\\2.2.0\\microsoft.extensions.primitives.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.net.http.headers\\2.2.0\\microsoft.net.http.headers.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.netcore.platforms\\2.0.0\\microsoft.netcore.platforms.2.0.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.netcore.targets\\1.1.0\\microsoft.netcore.targets.1.1.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.win32.primitives\\4.3.0\\microsoft.win32.primitives.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.win32.systemevents\\4.5.0\\microsoft.win32.systemevents.4.5.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\netstandard.library\\1.6.1\\netstandard.library.1.6.1.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\newtonsoft.json\\13.0.1\\newtonsoft.json.13.0.1.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\npoi\\2.5.3\\npoi.2.5.3.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\portable.bouncycastle\\1.8.6\\portable.bouncycastle.1.8.6.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.debian.8-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.debian.8-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.fedora.23-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.fedora.23-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.fedora.24-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.fedora.24-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.native.system\\4.3.0\\runtime.native.system.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.native.system.io.compression\\4.3.0\\runtime.native.system.io.compression.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.native.system.net.http\\4.3.0\\runtime.native.system.net.http.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.native.system.security.cryptography.apple\\4.3.0\\runtime.native.system.security.cryptography.apple.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.opensuse.13.2-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.opensuse.13.2-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.opensuse.42.1-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.opensuse.42.1-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.osx.10.10-x64.runtime.native.system.security.cryptography.apple\\4.3.0\\runtime.osx.10.10-x64.runtime.native.system.security.cryptography.apple.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.osx.10.10-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.osx.10.10-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.rhel.7-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.rhel.7-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.ubuntu.14.04-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.ubuntu.14.04-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.ubuntu.16.04-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.ubuntu.16.04-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.ubuntu.16.10-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.ubuntu.16.10-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\sharpziplib\\1.2.0\\sharpziplib.1.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.appcontext\\4.3.0\\system.appcontext.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.buffers\\4.5.0\\system.buffers.4.5.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.collections\\4.3.0\\system.collections.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.collections.concurrent\\4.3.0\\system.collections.concurrent.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.collections.nongeneric\\4.3.0\\system.collections.nongeneric.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.collections.specialized\\4.3.0\\system.collections.specialized.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.componentmodel\\4.3.0\\system.componentmodel.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.componentmodel.annotations\\4.5.0\\system.componentmodel.annotations.4.5.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.componentmodel.primitives\\4.3.0\\system.componentmodel.primitives.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.componentmodel.typeconverter\\4.3.0\\system.componentmodel.typeconverter.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.configuration.configurationmanager\\4.5.0\\system.configuration.configurationmanager.4.5.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.console\\4.3.0\\system.console.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.diagnostics.debug\\4.3.0\\system.diagnostics.debug.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.diagnostics.diagnosticsource\\4.7.1\\system.diagnostics.diagnosticsource.4.7.1.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.diagnostics.tools\\4.3.0\\system.diagnostics.tools.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.diagnostics.tracesource\\4.3.0\\system.diagnostics.tracesource.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.diagnostics.tracing\\4.3.0\\system.diagnostics.tracing.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.drawing.common\\4.5.0\\system.drawing.common.4.5.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.dynamic.runtime\\4.3.0\\system.dynamic.runtime.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.globalization\\4.3.0\\system.globalization.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.globalization.calendars\\4.3.0\\system.globalization.calendars.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.globalization.extensions\\4.3.0\\system.globalization.extensions.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.io\\4.3.0\\system.io.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.io.compression\\4.3.0\\system.io.compression.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.io.compression.zipfile\\4.3.0\\system.io.compression.zipfile.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.io.filesystem\\4.3.0\\system.io.filesystem.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.io.filesystem.primitives\\4.3.0\\system.io.filesystem.primitives.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.linq\\4.3.0\\system.linq.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.linq.expressions\\4.3.0\\system.linq.expressions.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.memory\\4.5.1\\system.memory.4.5.1.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.net.http\\4.3.0\\system.net.http.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.net.primitives\\4.3.0\\system.net.primitives.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.net.sockets\\4.3.0\\system.net.sockets.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.objectmodel\\4.3.0\\system.objectmodel.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.reflection\\4.3.0\\system.reflection.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.reflection.emit\\4.3.0\\system.reflection.emit.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.reflection.emit.ilgeneration\\4.3.0\\system.reflection.emit.ilgeneration.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.reflection.emit.lightweight\\4.3.0\\system.reflection.emit.lightweight.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.reflection.extensions\\4.3.0\\system.reflection.extensions.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.reflection.primitives\\4.3.0\\system.reflection.primitives.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.reflection.typeextensions\\4.3.0\\system.reflection.typeextensions.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.resources.resourcemanager\\4.3.0\\system.resources.resourcemanager.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.runtime\\4.3.0\\system.runtime.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.runtime.compilerservices.unsafe\\4.5.1\\system.runtime.compilerservices.unsafe.4.5.1.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.runtime.extensions\\4.3.0\\system.runtime.extensions.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.runtime.handles\\4.3.0\\system.runtime.handles.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.runtime.interopservices\\4.3.0\\system.runtime.interopservices.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.runtime.interopservices.runtimeinformation\\4.3.0\\system.runtime.interopservices.runtimeinformation.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.runtime.numerics\\4.3.0\\system.runtime.numerics.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.security.accesscontrol\\4.5.0\\system.security.accesscontrol.4.5.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.security.cryptography.algorithms\\4.3.0\\system.security.cryptography.algorithms.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.security.cryptography.cng\\4.3.0\\system.security.cryptography.cng.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.security.cryptography.csp\\4.3.0\\system.security.cryptography.csp.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.security.cryptography.encoding\\4.3.0\\system.security.cryptography.encoding.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.security.cryptography.openssl\\4.3.0\\system.security.cryptography.openssl.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.security.cryptography.primitives\\4.3.0\\system.security.cryptography.primitives.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.security.cryptography.protecteddata\\4.5.0\\system.security.cryptography.protecteddata.4.5.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.security.cryptography.x509certificates\\4.3.0\\system.security.cryptography.x509certificates.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.security.permissions\\4.5.0\\system.security.permissions.4.5.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.security.principal.windows\\4.5.0\\system.security.principal.windows.4.5.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.text.encoding\\4.3.0\\system.text.encoding.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.text.encoding.extensions\\4.3.0\\system.text.encoding.extensions.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.text.encodings.web\\5.0.0\\system.text.encodings.web.5.0.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.text.json\\5.0.0\\system.text.json.5.0.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.text.regularexpressions\\4.3.0\\system.text.regularexpressions.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.threading\\4.3.0\\system.threading.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.threading.tasks\\4.3.0\\system.threading.tasks.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.threading.tasks.extensions\\4.5.1\\system.threading.tasks.extensions.4.5.1.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.threading.timer\\4.3.0\\system.threading.timer.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.xml.readerwriter\\4.3.0\\system.xml.readerwriter.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.xml.xdocument\\4.3.0\\system.xml.xdocument.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.xml.xmldocument\\4.3.0\\system.xml.xmldocument.4.3.0.nupkg.sha512"
],
"logs": []
}

17
Application/Application.csproj

@ -0,0 +1,17 @@ @@ -0,0 +1,17 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\Application.Shared\Application.Shared.csproj" />
<ProjectReference Include="..\BackGround\BackGround.csproj" />
<ProjectReference Include="..\Domain.Service\Domain.Service.csproj" />
<ProjectReference Include="..\Domain\Domain.csproj" />
<ProjectReference Include="..\EntityFramework\EntityFramework.csproj" />
<PackageReference Include="AutoMapper" Version="10.1.1" />
<PackageReference Include="AutoMapper.Extensions.Microsoft.DependencyInjection" Version="8.1.1" />
</ItemGroup>
</Project>

17
Application/AutoMapperProfiles.cs

@ -0,0 +1,17 @@ @@ -0,0 +1,17 @@
using Application.Shared.Dtos.Units;
using AutoMapper;
using Domain.Models.Units;
using System;
using System.Collections.Generic;
using System.Text;
namespace Application
{
public class AutoMapperProfiles:Profile
{
public AutoMapperProfiles()
{
CreateMap<Unit, UnitOutputDto>();
}
}
}

8
Application/Class1.cs

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
using System;
namespace Application
{
public class Class1
{
}
}

31
Application/Services/FireHydrants/FireHydrantAppService.cs

@ -0,0 +1,31 @@ @@ -0,0 +1,31 @@
using BackGround.Hangfire.JobRegisters.FireHydrant;
using Domain.Service.FileUpload;
using Infrastructure.Application;
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Application.Services.FireHydrants
{
public class FireHydrantAppService:ApplicationService, IFireHydrantAppService
{
private readonly IFileUploader _fileUploader;
private readonly ImportFireHydrantsJobRegister _jobRegister;
public FireHydrantAppService(IFileUploader fileUploader, ImportFireHydrantsJobRegister jobRegister)
{
_fileUploader = fileUploader;
_jobRegister = jobRegister;
}
public async Task ImportFireHydrants(IFormFileCollection files, int unitId, int uniacid, int groupId)
{
var fileUploadResult = await _fileUploader.UploadFiles(files, unitId, uniacid, groupId);
foreach (var uploadResult in fileUploadResult)
{
_jobRegister.Register(uploadResult.Item2);
}
}
}
}

13
Application/Services/FireHydrants/IFireHydrantAppService.cs

@ -0,0 +1,13 @@ @@ -0,0 +1,13 @@
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Application.Services.FireHydrants
{
public interface IFireHydrantAppService
{
Task ImportFireHydrants(IFormFileCollection files, int unitId, int uniacid, int groupId);
}
}

13
Application/Services/UMEs/IUMEsAppService.cs

@ -0,0 +1,13 @@ @@ -0,0 +1,13 @@
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Application.Services.UMEs
{
public interface IUMEsAppService
{
Task ImportUMEs(IFormFileCollection files, int unitId, int uniacid, int groupId);
}
}

32
Application/Services/UMEs/UMEsAppService.cs

@ -0,0 +1,32 @@ @@ -0,0 +1,32 @@
using BackGround.Hangfire.JobRegisters.FireHydrant;
using BackGround.Hangfire.JobRegisters.UMEs;
using Domain.Service.FileUpload;
using Infrastructure.Application;
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Application.Services.UMEs
{
public class UMEsAppService:ApplicationService, IUMEsAppService
{
private readonly IFileUploader _fileUploader;
private readonly UMEImportJobRegister _jobRegister;
public UMEsAppService(IFileUploader fileUploader, UMEImportJobRegister jobRegister)
{
_fileUploader = fileUploader;
_jobRegister = jobRegister;
}
public async Task ImportUMEs(IFormFileCollection files,int unitId, int uniacid, int groupId)
{
var fileUploadResult = await _fileUploader.UploadFiles(files, unitId, uniacid, groupId);
foreach (var uploadResult in fileUploadResult)
{
_jobRegister.Register(uploadResult.Item2);
}
}
}
}

16
Application/Services/Units/IUnitAppService.cs

@ -0,0 +1,16 @@ @@ -0,0 +1,16 @@
using Application.Shared.Dtos.Units;
using Domain.Models.Units;
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Application.Services.Units
{
public interface IUnitAppService
{
Task<List<UnitOutputDto>> GetUnits();
Task ImportUnits(IFormFileCollection files, int unitId, int uniacid, int groupId);
}
}

48
Application/Services/Units/UnitAppService.cs

@ -0,0 +1,48 @@ @@ -0,0 +1,48 @@
using Application.Shared.Dtos.Units;
using AutoMapper;
using BackGround.Hangfire.JobRegisters.Units;
using Domain.Models.Units;
using Domain.Service.FileUpload;
using EntityFramework;
using Infrastructure.Application;
using Microsoft.AspNetCore.Http;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Application.Services.Units
{
public class UnitAppservice:ApplicationService, IUnitAppService
{
private readonly FireStationDbContext _context;
private readonly IFileUploader _fileUploader;
private readonly IMapper _mapper;
private readonly ImportJobRegister _importJobRegister;
public UnitAppservice(FireStationDbContext context,IMapper mapper, IFileUploader fileUploader, ImportJobRegister importJobRegister)
{
_context = context;
_mapper = mapper;
_fileUploader = fileUploader;
_importJobRegister = importJobRegister;
}
public async Task<List<UnitOutputDto>> GetUnits()
{
var unitQuery = _context.Units.AsQueryable();
var units= await unitQuery.ToListAsync();
return _mapper.Map<List<Unit>, List<UnitOutputDto>>(units);
}
public async Task ImportUnits(IFormFileCollection files,int unitId, int uniacid, int groupId)
{
var fileUploadResult = await _fileUploader.UploadFiles(files, unitId, uniacid, groupId);
foreach(var uploadResult in fileUploadResult)
{
_importJobRegister.Register(uploadResult.Item2);
}
}
}
}

13
Application/Services/Water/IWaterAppService.cs

@ -0,0 +1,13 @@ @@ -0,0 +1,13 @@
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Application.Services.Water
{
public interface IWaterAppService
{
Task ImportWater(IFormFileCollection files, int unitId, int uniacid, int groupId,int categoryId);
}
}

34
Application/Services/Water/WaterAppService.cs

@ -0,0 +1,34 @@ @@ -0,0 +1,34 @@
using BackGround.Hangfire.JobRegisters.Water;
using Domain.Service.FileUpload;
using EntityFramework;
using Infrastructure.Application;
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Application.Services.Water
{
public class WaterAppService:ApplicationService, IWaterAppService
{
private readonly FireStationDbContext _context;
private readonly IFileUploader _fileUploader;
private readonly ImportWaterJobRegister _importWaterJobRegister;
public WaterAppService(FireStationDbContext context, IFileUploader fileUploader, ImportWaterJobRegister importWaterJobRegister)
{
_context = context;
_fileUploader = fileUploader;
_importWaterJobRegister = importWaterJobRegister;
}
public async Task ImportWater(IFormFileCollection files, int unitId, int uniacid, int groupId,int categoryId)
{
var fileUploadResult = await _fileUploader.UploadFiles(files, unitId, uniacid, groupId);
foreach (var uploadResult in fileUploadResult)
{
_importWaterJobRegister.Register(uploadResult.Item2,categoryId);
}
}
}
}

19
BackGround/BackGround.csproj

@ -0,0 +1,19 @@ @@ -0,0 +1,19 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Hangfire.AspNetCore" Version="1.7.24" />
<PackageReference Include="Hangfire.Core" Version="1.7.24" />
<PackageReference Include="Hangfire.MySqlStorage" Version="2.0.3" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Application.Shared\Application.Shared.csproj" />
<ProjectReference Include="..\EntityFramework\EntityFramework.csproj" />
<ProjectReference Include="..\Infrastructure\Infrastructure.csproj" />
</ItemGroup>
</Project>

22
BackGround/Hangfire/JobRegisters/FireHydrant/ImportFireHydrantsJobRegister.cs

@ -0,0 +1,22 @@ @@ -0,0 +1,22 @@
using BackGround.Hangfire.Jobs.FireHydrant;
using Hangfire;
using Infrastructure.Abstructions;
using System;
using System.Collections.Generic;
using System.Text;
namespace BackGround.Hangfire.JobRegisters.FireHydrant
{
public class ImportFireHydrantsJobRegister:ITransientDependency
{
private readonly IImportFireHydrantsJob _job;
public ImportFireHydrantsJobRegister(IImportFireHydrantsJob job)
{
_job = job;
}
public void Register(Guid fileId)
{
BackgroundJob.Enqueue(() => _job.Execute(fileId));
}
}
}

22
BackGround/Hangfire/JobRegisters/UMEs/UMEImportJobRegister.cs

@ -0,0 +1,22 @@ @@ -0,0 +1,22 @@
using BackGround.Hangfire.Jobs.UMEs;
using Hangfire;
using Infrastructure.Abstructions;
using System;
using System.Collections.Generic;
using System.Text;
namespace BackGround.Hangfire.JobRegisters.UMEs
{
public class UMEImportJobRegister:ITransientDependency
{
private readonly ImportUMEsJob _job;
public UMEImportJobRegister(ImportUMEsJob job)
{
_job = job;
}
public void Register(Guid fileId)
{
BackgroundJob.Enqueue(() => _job.Execute(fileId));
}
}
}

22
BackGround/Hangfire/JobRegisters/Units/ImportJobRegister.cs

@ -0,0 +1,22 @@ @@ -0,0 +1,22 @@
using BackGround.Hangfire.Jobs.Units;
using Hangfire;
using Infrastructure.Abstructions;
using System;
using System.Collections.Generic;
using System.Text;
namespace BackGround.Hangfire.JobRegisters.Units
{
public class ImportJobRegister: ITransientDependency
{
private readonly IImportUnitsJob _importUnitsJob;
public ImportJobRegister(IImportUnitsJob importUnitsJob)
{
_importUnitsJob = importUnitsJob;
}
public void Register(Guid fileId)
{
BackgroundJob.Enqueue(() => _importUnitsJob.Execute(fileId));
}
}
}

22
BackGround/Hangfire/JobRegisters/Water/ImportWaterJobRegister.cs

@ -0,0 +1,22 @@ @@ -0,0 +1,22 @@
using BackGround.Hangfire.Jobs.Waters;
using Hangfire;
using Infrastructure.Abstructions;
using System;
using System.Collections.Generic;
using System.Text;
namespace BackGround.Hangfire.JobRegisters.Water
{
public class ImportWaterJobRegister:ITransientDependency
{
private readonly IImportWaterJob _job;
public ImportWaterJobRegister(IImportWaterJob job)
{
_job = job;
}
public void Register(Guid fileId,int categoryId)
{
BackgroundJob.Enqueue(() => _job.Execute(fileId,categoryId));
}
}
}

12
BackGround/Hangfire/Jobs/FireHydrant/IImportFireHydrantsJob.cs

@ -0,0 +1,12 @@ @@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace BackGround.Hangfire.Jobs.FireHydrant
{
public interface IImportFireHydrantsJob
{
Task Execute(Guid fileId);
}
}

201
BackGround/Hangfire/Jobs/FireHydrant/ImportFireHydrantsJob.cs

@ -0,0 +1,201 @@ @@ -0,0 +1,201 @@
using BackGround.Hangfire.Jobs.Units;
using Domain.Models.UnitEquipments;
using Domain.Models.Waters;
using EntityFramework;
using Infrastructure.Abstructions;
using Infrastructure.Converts;
using Infrastructure.Word;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static Infrastructure.Converts.Converter;
namespace BackGround.Hangfire.Jobs.FireHydrant
{
public class ImportFireHydrantsJob:ITransientDependency, IImportFireHydrantsJob
{
private readonly FireHydrantTableResolver _fireHydrantTableResolver;
private readonly FireStationDbContext _context;
private readonly IConverter _converter;
private readonly IWordParser _parser;
public ImportFireHydrantsJob(FireHydrantTableResolver fireHydrantTableResolver, FireStationDbContext context, IConverter converter, IWordParser parser)
{
_fireHydrantTableResolver = fireHydrantTableResolver;
_context = context;
_converter = converter;
_parser = parser;
}
public async Task Execute(Guid fileId)
{
var file = await _context.UploadedFiles.Where(u => u.Id == fileId).FirstOrDefaultAsync();
if (file == null)
{
throw new Exception($"没有找到id为{fileId}的文件");
}
var fileUnit = await _context.FileUnits.FirstOrDefaultAsync(f => f.FileId == fileId);
if (fileUnit == null)
{
throw new Exception($"没有找到文件{fileId}的单位关联记录");
}
var unitId = fileUnit.UnitId;
int uniacid = fileUnit.Uniacid;
int groupId = fileUnit.GroupId;
var fileName = file.Path;
var errorMessages = new List<string>();
var waterQuery = _context.Water.AsQueryable();
var word = _parser.ReadDocument(fileName);
var parseResult= _parser.Parse(word, _fireHydrantTableResolver);
word.Close();
foreach (var dict in parseResult)
{
try
{
var water = BuildWater(dict,uniacid,groupId);
var existWater = waterQuery.FirstOrDefault(w => w.LocationName == water.LocationName);
if (existWater == null)
{
await _context.Water.AddAsync(water);
}
else
{
existWater.Type = water.Type;
existWater.Code = water.Code;
existWater.GuanwangDiam = water.GuanwangDiam;
existWater.GuanwangPressure = water.GuanwangPressure;
existWater.GuanangType = water.GuanangType;
existWater.SupplyCompany = water.SupplyCompany;
existWater.PrincipalName = water.SupplyCompany;
existWater.PrincipalPhoneNum = water.PrincipalPhoneNum;
existWater.InstallDate = water.InstallDate;
existWater.UpdateTime = water.UpdateTime;
existWater.CancelDate = water.CancelDate;
existWater.UpdateTime = DateTime.Now;
}
await _context.SaveChangesAsync();
}
catch(Exception e)
{
if (!errorMessages.Contains(e.Message))
errorMessages.Add(e.Message);
}
}
if (errorMessages.Any())
{
var message = string.Join(';', errorMessages);
throw new Exception(message);
}
}
private Water BuildWater(Dictionary<string,object> dictionary, int uniacid, int groupId)
{
var water = new Water
{
Uniacid=uniacid,
GroupId=groupId,
LocationName = dictionary["位置"].ToString(),
CategoryId = 1,
Type = (short)(dictionary["形式(地上、地下)"].ToString().Trim() == "地上" ? 0 : 1),
Code = dictionary["消火栓编号"].ToString(),
Status = 1,
Latitude = 0,
Longitude = 0,
GuanangType = (short)(dictionary["管网形式(环状、枝状)"].ToString().Contains("环") ? 0 : 1),
SupplyCompany = dictionary["供水单位"].ToString(),
PrincipalName = dictionary["负责人"].ToString(),
PrincipalPhoneNum = dictionary["电话"].ToString(),
InstallDate = dictionary["安装日期"].ToString(),
ChangeDate = dictionary["变更日期"].ToString(),
CancelDate = dictionary["注销日期"].ToString(),
GuanwangDiam = (float)ConvertLength(dictionary["管网直径"].ToString()),
GuanwangPressure = (float)ConvertPresure(dictionary["管网压力"].ToString()),
UpdateTime=DateTime.Now,
};
return water;
}
private double ConvertLength(string length)
{
var pattern = "\\d+\\.?\\d*";
var match= Regex.Match(length, pattern);
if (match.Success)
{
var value = double.Parse(match.Value);
var unitStr = length.Replace(value.ToString(), "").ToLower();
LengthUnits unit;
if (unitStr == LengthUnits.mm.ToString())
{
unit = LengthUnits.mm;
}
else if (unitStr == LengthUnits.cm.ToString())
{
unit = LengthUnits.cm;
}
else if (unitStr == LengthUnits.dm.ToString())
{
unit = LengthUnits.dm;
}
else if (unitStr == LengthUnits.m.ToString())
{
unit = LengthUnits.m;
}
else if (unitStr == LengthUnits.km.ToString())
{
unit = LengthUnits.km;
}
else
{
throw new Exception($"错误的长度值{length}");
}
return _converter.ConvertLength(value, unit, LengthUnits.mm);
}
else
{
throw new Exception($"错误的长度值{length}");
}
}
private double ConvertPresure(string presure)
{
var pattern = "\\d+\\.?\\d*";
var match = Regex.Match(presure, pattern);
if (match.Success)
{
var value = double.Parse(match.Value);
var unit = presure.Replace(value.ToString(), "").ToLower();
PresureUnits presureUnit ;
if (unit == PresureUnits.pa.ToString())
{
presureUnit = PresureUnits.pa;
}
else if(unit == PresureUnits.hpa.ToString())
{
presureUnit = PresureUnits.hpa;
}
else if (unit == PresureUnits.kpa.ToString())
{
presureUnit = PresureUnits.kpa;
}
else if (unit == PresureUnits.mpa.ToString())
{
presureUnit = PresureUnits.mpa;
}
else
{
throw new Exception($"压力值非法{presure}");
}
var presureValue = _converter.ConvertPresure(value, presureUnit, PresureUnits.pa);
return presureValue;
}
else
{
throw new Exception($"压力值非法{presure}");
}
}
}
}

145
BackGround/Hangfire/Jobs/UMEs/ImportUMEsJob.cs

@ -0,0 +1,145 @@ @@ -0,0 +1,145 @@
using Domain.Models.FireMen;
using Domain.Models.UnitEquipments;
using EntityFramework;
using Infrastructure.Abstructions;
using Infrastructure.Converts;
using Infrastructure.Word;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace BackGround.Hangfire.Jobs.UMEs
{
public class ImportUMEsJob : ITransientDependency
{
private readonly FireStationDbContext _context;
private readonly UMETableResolver _resolver;
private readonly IConverter _converter;
private readonly IWordParser _parser;
public ImportUMEsJob(FireStationDbContext context, IConverter converter, IWordParser parser, UMETableResolver resolver)
{
_context = context;
_converter = converter;
_parser = parser;
_resolver = resolver;
}
public async Task Execute(Guid fileId)
{
var file = await _context.UploadedFiles.Where(u => u.Id == fileId).FirstOrDefaultAsync();
if (file == null)
{
throw new Exception($"没有找到id为{fileId}的文件");
}
var fileUnit = await _context.FileUnits.FirstOrDefaultAsync(f => f.FileId == fileId);
if (fileUnit == null)
{
throw new Exception($"没有找到文件{fileId}的单位关联记录");
}
var unitId = fileUnit.UnitId;
int uniacid = fileUnit.Uniacid;
var fileName = file.Path;
var errorMessages = new List<string>();
var waterQuery = _context.Water.AsQueryable();
var word = _parser.ReadDocument(fileName);
var parseResult = _parser.Parse(word, _resolver);
word.Close();
foreach (var dic in parseResult)
{
var fireMenInfos = (List<Dictionary<string, object>>)dic["队员情况"];
await SaveFireMen(fireMenInfos, unitId,uniacid);
var eqInfos = (List<Dictionary<string, object>>)dic["消防装备器材配备"];
await SaveEquipments(eqInfos, unitId, uniacid);
}
}
private async Task SaveFireMen(List<Dictionary<string, object>> fireMenInfos,int unitId, int uniacid)
{
foreach (var fireMenInfo in fireMenInfos)
{
var fireMen = new FireMen
{
Uniacid=uniacid,
Name = fireMenInfo["姓名"].ToString(),
Gender = fireMenInfo["性别"].ToString().Trim().Contains("男") ? Domain.Shared.GenderType.Male : Domain.Shared.GenderType.Female,
BirthDay = fireMenInfo["出生年月"].ToString(),
Job = fireMenInfo["站内职务"].ToString(),
PhoneNumber = fireMenInfo["联系电话"].ToString(),
UnitId=unitId,
UpdateTime=DateTime.Now
};
var existFireMen = await _context.FireMen.Where(f => f.Name == fireMen.Name && f.Gender == fireMen.Gender && f.PhoneNumber == fireMen.PhoneNumber).FirstOrDefaultAsync();
if (existFireMen == null)
{
await _context.FireMen.AddAsync(fireMen);
}
else
{
if (existFireMen.Job != fireMen.Job)
{ existFireMen.Job = fireMen.Job;
_context.FireMen.Update(existFireMen);
}
}
}
await _context.SaveChangesAsync();
}
private async Task SaveEquipments(List<Dictionary<string, object>> equipmentInfos,int unitId, int uniacid)
{
foreach(var equipmentInfo in equipmentInfos)
{
foreach(var dict in equipmentInfo)
{
if (!string.IsNullOrEmpty(dict.Key) && !string.IsNullOrWhiteSpace(dict.Key))
{
var unitEquipment = new UnitEquipment
{
Uniacid=uniacid,
Name = dict.Key,
Count = GetCount(dict.Value.ToString()),
UpdateTime=DateTime.Now,
UnitId=unitId
};
var existEquipment = await _context.UnitEquipments.Where(e => e.Name == unitEquipment.Name).FirstOrDefaultAsync();
if (existEquipment == null)
{
await _context.UnitEquipments.AddAsync(unitEquipment);
}
else
{
if (existEquipment.Count != unitEquipment.Count)
{
existEquipment.Count = unitEquipment.Count;
_context.UnitEquipments.Update(existEquipment);
}
}
}
}
await _context.SaveChangesAsync();
}
}
private int GetCount(string countStr)
{
var pattern = "\\d+";
var matchResult = Regex.Match(countStr, pattern);
if (matchResult.Success)
{
return int.Parse(matchResult.Value);
}
else
{
return 0;
}
}
}
}

130
BackGround/Hangfire/Jobs/UMEs/UMETableResolver.cs

@ -0,0 +1,130 @@ @@ -0,0 +1,130 @@
using Infrastructure.Abstructions;
using Infrastructure.Word;
using NPOI.XWPF.UserModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BackGround.Hangfire.Jobs.UMEs
{
public class UMETableResolver : IWordTableResolver, ITransientDependency
{
private List<string> fmkeys = new List<string> { "姓名", "性别", "出生年月", "站内职务", "兼任职务", "联系电话" };
public Dictionary<string, object> Resolve(XWPFTable table)
{
var result = new Dictionary<string, object> { { "队员情况", new List<Dictionary<string, object>>() }, { "消防装备器材配备", new List<Dictionary<string, object>>() } };
var currentTableName = string.Empty;
var fireMenInfoRows = new List<XWPFTableRow>();
var equipmentInfoRows = new List<XWPFTableRow>();
var otherEquipmentRows = new List<XWPFTableRow>();
bool isHeaderRow = false;
bool isUnderOtherEqRow = false;
foreach(var row in table.Rows)
{
var cells = row.GetTableCells();
var tableName = GetStringContentOfCell(cells[0]);
if (!string.IsNullOrEmpty(tableName))
{
isHeaderRow = true;
currentTableName = tableName;
}
else
{
isHeaderRow = false;
}
if(currentTableName.Trim()== "队员情况")
{
if (!isHeaderRow)
{
fireMenInfoRows.Add(row);
}
}
else if(currentTableName == "消防装备器材配备")
{
var cell1Value = GetStringContentOfCell(cells[1]);
if(cell1Value.Trim()== "其他消防装备、器材")
{
isUnderOtherEqRow = true;
continue;
}
if (isUnderOtherEqRow)
{
otherEquipmentRows.Add(row);
}
else
{
equipmentInfoRows.Add(row);
}
}
}
((List<Dictionary<string, object>>)result["队员情况"]).AddRange(GetFireMenInfos(fireMenInfoRows));
((List<Dictionary<string, object>>)result["消防装备器材配备"]).Add(GetEuipmentMenInfos(equipmentInfoRows));
((List<Dictionary<string, object>>)result["消防装备器材配备"]).Add(GetOtherEuipmentMenInfos(otherEquipmentRows));
return result;
}
private string GetStringContentOfCell(XWPFTableCell cell)
{
var names = cell.Paragraphs.Select(p => p.ParagraphText);
return string.Join(null, names);
}
private List<Dictionary<string, object>> GetFireMenInfos(List<XWPFTableRow> rows)
{
var result = new List<Dictionary<string, object>>();
rows.ForEach(row =>
{
var cells = row.GetTableCells();
var infoOfMenDict = new Dictionary<string, object>();
for (var i = 1; i < cells.Count; i++)
{
var cellcontenText = GetStringContentOfCell(cells[i]);
infoOfMenDict.Add(fmkeys[i - 1], cellcontenText);
}
result.Add(infoOfMenDict);
});
return result;
}
private Dictionary<string, object> GetEuipmentMenInfos(List<XWPFTableRow> rows)
{
var result = new Dictionary<string, object>();
for(var i=0; i < rows.Count;)
{
var keyCells = rows[i].GetTableCells();
var valveCells= rows[i+1].GetTableCells();
for (var j=1; j < keyCells.Count; j++)
{
var key = keyCells[j].Paragraphs[0].ParagraphText;
var value = GetStringContentOfCell(valveCells[j]);
if (!result.ContainsKey(key))
result.Add(key, value);
}
i = i + 2;
}
return result;
}
private Dictionary<string, object> GetOtherEuipmentMenInfos(List<XWPFTableRow> rows)
{
var result = new Dictionary<string, object>();
for (var i = 0; i < rows.Count;)
{
var keyCells = rows[i].GetTableCells();
var valveCells = rows[i + 1].GetTableCells();
for (var j = 2; j < keyCells.Count; j++)
{
var key = GetStringContentOfCell(keyCells[j]);
var value = GetStringContentOfCell(valveCells[j]);
if (!result.ContainsKey(key))
result.Add(key, value);
}
i = i + 2;
}
return result;
}
}
}

49
BackGround/Hangfire/Jobs/Units/FireHydrantTableResolver.cs

@ -0,0 +1,49 @@ @@ -0,0 +1,49 @@
using Infrastructure.Abstructions;
using Infrastructure.Word;
using NPOI.XWPF.UserModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace BackGround.Hangfire.Jobs.Units
{
public class FireHydrantTableResolver : IWordTableResolver,ITransientDependency
{
private string[] keys;
public FireHydrantTableResolver()
{
keys = new string[] { "消火栓编号", "形式(地上、地下)", "位置", "管网形式(环状、枝状)",
"管网直径", "管网压力","供水单位","负责人","电话","安装日期","变更日期","注销日期" };
}
public Dictionary<string, object> Resolve(XWPFTable table)
{
var result = new Dictionary<string, object>();
var cellList = new List<XWPFTableCell>();
foreach (XWPFTableRow row in table.Rows)
{
var rowIndex = table.Rows.IndexOf(row);//获取该循环在List集合中的索引
//3.循环没行中的列
foreach (XWPFTableCell cell in row.GetTableCells())
{
cellList.Add(cell);
}
}
foreach (var key in keys)
{
var cell = cellList.FirstOrDefault(c => c.Paragraphs.FirstOrDefault(p => p.ParagraphText.Trim() == key) != null);
if (cell != null)
{
var index = cellList.IndexOf(cell);
if (index <= cellList.Count - 2)
{
var value = cellList[index + 1];
result.Add(key, value.Paragraphs[0].Text);
}
}
}
return result;
}
}
}

12
BackGround/Hangfire/Jobs/Units/IImportUnitsJob.cs

@ -0,0 +1,12 @@ @@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace BackGround.Hangfire.Jobs.Units
{
public interface IImportUnitsJob
{
Task Execute(Guid fileId);
}
}

937
BackGround/Hangfire/Jobs/Units/ImportUnitsJob.cs

@ -0,0 +1,937 @@ @@ -0,0 +1,937 @@
using Application.Shared.Dtos.Units.Imports;
using Domain.Models.Units;
using EntityFramework;
using Infrastructure.Abstructions;
using Infrastructure.Converts;
using Infrastructure.Excel;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace BackGround.Hangfire.Jobs.Units
{
public class ImportUnitsJob : ITransientDependency, IImportUnitsJob
{
private readonly IParser _excelParser;
private readonly FireStationDbContext _context;
private readonly IConverter _converter;
public ImportUnitsJob(IParser parser, FireStationDbContext context, IConverter converter)
{
_excelParser = parser;
_context = context;
_converter = converter;
}
public async Task Execute(Guid fileId)
{
var file =await _context.UploadedFiles.Where(u => u.Id == fileId).FirstOrDefaultAsync();
if (file == null)
{
throw new Exception($"没有找到id为{fileId}的文件");
}
var fileUnit = await _context.FileUnits.FirstOrDefaultAsync(f => f.FileId == fileId);
if (fileUnit == null)
{
throw new Exception($"没有找到文件{fileId}的单位关联记录");
}
var unitId = fileUnit.UnitId;
int uniacid = fileUnit.Uniacid;
int groupId = fileUnit.GroupId;
var fileName = file.Path;
var workBook = _excelParser.ReadExcel(fileName);
var industrialEnterprises = _excelParser.ParseExcel<IndustrialEnterprise>(workBook);
var tallBuildings = _excelParser.ParseExcel<TallBuilding>(workBook);
var underGrunds = _excelParser.ParseExcel<UnderGround>(workBook);
var hotels = _excelParser.ParseExcel<Hotel>(workBook);
var others = _excelParser.ParseExcel<Other>(workBook);
var welfareInstitutions = _excelParser.ParseExcel<WelfareInstitution>(workBook);
var stateOrgans = _excelParser.ParseExcel<StateOrgan>(workBook);
var bPCs = _excelParser.ParseExcel<BPC>(workBook);
var schools = _excelParser.ParseExcel<School>(workBook);
var medicalInstitutions = _excelParser.ParseExcel<MedicalInstitution>(workBook);
var publicEntertainments = _excelParser.ParseExcel<PublicEntertainment>(workBook);
var markets = _excelParser.ParseExcel<Market>(workBook);
var inflammableAndExplosiveProductionUnits = _excelParser.ParseExcel<InflammableAndExplosiveProductionUnit>(workBook);
var inflammableAndExplosiveStores = _excelParser.ParseExcel<InflammableAndExplosiveStore>(workBook);
var gasStations = _excelParser.ParseExcel<GasStation>(workBook);
var liquefiedGasStations = _excelParser.ParseExcel<LiquefiedGasStation>(workBook);
var storages = _excelParser.ParseExcel<Storage>(workBook);
workBook.Close();
await SaveIndustrialEnterprises(industrialEnterprises, uniacid, groupId);
await SaveTallBuildings(tallBuildings, uniacid, groupId);
await SaveUnderGrounds(underGrunds, uniacid, groupId);
await SaveHotels(hotels, uniacid, groupId);
await SaveOthers(others, uniacid, groupId);
await SaveWelfareInstitution(welfareInstitutions, uniacid, groupId);
await SaveStateOrgans(stateOrgans, uniacid, groupId);
await SavePBCs(bPCs, uniacid, groupId);
await SaveSchools(schools, uniacid, groupId);
await SaveMedicalInstitutions(medicalInstitutions, uniacid, groupId);
await SavePublicEntertainments(publicEntertainments, uniacid, groupId);
await SaveMarkets(markets, uniacid, groupId);
await SaveInflammableAndExplosiveProductionUnits(inflammableAndExplosiveProductionUnits, uniacid, groupId);
await SaveInflammableAndExplosiveStores(inflammableAndExplosiveStores, uniacid, groupId);
await SaveGasStation(gasStations, uniacid, groupId);
await SaveLiquefiedGasStations(liquefiedGasStations, uniacid, groupId);
await SaveStorages(storages, uniacid, groupId);
await _context.SaveChangesAsync();
}
private async Task SaveStorages(List<Storage> storages, int uniacid, int groupId)
{
var errors = new List<string>();
var existCategory = await GetOrAddCategory(typeof(Storage),groupId,uniacid);
var unitQuery = _context.Units.AsQueryable();
foreach (var storage in storages)
{
var existUnit = await unitQuery.Where(u => u.Name == storage.Name && u.LocationName == storage.Area
&& u.Uniacid==uniacid && u.GroupId==groupId).FirstOrDefaultAsync();
if (existUnit == null)
{
var unit = new Unit
{
Uniacid=uniacid,
GroupId=groupId,
CategoryId = existCategory.Id,
LocationName = storage.Area,
Name = storage.Name,
SuperviseLevel = ConvertRegulatoryLevelToInt(storage.RegulatoryLevel),
PrincipalName = storage.PersonInChargeOfSafetyInfo?.Name,
PrincipalPhoneNum = storage.PersonInChargeOfSafetyInfo?.Phone,
UseArea=ConvertAreaSizeToInt(storage.Survey.Area),
UpdateTime = DateTime.Now,
Longitude = ParseGeoPoints(storage.Longitude),
Latitude = ParseGeoPoints(storage.Latitude),
};
await _context.Units.AddAsync(unit);
}
else
{
existUnit.CategoryId = existCategory.Id;
existUnit.LocationName = storage.Area;
existUnit.Name = storage.Name;
existUnit.SuperviseLevel = ConvertRegulatoryLevelToInt(storage.RegulatoryLevel);
existUnit.PrincipalName = storage.PersonInChargeOfSafetyInfo?.Name;
existUnit.PrincipalPhoneNum = storage.PersonInChargeOfSafetyInfo?.Phone;
existUnit.UseArea = ConvertAreaSizeToInt(storage.Survey.Area);
existUnit.UpdateTime = DateTime.Now;
existUnit.Longitude = ParseGeoPoints(storage.Longitude);
existUnit.Latitude = ParseGeoPoints(storage.Latitude);
_context.Units.Update(existUnit);
}
await _context.SaveChangesAsync();
}
}
private async Task SaveLiquefiedGasStations(List<LiquefiedGasStation> gasStations, int uniacid, int groupId)
{
var existCategory = await GetOrAddCategory(typeof(LiquefiedGasStation), groupId, uniacid);
var unitQuery = _context.Units.AsQueryable();
foreach (var gasStation in gasStations)
{
var existUnit = await unitQuery.Where(u => u.Name == gasStation.Name && u.LocationName == gasStation.Area
&& u.Uniacid==uniacid && u.GroupId==groupId).FirstOrDefaultAsync();
if (existUnit == null)
{
var unit = new Unit
{
Uniacid=uniacid,
GroupId=groupId,
CategoryId = existCategory.Id,
LocationName = gasStation.Area,
Name = gasStation.Name,
SuperviseLevel = ConvertRegulatoryLevelToInt(gasStation.RegulatoryLevel),
PrincipalName = gasStation.PersonInChargeOfSafetyInfo?.Name,
PrincipalPhoneNum = gasStation.PersonInChargeOfSafetyInfo?.Phone,
UpdateTime = DateTime.Now,
Longitude = ParseGeoPoints(gasStation.Longitude),
Latitude = ParseGeoPoints(gasStation.Latitude),
};
await _context.Units.AddAsync(unit);
}
else
{
existUnit.CategoryId = existCategory.Id;
existUnit.LocationName = gasStation.Area;
existUnit.Name = gasStation.Name;
existUnit.SuperviseLevel = ConvertRegulatoryLevelToInt(gasStation.RegulatoryLevel);
existUnit.PrincipalName = gasStation.PersonInChargeOfSafetyInfo?.Name;
existUnit.PrincipalPhoneNum = gasStation.PersonInChargeOfSafetyInfo?.Phone;
existUnit.UpdateTime = DateTime.Now;
existUnit.Longitude = ParseGeoPoints(gasStation.Longitude);
existUnit.Latitude = ParseGeoPoints(gasStation.Latitude);
_context.Units.Update(existUnit);
}
await _context.SaveChangesAsync();
}
}
private async Task SaveGasStation(List<GasStation> gasStations, int uniacid, int groupId)
{
var existCategory = await GetOrAddCategory(typeof(GasStation), groupId, uniacid);
var unitQuery = _context.Units.AsQueryable();
foreach (var gasStation in gasStations)
{
var existUnit = await unitQuery.Where(u => u.Name == gasStation.Name && u.LocationName == gasStation.Area
&& u.Uniacid == uniacid && u.GroupId == groupId).FirstOrDefaultAsync();
if (existUnit == null)
{
var unit = new Unit
{
Uniacid=uniacid,
GroupId=groupId,
CategoryId = existCategory.Id,
LocationName = gasStation.Area,
Name = gasStation.Name,
SuperviseLevel = ConvertRegulatoryLevelToInt(gasStation.RegulatoryLevel),
PrincipalName = gasStation.PersonInChargeOfSafetyInfo?.Name,
PrincipalPhoneNum = gasStation.PersonInChargeOfSafetyInfo?.Phone,
Longitude = ParseGeoPoints(gasStation.Longitude),
Latitude = ParseGeoPoints(gasStation.Latitude),
UpdateTime = DateTime.Now,
};
await _context.Units.AddAsync(unit);
}
else
{
existUnit.CategoryId = existCategory.Id;
existUnit.LocationName = gasStation.Area;
existUnit.Name = gasStation.Name;
existUnit.SuperviseLevel = ConvertRegulatoryLevelToInt(gasStation.RegulatoryLevel);
existUnit.PrincipalName = gasStation.PersonInChargeOfSafetyInfo?.Name;
existUnit.PrincipalPhoneNum = gasStation.PersonInChargeOfSafetyInfo?.Phone;
existUnit.UpdateTime = DateTime.Now;
existUnit.Longitude = ParseGeoPoints(gasStation.Longitude);
existUnit.Latitude = ParseGeoPoints(gasStation.Latitude);
_context.Units.Update(existUnit);
}
await _context.SaveChangesAsync();
}
}
private async Task SaveInflammableAndExplosiveStores(List<InflammableAndExplosiveStore> inflammableAndExplosiveStores, int uniacid, int groupId)
{
var existCategory = await GetOrAddCategory(typeof(InflammableAndExplosiveStore), groupId, uniacid);
var unitQuery = _context.Units.AsQueryable();
foreach (var inflammableAndExplosiveStore in inflammableAndExplosiveStores)
{
var existUnit = await unitQuery.Where(u => u.Name == inflammableAndExplosiveStore.Name && u.LocationName == inflammableAndExplosiveStore.Area
&& u.Uniacid == uniacid && u.GroupId == groupId).FirstOrDefaultAsync();
if (existUnit == null)
{
var unit = new Unit
{
Uniacid=uniacid,
GroupId=groupId,
CategoryId = existCategory.Id,
LocationName = inflammableAndExplosiveStore.Area,
Name = inflammableAndExplosiveStore.Name,
SuperviseLevel = ConvertRegulatoryLevelToInt(inflammableAndExplosiveStore.RegulatoryLevel),
PrincipalName = inflammableAndExplosiveStore.PersonInChargeOfSafetyInfo?.Name,
PrincipalPhoneNum = inflammableAndExplosiveStore.PersonInChargeOfSafetyInfo?.Phone,
UseArea = ConvertAreaSizeToInt(inflammableAndExplosiveStore.Survey.Area),
Longitude = ParseGeoPoints(inflammableAndExplosiveStore.Longitude),
Latitude = ParseGeoPoints(inflammableAndExplosiveStore.Latitude),
UpdateTime = DateTime.Now,
};
await _context.Units.AddAsync(unit);
}
else
{
existUnit.CategoryId = existCategory.Id;
existUnit.LocationName = inflammableAndExplosiveStore.Area;
existUnit.Name = inflammableAndExplosiveStore.Name;
existUnit.SuperviseLevel = ConvertRegulatoryLevelToInt(inflammableAndExplosiveStore.RegulatoryLevel);
existUnit.PrincipalName = inflammableAndExplosiveStore.PersonInChargeOfSafetyInfo?.Name;
existUnit.PrincipalPhoneNum = inflammableAndExplosiveStore.PersonInChargeOfSafetyInfo?.Phone;
existUnit.UseArea = ConvertAreaSizeToInt(inflammableAndExplosiveStore.Survey.Area);
existUnit.UpdateTime = DateTime.Now;
existUnit.Longitude = ParseGeoPoints(inflammableAndExplosiveStore.Longitude);
existUnit.Latitude = ParseGeoPoints(inflammableAndExplosiveStore.Latitude);
_context.Units.Update(existUnit);
}
await _context.SaveChangesAsync();
}
}
private async Task SaveInflammableAndExplosiveProductionUnits(List<InflammableAndExplosiveProductionUnit> inflammableAndExplosiveProductionUnits, int uniacid, int groupId)
{
var existCategory = await GetOrAddCategory(typeof(InflammableAndExplosiveProductionUnit), groupId, uniacid);
var unitQuery = _context.Units.AsQueryable();
foreach (var inflammableAndExplosiveProductionUnit in inflammableAndExplosiveProductionUnits)
{
var existUnit = await unitQuery.Where(u => u.Name == inflammableAndExplosiveProductionUnit.Name && u.LocationName == inflammableAndExplosiveProductionUnit.Area
&& u.Uniacid==uniacid && u.GroupId==groupId).FirstOrDefaultAsync();
if (existUnit == null)
{
var unit = new Unit
{
Uniacid=uniacid,
GroupId=groupId,
CategoryId = existCategory.Id,
LocationName = inflammableAndExplosiveProductionUnit.Area,
Name = inflammableAndExplosiveProductionUnit.Name,
SuperviseLevel = ConvertRegulatoryLevelToInt(inflammableAndExplosiveProductionUnit.RegulatoryLevel),
PrincipalName = inflammableAndExplosiveProductionUnit.PersonInChargeOfSafetyInfo?.Name,
PrincipalPhoneNum = inflammableAndExplosiveProductionUnit.PersonInChargeOfSafetyInfo?.Phone,
UseArea = ConvertAreaSizeToInt(inflammableAndExplosiveProductionUnit.Survey.Area),
Longitude = ParseGeoPoints(inflammableAndExplosiveProductionUnit.Longitude),
Latitude = ParseGeoPoints(inflammableAndExplosiveProductionUnit.Latitude),
UpdateTime = DateTime.Now,
};
await _context.Units.AddAsync(unit);
}
else
{
existUnit.CategoryId = existCategory.Id;
existUnit.LocationName = inflammableAndExplosiveProductionUnit.Area;
existUnit.Name = inflammableAndExplosiveProductionUnit.Name;
existUnit.SuperviseLevel = ConvertRegulatoryLevelToInt(inflammableAndExplosiveProductionUnit.RegulatoryLevel);
existUnit.PrincipalName = inflammableAndExplosiveProductionUnit.PersonInChargeOfSafetyInfo?.Name;
existUnit.PrincipalPhoneNum = inflammableAndExplosiveProductionUnit.PersonInChargeOfSafetyInfo?.Phone;
existUnit.UseArea = ConvertAreaSizeToInt(inflammableAndExplosiveProductionUnit.Survey.Area);
existUnit.UpdateTime = DateTime.Now;
existUnit.Longitude = ParseGeoPoints(inflammableAndExplosiveProductionUnit.Longitude);
existUnit.Latitude = ParseGeoPoints(inflammableAndExplosiveProductionUnit.Latitude);
_context.Units.Update(existUnit);
}
await _context.SaveChangesAsync();
}
}
private async Task SaveMarkets(List<Market> markets, int uniacid, int groupId)
{
var existCategory = await GetOrAddCategory(typeof(Market), groupId, uniacid);
var unitQuery = _context.Units.AsQueryable();
foreach (var market in markets)
{
var existUnit = await unitQuery.Where(u => u.Name == market.Name && u.LocationName == market.Area
&& u.Uniacid == uniacid && u.GroupId == groupId).FirstOrDefaultAsync();
if (existUnit == null)
{
var unit = new Unit
{
Uniacid=uniacid,
GroupId=groupId,
CategoryId = existCategory.Id,
LocationName = market.Area,
Name = market.Name,
SuperviseLevel = ConvertRegulatoryLevelToInt(market.RegulatoryLevel),
PrincipalName = market.PersonInChargeOfSafetyInfo?.Name,
PrincipalPhoneNum = market.PersonInChargeOfSafetyInfo?.Phone,
UseArea = ConvertAreaSizeToInt(market.Survey.Area),
Longitude = ParseGeoPoints(market.Longitude),
Latitude = ParseGeoPoints(market.Latitude),
UpdateTime = DateTime.Now,
};
await _context.Units.AddAsync(unit);
}
else
{
existUnit.CategoryId = existCategory.Id;
existUnit.LocationName = market.Area;
existUnit.Name = market.Name;
existUnit.SuperviseLevel = ConvertRegulatoryLevelToInt(market.RegulatoryLevel);
existUnit.PrincipalName = market.PersonInChargeOfSafetyInfo?.Name;
existUnit.PrincipalPhoneNum = market.PersonInChargeOfSafetyInfo?.Phone;
existUnit.UseArea = ConvertAreaSizeToInt(market.Survey.Area);
existUnit.UpdateTime = DateTime.Now;
existUnit.Longitude = ParseGeoPoints(market.Longitude);
existUnit.Latitude = ParseGeoPoints(market.Latitude);
_context.Units.Update(existUnit);
}
await _context.SaveChangesAsync();
}
}
private async Task SavePublicEntertainments(List<PublicEntertainment> publicEntertainments, int uniacid, int groupId)
{
var existCategory = await GetOrAddCategory(typeof(PublicEntertainment), groupId, uniacid);
var unitQuery = _context.Units.AsQueryable();
foreach (var publicEntertainment in publicEntertainments)
{
var existUnit = await unitQuery.Where(u => u.Name == publicEntertainment.Name && u.LocationName == publicEntertainment.Area
&& u.Uniacid == uniacid && u.GroupId == groupId).FirstOrDefaultAsync();
if (existUnit == null)
{
var unit = new Unit
{
Uniacid=uniacid,
GroupId=groupId,
CategoryId = existCategory.Id,
LocationName = publicEntertainment.Area,
Name = publicEntertainment.Name,
SuperviseLevel = ConvertRegulatoryLevelToInt(publicEntertainment.RegulatoryLevel),
PrincipalName = publicEntertainment.PersonInChargeOfSafetyInfo?.Name,
PrincipalPhoneNum = publicEntertainment.PersonInChargeOfSafetyInfo?.Phone,
UseArea = ConvertAreaSizeToInt(publicEntertainment.Survey.Area),
Longitude = ParseGeoPoints(publicEntertainment.Longitude),
Latitude = ParseGeoPoints(publicEntertainment.Latitude),
UpdateTime = DateTime.Now,
};
await _context.Units.AddAsync(unit);
}
else
{
existUnit.CategoryId = existCategory.Id;
existUnit.LocationName = publicEntertainment.Area;
existUnit.Name = publicEntertainment.Name;
existUnit.SuperviseLevel = ConvertRegulatoryLevelToInt(publicEntertainment.RegulatoryLevel);
existUnit.PrincipalName = publicEntertainment.PersonInChargeOfSafetyInfo?.Name;
existUnit.PrincipalPhoneNum = publicEntertainment.PersonInChargeOfSafetyInfo?.Phone;
existUnit.UseArea = ConvertAreaSizeToInt(publicEntertainment.Survey.Area);
existUnit.UpdateTime = DateTime.Now;
existUnit.Longitude = ParseGeoPoints(publicEntertainment.Longitude);
existUnit.Latitude = ParseGeoPoints(publicEntertainment.Latitude);
_context.Units.Update(existUnit);
}
await _context.SaveChangesAsync();
}
}
private async Task SaveMedicalInstitutions(List<MedicalInstitution> medicalInstitutions, int uniacid, int groupId)
{
var existCategory = await GetOrAddCategory(typeof(MedicalInstitution), groupId, uniacid);
var unitQuery = _context.Units.AsQueryable();
foreach (var medicalInstitution in medicalInstitutions)
{
var existUnit = await unitQuery.Where(u => u.Name == medicalInstitution.Name && u.LocationName == medicalInstitution.Area
&& u.Uniacid == uniacid && u.GroupId == groupId).FirstOrDefaultAsync();
if (existUnit == null)
{
var unit = new Unit
{
Uniacid=uniacid,
GroupId=groupId,
CategoryId = existCategory.Id,
LocationName = medicalInstitution.Area,
Name = medicalInstitution.Name,
SuperviseLevel = ConvertRegulatoryLevelToInt(medicalInstitution.RegulatoryLevel),
PrincipalName = medicalInstitution.PersonInChargeOfSafetyInfo?.Name,
PrincipalPhoneNum = medicalInstitution.PersonInChargeOfSafetyInfo?.Phone,
UseArea = ConvertAreaSizeToInt(medicalInstitution.Survey.Area),
UpdateTime = DateTime.Now,
Longitude = ParseGeoPoints(medicalInstitution.Longitude),
Latitude = ParseGeoPoints(medicalInstitution.Latitude),
};
await _context.Units.AddAsync(unit);
}
else
{
existUnit.CategoryId = existCategory.Id;
existUnit.LocationName = medicalInstitution.Area;
existUnit.Name = medicalInstitution.Name;
existUnit.SuperviseLevel = ConvertRegulatoryLevelToInt(medicalInstitution.RegulatoryLevel);
existUnit.PrincipalName = medicalInstitution.PersonInChargeOfSafetyInfo?.Name;
existUnit.PrincipalPhoneNum = medicalInstitution.PersonInChargeOfSafetyInfo?.Phone;
existUnit.UseArea = ConvertAreaSizeToInt(medicalInstitution.Survey.Area);
existUnit.UpdateTime = DateTime.Now;
existUnit.Longitude = ParseGeoPoints(medicalInstitution.Longitude);
existUnit.Latitude = ParseGeoPoints(medicalInstitution.Latitude);
_context.Units.Update(existUnit);
}
await _context.SaveChangesAsync();
}
}
private async Task SaveSchools(List<School> schools, int uniacid, int groupId)
{
var existCategory = await GetOrAddCategory(typeof(School), groupId, uniacid);
var unitQuery = _context.Units.AsQueryable();
foreach (var school in schools)
{
var existUnit = await unitQuery.Where(u => u.Name == school.Name && u.LocationName == school.Area
&& u.Uniacid == uniacid && u.GroupId == groupId).FirstOrDefaultAsync();
if (existUnit == null)
{
var unit = new Unit
{
Uniacid = uniacid,
GroupId = groupId,
CategoryId = existCategory.Id,
LocationName = school.Area,
Name = school.Name,
SuperviseLevel = ConvertRegulatoryLevelToInt(school.RegulatoryLevel),
PrincipalName = school.PersonInChargeOfSafetyInfo?.Name,
PrincipalPhoneNum = school.PersonInChargeOfSafetyInfo?.Phone,
UseArea = ConvertAreaSizeToInt(school.Survey.Area),
PeopleNum = ConvertPeopleCount(school.Survey.StudentCount),
Longitude = ParseGeoPoints(school.Longitude),
Latitude = ParseGeoPoints(school.Latitude),
UpdateTime = DateTime.Now,
};
await _context.Units.AddAsync(unit);
}
else
{
existUnit.CategoryId = existCategory.Id;
existUnit.LocationName = school.Area;
existUnit.Name = school.Name;
existUnit.SuperviseLevel = ConvertRegulatoryLevelToInt(school.RegulatoryLevel);
existUnit.PrincipalName = school.PersonInChargeOfSafetyInfo?.Name;
existUnit.PrincipalPhoneNum = school.PersonInChargeOfSafetyInfo?.Phone;
existUnit.UseArea = ConvertAreaSizeToInt(school.Survey.Area);
existUnit.PeopleNum = ConvertPeopleCount(school.Survey.StudentCount);
existUnit.UpdateTime = DateTime.Now;
existUnit.Longitude = ParseGeoPoints(school.Longitude);
existUnit.Latitude = ParseGeoPoints(school.Latitude);
_context.Units.Update(existUnit);
}
await _context.SaveChangesAsync();
}
}
private async Task SavePBCs(List<BPC> bPCs, int uniacid, int groupId)
{
var existCategory = await GetOrAddCategory(typeof(BPC), groupId, uniacid);
var unitQuery = _context.Units.AsQueryable();
foreach (var bpc in bPCs)
{
var existUnit = await unitQuery.Where(u => u.Name == bpc.Name && u.LocationName == bpc.Area && u.Uniacid == uniacid && u.GroupId == groupId).FirstOrDefaultAsync();
if (existUnit == null)
{
var unit = new Unit
{
Uniacid=uniacid,
GroupId=groupId,
CategoryId = existCategory.Id,
LocationName = bpc.Area,
Name = bpc.Name,
SuperviseLevel = ConvertRegulatoryLevelToInt(bpc.RegulatoryLevel),
PrincipalName = bpc.PersonInChargeOfSafetyInfo?.Name,
PrincipalPhoneNum = bpc.PersonInChargeOfSafetyInfo?.Phone,
UseArea = ConvertAreaSizeToInt(bpc.Survey.Area),
Longitude = ParseGeoPoints(bpc.Longitude),
Latitude = ParseGeoPoints(bpc.Latitude),
UpdateTime = DateTime.Now,
};
await _context.Units.AddAsync(unit);
}
else
{
existUnit.CategoryId = existCategory.Id;
existUnit.LocationName = bpc.Area;
existUnit.Name = bpc.Name;
existUnit.SuperviseLevel = ConvertRegulatoryLevelToInt(bpc.RegulatoryLevel);
existUnit.PrincipalName = bpc.PersonInChargeOfSafetyInfo?.Name;
existUnit.PrincipalPhoneNum = bpc.PersonInChargeOfSafetyInfo?.Phone;
existUnit.UseArea = ConvertAreaSizeToInt(bpc.Survey.Area);
existUnit.Longitude = ParseGeoPoints(bpc.Longitude);
existUnit.Latitude = ParseGeoPoints(bpc.Latitude);
existUnit.UpdateTime = DateTime.Now;
_context.Units.Update(existUnit);
}
await _context.SaveChangesAsync();
}
}
private async Task SaveStateOrgans(List<StateOrgan> stateOrgans, int uniacid, int groupId)
{
var existCategory = await GetOrAddCategory(typeof(StateOrgan), groupId, uniacid);
var unitQuery = _context.Units.AsQueryable();
foreach (var stateOrgan in stateOrgans)
{
var existUnit = await unitQuery.Where(u => u.Name == stateOrgan.Name && u.LocationName == stateOrgan.Area
&& u.Uniacid == uniacid && u.GroupId == groupId).FirstOrDefaultAsync();
if (existUnit == null)
{
var unit = new Unit
{
Uniacid=uniacid,
GroupId=groupId,
CategoryId = existCategory.Id,
LocationName = stateOrgan.Area,
Name = stateOrgan.Name,
SuperviseLevel = ConvertRegulatoryLevelToInt(stateOrgan.RegulatoryLevel),
PrincipalName = stateOrgan.PersonInChargeOfSafetyInfo?.Name,
PrincipalPhoneNum = stateOrgan.PersonInChargeOfSafetyInfo?.Phone,
UseArea = ConvertAreaSizeToInt(stateOrgan.Survey.Area),
Longitude = ParseGeoPoints(stateOrgan.Longitude),
Latitude = ParseGeoPoints(stateOrgan.Latitude),
UpdateTime = DateTime.Now,
};
await _context.Units.AddAsync(unit);
}
else
{
existUnit.CategoryId = existCategory.Id;
existUnit.LocationName = stateOrgan.Area;
existUnit.Name = stateOrgan.Name;
existUnit.SuperviseLevel = ConvertRegulatoryLevelToInt(stateOrgan.RegulatoryLevel);
existUnit.PrincipalName = stateOrgan.PersonInChargeOfSafetyInfo?.Name;
existUnit.PrincipalPhoneNum = stateOrgan.PersonInChargeOfSafetyInfo?.Phone;
existUnit.UseArea = ConvertAreaSizeToInt(stateOrgan.Survey.Area);
existUnit.UpdateTime = DateTime.Now;
existUnit.Longitude = ParseGeoPoints(stateOrgan.Longitude);
existUnit.Latitude = ParseGeoPoints(stateOrgan.Latitude);
_context.Units.Update(existUnit);
}
await _context.SaveChangesAsync();
}
}
private async Task SaveWelfareInstitution(List<WelfareInstitution> welfareInstitutions, int uniacid, int groupId)
{
var existCategory = await GetOrAddCategory(typeof(WelfareInstitution), groupId, uniacid);
var unitQuery = _context.Units.AsQueryable();
foreach (var welfareInstitution in welfareInstitutions)
{
var existUnit = await unitQuery.Where(u => u.Name == welfareInstitution.Name && u.LocationName == welfareInstitution.Area
&& u.Uniacid == uniacid && u.GroupId == groupId).FirstOrDefaultAsync();
if (existUnit == null)
{
var unit = new Unit
{
Uniacid = uniacid,
GroupId = groupId,
CategoryId = existCategory.Id,
LocationName = welfareInstitution.Area,
Name = welfareInstitution.Name,
SuperviseLevel = ConvertRegulatoryLevelToInt(welfareInstitution.RegulatoryLevel),
PrincipalName = welfareInstitution.PersonInChargeOfSafetyInfo?.Name,
PrincipalPhoneNum = welfareInstitution.PersonInChargeOfSafetyInfo?.Phone,
UseArea = ConvertAreaSizeToInt(welfareInstitution.Survey.Area),
Longitude = ParseGeoPoints(welfareInstitution.Longitude),
Latitude = ParseGeoPoints(welfareInstitution.Latitude),
UpdateTime = DateTime.Now,
};
await _context.Units.AddAsync(unit);
}
else
{
existUnit.CategoryId = existCategory.Id;
existUnit.LocationName = welfareInstitution.Area;
existUnit.Name = welfareInstitution.Name;
existUnit.SuperviseLevel = ConvertRegulatoryLevelToInt(welfareInstitution.RegulatoryLevel);
existUnit.PrincipalName = welfareInstitution.PersonInChargeOfSafetyInfo?.Name;
existUnit.PrincipalPhoneNum = welfareInstitution.PersonInChargeOfSafetyInfo?.Phone;
existUnit.UseArea = ConvertAreaSizeToInt(welfareInstitution.Survey.Area);
existUnit.UpdateTime = DateTime.Now;
existUnit.Longitude = ParseGeoPoints(welfareInstitution.Longitude);
existUnit.Latitude = ParseGeoPoints(welfareInstitution.Latitude);
_context.Units.Update(existUnit);
}
try
{
await _context.SaveChangesAsync();
}
catch (Exception e)
{
}
}
}
private async Task SaveOthers(List<Other> others, int uniacid, int groupId)
{
var existCategory = await GetOrAddCategory(typeof(Other), groupId, uniacid);
var unitQuery = _context.Units.AsQueryable();
foreach (var other in others)
{
var existUnit = await unitQuery.Where(u => u.Name == other.Name && u.LocationName == other.Area &&
u.Uniacid == uniacid && u.GroupId == groupId).FirstOrDefaultAsync();
if (existUnit == null)
{
var unit = new Unit
{
Uniacid = uniacid,
GroupId = groupId,
CategoryId = existCategory.Id,
LocationName = other.Area,
Name = other.Name,
SuperviseLevel = ConvertRegulatoryLevelToInt(other.RegulatoryLevel),
PrincipalName = other.PersonInChargeOfSafetyInfo?.Name,
PrincipalPhoneNum = other.PersonInChargeOfSafetyInfo?.Phone,
UseArea = ConvertAreaSizeToInt(other.Survey.Area),
PeopleNum = ConvertPeopleCount(other.Survey.EmployeeCount),
Longitude = ParseGeoPoints(other.Longitude),
Latitude = ParseGeoPoints(other.Latitude),
UpdateTime = DateTime.Now,
};
await _context.Units.AddAsync(unit);
}
else
{
existUnit.CategoryId = existCategory.Id;
existUnit.LocationName = other.Area;
existUnit.Name = other.Name;
existUnit.SuperviseLevel = ConvertRegulatoryLevelToInt(other.RegulatoryLevel);
existUnit.PrincipalName = other.PersonInChargeOfSafetyInfo?.Name;
existUnit.PrincipalPhoneNum = other.PersonInChargeOfSafetyInfo?.Phone;
existUnit.UseArea = ConvertAreaSizeToInt(other.Survey.Area);
existUnit.PeopleNum = ConvertPeopleCount(other.Survey.EmployeeCount);
existUnit.Longitude = ParseGeoPoints(other.Longitude);
existUnit.Latitude = ParseGeoPoints(other.Latitude);
existUnit.UpdateTime = DateTime.Now;
_context.Units.Update(existUnit);
}
await _context.SaveChangesAsync();
}
}
private async Task SaveHotels(List<Hotel> hotels, int uniacid, int groupId)
{
var existCategory = await GetOrAddCategory(typeof(Hotel), groupId, uniacid);
var unitQuery = _context.Units.AsQueryable();
foreach (var hotel in hotels)
{
var existUnit = await unitQuery.Where(u => u.Name == hotel.Name && u.LocationName == hotel.Area && u.Uniacid == uniacid && u.GroupId == groupId).FirstOrDefaultAsync();
if (existUnit == null)
{
var unit = new Unit
{
Uniacid=uniacid,
GroupId=groupId,
CategoryId = existCategory.Id,
LocationName = hotel.Area,
Name = hotel.Name,
SuperviseLevel = ConvertRegulatoryLevelToInt(hotel.RegulatoryLevel),
PrincipalName = hotel.PersonInChargeOfSafetyInfo?.Name,
PrincipalPhoneNum = hotel.PersonInChargeOfSafetyInfo?.Phone,
UseArea = ConvertAreaSizeToInt(hotel.Survey.Area),
PeopleNum = ConvertPeopleCount(hotel.Survey.EmployeeCount),
Longitude = ParseGeoPoints(hotel.Longitude),
Latitude = ParseGeoPoints(hotel.Latitude),
UpdateTime = DateTime.Now,
};
await _context.Units.AddAsync(unit);
}
else
{
existUnit.CategoryId = existCategory.Id;
existUnit.LocationName = hotel.Area;
existUnit.Name = hotel.Name;
existUnit.SuperviseLevel = ConvertRegulatoryLevelToInt(hotel.RegulatoryLevel);
existUnit.PrincipalName = hotel.PersonInChargeOfSafetyInfo?.Name;
existUnit.PrincipalPhoneNum = hotel.PersonInChargeOfSafetyInfo?.Phone;
existUnit.UseArea = ConvertAreaSizeToInt(hotel.Survey.Area);
existUnit.PeopleNum = ConvertPeopleCount(hotel.Survey.EmployeeCount);
existUnit.Longitude = ParseGeoPoints(hotel.Longitude);
existUnit.Latitude = ParseGeoPoints(hotel.Latitude);
existUnit.UpdateTime = DateTime.Now;
_context.Units.Update(existUnit);
}
await _context.SaveChangesAsync();
}
}
private async Task SaveUnderGrounds(List<UnderGround> underGrounds, int uniacid, int groupId)
{
var existCategory = await GetOrAddCategory(typeof(UnderGround), groupId, uniacid);
var unitQuery = _context.Units.AsQueryable();
foreach (var underGround in underGrounds)
{
var existUnit = await unitQuery.Where(u => u.Name == underGround.Name && u.LocationName == underGround.Area &&
u.Uniacid == uniacid && u.GroupId == groupId).FirstOrDefaultAsync();
if (existUnit == null)
{
var unit = new Unit
{
Uniacid=uniacid,
GroupId=groupId,
CategoryId = existCategory.Id,
LocationName = underGround.Area,
Name = underGround.Name,
SuperviseLevel = ConvertRegulatoryLevelToInt(underGround.RegulatoryLevel),
PrincipalName = underGround.PersonInChargeOfSafetyInfo?.Name,
PrincipalPhoneNum = underGround.PersonInChargeOfSafetyInfo?.Phone,
UseArea = ConvertAreaSizeToInt(underGround.Survey.Area),
Longitude = ParseGeoPoints(underGround.Longitude),
Latitude = ParseGeoPoints(underGround.Latitude),
UpdateTime =DateTime.Now,
};
await _context.Units.AddAsync(unit);
}
else
{
existUnit.CategoryId = existCategory.Id;
existUnit.LocationName = underGround.Area;
existUnit.Name = underGround.Name;
existUnit.SuperviseLevel = ConvertRegulatoryLevelToInt(underGround.RegulatoryLevel);
existUnit.PrincipalName = underGround.PersonInChargeOfSafetyInfo?.Name;
existUnit.PrincipalPhoneNum = underGround.PersonInChargeOfSafetyInfo?.Phone;
existUnit.UseArea = ConvertAreaSizeToInt(underGround.Survey.Area);
existUnit.Longitude = ParseGeoPoints(underGround.Longitude);
existUnit.Latitude = ParseGeoPoints(underGround.Latitude);
existUnit.UpdateTime = DateTime.Now;
_context.Units.Update(existUnit);
}
await _context.SaveChangesAsync();
}
}
private async Task SaveTallBuildings(List<TallBuilding> tallBuildings, int uniacid, int groupId)
{
var existCategory = await GetOrAddCategory(typeof(TallBuilding), groupId, uniacid);
var unitQuery = _context.Units.AsQueryable();
foreach (var tallBuilding in tallBuildings)
{
var existUnit = await unitQuery.Where(u => u.Name == tallBuilding.Name && u.LocationName == tallBuilding.Area &&
u.Uniacid == uniacid && u.GroupId == groupId).FirstOrDefaultAsync();
if (existUnit == null)
{
var unit = new Unit
{
Uniacid=uniacid,
GroupId=groupId,
CategoryId = existCategory.Id,
LocationName = tallBuilding.Area,
Name = tallBuilding.Name,
SuperviseLevel = ConvertRegulatoryLevelToInt(tallBuilding.RegulatoryLevel),
PrincipalName = tallBuilding.PersonInChargeOfSafetyInfo?.Name,
PrincipalPhoneNum = tallBuilding.PersonInChargeOfSafetyInfo?.Phone,
UseArea = ConvertAreaSizeToInt(tallBuilding.Survey.Area),
Longitude = ParseGeoPoints(tallBuilding.Longitude),
Latitude = ParseGeoPoints(tallBuilding.Latitude),
UpdateTime = DateTime.Now,
};
await _context.Units.AddAsync(unit);
}
else
{
existUnit.CategoryId = existCategory.Id;
existUnit.LocationName = tallBuilding.Area;
existUnit.Name = tallBuilding.Name;
existUnit.SuperviseLevel = ConvertRegulatoryLevelToInt(tallBuilding.RegulatoryLevel);
existUnit.PrincipalName = tallBuilding.PersonInChargeOfSafetyInfo?.Name;
existUnit.PrincipalPhoneNum = tallBuilding.PersonInChargeOfSafetyInfo?.Phone;
existUnit.UseArea = ConvertAreaSizeToInt(tallBuilding.Survey.Area);
existUnit.Longitude = ParseGeoPoints(tallBuilding.Longitude);
existUnit.Latitude = ParseGeoPoints(tallBuilding.Latitude);
existUnit.UpdateTime = DateTime.Now;
_context.Units.Update(existUnit);
}
await _context.SaveChangesAsync();
}
}
private async Task SaveIndustrialEnterprises(List<IndustrialEnterprise> industrialEnterprises, int uniacid, int groupId)
{
var existCategory = await GetOrAddCategory(typeof(IndustrialEnterprise), groupId, uniacid);
var unitQuery = _context.Units.AsQueryable();
foreach (var industrialEnterprise in industrialEnterprises)
{
var existUnit = await unitQuery.Where(u => u.Name == industrialEnterprise.Name && u.LocationName == industrialEnterprise.Area &&
u.Uniacid == uniacid && u.GroupId == groupId).FirstOrDefaultAsync();
if (existUnit == null)
{
var unit = new Unit
{
Uniacid=uniacid,
GroupId=groupId,
CategoryId = existCategory.Id,
LocationName = industrialEnterprise.Area,
Name = industrialEnterprise.Name,
SuperviseLevel = ConvertRegulatoryLevelToInt(industrialEnterprise.RegulatoryLevel),
PrincipalName = industrialEnterprise.PersonInChargeOfSafetyInfo?.Name,
PrincipalPhoneNum = industrialEnterprise.PersonInChargeOfSafetyInfo?.Phone,
CoverArea = ConvertAreaSizeToInt(industrialEnterprise.Survey.AreaCovered),
UseArea = ConvertAreaSizeToInt(industrialEnterprise.Survey.BuildUpArea),
Longitude= ParseGeoPoints(industrialEnterprise.Longitude),
Latitude= ParseGeoPoints(industrialEnterprise.Latitude),
UpdateTime = DateTime.Now
};
await _context.Units.AddAsync(unit);
}
else
{
existUnit.CategoryId = existCategory.Id;
existUnit.LocationName = industrialEnterprise.Area;
existUnit.Name = industrialEnterprise.Name;
existUnit.SuperviseLevel = ConvertRegulatoryLevelToInt(industrialEnterprise.RegulatoryLevel);
existUnit.PrincipalName = industrialEnterprise.PersonInChargeOfSafetyInfo?.Name;
existUnit.PrincipalPhoneNum = industrialEnterprise.PersonInChargeOfSafetyInfo?.Phone;
existUnit.CoverArea = ConvertAreaSizeToInt(industrialEnterprise.Survey.AreaCovered);
existUnit.UseArea = ConvertAreaSizeToInt(industrialEnterprise.Survey.BuildUpArea);
existUnit.Longitude = ParseGeoPoints(industrialEnterprise.Longitude);
existUnit.Latitude = ParseGeoPoints(industrialEnterprise.Latitude);
existUnit.UpdateTime = DateTime.Now;
_context.Units.Update(existUnit);
}
await _context.SaveChangesAsync();
}
}
private short ConvertPeopleCount(string peopleCount)
{
peopleCount = peopleCount.Replace("人", "").Trim();
return Int16.Parse(peopleCount);
}
private Int16 ConvertRegulatoryLevelToInt(string regulatoryLevel)
{
var strValue = regulatoryLevel.Replace("级", "").Trim();
try
{
return (Int16)_converter.ParseCnToInt(strValue);
}
catch
{
throw new Exception($"错误级值:{regulatoryLevel}");
}
}
private async Task<UnitCategory> GetOrAddCategory(Type type,int groupId,int uniacid)
{
var unitCategoryQuery = _context.UnitCategories.AsQueryable();
var sheetName = _excelParser.GetSheetName(type).Trim();
var existCategory = await unitCategoryQuery.FirstOrDefaultAsync(c => c.Name == sheetName && c.GroupId==groupId && c.Uniacid==uniacid);
if (existCategory == null)
{
var maxSort = await unitCategoryQuery.MaxAsync(c => (int?)c.Sort);
maxSort = maxSort.HasValue ? maxSort.Value : 0;
var unitCategory = new UnitCategory
{
Sort = maxSort.Value + 1,
Name = sheetName,
GroupId=groupId,
Uniacid=uniacid,
UpdateTime = DateTime.Now
};
var entity = await _context.UnitCategories.AddAsync(unitCategory);
await _context.SaveChangesAsync();
existCategory = entity.Entity;
}
return existCategory;
}
private float ParseGeoPoints(string geo)
{
float.TryParse(geo, out var value);
return value;
}
private int ConvertAreaSizeToInt(string area)
{
area = area.Trim();
var pattern = "^\\d+\\.?\\d*";
var match = Regex.Match(area, pattern);
var value = 0.0;
if (match.Success)
{
value = double.Parse(match.Value);
}
Converter.AreaUnits sourceUnit;
if (area.Contains(Converter.AreaUnits.m2.ToString()) || area.Contains("㎡")||area.Contains("平方米"))
{
sourceUnit = Converter.AreaUnits.m2;
}
else if (area.Contains(Converter.AreaUnits.km2.ToString()) || area.Contains("k㎡")||area.Contains("平方公里"))
{
sourceUnit = Converter.AreaUnits.km2;
}
else if (area.Contains(Converter.AreaUnits..ToString()))
{
sourceUnit = Converter.AreaUnits.;
}
else if (area.Contains(Converter.AreaUnits..ToString()))
{
sourceUnit = Converter.AreaUnits.;
}
else if (area.Contains(Converter.AreaUnits..ToString()))
{
sourceUnit = Converter.AreaUnits.;
}
else if (area.Contains(Converter.AreaUnits..ToString()))
{
sourceUnit = Converter.AreaUnits.;
}
else if(string.IsNullOrEmpty(area.Replace(match.Value, "").Trim()) )
{
sourceUnit = Converter.AreaUnits.m2;
}
else
{
throw new Exception($"非法面积值{area}");
}
var result = _converter.ConvertArea(value, sourceUnit, Converter.AreaUnits.m2);
return (int)result;
}
}
}

12
BackGround/Hangfire/Jobs/Waters/IImportWaterJob.cs

@ -0,0 +1,12 @@ @@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace BackGround.Hangfire.Jobs.Waters
{
public interface IImportWaterJob
{
Task Execute(Guid fileId,int categoryId);
}
}

156
BackGround/Hangfire/Jobs/Waters/ImportWaterJob.cs

@ -0,0 +1,156 @@ @@ -0,0 +1,156 @@
using EntityFramework;
using Infrastructure.Abstructions;
using Infrastructure.Converts;
using Infrastructure.Excel;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
namespace BackGround.Hangfire.Jobs.Waters
{
public class ImportWaterJob : ITransientDependency, IImportWaterJob
{
private readonly IParser _excelParser;
private readonly FireStationDbContext _context;
private readonly IConverter _converter;
public ImportWaterJob(IParser parser, FireStationDbContext context, IConverter converter)
{
_excelParser = parser;
_context = context;
_converter = converter;
}
public async Task Execute(Guid fileId,int categoryId)
{
var file = await _context.UploadedFiles.Where(u => u.Id == fileId).FirstOrDefaultAsync();
if (file == null)
{
throw new Exception($"没有找到id为{fileId}的文件");
}
var fileUnit = await _context.FileUnits.FirstOrDefaultAsync(f => f.FileId == fileId);
if (fileUnit == null)
{
throw new Exception($"没有找到文件{fileId}的单位关联记录");
}
var unitId = fileUnit.UnitId;
int uniacid = fileUnit.Uniacid;
int groupId = fileUnit.GroupId;
var fileName = file.Path;
var waterQuery = _context.Water.AsEnumerable();
var workBook = _excelParser.ReadExcel(fileName);
var parseResult = _excelParser.ParseExcel<Application.Shared.Dtos.Waters.Imports.Water>(workBook);
if (parseResult.Any())
{
var currentArea = string.Empty;
foreach (var result in parseResult)
{
try
{
if (!string.IsNullOrEmpty(result.Area))
{
currentArea = result.Area;
}
var existWater = waterQuery.FirstOrDefault(w => w.LocationName == currentArea + result.Street + result.Position);
if (existWater == null)
{
var waterEntity = BuildWater(result, currentArea, uniacid, groupId,categoryId);
await _context.Water.AddAsync(waterEntity);
}
else
{
var water = BuildWater(result, currentArea, uniacid, groupId,categoryId);
existWater.Longitude = water.Longitude;
existWater.Latitude = water.Latitude;
existWater.UpdateTime = water.UpdateTime;
existWater.InstallDate = water.InstallDate;
existWater.Status = water.Status;
_context.Water.Update(existWater);
}
await _context.SaveChangesAsync();
}
catch(Exception e)
{
throw e;
}
}
}
}
private Domain.Models.Waters.Water BuildWater(Application.Shared.Dtos.Waters.Imports.Water waterDto, string area, int uniacid, int groupId,int categoryId)
{
var water = new Domain.Models.Waters.Water
{
Uniacid=uniacid,
GroupId=groupId,
LocationName = area + waterDto.Street + waterDto.Position,
CategoryId=categoryId,
UpdateTime = DateTime.Now
};
if (waterDto.Point != null)
{
var pattern = "\\d+\\.?\\d*";
if (float.TryParse(waterDto.Point.EastLongitude,out var longitudevalue))
{
water.Longitude = longitudevalue;
}
else
{
var match= Regex.Match(waterDto.Point.EastLongitude, pattern);
if (match.Success)
{
water.Longitude = float.Parse(match.Value);
}
else
throw new Exception($"经度值{waterDto.Point?.EastLongitude}有误");
}
if (float.TryParse(waterDto.Point.NorthLatitude, out var latitudeValue))
{
water.Latitude = latitudeValue;
}
else
{
var match = Regex.Match(waterDto.Point.NorthLatitude, pattern);
if (match.Success)
{
water.Longitude = float.Parse(match.Value);
}
else
throw new Exception($"纬度值{waterDto.Point?.EastLongitude}有误");
}
}
if (!string.IsNullOrEmpty(waterDto.ConstructionDate))
{
water.InstallDate = waterDto.ConstructionDate;
}
if (!string.IsNullOrEmpty(waterDto.WaterStatus))
{
if (waterDto.WaterStatus.Contains("不好用"))
{
water.Status = 2;
}
else if (waterDto.WaterStatus.Contains("好用"))
{
water.Status = 1;
}
else if (waterDto.WaterStatus.Contains("坏"))
{
water.Status = 0;
}
else
{
water.Status = 2;
}
}
return water;
}
}
}

37
BackGround/HangfireInjection.cs

@ -0,0 +1,37 @@ @@ -0,0 +1,37 @@
using Hangfire;
using Microsoft.Extensions.DependencyInjection;
using Hangfire.MySql;
using System;
using System.Transactions;
using Microsoft.Extensions.Configuration;
namespace BackGround
{
public static class HangfireInjection
{
public static IServiceCollection IntegrateHangfire(this IServiceCollection services, IConfiguration configuration)
{
services.AddHangfire(config =>
{
config.SetDataCompatibilityLevel(CompatibilityLevel.Version_170)
.UseSimpleAssemblyNameTypeSerializer()
.UseRecommendedSerializerSettings()
.UseStorage(new MySqlStorage(
configuration.GetConnectionString("default"),
new MySqlStorageOptions
{
TransactionIsolationLevel = IsolationLevel.ReadCommitted, // 事务隔离级别。默认是读取已提交。
QueuePollInterval = TimeSpan.FromSeconds(15), //- 作业队列轮询间隔。默认值为15秒。
JobExpirationCheckInterval = TimeSpan.FromHours(1), //- 作业到期检查间隔(管理过期记录)。默认值为1小时。
CountersAggregateInterval = TimeSpan.FromMinutes(5), //- 聚合计数器的间隔。默认为5分钟。
PrepareSchemaIfNecessary = true, //- 如果设置为true,则创建数据库表。默认是true。
DashboardJobListLimit = 50000, //- 仪表板作业列表限制。默认值为50000。
TransactionTimeout = TimeSpan.FromMinutes(1), //- 交易超时。默认为1分钟 //- 数据库中表的前缀。默认为none
}
));
});
services.AddHangfireServer(opt => opt.WorkerCount = 10);
return services;
}
}
}

411
BackGround/obj/BackGround.csproj.nuget.dgspec.json

@ -0,0 +1,411 @@ @@ -0,0 +1,411 @@
{
"format": 1,
"restore": {
"C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\BackGround\\BackGround.csproj": {}
},
"projects": {
"C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Application.Shared\\Application.Shared.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Application.Shared\\Application.Shared.csproj",
"projectName": "Application.Shared",
"projectPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Application.Shared\\Application.Shared.csproj",
"packagesPath": "C:\\Users\\NineFishes\\.nuget\\packages\\",
"outputPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Application.Shared\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\NineFishes\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://www.nuget.org/api/v2/": {}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"projectReferences": {
"C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Infrastructure\\Infrastructure.csproj": {
"projectPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Infrastructure\\Infrastructure.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.202\\RuntimeIdentifierGraph.json"
}
}
},
"C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\BackGround\\BackGround.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\BackGround\\BackGround.csproj",
"projectName": "BackGround",
"projectPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\BackGround\\BackGround.csproj",
"packagesPath": "C:\\Users\\NineFishes\\.nuget\\packages\\",
"outputPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\BackGround\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\NineFishes\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://www.nuget.org/api/v2/": {}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"projectReferences": {
"C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Application.Shared\\Application.Shared.csproj": {
"projectPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Application.Shared\\Application.Shared.csproj"
},
"C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\EntityFramework\\EntityFramework.csproj": {
"projectPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\EntityFramework\\EntityFramework.csproj"
},
"C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Infrastructure\\Infrastructure.csproj": {
"projectPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Infrastructure\\Infrastructure.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"dependencies": {
"Hangfire.AspNetCore": {
"target": "Package",
"version": "[1.7.24, )"
},
"Hangfire.Core": {
"target": "Package",
"version": "[1.7.24, )"
},
"Hangfire.MySqlStorage": {
"target": "Package",
"version": "[2.0.3, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.202\\RuntimeIdentifierGraph.json"
}
}
},
"C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Domain.Shared\\Domain.Shared.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Domain.Shared\\Domain.Shared.csproj",
"projectName": "Domain.Shared",
"projectPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Domain.Shared\\Domain.Shared.csproj",
"packagesPath": "C:\\Users\\NineFishes\\.nuget\\packages\\",
"outputPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Domain.Shared\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\NineFishes\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://www.nuget.org/api/v2/": {}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.202\\RuntimeIdentifierGraph.json"
}
}
},
"C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Domain\\Domain.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Domain\\Domain.csproj",
"projectName": "Domain",
"projectPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Domain\\Domain.csproj",
"packagesPath": "C:\\Users\\NineFishes\\.nuget\\packages\\",
"outputPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Domain\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\NineFishes\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://www.nuget.org/api/v2/": {}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"projectReferences": {
"C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Domain.Shared\\Domain.Shared.csproj": {
"projectPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Domain.Shared\\Domain.Shared.csproj"
},
"C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Infrastructure\\Infrastructure.csproj": {
"projectPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Infrastructure\\Infrastructure.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.202\\RuntimeIdentifierGraph.json"
}
}
},
"C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\EntityFramework\\EntityFramework.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\EntityFramework\\EntityFramework.csproj",
"projectName": "EntityFramework",
"projectPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\EntityFramework\\EntityFramework.csproj",
"packagesPath": "C:\\Users\\NineFishes\\.nuget\\packages\\",
"outputPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\EntityFramework\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\NineFishes\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://www.nuget.org/api/v2/": {}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"projectReferences": {
"C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Domain\\Domain.csproj": {
"projectPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Domain\\Domain.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"dependencies": {
"Microsoft.EntityFrameworkCore": {
"target": "Package",
"version": "[5.0.7, )"
},
"Pomelo.EntityFrameworkCore.MySql": {
"target": "Package",
"version": "[5.0.1, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.202\\RuntimeIdentifierGraph.json"
}
}
},
"C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Infrastructure\\Infrastructure.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Infrastructure\\Infrastructure.csproj",
"projectName": "Infrastructure",
"projectPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Infrastructure\\Infrastructure.csproj",
"packagesPath": "C:\\Users\\NineFishes\\.nuget\\packages\\",
"outputPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Infrastructure\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\NineFishes\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://www.nuget.org/api/v2/": {}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"dependencies": {
"Autofac": {
"target": "Package",
"version": "[6.2.0, )"
},
"Autofac.Extensions.DependencyInjection": {
"target": "Package",
"version": "[7.1.0, )"
},
"Autofac.Extras.DynamicProxy": {
"target": "Package",
"version": "[6.0.0, )"
},
"Microsoft.AspNetCore.Mvc.Core": {
"target": "Package",
"version": "[2.2.5, )"
},
"Microsoft.Extensions.DependencyModel": {
"target": "Package",
"version": "[5.0.0, )"
},
"NPOI": {
"target": "Package",
"version": "[2.5.3, )"
},
"Newtonsoft.Json": {
"target": "Package",
"version": "[13.0.1, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.202\\RuntimeIdentifierGraph.json"
}
}
}
}
}

15
BackGround/obj/BackGround.csproj.nuget.g.props

@ -0,0 +1,15 @@ @@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\NineFishes\.nuget\packages\</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">6.1.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="C:\Users\NineFishes\.nuget\packages\" />
</ItemGroup>
</Project>

2
BackGround/obj/BackGround.csproj.nuget.g.targets

@ -0,0 +1,2 @@ @@ -0,0 +1,2 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" />

4
BackGround/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs

@ -0,0 +1,4 @@ @@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")]

23
BackGround/obj/Debug/netcoreapp3.1/BackGround.AssemblyInfo.cs

@ -0,0 +1,23 @@ @@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("BackGround")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("BackGround")]
[assembly: System.Reflection.AssemblyTitleAttribute("BackGround")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// 由 MSBuild WriteCodeFragment 类生成。

1
BackGround/obj/Debug/netcoreapp3.1/BackGround.AssemblyInfoInputs.cache

@ -0,0 +1 @@ @@ -0,0 +1 @@
f57720a1dcf9afc1749a3e31479e19d0e22a5abd

3
BackGround/obj/Debug/netcoreapp3.1/BackGround.GeneratedMSBuildEditorConfig.editorconfig

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
is_global = true
build_property.RootNamespace = BackGround
build_property.ProjectDir = C:\Users\NineFishes\Desktop\FireStaionDocuments-master\BackGround\

BIN
BackGround/obj/Debug/netcoreapp3.1/BackGround.assets.cache

Binary file not shown.

BIN
BackGround/obj/Debug/netcoreapp3.1/BackGround.csproj.AssemblyReference.cache

Binary file not shown.

0
BackGround/obj/Debug/netcoreapp3.1/BackGround.csproj.BuildWithSkipAnalyzers

0
BackGround/obj/Debug/netcoreapp3.1/BackGround.csproj.CopyComplete

1
BackGround/obj/Debug/netcoreapp3.1/BackGround.csproj.CoreCompileInputs.cache

@ -0,0 +1 @@ @@ -0,0 +1 @@
88a16c5149cf31d4a33c3dee4c5303bd2dff6723

21
BackGround/obj/Debug/netcoreapp3.1/BackGround.csproj.FileListAbsolute.txt

@ -0,0 +1,21 @@ @@ -0,0 +1,21 @@
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\BackGround\bin\Debug\netcoreapp3.1\BackGround.deps.json
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\BackGround\bin\Debug\netcoreapp3.1\BackGround.dll
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\BackGround\bin\Debug\netcoreapp3.1\BackGround.pdb
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\BackGround\bin\Debug\netcoreapp3.1\Application.Shared.dll
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\BackGround\bin\Debug\netcoreapp3.1\Domain.dll
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\BackGround\bin\Debug\netcoreapp3.1\Domain.Shared.dll
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\BackGround\bin\Debug\netcoreapp3.1\EntityFramework.dll
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\BackGround\bin\Debug\netcoreapp3.1\Infrastructure.dll
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\BackGround\bin\Debug\netcoreapp3.1\Application.Shared.pdb
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\BackGround\bin\Debug\netcoreapp3.1\EntityFramework.pdb
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\BackGround\bin\Debug\netcoreapp3.1\Infrastructure.pdb
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\BackGround\bin\Debug\netcoreapp3.1\Domain.pdb
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\BackGround\bin\Debug\netcoreapp3.1\Domain.Shared.pdb
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\BackGround\obj\Debug\netcoreapp3.1\BackGround.csproj.AssemblyReference.cache
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\BackGround\obj\Debug\netcoreapp3.1\BackGround.GeneratedMSBuildEditorConfig.editorconfig
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\BackGround\obj\Debug\netcoreapp3.1\BackGround.AssemblyInfoInputs.cache
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\BackGround\obj\Debug\netcoreapp3.1\BackGround.AssemblyInfo.cs
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\BackGround\obj\Debug\netcoreapp3.1\BackGround.csproj.CoreCompileInputs.cache
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\BackGround\obj\Debug\netcoreapp3.1\BackGround.csproj.CopyComplete
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\BackGround\obj\Debug\netcoreapp3.1\BackGround.dll
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\BackGround\obj\Debug\netcoreapp3.1\BackGround.pdb

BIN
BackGround/obj/Debug/netcoreapp3.1/BackGround.dll

Binary file not shown.

BIN
BackGround/obj/Debug/netcoreapp3.1/BackGround.pdb

Binary file not shown.

7726
BackGround/obj/project.assets.json

File diff suppressed because it is too large Load Diff

157
BackGround/obj/project.nuget.cache

@ -0,0 +1,157 @@ @@ -0,0 +1,157 @@
{
"version": 2,
"dgSpecHash": "vSIXoHXycayVNioFcIBR9MhY5PWDWBKWSFaFXIB9IwooLJFsATTphPVKBFzKVikRzJWaBf2punMtscFIGPvT8w==",
"success": true,
"projectFilePath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\BackGround\\BackGround.csproj",
"expectedPackageFiles": [
"C:\\Users\\NineFishes\\.nuget\\packages\\autofac\\6.2.0\\autofac.6.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\autofac.extensions.dependencyinjection\\7.1.0\\autofac.extensions.dependencyinjection.7.1.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\autofac.extras.dynamicproxy\\6.0.0\\autofac.extras.dynamicproxy.6.0.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\castle.core\\4.4.0\\castle.core.4.4.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\dapper\\1.50.5\\dapper.1.50.5.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\hangfire.aspnetcore\\1.7.24\\hangfire.aspnetcore.1.7.24.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\hangfire.core\\1.7.24\\hangfire.core.1.7.24.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\hangfire.mysqlstorage\\2.0.3\\hangfire.mysqlstorage.2.0.3.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.authentication.abstractions\\2.2.0\\microsoft.aspnetcore.authentication.abstractions.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.authentication.core\\2.2.0\\microsoft.aspnetcore.authentication.core.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.authorization\\2.2.0\\microsoft.aspnetcore.authorization.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.authorization.policy\\2.2.0\\microsoft.aspnetcore.authorization.policy.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.hosting.abstractions\\2.2.0\\microsoft.aspnetcore.hosting.abstractions.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.hosting.server.abstractions\\2.2.0\\microsoft.aspnetcore.hosting.server.abstractions.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.http\\2.2.0\\microsoft.aspnetcore.http.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.http.abstractions\\2.2.0\\microsoft.aspnetcore.http.abstractions.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.http.extensions\\2.2.0\\microsoft.aspnetcore.http.extensions.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.http.features\\2.2.0\\microsoft.aspnetcore.http.features.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.mvc.abstractions\\2.2.0\\microsoft.aspnetcore.mvc.abstractions.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.mvc.core\\2.2.5\\microsoft.aspnetcore.mvc.core.2.2.5.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.responsecaching.abstractions\\2.2.0\\microsoft.aspnetcore.responsecaching.abstractions.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.routing\\2.2.0\\microsoft.aspnetcore.routing.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.routing.abstractions\\2.2.0\\microsoft.aspnetcore.routing.abstractions.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.aspnetcore.webutilities\\2.2.0\\microsoft.aspnetcore.webutilities.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.csharp\\4.4.1\\microsoft.csharp.4.4.1.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.entityframeworkcore\\5.0.7\\microsoft.entityframeworkcore.5.0.7.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.entityframeworkcore.abstractions\\5.0.7\\microsoft.entityframeworkcore.abstractions.5.0.7.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.entityframeworkcore.analyzers\\5.0.7\\microsoft.entityframeworkcore.analyzers.5.0.7.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.entityframeworkcore.relational\\5.0.7\\microsoft.entityframeworkcore.relational.5.0.7.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.extensions.caching.abstractions\\5.0.0\\microsoft.extensions.caching.abstractions.5.0.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.extensions.caching.memory\\5.0.0\\microsoft.extensions.caching.memory.5.0.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.extensions.configuration.abstractions\\5.0.0\\microsoft.extensions.configuration.abstractions.5.0.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.extensions.dependencyinjection\\5.0.1\\microsoft.extensions.dependencyinjection.5.0.1.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.extensions.dependencyinjection.abstractions\\5.0.0\\microsoft.extensions.dependencyinjection.abstractions.5.0.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.extensions.dependencymodel\\5.0.0\\microsoft.extensions.dependencymodel.5.0.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.extensions.fileproviders.abstractions\\2.2.0\\microsoft.extensions.fileproviders.abstractions.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.extensions.hosting.abstractions\\2.2.0\\microsoft.extensions.hosting.abstractions.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.extensions.logging\\5.0.0\\microsoft.extensions.logging.5.0.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.extensions.logging.abstractions\\5.0.0\\microsoft.extensions.logging.abstractions.5.0.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.extensions.objectpool\\2.2.0\\microsoft.extensions.objectpool.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.extensions.options\\5.0.0\\microsoft.extensions.options.5.0.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.extensions.primitives\\5.0.0\\microsoft.extensions.primitives.5.0.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.net.http.headers\\2.2.0\\microsoft.net.http.headers.2.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.netcore.platforms\\2.0.0\\microsoft.netcore.platforms.2.0.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.netcore.targets\\1.1.0\\microsoft.netcore.targets.1.1.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.win32.primitives\\4.3.0\\microsoft.win32.primitives.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.win32.registry\\4.4.0\\microsoft.win32.registry.4.4.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\microsoft.win32.systemevents\\4.5.0\\microsoft.win32.systemevents.4.5.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\mysqlconnector\\1.3.10\\mysqlconnector.1.3.10.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\netstandard.library\\1.6.1\\netstandard.library.1.6.1.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\newtonsoft.json\\13.0.1\\newtonsoft.json.13.0.1.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\npoi\\2.5.3\\npoi.2.5.3.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\pomelo.entityframeworkcore.mysql\\5.0.1\\pomelo.entityframeworkcore.mysql.5.0.1.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\portable.bouncycastle\\1.8.6\\portable.bouncycastle.1.8.6.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.debian.8-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.debian.8-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.fedora.23-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.fedora.23-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.fedora.24-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.fedora.24-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.native.system\\4.3.0\\runtime.native.system.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.native.system.data.sqlclient.sni\\4.4.0\\runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.native.system.io.compression\\4.3.0\\runtime.native.system.io.compression.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.native.system.net.http\\4.3.0\\runtime.native.system.net.http.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.native.system.security.cryptography.apple\\4.3.0\\runtime.native.system.security.cryptography.apple.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.opensuse.13.2-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.opensuse.13.2-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.opensuse.42.1-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.opensuse.42.1-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.osx.10.10-x64.runtime.native.system.security.cryptography.apple\\4.3.0\\runtime.osx.10.10-x64.runtime.native.system.security.cryptography.apple.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.osx.10.10-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.osx.10.10-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.rhel.7-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.rhel.7-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.ubuntu.14.04-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.ubuntu.14.04-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.ubuntu.16.04-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.ubuntu.16.04-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.ubuntu.16.10-x64.runtime.native.system.security.cryptography.openssl\\4.3.0\\runtime.ubuntu.16.10-x64.runtime.native.system.security.cryptography.openssl.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.win-arm64.runtime.native.system.data.sqlclient.sni\\4.4.0\\runtime.win-arm64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.win-x64.runtime.native.system.data.sqlclient.sni\\4.4.0\\runtime.win-x64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\runtime.win-x86.runtime.native.system.data.sqlclient.sni\\4.4.0\\runtime.win-x86.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\sharpziplib\\1.2.0\\sharpziplib.1.2.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.appcontext\\4.3.0\\system.appcontext.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.buffers\\4.5.0\\system.buffers.4.5.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.collections\\4.3.0\\system.collections.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.collections.concurrent\\4.3.0\\system.collections.concurrent.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.collections.immutable\\5.0.0\\system.collections.immutable.5.0.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.collections.nongeneric\\4.3.0\\system.collections.nongeneric.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.collections.specialized\\4.3.0\\system.collections.specialized.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.componentmodel\\4.3.0\\system.componentmodel.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.componentmodel.annotations\\5.0.0\\system.componentmodel.annotations.5.0.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.componentmodel.primitives\\4.3.0\\system.componentmodel.primitives.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.componentmodel.typeconverter\\4.3.0\\system.componentmodel.typeconverter.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.configuration.configurationmanager\\4.5.0\\system.configuration.configurationmanager.4.5.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.console\\4.3.0\\system.console.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.data.sqlclient\\4.4.0\\system.data.sqlclient.4.4.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.diagnostics.debug\\4.3.0\\system.diagnostics.debug.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.diagnostics.diagnosticsource\\5.0.1\\system.diagnostics.diagnosticsource.5.0.1.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.diagnostics.tools\\4.3.0\\system.diagnostics.tools.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.diagnostics.tracesource\\4.3.0\\system.diagnostics.tracesource.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.diagnostics.tracing\\4.3.0\\system.diagnostics.tracing.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.drawing.common\\4.5.0\\system.drawing.common.4.5.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.dynamic.runtime\\4.3.0\\system.dynamic.runtime.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.globalization\\4.3.0\\system.globalization.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.globalization.calendars\\4.3.0\\system.globalization.calendars.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.globalization.extensions\\4.3.0\\system.globalization.extensions.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.io\\4.3.0\\system.io.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.io.compression\\4.3.0\\system.io.compression.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.io.compression.zipfile\\4.3.0\\system.io.compression.zipfile.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.io.filesystem\\4.3.0\\system.io.filesystem.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.io.filesystem.primitives\\4.3.0\\system.io.filesystem.primitives.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.linq\\4.3.0\\system.linq.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.linq.expressions\\4.3.0\\system.linq.expressions.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.net.http\\4.3.0\\system.net.http.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.net.primitives\\4.3.0\\system.net.primitives.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.net.sockets\\4.3.0\\system.net.sockets.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.objectmodel\\4.3.0\\system.objectmodel.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.reflection\\4.3.0\\system.reflection.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.reflection.emit\\4.3.0\\system.reflection.emit.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.reflection.emit.ilgeneration\\4.3.0\\system.reflection.emit.ilgeneration.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.reflection.emit.lightweight\\4.3.0\\system.reflection.emit.lightweight.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.reflection.extensions\\4.3.0\\system.reflection.extensions.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.reflection.primitives\\4.3.0\\system.reflection.primitives.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.reflection.typeextensions\\4.4.0\\system.reflection.typeextensions.4.4.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.resources.resourcemanager\\4.3.0\\system.resources.resourcemanager.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.runtime\\4.3.0\\system.runtime.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.runtime.extensions\\4.3.0\\system.runtime.extensions.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.runtime.handles\\4.3.0\\system.runtime.handles.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.runtime.interopservices\\4.3.0\\system.runtime.interopservices.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.runtime.interopservices.runtimeinformation\\4.3.0\\system.runtime.interopservices.runtimeinformation.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.runtime.numerics\\4.3.0\\system.runtime.numerics.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.security.accesscontrol\\4.5.0\\system.security.accesscontrol.4.5.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.security.cryptography.algorithms\\4.3.0\\system.security.cryptography.algorithms.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.security.cryptography.cng\\4.3.0\\system.security.cryptography.cng.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.security.cryptography.csp\\4.3.0\\system.security.cryptography.csp.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.security.cryptography.encoding\\4.3.0\\system.security.cryptography.encoding.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.security.cryptography.openssl\\4.3.0\\system.security.cryptography.openssl.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.security.cryptography.primitives\\4.3.0\\system.security.cryptography.primitives.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.security.cryptography.protecteddata\\4.5.0\\system.security.cryptography.protecteddata.4.5.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.security.cryptography.x509certificates\\4.3.0\\system.security.cryptography.x509certificates.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.security.permissions\\4.5.0\\system.security.permissions.4.5.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.security.principal.windows\\4.5.0\\system.security.principal.windows.4.5.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.text.encoding\\4.3.0\\system.text.encoding.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.text.encoding.codepages\\4.4.0\\system.text.encoding.codepages.4.4.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.text.encoding.extensions\\4.3.0\\system.text.encoding.extensions.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.text.encodings.web\\5.0.0\\system.text.encodings.web.5.0.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.text.json\\5.0.0\\system.text.json.5.0.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.text.regularexpressions\\4.3.0\\system.text.regularexpressions.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.threading\\4.3.0\\system.threading.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.threading.tasks\\4.3.0\\system.threading.tasks.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.threading.tasks.extensions\\4.5.1\\system.threading.tasks.extensions.4.5.1.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.threading.timer\\4.3.0\\system.threading.timer.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.xml.readerwriter\\4.3.0\\system.xml.readerwriter.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.xml.xdocument\\4.3.0\\system.xml.xdocument.4.3.0.nupkg.sha512",
"C:\\Users\\NineFishes\\.nuget\\packages\\system.xml.xmldocument\\4.3.0\\system.xml.xmldocument.4.3.0.nupkg.sha512"
],
"logs": []
}

8
Domain.Service/Class1.cs

@ -0,0 +1,8 @@ @@ -0,0 +1,8 @@
using System;
namespace Domain.Service
{
public class Class1
{
}
}

12
Domain.Service/Domain.Service.csproj

@ -0,0 +1,12 @@ @@ -0,0 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\EntityFramework\EntityFramework.csproj" />
<ProjectReference Include="..\Infrastructure\Infrastructure.csproj" />
</ItemGroup>
</Project>

81
Domain.Service/FileUpload/FileUploader.cs

@ -0,0 +1,81 @@ @@ -0,0 +1,81 @@
using Domain.Models.FileUploads;
using EntityFramework;
using Infrastructure.Domain;
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
namespace Domain.Service.FileUpload
{
public class FileUploader:DomainService, IFileUploader
{
private readonly FireStationDbContext _context;
public FileUploader(FireStationDbContext context)
{
_context = context;
}
/// <summary>
/// 上传文件
/// </summary>
/// <param name="files"></param>
/// <returns>(文件名,上传记录Id,文件路径)</returns>
public async Task<List<Tuple<string, Guid, string>>> UploadFiles(IFormFileCollection files,int unitId, int uniacid,int groupId)
{
var result = new List<Tuple<string, Guid, string>>();
if (files != null && files.Any())
{
foreach (var file in files)
{
var contentType = file.ContentType;
var fileName = file.FileName;
var fileExtension = Path.GetExtension(fileName);
var fileNameWithoutExtension = Path.GetFileNameWithoutExtension(fileName);
var rootPath = Directory.GetCurrentDirectory();
var directoryPath = Path.Combine(rootPath, "Uploaded");
if (!Directory.Exists(directoryPath))
{
Directory.CreateDirectory(directoryPath);
}
var newFileName = $"{fileNameWithoutExtension}-{Guid.NewGuid()}{fileExtension}";
var filePath = Path.Combine(directoryPath, newFileName);
try
{
using (var fileStream = new FileStream(filePath, FileMode.OpenOrCreate, FileAccess.ReadWrite,
FileShare.ReadWrite))
{
using (var stream = file.OpenReadStream())
{
await stream.CopyToAsync(fileStream);
}
}
var uploadedFile = new UploadedFile
{
OriginalName = fileName,
FileName = newFileName,
ContentType = contentType,
Extension = fileExtension,
Path = filePath,
UploadedTime = DateTime.Now,
UploadedBy = "",
};
await _context.UploadedFiles.AddAsync(uploadedFile);
await _context.FileUnits.AddAsync(new FileUnit { FileId = uploadedFile.Id, UnitId = unitId,Uniacid=uniacid,GroupId=groupId});
await _context.SaveChangesAsync();
result.Add(new Tuple<string, Guid, string>(fileName, uploadedFile.Id, filePath));
}
catch
{
continue;
}
}
}
return result;
}
}
}

13
Domain.Service/FileUpload/IFileUploader.cs

@ -0,0 +1,13 @@ @@ -0,0 +1,13 @@
using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;
namespace Domain.Service.FileUpload
{
public interface IFileUploader
{
Task<List<Tuple<string, Guid, string>>> UploadFiles(IFormFileCollection files, int unitId, int uniacid, int groupId);
}
}

4
Domain.Service/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs

@ -0,0 +1,4 @@ @@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")]

23
Domain.Service/obj/Debug/netcoreapp3.1/Domain.Service.AssemblyInfo.cs

@ -0,0 +1,23 @@ @@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// 此代码由工具生成。
// 运行时版本:4.0.30319.42000
//
// 对此文件的更改可能会导致不正确的行为,并且如果
// 重新生成代码,这些更改将会丢失。
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("Domain.Service")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("Domain.Service")]
[assembly: System.Reflection.AssemblyTitleAttribute("Domain.Service")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// 由 MSBuild WriteCodeFragment 类生成。

1
Domain.Service/obj/Debug/netcoreapp3.1/Domain.Service.AssemblyInfoInputs.cache

@ -0,0 +1 @@ @@ -0,0 +1 @@
fe00d636cc876fb31a73eb30a3b8fd0125fb457e

3
Domain.Service/obj/Debug/netcoreapp3.1/Domain.Service.GeneratedMSBuildEditorConfig.editorconfig

@ -0,0 +1,3 @@ @@ -0,0 +1,3 @@
is_global = true
build_property.RootNamespace = Domain.Service
build_property.ProjectDir = C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Domain.Service\

BIN
Domain.Service/obj/Debug/netcoreapp3.1/Domain.Service.assets.cache

Binary file not shown.

BIN
Domain.Service/obj/Debug/netcoreapp3.1/Domain.Service.csproj.AssemblyReference.cache

Binary file not shown.

0
Domain.Service/obj/Debug/netcoreapp3.1/Domain.Service.csproj.BuildWithSkipAnalyzers

0
Domain.Service/obj/Debug/netcoreapp3.1/Domain.Service.csproj.CopyComplete

1
Domain.Service/obj/Debug/netcoreapp3.1/Domain.Service.csproj.CoreCompileInputs.cache

@ -0,0 +1 @@ @@ -0,0 +1 @@
f172fb1cf122424bdb275518683c55c9cce07503

19
Domain.Service/obj/Debug/netcoreapp3.1/Domain.Service.csproj.FileListAbsolute.txt

@ -0,0 +1,19 @@ @@ -0,0 +1,19 @@
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Domain.Service\bin\Debug\netcoreapp3.1\Domain.Service.deps.json
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Domain.Service\bin\Debug\netcoreapp3.1\Domain.Service.dll
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Domain.Service\bin\Debug\netcoreapp3.1\Domain.Service.pdb
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Domain.Service\bin\Debug\netcoreapp3.1\Domain.dll
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Domain.Service\bin\Debug\netcoreapp3.1\Domain.Shared.dll
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Domain.Service\bin\Debug\netcoreapp3.1\EntityFramework.dll
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Domain.Service\bin\Debug\netcoreapp3.1\Infrastructure.dll
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Domain.Service\bin\Debug\netcoreapp3.1\EntityFramework.pdb
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Domain.Service\bin\Debug\netcoreapp3.1\Infrastructure.pdb
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Domain.Service\bin\Debug\netcoreapp3.1\Domain.pdb
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Domain.Service\bin\Debug\netcoreapp3.1\Domain.Shared.pdb
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Domain.Service\obj\Debug\netcoreapp3.1\Domain.Service.csproj.AssemblyReference.cache
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Domain.Service\obj\Debug\netcoreapp3.1\Domain.Service.GeneratedMSBuildEditorConfig.editorconfig
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Domain.Service\obj\Debug\netcoreapp3.1\Domain.Service.AssemblyInfoInputs.cache
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Domain.Service\obj\Debug\netcoreapp3.1\Domain.Service.AssemblyInfo.cs
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Domain.Service\obj\Debug\netcoreapp3.1\Domain.Service.csproj.CoreCompileInputs.cache
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Domain.Service\obj\Debug\netcoreapp3.1\Domain.Service.csproj.CopyComplete
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Domain.Service\obj\Debug\netcoreapp3.1\Domain.Service.dll
C:\Users\NineFishes\Desktop\FireStaionDocuments-master\Domain.Service\obj\Debug\netcoreapp3.1\Domain.Service.pdb

BIN
Domain.Service/obj/Debug/netcoreapp3.1/Domain.Service.dll

Binary file not shown.

BIN
Domain.Service/obj/Debug/netcoreapp3.1/Domain.Service.pdb

Binary file not shown.

336
Domain.Service/obj/Domain.Service.csproj.nuget.dgspec.json

@ -0,0 +1,336 @@ @@ -0,0 +1,336 @@
{
"format": 1,
"restore": {
"C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Domain.Service\\Domain.Service.csproj": {}
},
"projects": {
"C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Domain.Service\\Domain.Service.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Domain.Service\\Domain.Service.csproj",
"projectName": "Domain.Service",
"projectPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Domain.Service\\Domain.Service.csproj",
"packagesPath": "C:\\Users\\NineFishes\\.nuget\\packages\\",
"outputPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Domain.Service\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\NineFishes\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://www.nuget.org/api/v2/": {}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"projectReferences": {
"C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\EntityFramework\\EntityFramework.csproj": {
"projectPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\EntityFramework\\EntityFramework.csproj"
},
"C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Infrastructure\\Infrastructure.csproj": {
"projectPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Infrastructure\\Infrastructure.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.202\\RuntimeIdentifierGraph.json"
}
}
},
"C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Domain.Shared\\Domain.Shared.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Domain.Shared\\Domain.Shared.csproj",
"projectName": "Domain.Shared",
"projectPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Domain.Shared\\Domain.Shared.csproj",
"packagesPath": "C:\\Users\\NineFishes\\.nuget\\packages\\",
"outputPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Domain.Shared\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\NineFishes\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://www.nuget.org/api/v2/": {}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.202\\RuntimeIdentifierGraph.json"
}
}
},
"C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Domain\\Domain.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Domain\\Domain.csproj",
"projectName": "Domain",
"projectPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Domain\\Domain.csproj",
"packagesPath": "C:\\Users\\NineFishes\\.nuget\\packages\\",
"outputPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Domain\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\NineFishes\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://www.nuget.org/api/v2/": {}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"projectReferences": {
"C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Domain.Shared\\Domain.Shared.csproj": {
"projectPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Domain.Shared\\Domain.Shared.csproj"
},
"C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Infrastructure\\Infrastructure.csproj": {
"projectPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Infrastructure\\Infrastructure.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.202\\RuntimeIdentifierGraph.json"
}
}
},
"C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\EntityFramework\\EntityFramework.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\EntityFramework\\EntityFramework.csproj",
"projectName": "EntityFramework",
"projectPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\EntityFramework\\EntityFramework.csproj",
"packagesPath": "C:\\Users\\NineFishes\\.nuget\\packages\\",
"outputPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\EntityFramework\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\NineFishes\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://www.nuget.org/api/v2/": {}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"projectReferences": {
"C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Domain\\Domain.csproj": {
"projectPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Domain\\Domain.csproj"
}
}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"dependencies": {
"Microsoft.EntityFrameworkCore": {
"target": "Package",
"version": "[5.0.7, )"
},
"Pomelo.EntityFrameworkCore.MySql": {
"target": "Package",
"version": "[5.0.1, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.202\\RuntimeIdentifierGraph.json"
}
}
},
"C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Infrastructure\\Infrastructure.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Infrastructure\\Infrastructure.csproj",
"projectName": "Infrastructure",
"projectPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Infrastructure\\Infrastructure.csproj",
"packagesPath": "C:\\Users\\NineFishes\\.nuget\\packages\\",
"outputPath": "C:\\Users\\NineFishes\\Desktop\\FireStaionDocuments-master\\Infrastructure\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\NineFishes\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://www.nuget.org/api/v2/": {}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"dependencies": {
"Autofac": {
"target": "Package",
"version": "[6.2.0, )"
},
"Autofac.Extensions.DependencyInjection": {
"target": "Package",
"version": "[7.1.0, )"
},
"Autofac.Extras.DynamicProxy": {
"target": "Package",
"version": "[6.0.0, )"
},
"Microsoft.AspNetCore.Mvc.Core": {
"target": "Package",
"version": "[2.2.5, )"
},
"Microsoft.Extensions.DependencyModel": {
"target": "Package",
"version": "[5.0.0, )"
},
"NPOI": {
"target": "Package",
"version": "[2.5.3, )"
},
"Newtonsoft.Json": {
"target": "Package",
"version": "[13.0.1, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\6.0.202\\RuntimeIdentifierGraph.json"
}
}
}
}
}

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save