Bugfix PRE72H Excel scan and better logging output for SEND/REC HIS-Nord

This commit is contained in:
Daniel Schick 2023-02-14 07:50:17 +01:00
parent 13472ebe91
commit c04099edb2
3 changed files with 6 additions and 6 deletions

View File

@ -295,7 +295,7 @@ namespace ENI2.Excel
if (int.TryParse(val, out int parsed)) if (int.TryParse(val, out int parsed))
{ {
if ((parsed < 4) && (parsed > 0)) if ((parsed < 4) && (parsed > 0))
result = (byte)parsed; result = (byte)(parsed - 1);
} }
} }
} }
@ -362,7 +362,7 @@ namespace ENI2.Excel
if (int.TryParse(val, out int parsed)) if (int.TryParse(val, out int parsed))
{ {
if ((parsed < 4) && (parsed > 0)) if ((parsed < 4) && (parsed > 0))
result = (byte)parsed; result = (byte)(parsed - 1);
} }
} }
} }

View File

@ -176,7 +176,7 @@ namespace SendNSWMessageService
if(message.HIS == Message.NSWProvider.UNDEFINED) if(message.HIS == Message.NSWProvider.UNDEFINED)
message.HIS = core.InitialHIS; message.HIS = core.InitialHIS;
_log.InfoFormat("Sending {0} message to {1}", message.MessageNotificationClass.ToString(), message.HIS.ToString()); _log.InfoFormat("Sending {0} message {1} to {2}", message.MessageNotificationClass.ToString(), message.Id, message.HIS.ToString());
// switch über passendes HIS / Schnittstelle // switch über passendes HIS / Schnittstelle
switch (message.HIS) switch (message.HIS)

View File

@ -248,8 +248,8 @@ namespace bsmd.hisnord
DBManager.Instance.Save(messageError); DBManager.Instance.Save(messageError);
} }
_log.InfoFormat("Saving Message {0} Status {1} InternalStatus {2}", _log.InfoFormat("{0} message {1} returned: Status {2} InternalStatus {3}",
aMessage.Id, aMessage.Status, aMessage.InternalStatus); aMessage.MessageNotificationClassDisplay, aMessage.Id, aMessage.Status, aMessage.InternalStatus);
DBManager.Instance.Save(aMessage); DBManager.Instance.Save(aMessage);
@ -260,7 +260,7 @@ namespace bsmd.hisnord
if (aMessage.InternalStatus == Message.BSMDStatus.SENT) if (aMessage.InternalStatus == Message.BSMDStatus.SENT)
{ {
aMessageStillInSENTstate = true; aMessageStillInSENTstate = true;
_log.InfoFormat("message {0} {1} still in SENT state", aMessage.Id, aMessage.MessageNotificationClassDisplay); _log.DebugFormat("message {0} {1} still in SENT state", aMessage.Id, aMessage.MessageNotificationClassDisplay);
} }
} }