diff --git a/Resources/ChangeLog.html b/Resources/ChangeLog.html
index a0f36b8..4f31fdd 100644
--- a/Resources/ChangeLog.html
+++ b/Resources/ChangeLog.html
@@ -1,6 +1,6 @@
WebDoorCreator - Egalware
- Version: 0.9.2306.0913
+ Version: 0.9.2306.0915
Release note:
-
diff --git a/Resources/VersNum.txt b/Resources/VersNum.txt
index 48f6c68..cb838c9 100644
--- a/Resources/VersNum.txt
+++ b/Resources/VersNum.txt
@@ -1 +1 @@
-0.9.2306.0913
+0.9.2306.0915
diff --git a/Resources/manifest.xml b/Resources/manifest.xml
index bb6a83c..3817a4a 100644
--- a/Resources/manifest.xml
+++ b/Resources/manifest.xml
@@ -1,6 +1,6 @@
-
- 0.9.2306.0913
+ 0.9.2306.0915
http://nexus.steamware.net/repository/SWS/WDC/stable/WDC.UI.zip
http://nexus.steamware.net/repository/SWS/WDC/stable/ChangeLog.html
false
diff --git a/WebDoorCreator.Data/Services/WebDoorCreatorService.cs b/WebDoorCreator.Data/Services/WebDoorCreatorService.cs
index ef17364..320e288 100644
--- a/WebDoorCreator.Data/Services/WebDoorCreatorService.cs
+++ b/WebDoorCreator.Data/Services/WebDoorCreatorService.cs
@@ -1625,18 +1625,7 @@ namespace WebDoorCreator.Data.Services
answ = answ && await OrdersFlushCache();
return dbResult;
}
- ///
- /// Update or add door
- ///
- ///
- ///
- public async Task DoorOpTypeAddRange(List currRec)
- {
- var dbResult = await dbController.DoorOpTypeAddRange(currRec);
- // elimino cache redis dati porta...
- bool answ = await ExecFlushRedisPattern(Constants.rKeyDoorOpType);
- return dbResult;
- }
+
public string EncriptData(string rawData)
{
@@ -2292,7 +2281,41 @@ namespace WebDoorCreator.Data.Services
return doorOpTypesList;
}
+ ///
+ /// Bulk add door op types
+ ///
+ ///
+ ///
+ public async Task DoorOpTypeAddRange(List currRecList)
+ {
+ string rootPathNew = _configuration.GetValue("CompoBaseDirs:NewCompoDir");
+ string rootPathOld = _configuration.GetValue("CompoBaseDirs:CurrCompoDir");
+ var dbResult = await dbController.DoorOpTypeAddRange(currRecList);
+
+ foreach (var item in currRecList)
+ {
+ var pathSplit = item.OpCode.Split("\\");
+ var allDirectories = Directory.GetDirectories(rootPathNew, $"{pathSplit[pathSplit.Length - 3]}\\{pathSplit[pathSplit.Length - 2]}", SearchOption.AllDirectories);
+
+ foreach (string dir in allDirectories)
+ {
+ string dirToCreate = dir.Replace(rootPathNew, rootPathOld);
+ Directory.CreateDirectory(dirToCreate);
+ }
+ var allFiles = Directory.GetFiles(Path.Combine(rootPathNew, pathSplit[pathSplit.Length - 3], pathSplit[pathSplit.Length - 2]), pathSplit.Last(), SearchOption.AllDirectories);
+
+ foreach (string newPath in allFiles)
+ {
+ File.Copy(newPath, newPath.Replace(rootPathNew, rootPathOld), true);
+ }
+ }
+ //$"{pathSplit[pathSplit.Length - 3]}\\{pathSplit[pathSplit.Length - 2]}"
+
+ // elimino cache redis dati porta...
+ bool answ = await ExecFlushRedisPattern(Constants.rKeyDoorOpType);
+ return dbResult;
+ }
public async Task
> ListValuesLuaNgeInsert(DoorOpTypeModel HwTpl)
{
List values = new List();
diff --git a/WebDoorCreator.UI/Pages/TestPage.razor b/WebDoorCreator.UI/Pages/TestPage.razor
index 22439ce..36c27df 100644
--- a/WebDoorCreator.UI/Pages/TestPage.razor
+++ b/WebDoorCreator.UI/Pages/TestPage.razor
@@ -139,6 +139,7 @@
}
protected async Task scanB()
{
+ tempDOT.Clear();
tempDOT = await WDCService.scanAndCompare();
}
diff --git a/WebDoorCreator.UI/WebDoorCreator.UI.csproj b/WebDoorCreator.UI/WebDoorCreator.UI.csproj
index a38d00b..dc2b1a8 100644
--- a/WebDoorCreator.UI/WebDoorCreator.UI.csproj
+++ b/WebDoorCreator.UI/WebDoorCreator.UI.csproj
@@ -3,7 +3,7 @@
net6.0
enable
- 0.9.2306.0913
+ 0.9.2306.0915
enable
aspnet-WebDoorCreator.UI-dfe95fed-1398-4144-bd43-8b3a765d6608