diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 35dea986..69308651 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -135,6 +135,19 @@ SPEC:build:
script:
- dotnet build $env:APP_NAME/$env:APP_NAME.csproj
+INVE:build:
+ stage: build
+ tags:
+ - win
+ variables:
+ APP_NAME: MP.INVE
+ SOL_NAME: MP-INVE
+ before_script:
+ - *nuget-fix
+ - dotnet restore "$env:SOL_NAME.sln"
+ script:
+ - dotnet build $env:APP_NAME/$env:APP_NAME.csproj
+
# WAMON:build:
# stage: build
# tags:
@@ -246,6 +259,23 @@ SPEC:test:
script:
- dotnet test $env:APP_NAME/$env:APP_NAME.csproj
+INVE:test:
+ stage: test
+ tags:
+ - win
+ variables:
+ APP_NAME: MP.INVE
+ SOL_NAME: MP-INVE
+ before_script:
+ - *nuget-fix
+ - dotnet restore "$env:SOL_NAME.sln"
+ only:
+ - develop
+ needs: ["INVE:build"]
+ script:
+ - dotnet test $env:APP_NAME/$env:APP_NAME.csproj
+
+
LAND:IIS01:deploy:
stage: deploy
tags:
@@ -331,6 +361,24 @@ SPEC:IIS01:deploy:
- dotnet build $env:APP_NAME/$env:APP_NAME.csproj
- dotnet publish -p:PublishProfile=IIS01.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true -p:verbosity=quiet $env:APP_NAME/$env:APP_NAME.csproj
+INVE:IIS01:deploy:
+ stage: deploy
+ tags:
+ - win
+ variables:
+ APP_NAME: MP.INVE
+ SOL_NAME: MP-INVE
+ before_script:
+ - *nuget-fix
+ - dotnet restore "$env:SOL_NAME.sln"
+ only:
+ - develop
+ needs: ["INVE:test"]
+ script:
+ - dotnet build $env:APP_NAME/$env:APP_NAME.csproj
+ - dotnet publish -p:PublishProfile=IIS01.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true -p:verbosity=quiet $env:APP_NAME/$env:APP_NAME.csproj
+
+
LAND:IIS02:deploy:
stage: deploy
tags:
@@ -421,6 +469,25 @@ SPEC:IIS02:deploy:
- dotnet publish -p:PublishProfile=IIS02.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true -p:verbosity=quiet $env:APP_NAME/$env:APP_NAME.csproj
- dotnet publish -p:PublishProfile=IIS03.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true -p:verbosity=quiet $env:APP_NAME/$env:APP_NAME.csproj
+INVE:IIS02:deploy:
+ stage: deploy
+ tags:
+ - win
+ variables:
+ APP_NAME: MP.INVE
+ SOL_NAME: MP-INVE
+ before_script:
+ - *nuget-fix
+ - dotnet restore "$env:SOL_NAME.sln"
+ only:
+ - master
+ needs: ["INVE:build"]
+ script:
+ - dotnet build $env:APP_NAME/$env:APP_NAME.csproj
+ - dotnet publish -p:PublishProfile=IIS02.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true -p:verbosity=quiet $env:APP_NAME/$env:APP_NAME.csproj
+ - dotnet publish -p:PublishProfile=IIS03.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release -p:username=jenkins -p:Password=viadante16 -p:AllowUntrustedCertificate=true -p:verbosity=quiet $env:APP_NAME/$env:APP_NAME.csproj
+
+
LAND:installer:
stage: installer
tags:
@@ -531,6 +598,28 @@ SPEC:installer:
- *hashBuild
- *nexusUpload
+INVE:installer:
+ stage: installer
+ tags:
+ - win
+ variables:
+ APP_NAME: MP.INVE
+ SOL_NAME: MP-INVE
+ NEXUS_PATH: MP-INVE
+ before_script:
+ - *nuget-fix
+ - dotnet restore "$env:SOL_NAME.sln"
+ only:
+ - develop
+ - master
+ needs: ["INVE:build"]
+ script:
+ - dotnet build $env:APP_NAME/$env:APP_NAME.csproj
+ - dotnet publish -p:PublishProfile=IISProfile.pubxml -p:RunCodeAnalysis=false -p:Configuration=Release $env:APP_NAME/$env:APP_NAME.csproj -o:publish -p:verbosity=quiet
+ # qui il deploy su nexus...
+ - *hashBuild
+ - *nexusUpload
+
LAND:release:
stage: release
tags:
@@ -652,3 +741,27 @@ SPEC:release:
- dotnet build $env:APP_NAME/$env:APP_NAME.csproj
- dotnet publish -c Release -o ./publish $env:APP_NAME/$env:APP_NAME.csproj -p:verbosity=quiet
+
+INVE:release:
+ stage: release
+ tags:
+ - win
+ variables:
+ APP_NAME: MP.INVE
+ SOL_NAME: MP-INVE
+ NEXUS_PATH: MP-INVE
+ before_script:
+ - *nuget-fix
+ - dotnet restore "$env:SOL_NAME.sln"
+ only:
+ - tags
+ except:
+ - branches
+ needs: ["INVE:build"]
+ artifacts:
+ paths:
+ - publish/
+ script:
+ - dotnet build $env:APP_NAME/$env:APP_NAME.csproj
+ - dotnet publish -c Release -o ./publish $env:APP_NAME/$env:APP_NAME.csproj -p:verbosity=quiet
+
diff --git a/MP.Data/Controllers/MpInveController.cs b/MP.Data/Controllers/MpInveController.cs
index e6c65cb3..cae8eef3 100644
--- a/MP.Data/Controllers/MpInveController.cs
+++ b/MP.Data/Controllers/MpInveController.cs
@@ -125,6 +125,42 @@ namespace MP.Data.Controllers
return fatto;
}
+ ///
+ /// modifica di un record magazzino
+ ///
+ ///
+ public async Task UpdateMag(AnagMagModel magRec)
+ {
+ bool fatto = false;
+ using (var dbCtx = new MoonPro_InveContext(_configuration))
+ {
+ try
+ {
+ var dbResult =
+ dbCtx
+ .DbAnagMag
+ .AsNoTracking()
+ .Where(x => x.MagID == magRec.MagID)
+ .FirstOrDefault();
+ if (dbResult != null)
+ {
+ if (dbResult.DescMag != magRec.DescMag)
+ {
+ dbResult.DescMag = magRec.DescMag.ToUpper();
+ dbCtx.Entry(dbResult).State = EntityState.Modified;
+ }
+ }
+ await dbCtx.SaveChangesAsync();
+ fatto = true;
+ }
+ catch (Exception exc)
+ {
+ Log.Error($"Eccezione durante UpdateMag{Environment.NewLine}{exc}");
+ }
+ }
+ return fatto;
+ }
+
///
/// delete magazzino
///
diff --git a/MP.INVE/Components/InveSessionList.razor b/MP.INVE/Components/InveSessionList.razor
index d162040c..9901e34b 100644
--- a/MP.INVE/Components/InveSessionList.razor
+++ b/MP.INVE/Components/InveSessionList.razor
@@ -1,75 +1,78 @@
-
-@if (reqNew)
+@if (reqNew)
{
-