Einige Bugs beim Go-Live gefixt
This commit is contained in:
parent
3dfb5baaa4
commit
ac3788d4c9
@ -113,7 +113,8 @@ namespace bsmd.dbh
|
|||||||
_log.InfoFormat("sent {0}", sentFile);
|
_log.InfoFormat("sent {0}", sentFile);
|
||||||
string onlyFileName = Path.GetFileName(sentFile);
|
string onlyFileName = Path.GetFileName(sentFile);
|
||||||
string moveTarget = Path.Combine(Properties.Settings.Default.OutgoingArchiveFolder, onlyFileName);
|
string moveTarget = Path.Combine(Properties.Settings.Default.OutgoingArchiveFolder, onlyFileName);
|
||||||
File.Move(sentFile, moveTarget);
|
File.Copy(sentFile, moveTarget, true);
|
||||||
|
File.Delete(sentFile);
|
||||||
}
|
}
|
||||||
|
|
||||||
// receive files from remote host
|
// receive files from remote host
|
||||||
@ -128,13 +129,15 @@ namespace bsmd.dbh
|
|||||||
{
|
{
|
||||||
_log.ErrorFormat("Error reading input file {0}", justFilename);
|
_log.ErrorFormat("Error reading input file {0}", justFilename);
|
||||||
string errorPath = Path.Combine(Properties.Settings.Default.IncomingErrorFolder, justFilename);
|
string errorPath = Path.Combine(Properties.Settings.Default.IncomingErrorFolder, justFilename);
|
||||||
File.Move(inputFile, errorPath);
|
File.Copy(inputFile, errorPath, true);
|
||||||
|
File.Delete(inputFile);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_log.InfoFormat("Incoming file {0} processed", justFilename);
|
_log.InfoFormat("Incoming file {0} processed", justFilename);
|
||||||
string archivePath = Path.Combine(Properties.Settings.Default.IncomingArchiveFolder, justFilename);
|
string archivePath = Path.Combine(Properties.Settings.Default.IncomingArchiveFolder, justFilename);
|
||||||
File.Move(inputFile, archivePath);
|
File.Copy(inputFile, archivePath, true);
|
||||||
|
File.Delete(inputFile);
|
||||||
}
|
}
|
||||||
// remote Dateien löschen
|
// remote Dateien löschen
|
||||||
bsmd.dakosy.SFtp.RemoveProcessedFile(Properties.Settings.Default.RemoteOutgoingFolder, Path.GetFileName(inputFile), Properties.Settings.Default.SFTPSessionName);
|
bsmd.dakosy.SFtp.RemoveProcessedFile(Properties.Settings.Default.RemoteOutgoingFolder, Path.GetFileName(inputFile), Properties.Settings.Default.SFTPSessionName);
|
||||||
|
|||||||
@ -1662,10 +1662,13 @@ namespace bsmd.dbh
|
|||||||
rwr.IdentificationNumber = was_rcpt.IdentificationNumber;
|
rwr.IdentificationNumber = was_rcpt.IdentificationNumber;
|
||||||
rwr.PortReceptionFacilityName = was_rcpt.PortReceptionFacilityName;
|
rwr.PortReceptionFacilityName = was_rcpt.PortReceptionFacilityName;
|
||||||
rwr.PortReceptionFacilityProviderName = was_rcpt.PortReceptionFacilityProviderName;
|
rwr.PortReceptionFacilityProviderName = was_rcpt.PortReceptionFacilityProviderName;
|
||||||
rwr.TreatmentFacilityProvider = new string[was_rcpt.TreatmentFacilityProvider.Count];
|
if (was_rcpt.TreatmentFacilityProvider.Count > 0)
|
||||||
for (int j = 0; j < was_rcpt.TreatmentFacilityProvider.Count; j++)
|
|
||||||
{
|
{
|
||||||
rwr.TreatmentFacilityProvider[j] = was_rcpt.TreatmentFacilityProvider[j].TreatmentFacilityProviderName;
|
rwr.TreatmentFacilityProvider = new string[was_rcpt.TreatmentFacilityProvider.Count];
|
||||||
|
for (int j = 0; j < was_rcpt.TreatmentFacilityProvider.Count; j++)
|
||||||
|
{
|
||||||
|
rwr.TreatmentFacilityProvider[j] = was_rcpt.TreatmentFacilityProvider[j].TreatmentFacilityProviderName;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (was_rcpt.WasteDeliveryDateFrom.HasValue)
|
if (was_rcpt.WasteDeliveryDateFrom.HasValue)
|
||||||
rwr.WasteDeliveryDateFrom = was_rcpt.WasteDeliveryDateFrom.Value.ToUTCSerializableDateTime();
|
rwr.WasteDeliveryDateFrom = was_rcpt.WasteDeliveryDateFrom.Value.ToUTCSerializableDateTime();
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user