diff --git a/ENI2/App.config b/ENI2/App.config
index 6105b6f2..c4795a17 100644
--- a/ENI2/App.config
+++ b/ENI2/App.config
@@ -26,17 +26,20 @@
1000
- http://192.168.2.24/LockingService/LockingService.svc
+ http://192.168.2.24/LockingService/LockingService.svc
+
+
+ BSMD ReportGenerator
- Initial Catalog=nswtest;Data Source=192.168.2.24\SQLEXPRESS;Uid=dfuser;pwd=dfpasswd;Persist Security Info=False;Connection Reset=false
+ Initial Catalog=nswtest;Data Source=192.168.2.24\SQLEXPRESS;Uid=dfuser;pwd=dfpasswd;Persist Security Info=False;Connection Reset=false
-
+
diff --git a/ENI2/Controls/ServerStatusControl.xaml b/ENI2/Controls/ServerStatusControl.xaml
index 638b19db..def37caa 100644
--- a/ENI2/Controls/ServerStatusControl.xaml
+++ b/ENI2/Controls/ServerStatusControl.xaml
@@ -16,12 +16,8 @@
-
-
-
-
coreIdVisitIdMap = new Dictionary();
public ServerStatusControl()
{
InitializeComponent();
this.dataGridStatus.ItemsSource = this.entries;
this.Loaded += ServerStatusControl_Loaded;
-
}
private void ServerStatusControl_Loaded(object sender, System.Windows.RoutedEventArgs e)
- {
+ {
this.refreshButton_Click(null, null);
}
@@ -106,12 +106,6 @@ namespace ENI2.Controls
{
// Enumeration parsen und text ausgeben
- ServiceControllerStatus excel = (ServiceControllerStatus)serverStatus.Excel;
- this.labelStatusExcel.Content = excel.ToString();
-
- ServiceControllerStatus report = (ServiceControllerStatus)serverStatus.Report;
- this.labelStatusReport.Content = report.ToString();
-
ServiceControllerStatus transmitter = (ServiceControllerStatus)serverStatus.Transmitter;
this.labelStatusTransmitter.Content = transmitter.ToString();
@@ -152,15 +146,23 @@ namespace ENI2.Controls
string guidString = m.Groups[2].Value;
+ string idString = "";
if (!guidIdDict.ContainsKey(guidString))
{
- string idString = "";
if (Guid.TryParse(m.Groups[2].Value, out Guid coreId))
{
- MessageCore aCore = DBManager.Instance.GetMessageCoreById(coreId);
- if (aCore != null)
+ if (!coreIdVisitIdMap.ContainsKey(coreId))
{
- idString = aCore.DisplayId;
+ MessageCore aCore = DBManager.Instance.GetMessageCoreById(coreId);
+ if (aCore != null)
+ {
+ coreIdVisitIdMap[coreId] = aCore.DisplayId;
+ idString = aCore.DisplayId;
+ }
+ }
+ else
+ {
+ idString = coreIdVisitIdMap[coreId];
}
}
guidIdDict[guidString] = idString;
diff --git a/ENI2/DetailViewControls/PortNotificationDetailControl.xaml b/ENI2/DetailViewControls/PortNotificationDetailControl.xaml
index 634feb3f..f6aee911 100644
--- a/ENI2/DetailViewControls/PortNotificationDetailControl.xaml
+++ b/ENI2/DetailViewControls/PortNotificationDetailControl.xaml
@@ -66,10 +66,10 @@
-
-
+
+
-
+
@@ -88,8 +88,9 @@
-
-
+
+
+
diff --git a/ENI2/DetailViewControls/PortNotificationDetailControl.xaml.cs b/ENI2/DetailViewControls/PortNotificationDetailControl.xaml.cs
index 4367f7ef..bc1ae6c4 100644
--- a/ENI2/DetailViewControls/PortNotificationDetailControl.xaml.cs
+++ b/ENI2/DetailViewControls/PortNotificationDetailControl.xaml.cs
@@ -490,7 +490,8 @@ namespace ENI2.DetailViewControls
if (this.comboBoxPortAreaHelper.SelectedItem != null)
{
PortAreaInfo pai = this.comboBoxPortAreaHelper.SelectedItem as PortAreaInfo;
- this.comboBoxPortAreaHelper.ToolTip = $"{pai.Remark} Ships: {pai.Ships} Agentur: {pai.Agency} Liegeplatz: {pai.Berth}";
+ // this.comboBoxPortAreaHelper.ToolTip = $"{pai.Remark} Ships: {pai.Ships} Agentur: {pai.Agency} Liegeplatz: {pai.Berth}";
+ this.textBlockPortAreaRemarks.Text = $"Ag:{pai.Agency} Ship:{pai.Ships} :{pai.Remark}";
}
}
diff --git a/ENI2/ENI2.csproj b/ENI2/ENI2.csproj
index 7090ff11..f5bd8965 100644
--- a/ENI2/ENI2.csproj
+++ b/ENI2/ENI2.csproj
@@ -36,7 +36,7 @@
5.4.0.0
true
publish.html
- 0
+ 2
7.13.0.%2a
false
true
diff --git a/ENI2/Properties/Settings.Designer.cs b/ENI2/Properties/Settings.Designer.cs
index ce92588e..3d4052ac 100644
--- a/ENI2/Properties/Settings.Designer.cs
+++ b/ENI2/Properties/Settings.Designer.cs
@@ -82,8 +82,8 @@ namespace ENI2.Properties {
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute("Initial Catalog=nsw;Data Source=192.168.2.24\\SQLEXPRESS;Uid=dfuser;pwd=dfpasswd;P" +
- "ersist Security Info=False;Connection Reset=false")]
+ [global::System.Configuration.DefaultSettingValueAttribute("Initial Catalog=nswtest;Data Source=192.168.2.24\\SQLEXPRESS;Uid=dfuser;pwd=dfpass" +
+ "wd;Persist Security Info=False;Connection Reset=false")]
public string ConnectionString {
get {
return ((string)(this["ConnectionString"]));
diff --git a/ENI2/Properties/Settings.settings b/ENI2/Properties/Settings.settings
index 46d9c0c3..b52a955d 100644
--- a/ENI2/Properties/Settings.settings
+++ b/ENI2/Properties/Settings.settings
@@ -21,7 +21,7 @@
BSMD ReportGenerator
- Initial Catalog=nsw;Data Source=192.168.2.24\SQLEXPRESS;Uid=dfuser;pwd=dfpasswd;Persist Security Info=False;Connection Reset=false
+ Initial Catalog=nswtest;Data Source=192.168.2.24\SQLEXPRESS;Uid=dfuser;pwd=dfpasswd;Persist Security Info=False;Connection Reset=false
\ No newline at end of file
diff --git a/bsmd.LockingService/LockingService.svc.cs b/bsmd.LockingService/LockingService.svc.cs
index bd012032..31a41570 100644
--- a/bsmd.LockingService/LockingService.svc.cs
+++ b/bsmd.LockingService/LockingService.svc.cs
@@ -12,7 +12,7 @@ using System.IO;
namespace bsmd.LockingService
{
-
+
[AspNetCompatibilityRequirements(RequirementsMode = AspNetCompatibilityRequirementsMode.Allowed)]
public class LockingService : IService
{
@@ -73,13 +73,13 @@ namespace bsmd.LockingService
}
}
}
-
+
return result;
}
-
+
public void Unlock(Guid messageCoreId, Guid userId)
- {
+ {
lock(lockDict)
{
if(lockDict.ContainsKey(messageCoreId))
@@ -89,19 +89,19 @@ namespace bsmd.LockingService
}
}
}
-
+
public void LockRefresh(List currentLocks, Guid userId)
{
foreach (Guid messageCoreId in currentLocks)
this.Lock(messageCoreId, userId);
}
-
+
public void Log(string msg, string host, Guid userId)
{
log.Info(string.Format("{0} {1}:{2}", host, userId, msg));
}
-
+
public List GetLocks()
{
List result = new List();
@@ -152,8 +152,8 @@ namespace bsmd.LockingService
string impPath = Path.Combine(Properties.Settings.Default.TransmitterRoot, "IMP");
if(Directory.Exists(impPath))
{
- foreach(string file in Directory.GetFiles(impPath))
- serverStatus.IMPFiles.Add(Path.GetFileNameWithoutExtension(file));
+ foreach(string file in Directory.GetFiles(impPath))
+ serverStatus.IMPFiles.Add(Path.GetFileNameWithoutExtension(file));
}
serverStatus.READYFiles = new List();
diff --git a/bsmd.LockingService/Properties/Settings.Designer.cs b/bsmd.LockingService/Properties/Settings.Designer.cs
index fb989587..07f6d1d3 100644
--- a/bsmd.LockingService/Properties/Settings.Designer.cs
+++ b/bsmd.LockingService/Properties/Settings.Designer.cs
@@ -25,7 +25,7 @@ namespace bsmd.LockingService.Properties {
[global::System.Configuration.ApplicationScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Configuration.DefaultSettingValueAttribute("")]
+ [global::System.Configuration.DefaultSettingValueAttribute("E:\\svnlager\\BSMD\\nsw\\HIS-NORD\\Transmitter-Tool")]
public string TransmitterRoot {
get {
return ((string)(this["TransmitterRoot"]));
diff --git a/bsmd.LockingService/Properties/Settings.settings b/bsmd.LockingService/Properties/Settings.settings
index 45df6128..5156aee4 100644
--- a/bsmd.LockingService/Properties/Settings.settings
+++ b/bsmd.LockingService/Properties/Settings.settings
@@ -3,7 +3,7 @@
-
+ E:\svnlager\BSMD\nsw\HIS-NORD\Transmitter-Tool
\ No newline at end of file
diff --git a/bsmd.LockingService/Web.config b/bsmd.LockingService/Web.config
index 1bdabf1f..88be4476 100644
--- a/bsmd.LockingService/Web.config
+++ b/bsmd.LockingService/Web.config
@@ -58,7 +58,7 @@
- E:\svnlager\BSMD\nsw\HIS-NORD\Transmitter-Tool>
+ E:\svnlager\BSMD\nsw\HIS-NORD\Transmitter-Tool
diff --git a/bsmd.database/INFO.cs b/bsmd.database/INFO.cs
index 3178b061..4812feff 100644
--- a/bsmd.database/INFO.cs
+++ b/bsmd.database/INFO.cs
@@ -258,7 +258,7 @@ namespace bsmd.database
public override string ToString()
{
- return string.Format("{0} ({1})", PortArea, PortAreaCode);
+ return string.Format("{0} ({1})", PortArea, Berth);
}
}