Version 5.0.14 - schnelle Zwischenversion mit neuen NSW Häfen und einer kleinen Readonly Korrektur

This commit is contained in:
Daniel Schick 2018-08-21 07:38:39 +00:00
parent 28d076ff39
commit e5e7d6fed3
7 changed files with 55 additions and 32 deletions

View File

@ -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>

View File

@ -66,9 +66,11 @@ namespace ENI2.DetailViewControls
sec = this._secMessage.Elements[0] as SEC;
if (sec == null)
{
sec = new SEC();
sec.MessageCore = this.Core;
sec.MessageHeader = this._secMessage;
sec = new SEC
{
MessageCore = this.Core,
MessageHeader = this._secMessage
};
_secMessage.Elements.Add(sec);
}
@ -103,6 +105,8 @@ namespace ENI2.DetailViewControls
this.checkBoxSECSimplification.Unchecked += CheckBoxSECSimplification_Checked;
this.checkBoxKielCanalPassagePlanned.Checked += CheckBoxKielCanalPassagePlanned_Checked;
this.CheckBoxKielCanalPassagePlanned_Checked(null, null);
#endregion
}
@ -122,8 +126,10 @@ namespace ENI2.DetailViewControls
private void DataGridShip2ShipActivities_CreateRequested()
{
EditShip2ShipActivitiesDialog epd = new EditShip2ShipActivitiesDialog();
epd.ShipToShipActivity = new ShipToShipActivitiesDuringLastTenPortFacilitiesCalled();
EditShip2ShipActivitiesDialog epd = new EditShip2ShipActivitiesDialog
{
ShipToShipActivity = new ShipToShipActivitiesDuringLastTenPortFacilitiesCalled()
};
epd.ShipToShipActivity.Identifier = ShipToShipActivitiesDuringLastTenPortFacilitiesCalled.GetNewIdentifier(_sec.ShipToShipActivitiesDuringLastTenPortFacilitiesCalled);
epd.ShipToShipActivity.SEC = this._sec;
@ -133,9 +139,11 @@ namespace ENI2.DetailViewControls
if(!this._sec.ShipToShipActivitiesDuringLastTenPortFacilitiesCalled.Contains(epd.ShipToShipActivity))
this._sec.ShipToShipActivitiesDuringLastTenPortFacilitiesCalled.Add(epd.ShipToShipActivity);
this.dataGridShip2ShipActivities.Items.Refresh();
epd.ShipToShipActivity = new ShipToShipActivitiesDuringLastTenPortFacilitiesCalled();
epd.ShipToShipActivity.SEC = this._sec;
epd.ShipToShipActivity.Identifier = ShipToShipActivitiesDuringLastTenPortFacilitiesCalled.GetNewIdentifier(_sec.ShipToShipActivitiesDuringLastTenPortFacilitiesCalled);
epd.ShipToShipActivity = new ShipToShipActivitiesDuringLastTenPortFacilitiesCalled
{
SEC = this._sec,
Identifier = ShipToShipActivitiesDuringLastTenPortFacilitiesCalled.GetNewIdentifier(_sec.ShipToShipActivitiesDuringLastTenPortFacilitiesCalled)
};
this.SublistElementChanged(Message.NotificationClass.SEC);
};
@ -163,17 +171,21 @@ namespace ENI2.DetailViewControls
private void DataGridShip2ShipActivities_EditRequested(DatabaseEntity obj)
{
EditShip2ShipActivitiesDialog ecpd = new EditShip2ShipActivitiesDialog();
ecpd.ShipToShipActivity = obj as ShipToShipActivitiesDuringLastTenPortFacilitiesCalled;
EditShip2ShipActivitiesDialog ecpd = new EditShip2ShipActivitiesDialog
{
ShipToShipActivity = obj as ShipToShipActivitiesDuringLastTenPortFacilitiesCalled
};
ecpd.AddClicked += () =>
{
ecpd.CopyValuesToEntity();
if (!_sec.ShipToShipActivitiesDuringLastTenPortFacilitiesCalled.Contains(ecpd.ShipToShipActivity))
_sec.ShipToShipActivitiesDuringLastTenPortFacilitiesCalled.Add(ecpd.ShipToShipActivity);
this.dataGridShip2ShipActivities.Items.Refresh();
ecpd.ShipToShipActivity = new ShipToShipActivitiesDuringLastTenPortFacilitiesCalled();
ecpd.ShipToShipActivity.SEC = this._sec;
ecpd.ShipToShipActivity.Identifier = ShipToShipActivitiesDuringLastTenPortFacilitiesCalled.GetNewIdentifier(_sec.ShipToShipActivitiesDuringLastTenPortFacilitiesCalled);
ecpd.ShipToShipActivity = new ShipToShipActivitiesDuringLastTenPortFacilitiesCalled
{
SEC = this._sec,
Identifier = ShipToShipActivitiesDuringLastTenPortFacilitiesCalled.GetNewIdentifier(_sec.ShipToShipActivitiesDuringLastTenPortFacilitiesCalled)
};
this.SublistElementChanged(Message.NotificationClass.SEC);
};
if (ecpd.ShowDialog() ?? false)
@ -196,8 +208,10 @@ namespace ENI2.DetailViewControls
private void DataGridLast10PortFacilities_CreateRequested()
{
EditLast10PortFacilitiesDialog epd = new EditLast10PortFacilitiesDialog();
epd.LastTenPortFacilitiesCalled = new LastTenPortFacilitiesCalled();
EditLast10PortFacilitiesDialog epd = new EditLast10PortFacilitiesDialog
{
LastTenPortFacilitiesCalled = new LastTenPortFacilitiesCalled()
};
epd.LastTenPortFacilitiesCalled.Identifier = LastTenPortFacilitiesCalled.GetNewIdentifier(_sec.LastTenPortFacilitesCalled);
epd.LastTenPortFacilitiesCalled.SEC = this._sec;
@ -208,9 +222,11 @@ namespace ENI2.DetailViewControls
this._sec.LastTenPortFacilitesCalled.Add(epd.LastTenPortFacilitiesCalled);
this.dataGridLast10PortFacilities.Items.Refresh();
epd.LastTenPortFacilitiesCalled = new LastTenPortFacilitiesCalled();
epd.LastTenPortFacilitiesCalled.SEC = this._sec;
epd.LastTenPortFacilitiesCalled.Identifier = LastTenPortFacilitiesCalled.GetNewIdentifier(_sec.LastTenPortFacilitesCalled);
epd.LastTenPortFacilitiesCalled = new LastTenPortFacilitiesCalled
{
SEC = this._sec,
Identifier = LastTenPortFacilitiesCalled.GetNewIdentifier(_sec.LastTenPortFacilitesCalled)
};
this.SublistElementChanged(Message.NotificationClass.SEC);
};
@ -238,17 +254,21 @@ namespace ENI2.DetailViewControls
private void DataGridLast10PortFacilities_EditRequested(DatabaseEntity obj)
{
EditLast10PortFacilitiesDialog ecpd = new EditLast10PortFacilitiesDialog();
ecpd.LastTenPortFacilitiesCalled = obj as LastTenPortFacilitiesCalled;
EditLast10PortFacilitiesDialog ecpd = new EditLast10PortFacilitiesDialog
{
LastTenPortFacilitiesCalled = obj as LastTenPortFacilitiesCalled
};
ecpd.AddClicked += () =>
{
ecpd.CopyValuesToEntity();
if (!_sec.LastTenPortFacilitesCalled.Contains(ecpd.LastTenPortFacilitiesCalled))
_sec.LastTenPortFacilitesCalled.Add(ecpd.LastTenPortFacilitiesCalled);
this.dataGridLast10PortFacilities.Items.Refresh();
ecpd.LastTenPortFacilitiesCalled = new LastTenPortFacilitiesCalled();
ecpd.LastTenPortFacilitiesCalled.SEC = this._sec;
ecpd.LastTenPortFacilitiesCalled.Identifier = LastTenPortFacilitiesCalled.GetNewIdentifier(_sec.LastTenPortFacilitesCalled);
ecpd.LastTenPortFacilitiesCalled = new LastTenPortFacilitiesCalled
{
SEC = this._sec,
Identifier = LastTenPortFacilitiesCalled.GetNewIdentifier(_sec.LastTenPortFacilitesCalled)
};
this.SublistElementChanged(Message.NotificationClass.SEC);
};
if (ecpd.ShowDialog() ?? false)
@ -305,8 +325,11 @@ namespace ENI2.DetailViewControls
private void buttonImportExcel_Click(object sender, RoutedEventArgs e)
{
OpenFileDialog ofd = new OpenFileDialog();
ofd.Filter = "Excel Files|*.xls;*.xlsx";
OpenFileDialog ofd = new OpenFileDialog
{
Filter = "Excel Files|*.xls;*.xlsx"
};
if (ofd.ShowDialog() ?? false)
{
FileStream stream = null;

View File

@ -36,7 +36,7 @@
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
<WebPage>publish.html</WebPage>
<ApplicationRevision>1</ApplicationRevision>
<ApplicationVersion>5.0.13.%2a</ApplicationVersion>
<ApplicationVersion>5.0.14.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<CreateDesktopShortcut>true</CreateDesktopShortcut>
<PublishWizardCompleted>true</PublishWizardCompleted>

Binary file not shown.

View File

@ -2,6 +2,6 @@
[assembly: AssemblyCompany("schick Informatik")]
[assembly: AssemblyProduct("BSMD NSW interface")]
[assembly: AssemblyInformationalVersion("5.0.13")]
[assembly: AssemblyInformationalVersion("5.0.14")]
[assembly: AssemblyCopyright("Copyright © 2014-2018 schick Informatik")]
[assembly: AssemblyTrademark("")]

View File

@ -1,4 +1,4 @@
using System.Reflection;
[assembly: AssemblyVersion("5.0.13.*")]
[assembly: AssemblyVersion("5.0.14.*")]

Binary file not shown.