Update gestione path relativo x tmp...

This commit is contained in:
Samuele E. Locatelli
2019-11-30 11:04:21 +01:00
parent 0e8a044185
commit 92bfd5a12a
4 changed files with 6 additions and 5 deletions
+1 -1
View File
@@ -142,7 +142,7 @@ namespace CMS_SC
DtProxy.man.taFRGL.insertQuery(OpAuth.currAuth.email, idxDossier, DateTime.Now, currDoss.Matricola, currDoss.FaseAct, currDoss.RevAct);
logger.lg.scriviLog($"Registrato record FRGL: {OpAuth.currAuth.email} | Dossiers {idxDossier} - {currDoss.Matricola}");
// step 1: genera directory lavoro
string currOutPath = $"\\tmp\\{idxDossier}";
string currOutPath = $"{memLayer.ML.CRS("urlTemp")}{idxDossier}";
logger.lg.scriviLog($"Puntamento alla folder {currOutPath}");
fileMover.obj.setDirectoryMapPath(currOutPath);
fileMover.obj.checkDir();
+1
View File
@@ -84,6 +84,7 @@
<!--area allegati -->
<add key="urlSchede" value="~/Files/Schede/{0}" />
<add key="mergeReport2Pdf" value="true" />
<add key="urlTemp" value="./tmp/" />
<!--area reports-->
<add key="ReportRemoteRender" value="true" />
<add key="enableQueue" value="false" />
@@ -97,13 +97,13 @@ namespace CMS_SC.WebUserControls
byte[] bytes = localReport.Render("PDF", null, out mimeType, out encoding, out extension, out streamIds, out warnings);
// se è un percorso virtuale faccio mapPath...
string FilePath = "";
if (outFilePath.IndexOf("/") < 0)
if (Path.IsPathRooted(outFilePath))
{
FilePath = Server.MapPath(outFilePath);
FilePath = outFilePath;
}
else
{
FilePath = outFilePath;
FilePath = Server.MapPath(outFilePath);
}
using (FileStream fs = new FileStream(FilePath, FileMode.Create))
{
Vendored
+1 -1
View File
@@ -14,7 +14,7 @@ pipeline {
/* calcolo numero versione... diverso x branch MASTER/DEVELOP */
script {
withEnv(['NEXT_BUILD_NUMBER=4270']) {
withEnv(['NEXT_BUILD_NUMBER=4271']) {
// env.versionNumber = VersionNumber(versionNumberString : '3.3.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true)
env.versionNumber = VersionNumber(versionNumberString : '3.3.${BUILD_DATE_FORMATTED, "yyMM"}.${BUILDS_ALL_TIME}', projectStartDate : '2006-01-01', skipFailedBuilds: true, overrideBuildsAllTime: '${NEXT_BUILD_NUMBER}')
env.APP_NAME = 'CMS-SC'