Version 5.0.4, alles neu ausgeliefert
This commit is contained in:
parent
8bddcb3af1
commit
09c4e38513
@ -26,12 +26,12 @@
|
||||
<value>1000</value>
|
||||
</setting>
|
||||
<setting name="LockingServerAddress" serializeAs="String">
|
||||
<!--value>http://192.168.2.4/LockingService/LockingService.svc</value-->
|
||||
<value>http://heupferd/bsmd.LockingService/LockingService.svc</value>
|
||||
<value>http://192.168.2.4/LockingService/LockingService.svc</value>
|
||||
<!--value>http://heupferd/bsmd.LockingService/LockingService.svc</value-->
|
||||
</setting>
|
||||
<setting name="ConnectionString" serializeAs="String">
|
||||
<!--value>Data Source=192.168.2.12;Initial Catalog=nsw;Uid=dfuser;Pwd=dfpasswd;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False</value-->
|
||||
<value>Data Source=(localdb)\Projects;Initial Catalog=nsw;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False</value>
|
||||
<value>Data Source=192.168.2.12;Initial Catalog=nsw;Uid=dfuser;Pwd=dfpasswd;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False</value>
|
||||
<!--value>Data Source=(localdb)\Projects;Initial Catalog=nsw;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False</value-->
|
||||
</setting>
|
||||
</ENI2.Properties.Settings>
|
||||
</applicationSettings>
|
||||
|
||||
@ -354,8 +354,8 @@ namespace ENI2.DetailViewControls
|
||||
if (!reader.IsDBNull(7)) l10c.PortFacilityGISISCode = gisis.ToString().PadLeft(4, '0');
|
||||
if (!reader.IsDBNull(8)) l10c.PortFacilitySecurityMattersToReport = reader.GetString(8);
|
||||
if (l10c.PortFacilitySecurityMattersToReport.Equals("nil", StringComparison.CurrentCultureIgnoreCase))
|
||||
l10c.PortFacilitySecurityMattersToReport = null;
|
||||
|
||||
l10c.PortFacilitySecurityMattersToReport = null;
|
||||
if (!reader.IsDBNull(9)) l10c.PortFacilityGISISCodeLocode = reader.GetString(9);
|
||||
l10c.SEC = this._sec;
|
||||
l10c.IsDirty = true;
|
||||
l10c.Identifier = LastTenPortFacilitiesCalled.GetNewIdentifier(this._sec.LastTenPortFacilitesCalled);
|
||||
|
||||
@ -36,7 +36,7 @@
|
||||
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
|
||||
<WebPage>publish.html</WebPage>
|
||||
<ApplicationRevision>1</ApplicationRevision>
|
||||
<ApplicationVersion>5.0.3.%2a</ApplicationVersion>
|
||||
<ApplicationVersion>5.0.4.%2a</ApplicationVersion>
|
||||
<UseApplicationTrust>false</UseApplicationTrust>
|
||||
<CreateDesktopShortcut>true</CreateDesktopShortcut>
|
||||
<PublishWizardCompleted>true</PublishWizardCompleted>
|
||||
|
||||
@ -127,12 +127,13 @@ namespace ENI2.EditControls
|
||||
{
|
||||
this.NewCore.IsTransit = true;
|
||||
this.NewCore.ETAKielCanal = this.datePickerETA.SelectedDate;
|
||||
|
||||
this.NewCore.TransitId = this.textBoxVisitTransitId.Text.Trim();
|
||||
}
|
||||
else
|
||||
{
|
||||
this.NewCore.IsTransit = false;
|
||||
this.NewCore.ETA = this.datePickerETA.SelectedDate;
|
||||
this.NewCore.VisitId = this.textBoxVisitTransitId.Text.Trim();
|
||||
}
|
||||
|
||||
if (this.doubleUpDownIMO.Value.HasValue)
|
||||
|
||||
Binary file not shown.
@ -1363,7 +1363,8 @@ namespace bsmd.ExcelReadService
|
||||
// RM am 24.1.18, ich hoffe das stimmt so wie sie meint..
|
||||
if((reader.Mode == ExcelReader.CountryMode.DK) && (i==9))
|
||||
{
|
||||
waste.WasteType = 2300;
|
||||
_log.DebugFormat("DK: Changing Waste code {0} to 2300 for line {1}", waste.WasteType, i);
|
||||
waste.WasteType = 2300;
|
||||
}
|
||||
|
||||
reader.Conf.ConfirmText(wasteDescription, waste.WasteDescription, waste.WasteDescription.IsNullOrEmpty() ? ExcelReader.ReadState.WARN : ExcelReader.ReadState.OK);
|
||||
|
||||
@ -21,7 +21,7 @@ namespace bsmd.dbh.ResponseService
|
||||
bsmd.dbh.response.RootReportingClassesPartial ReportingClassesPartial,
|
||||
bsmd.dbh.response.RootReportingClassesError RootReportingClassesError,
|
||||
bsmd.dbh.response.RootReportingClassesResetted ReportingClassesResetted,
|
||||
List<bsmd.dbh.response.RootMessage> Messages);
|
||||
bsmd.dbh.response.Message[] Messages);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@ -18,7 +18,7 @@ namespace bsmd.dbh.ResponseService
|
||||
bsmd.dbh.response.RootReportingClassesPartial ReportingClassesPartial,
|
||||
bsmd.dbh.response.RootReportingClassesError RootReportingClassesError,
|
||||
bsmd.dbh.response.RootReportingClassesResetted ReportingClassesResetted,
|
||||
List<bsmd.dbh.response.RootMessage> Messages)
|
||||
bsmd.dbh.response.Message[] Messages)
|
||||
{
|
||||
|
||||
// Der Fehler hier aktuell ist dass alles funktioniert, außer dass "Messages" nicht
|
||||
@ -36,7 +36,7 @@ namespace bsmd.dbh.ResponseService
|
||||
else
|
||||
{
|
||||
_log.InfoFormat(Messages.GetType().ToString());
|
||||
_log.InfoFormat("{0} RootMessage elements received", (Messages.Count));
|
||||
_log.InfoFormat("{0} Message elements received", Messages.Length);
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -46,7 +46,7 @@ namespace bsmd.dbh.response
|
||||
|
||||
private RootReportingClassesResetted reportingClassesResettedField;
|
||||
|
||||
private RootMessage[] messagesField;
|
||||
private Message[] messagesField;
|
||||
|
||||
/// <remarks/>
|
||||
public string Version
|
||||
@ -180,7 +180,7 @@ namespace bsmd.dbh.response
|
||||
|
||||
/// <remarks/>
|
||||
[System.Xml.Serialization.XmlArrayItemAttribute("Message", IsNullable = false)]
|
||||
public RootMessage[] Messages
|
||||
public Message[] Messages
|
||||
{
|
||||
get
|
||||
{
|
||||
@ -658,7 +658,7 @@ namespace bsmd.dbh.response
|
||||
[System.Diagnostics.DebuggerStepThroughAttribute()]
|
||||
[System.ComponentModel.DesignerCategoryAttribute("code")]
|
||||
[System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
|
||||
public partial class RootMessage
|
||||
public partial class Message
|
||||
{
|
||||
|
||||
private string idField;
|
||||
|
||||
@ -773,7 +773,9 @@ namespace bsmd.dbh
|
||||
rootInfo.ShippingArea = (ShippingArea)info.ShippingArea.Value;
|
||||
rootInfo.PortArea = info.PortArea;
|
||||
rootInfo.RequestedPositionInPortOfCall = info.RequestedPositionInPortOfCall;
|
||||
rootInfo.SpecialRequirementsOfShipAtBerth = info.SpecialRequirementsOfShipAtBerth;
|
||||
if(!info.SpecialRequirementsOfShipAtBerth.IsNullOrEmpty())
|
||||
rootInfo.SpecialRequirementsOfShipAtBerth = info.SpecialRequirementsOfShipAtBerth;
|
||||
|
||||
if(info.SpecialRequirementsOfShipAtBerth.IsNullOrEmpty())
|
||||
{
|
||||
_log.Info("dbh INFO send: SpecialRequirementsOfShipAtBerth is empty.");
|
||||
|
||||
@ -22,7 +22,7 @@ namespace bsmd.dbh
|
||||
private static ILog _log = LogManager.GetLogger("dbh Response");
|
||||
|
||||
public static void ProcessResponse(string VisitId, string TransitId, DateTime Timestamp,
|
||||
string SenderReference, response.RootType Type, List<bsmd.dbh.response.RootMessage> Messages,
|
||||
string SenderReference, response.RootType Type, bsmd.dbh.response.Message[] Messages,
|
||||
bsmd.dbh.response.RootReportingClassesFull ReportingClassesFull,
|
||||
bsmd.dbh.response.RootReportingClassesPartial ReportingClassesPartial,
|
||||
bsmd.dbh.response.RootReportingClassesError RootReportingClassesError,
|
||||
@ -130,7 +130,7 @@ namespace bsmd.dbh
|
||||
// Status zu den jeweiligen Nachrichten. Bei uns sollte die Anzahl hier immer 1 sein, da wir die Dinger
|
||||
// einzeln verschicken.
|
||||
|
||||
for (int i = 0; i < Messages.Count; i++)
|
||||
for (int i = 0; i < Messages.Length; i++)
|
||||
{
|
||||
_log.InfoFormat("message {0} type {1}: {2}", i,
|
||||
Messages[i].Type,
|
||||
@ -144,6 +144,7 @@ namespace bsmd.dbh
|
||||
_log.WarnFormat("Error received for {0}: {1}", Messages[i].Type, error.ErrorText);
|
||||
error.MessageHeaderId = aMessage.Id.Value;
|
||||
aMessage.InternalStatus = Message.BSMDStatus.ERROR;
|
||||
aMessage.StatusInfo = string.Format("Id:{0} Loc:{1} - {2}", Messages[i].ID, Messages[i].Location, Messages[i].Text);
|
||||
DBManager.Instance.Save(error);
|
||||
aMessage.SendSuccess = false;
|
||||
break;
|
||||
@ -154,6 +155,7 @@ namespace bsmd.dbh
|
||||
_log.WarnFormat("Violation received for {0}: {1}", Messages[i].Type, violation.ViolationText);
|
||||
violation.MessageHeaderId = aMessage.Id.Value;
|
||||
aMessage.InternalStatus = Message.BSMDStatus.VIOLATION;
|
||||
aMessage.StatusInfo = string.Format("Id:{0} Loc:{1} - {2}", Messages[i].ID, Messages[i].Location, Messages[i].Text);
|
||||
aMessage.SendSuccess = true;
|
||||
DBManager.Instance.Save(violation);
|
||||
|
||||
@ -161,12 +163,14 @@ namespace bsmd.dbh
|
||||
|
||||
case dbh.response.RootMessageType.WARNING:
|
||||
_log.InfoFormat("WARNING received for {0}: {1}", Messages[i].Type, Messages[i].Text);
|
||||
aMessage.StatusInfo = string.Format("Id:{0} Loc:{1} - {2}", Messages[i].ID, Messages[i].Location, Messages[i].Text);
|
||||
aMessage.SendSuccess = true;
|
||||
break;
|
||||
|
||||
case dbh.response.RootMessageType.INFO:
|
||||
default:
|
||||
_log.InfoFormat("INFO received for {0}: {1}", Messages[i].Type, Messages[i].Text);
|
||||
aMessage.StatusInfo = string.Format("Id:{0} Loc:{1} - {2}", Messages[i].ID, Messages[i].Location, Messages[i].Text);
|
||||
aMessage.SendSuccess = true;
|
||||
break;
|
||||
}
|
||||
|
||||
@ -478,7 +478,8 @@ namespace bsmd.hisnord
|
||||
hn_info.ShippingArea = (shippingareatype)info.ShippingArea.Value;
|
||||
hn_info.PortArea = info.PortArea;
|
||||
hn_info.RequestedPositionInPortOfCall = info.RequestedPositionInPortOfCall;
|
||||
hn_info.SpecialRequirementsOfShipAtBerth = info.SpecialRequirementsOfShipAtBerth;
|
||||
if(!info.SpecialRequirementsOfShipAtBerth.IsNullOrEmpty())
|
||||
hn_info.SpecialRequirementsOfShipAtBerth = info.SpecialRequirementsOfShipAtBerth;
|
||||
hn_info.ConstructionCharacteristicsOfShip = info.ConstructionCharacteristicsOfShip;
|
||||
hn_info.BowThrusterPower = info.BowThrusterPower;
|
||||
hn_info.SternThrusterPower = info.SternThrusterPower;
|
||||
|
||||
@ -148,6 +148,7 @@ namespace bsmd.hisnord
|
||||
if ((nswResponse.Status == "REJECTED") && ((core.Cancelled ?? false) == true))
|
||||
{
|
||||
core.Cancelled = false; // CANCEL fehlgeschlagen
|
||||
core.BSMDStatusInternal = MessageCore.BSMDStatus.FAILURE;
|
||||
_log.InfoFormat("Cancel rejected for {0}", core.DisplayId);
|
||||
}
|
||||
|
||||
@ -237,7 +238,7 @@ namespace bsmd.hisnord
|
||||
|
||||
}
|
||||
|
||||
if(!aMessageStillInSENTstate)
|
||||
if(!aMessageStillInSENTstate && !(core.Cancelled ?? false))
|
||||
core.BSMDStatusInternal = MessageCore.BSMDStatus.RESPONDED;
|
||||
DBManager.Instance.Save(core);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user