Merge branch 'master' into develop
This commit is contained in:
+6
-4
@@ -5,10 +5,12 @@
|
||||
</startup>
|
||||
<appSettings>
|
||||
<add key="appName" value="LPA" />
|
||||
<add key="serverBaseAddr" value="http://iis01/MP/MAG/" />
|
||||
<add key="serverIp" value="iis01" />
|
||||
<!--<add key="serverBaseAddr" value="http://iis02/NKC/" />
|
||||
<add key="serverIp" value="iis02" />-->
|
||||
<!--<add key="serverBaseAddr" value="http://iis01/MP/MAG/" />
|
||||
<add key="serverIp" value="iis01" />-->
|
||||
<add key="serverBaseAddr" value="http://iis01.egalware.com/NKC/" />
|
||||
<add key="serverIp" value="iis01.egalware.com" />
|
||||
<!--<add key="serverBaseAddr" value="http://iis02.egalware.com/NKC/" />
|
||||
<add key="serverIp" value="iis02.egalware.com" />-->
|
||||
<add key="localReportPath" value="reports" />
|
||||
<add key="localPdfPath" value="pdf" />
|
||||
<add key="_logDir" value="/logs/" />
|
||||
|
||||
@@ -312,8 +312,6 @@
|
||||
<Content Include="Core\Compression\Snappy\lib\win\snappy64.dll" />
|
||||
<Content Include="Core\Compression\Zstandard\lib\win\libzstd.dll" />
|
||||
<Content Include="Resources\SteamWare.ico" />
|
||||
<Content Include="snappy32.dll" />
|
||||
<Content Include="snappy64.dll" />
|
||||
<Content Include="SqlServerTypes\readme.htm" />
|
||||
<Content Include="SqlServerTypes\x64\msvcr120.dll">
|
||||
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
|
||||
|
||||
+12
-4
@@ -642,11 +642,19 @@ namespace LPA
|
||||
{
|
||||
// parto da template base
|
||||
template = item.template;
|
||||
// cerco nel dato da singolo item
|
||||
var templateConf = reportConf.Find(conf => conf.name == item.template);
|
||||
if (reportConf != null)
|
||||
//se non c'è uso quello della cosa...
|
||||
if (string.IsNullOrEmpty(template))
|
||||
{
|
||||
template = templateConf.template;
|
||||
template = confCoda.template;
|
||||
}
|
||||
else
|
||||
{
|
||||
// cerco nel dato da singolo item
|
||||
var templateConf = reportConf.Find(conf => conf.name == item.template);
|
||||
if (reportConf != null)
|
||||
{
|
||||
template = templateConf.template;
|
||||
}
|
||||
}
|
||||
// stampo
|
||||
fatto = rPrint.printReport(template, localReportPath, coda.Value.Printer, item.rdsData, confCoda.deviceInfoParam, true);
|
||||
|
||||
+10
-7
@@ -95,8 +95,10 @@ namespace LPA
|
||||
string dailyDir = $"{baseDir}{localPdfPath}\\{adesso:yyyy}\\{adesso:MM}\\{adesso:dd}\\";
|
||||
string pdfPathName = $"{dailyDir}\\{name}_{adesso:HHmmss}_{adesso:ffff}.{fileNameExtension}";
|
||||
// creo Directory se non c'è
|
||||
fileMover fm = new fileMover(dailyDir, "");
|
||||
fm.checkDir();
|
||||
if (!Directory.Exists(dailyDir))
|
||||
{
|
||||
Directory.CreateDirectory(dailyDir);
|
||||
}
|
||||
Stream stream = new FileStream(pdfPathName, FileMode.Create);
|
||||
m_streams.Add(stream);
|
||||
return stream;
|
||||
@@ -299,16 +301,17 @@ namespace LPA
|
||||
}
|
||||
// ottengo elenco files *.emf
|
||||
fileMover.obj.setDirectory(currPath);
|
||||
FileInfo[] _fis = fileMover.obj.elencoFiles_FI("*.EMF");
|
||||
var _fis = Directory.GetFiles(currPath, "*.EMF");
|
||||
bool fatto = false;
|
||||
foreach (FileInfo _file in _fis)
|
||||
foreach (var _fileName in _fis)
|
||||
{
|
||||
if (_file.CreationTime < DateTime.Now.AddMinutes(-maxAgeMinutes)) // elimino files vecchi...
|
||||
FileInfo file = new FileInfo(_fileName);
|
||||
if (file.CreationTime < DateTime.Now.AddMinutes(-maxAgeMinutes)) // elimino files vecchi...
|
||||
{
|
||||
fatto = fileMover.obj.eliminaFile(_file);
|
||||
fatto = fileMover.obj.eliminaFile(file);
|
||||
if (fatto)
|
||||
{
|
||||
Log.Instance.Info($"Eliminato file {_file.Name}");
|
||||
Log.Instance.Info($"Eliminato file {file.Name}");
|
||||
eliminati++;
|
||||
}
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user