This commit is contained in:
2025-06-29 13:30:38 +02:00
5 changed files with 13 additions and 9 deletions
@@ -1,6 +1,7 @@
{
"ConnectionStrings": {
"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"
//"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"
"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"
},
"Logging": {
"LogLevel": {
@@ -44,7 +44,8 @@ namespace WorkFlowCheck.BL.DocumentGenerator
#if !DEBUG
FileName = "e:\\LibreOffice\\program\\soffice", // LibreOffice parancs
#else
FileName = "c:\\Program Files\\LibreOffice\\program\\soffice", // LibreOffice parancs
//FileName = "c:\\Program Files\\LibreOffice\\program\\soffice", // LibreOffice parancs
FileName = "e:\\LibreOffice\\program\\soffice", // LibreOffice parancs
#endif
Arguments = $"--headless --convert-to pdf \"{tempWordPath}\" --outdir \"{pdfDirectory}",
RedirectStandardOutput = true,
+7 -5
View File
@@ -413,8 +413,8 @@ namespace WorkFlowCheck.BL.Services
}
await _dbContext.SaveChangesAsync();
retVal = _mapper.Map<CheckListHeaderDTO>(res);
if (NeedBlocking(checkListHeaderDTO))
string Answer = "";
if (NeedBlocking(checkListHeaderDTO, out Answer))
{
/// TODO: blokkolás miatt
res.CheckStatus = CheckStatus.Blocked;
@@ -429,7 +429,7 @@ namespace WorkFlowCheck.BL.Services
var deviceMessageDTO = new DeviceMessageDTO()
{
IsReaded = false,
Message = $"Ellenőrző lap blokkolva! [{checkListHeaderDTO.DocumentNumber}]",
Message = $"Ellenőrző lap blokkolva! [{checkListHeaderDTO.DocumentNumber}]\n({Answer})",
SendDate = DateTime.UtcNow,
ExtraDataJSON = "",
RoleId = item.ParentId,
@@ -451,7 +451,7 @@ namespace WorkFlowCheck.BL.Services
}
res.CheckStatus = CheckStatus.InProgress;
if (CheckIfLastReached(checkListHeaderDTO))
{
/// TODO: most kell a CheckStatust állítani és menjen üzenet !
@@ -474,9 +474,10 @@ namespace WorkFlowCheck.BL.Services
return retVal;
}
private bool NeedBlocking(CheckListHeaderDTO checkListHeaderDTO)
private bool NeedBlocking(CheckListHeaderDTO checkListHeaderDTO, out string Answer)
{
var retVal = false;
Answer = "";
if (checkListHeaderDTO.CheckListRowDTO != null && checkListHeaderDTO.CheckListRowDTO.Count > 0)
{
var checkListRows = checkListHeaderDTO.CheckListRowDTO;
@@ -486,6 +487,7 @@ namespace WorkFlowCheck.BL.Services
{
if (row.CheckListTemplateRowDTO != null)
{
Answer = row.CheckListTemplateRowDTO.OperationDescription;
if (row.CheckListTemplateRowDTO.AnswerType == "PI-N" && row.Answer == "Igen")
{
retVal = true;
@@ -7,7 +7,7 @@ namespace WorkFlowCheck.Web.Helpers
public static class SystemHelper
{
public static string DatabaseName = "";
public static string ProgramVersion = "v1.1.027";
public static string ProgramVersion = "v1.1.028";
public async static Task GetAPIInfoAsync(IConfiguration configuration)
{
@@ -86,7 +86,7 @@ namespace WorkFlowCheck.Web.Pages.CheckList.CheckListHeader
{
foreach (var item in CheckListHeaderDTO.CheckListRowDTO)
{
if (item.CheckListTemplateRowDTO?.AnswerType == "P")
if (item.CheckListTemplateRowDTO?.AnswerType == "P" || item.CheckListTemplateRowDTO?.AnswerType == "PN")
{
if (item.Photo != null && item.Photo.Length > 0)
{