Merge branch 'master' of https://tfs.nuvolar.hu:8443/tfs/AtomERP/_git/WorkFlowCheck
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
{
|
{
|
||||||
"ConnectionStrings": {
|
"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": {
|
"Logging": {
|
||||||
"LogLevel": {
|
"LogLevel": {
|
||||||
|
|||||||
@@ -44,7 +44,8 @@ namespace WorkFlowCheck.BL.DocumentGenerator
|
|||||||
#if !DEBUG
|
#if !DEBUG
|
||||||
FileName = "e:\\LibreOffice\\program\\soffice", // LibreOffice parancs
|
FileName = "e:\\LibreOffice\\program\\soffice", // LibreOffice parancs
|
||||||
#else
|
#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
|
#endif
|
||||||
Arguments = $"--headless --convert-to pdf \"{tempWordPath}\" --outdir \"{pdfDirectory}",
|
Arguments = $"--headless --convert-to pdf \"{tempWordPath}\" --outdir \"{pdfDirectory}",
|
||||||
RedirectStandardOutput = true,
|
RedirectStandardOutput = true,
|
||||||
|
|||||||
@@ -413,8 +413,8 @@ namespace WorkFlowCheck.BL.Services
|
|||||||
}
|
}
|
||||||
await _dbContext.SaveChangesAsync();
|
await _dbContext.SaveChangesAsync();
|
||||||
retVal = _mapper.Map<CheckListHeaderDTO>(res);
|
retVal = _mapper.Map<CheckListHeaderDTO>(res);
|
||||||
|
string Answer = "";
|
||||||
if (NeedBlocking(checkListHeaderDTO))
|
if (NeedBlocking(checkListHeaderDTO, out Answer))
|
||||||
{
|
{
|
||||||
/// TODO: blokkolás miatt
|
/// TODO: blokkolás miatt
|
||||||
res.CheckStatus = CheckStatus.Blocked;
|
res.CheckStatus = CheckStatus.Blocked;
|
||||||
@@ -429,7 +429,7 @@ namespace WorkFlowCheck.BL.Services
|
|||||||
var deviceMessageDTO = new DeviceMessageDTO()
|
var deviceMessageDTO = new DeviceMessageDTO()
|
||||||
{
|
{
|
||||||
IsReaded = false,
|
IsReaded = false,
|
||||||
Message = $"Ellenőrző lap blokkolva! [{checkListHeaderDTO.DocumentNumber}]",
|
Message = $"Ellenőrző lap blokkolva! [{checkListHeaderDTO.DocumentNumber}]\n({Answer})",
|
||||||
SendDate = DateTime.UtcNow,
|
SendDate = DateTime.UtcNow,
|
||||||
ExtraDataJSON = "",
|
ExtraDataJSON = "",
|
||||||
RoleId = item.ParentId,
|
RoleId = item.ParentId,
|
||||||
@@ -474,9 +474,10 @@ namespace WorkFlowCheck.BL.Services
|
|||||||
|
|
||||||
return retVal;
|
return retVal;
|
||||||
}
|
}
|
||||||
private bool NeedBlocking(CheckListHeaderDTO checkListHeaderDTO)
|
private bool NeedBlocking(CheckListHeaderDTO checkListHeaderDTO, out string Answer)
|
||||||
{
|
{
|
||||||
var retVal = false;
|
var retVal = false;
|
||||||
|
Answer = "";
|
||||||
if (checkListHeaderDTO.CheckListRowDTO != null && checkListHeaderDTO.CheckListRowDTO.Count > 0)
|
if (checkListHeaderDTO.CheckListRowDTO != null && checkListHeaderDTO.CheckListRowDTO.Count > 0)
|
||||||
{
|
{
|
||||||
var checkListRows = checkListHeaderDTO.CheckListRowDTO;
|
var checkListRows = checkListHeaderDTO.CheckListRowDTO;
|
||||||
@@ -486,6 +487,7 @@ namespace WorkFlowCheck.BL.Services
|
|||||||
{
|
{
|
||||||
if (row.CheckListTemplateRowDTO != null)
|
if (row.CheckListTemplateRowDTO != null)
|
||||||
{
|
{
|
||||||
|
Answer = row.CheckListTemplateRowDTO.OperationDescription;
|
||||||
if (row.CheckListTemplateRowDTO.AnswerType == "PI-N" && row.Answer == "Igen")
|
if (row.CheckListTemplateRowDTO.AnswerType == "PI-N" && row.Answer == "Igen")
|
||||||
{
|
{
|
||||||
retVal = true;
|
retVal = true;
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ namespace WorkFlowCheck.Web.Helpers
|
|||||||
public static class SystemHelper
|
public static class SystemHelper
|
||||||
{
|
{
|
||||||
public static string DatabaseName = "";
|
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)
|
public async static Task GetAPIInfoAsync(IConfiguration configuration)
|
||||||
{
|
{
|
||||||
|
|||||||
+1
-1
@@ -86,7 +86,7 @@ namespace WorkFlowCheck.Web.Pages.CheckList.CheckListHeader
|
|||||||
{
|
{
|
||||||
foreach (var item in CheckListHeaderDTO.CheckListRowDTO)
|
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)
|
if (item.Photo != null && item.Photo.Length > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user