Jóváhagyási BUGFIX
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"ConnectionStrings": {
|
||||
"DefaultConnection": "Data Source=WS2016DC\\SQLEXPRESS;Initial Catalog=WFC;Integrated Security=True;Connect Timeout=30;Encrypt=False;Trust Server Certificate=False;Application Intent=ReadWrite;Multi Subnet Failover=False"
|
||||
"DefaultConnection": "Data Source=NSINB-37\\WFC;Initial Catalog=WFC;Integrated Security=True;Connect Timeout=30;Encrypt=False;Trust Server Certificate=False;Application Intent=ReadWrite;Multi Subnet Failover=False"
|
||||
},
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
|
||||
@@ -130,7 +130,7 @@ namespace WorkFlowCheck.BL.Services
|
||||
if (checkListHeader != null)
|
||||
{
|
||||
checkListHeader.Description = checkListHeaderDTO.Description;
|
||||
checkListHeader.ShortName= checkListHeaderDTO.ShortName;
|
||||
checkListHeader.ShortName = checkListHeaderDTO.ShortName;
|
||||
|
||||
await _dbContext.SaveChangesAsync();
|
||||
retVal = _mapper.Map<CheckListHeaderDTO>(checkListHeader);
|
||||
@@ -218,9 +218,14 @@ namespace WorkFlowCheck.BL.Services
|
||||
|
||||
try
|
||||
{
|
||||
var user = await _dbContext.Users
|
||||
.Where(w => w.Id == userid)
|
||||
.FirstOrDefaultAsync();
|
||||
if (user == null) return false;
|
||||
|
||||
var checkListHeader = await _dbContext.CheckListHeaders
|
||||
.Where(w => w.Id == id && w.CheckStatus == CheckStatus.Sent)
|
||||
.FirstOrDefaultAsync();
|
||||
.Where(w => w.Id == id && w.CheckStatus == CheckStatus.Sent)
|
||||
.FirstOrDefaultAsync();
|
||||
|
||||
if (checkListHeader != null)
|
||||
{
|
||||
@@ -230,7 +235,7 @@ namespace WorkFlowCheck.BL.Services
|
||||
|
||||
checkListHeader.DateExecution = DateTime.Now;
|
||||
|
||||
Log.ForContext("TAG", "BusinessFlow").Warning($"Ellenőrzési lap státuszváltozása, jóváhagyás: Ellenőrzés:{checkListHeader.DocumentNumber}, Felhasználó: {checkListHeader.AcceptUser.LastName} {checkListHeader.AcceptUser.FirstName}");
|
||||
Log.ForContext("TAG", "BusinessFlow").Warning($"Ellenőrzési lap státuszváltozása, jóváhagyás: Ellenőrzés:{checkListHeader.DocumentNumber}, Felhasználó: {user.LastName} {user.FirstName}");
|
||||
await _dbContext.SaveChangesAsync();
|
||||
|
||||
var pdf = await CreateCheckListHeaderPDFAsync(id);
|
||||
|
||||
@@ -15,6 +15,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WorkFlowCheck.BL", "WorkFlo
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WorkFlowCheck.Common", "WorkFlowCheck.Common\WorkFlowCheck.Common.csproj", "{CBB000AD-E96B-4A4E-A037-4650EFECBB11}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WorkFlowCheck.Web", "WorkFlowCheck.Web\WorkFlowCheck.Web.csproj", "{F4D05A26-A90F-6E65-8C1F-24D98D6F3AA0}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
@@ -47,6 +49,10 @@ Global
|
||||
{CBB000AD-E96B-4A4E-A037-4650EFECBB11}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{CBB000AD-E96B-4A4E-A037-4650EFECBB11}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{CBB000AD-E96B-4A4E-A037-4650EFECBB11}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{F4D05A26-A90F-6E65-8C1F-24D98D6F3AA0}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{F4D05A26-A90F-6E65-8C1F-24D98D6F3AA0}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{F4D05A26-A90F-6E65-8C1F-24D98D6F3AA0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{F4D05A26-A90F-6E65-8C1F-24D98D6F3AA0}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
|
||||
Reference in New Issue
Block a user