work in progress...
This commit is contained in:
parent
d951c8e28f
commit
ebeac4845f
@ -26,12 +26,12 @@
|
||||
<value>1000</value>
|
||||
</setting>
|
||||
<setting name="LockingServerAddress" serializeAs="String">
|
||||
<value>http://192.168.2.24/LockingService/LockingService.svc</value>
|
||||
<!--value>http://heupferd/bsmd.LockingService/LockingService.svc</value-->
|
||||
<!--value>http://192.168.2.24/LockingService/LockingService.svc</value-->
|
||||
<value>http://heupferd/bsmd.LockingService/LockingService.svc</value>
|
||||
</setting>
|
||||
<setting name="ConnectionString" serializeAs="String">
|
||||
<value>Initial Catalog=nsw;Data Source=192.168.2.24\SQLEXPRESS;Uid=dfuser;pwd=dfpasswd;Persist Security Info=False;Connection Reset=false</value>
|
||||
<!--value>Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=E:\DATA\DB\NSW.MDF;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False</value-->
|
||||
<!--value>Initial Catalog=nsw;Data Source=192.168.2.24\SQLEXPRESS;Uid=dfuser;pwd=dfpasswd;Persist Security Info=False;Connection Reset=false</value-->
|
||||
<value>Data Source=(localdb)\MSSQLLocalDB;Initial Catalog=E:\DATA\DB\NSW.MDF;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=False;ApplicationIntent=ReadWrite;MultiSubnetFailover=False</value>
|
||||
</setting>
|
||||
</ENI2.Properties.Settings>
|
||||
</applicationSettings>
|
||||
|
||||
@ -168,7 +168,7 @@
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textLocationLocode}" Binding="{Binding ShipToShipActivityLocationLoCode, Mode=TwoWay}" IsReadOnly="True" Width="0.1*" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textDateFrom}" Binding="{Binding ShipToShipActivityDateFrom, StringFormat=\{0:dd.MM.yyyy\}}" IsReadOnly="True" Width="0.1*" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textDateTo}" Binding="{Binding ShipToShipActivityDateTo, StringFormat=\{0:dd.MM.yyyy\}}" IsReadOnly="True" Width="0.1*" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textActivityType}" Binding="{Binding ShipToShipActivityTypeCode, Mode=TwoWay}" IsReadOnly="True" Width="0.1*" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textActivityType}" Binding="{Binding ShipToShipActivityTypeDisplay}" IsReadOnly="True" Width="0.1*" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textSecurityMatters}" Binding="{Binding ShipToShipActivitySecurityMattersToReport, Mode=TwoWay}" IsReadOnly="True" Width="0.1*" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textLatitudeDecimal}" Binding="{Binding ShipToShipActivityLocationCoordinatesLatitude, StringFormat={}{0:N0}}" IsReadOnly="True" Width="0.1*" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textLongitudeDecimal}" Binding="{Binding ShipToShipActivityLocationCoordinatesLongitude, StringFormat={}{0:N0}}" IsReadOnly="True" Width="0.1*" />
|
||||
|
||||
@ -95,6 +95,11 @@ namespace ENI2.DetailViewControls
|
||||
this.dataGridLast10PortFacilities.CreateRequested += DataGridLast10PortFacilities_CreateRequested;
|
||||
|
||||
this.dataGridShip2ShipActivities.Initialize();
|
||||
foreach(ShipToShipActivitiesDuringLastTenPortFacilitiesCalled s2s in sec.ShipToShipActivitiesDuringLastTenPortFacilitiesCalled)
|
||||
{
|
||||
if (s2s.ShipToShipActivityTypeCode.HasValue && s2s.ShipToShipActivityType.IsNullOrEmpty() && GlobalStructures.Edifact8025.ContainsKey(s2s.ShipToShipActivityTypeCode.Value))
|
||||
s2s.ShipToShipActivityType = GlobalStructures.Edifact8025[s2s.ShipToShipActivityTypeCode.Value];
|
||||
}
|
||||
this.dataGridShip2ShipActivities.ItemsSource = sec.ShipToShipActivitiesDuringLastTenPortFacilitiesCalled;
|
||||
this.dataGridShip2ShipActivities.AddingNewItem += DataGridShip2ShipActivities_AddingNewItem;
|
||||
this.dataGridShip2ShipActivities.EditRequested += DataGridShip2ShipActivities_EditRequested;
|
||||
|
||||
@ -84,14 +84,13 @@
|
||||
<ApplicationManifest>Properties\app.manifest</ApplicationManifest>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ManifestCertificateThumbprint>DBA67DB331E10F18BBF1E67B125EC87AB5389EA4</ManifestCertificateThumbprint>
|
||||
<ManifestCertificateThumbprint>9B5725EAD90F2E06094631407417EB2554E88941</ManifestCertificateThumbprint>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<SignManifests>true</SignManifests>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup>
|
||||
<ManifestKeyFile>
|
||||
</ManifestKeyFile>
|
||||
<ManifestKeyFile>ENI2_4_TemporaryKey.pfx</ManifestKeyFile>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="ExcelDataReader, Version=3.6.0.0, Culture=neutral, PublicKeyToken=93517dbe6a4012fa, processorArchitecture=MSIL">
|
||||
@ -634,6 +633,7 @@
|
||||
</Compile>
|
||||
<None Include="ENI2_2_TemporaryKey.pfx" />
|
||||
<None Include="ENI2_3_TemporaryKey.pfx" />
|
||||
<None Include="ENI2_4_TemporaryKey.pfx" />
|
||||
<None Include="Service References\LockingServiceReference\ENI2.LockingServiceReference.CoreLock.datasource">
|
||||
<DependentUpon>Reference.svcmap</DependentUpon>
|
||||
</None>
|
||||
|
||||
BIN
ENI-2/ENI2/ENI2/ENI2_4_TemporaryKey.pfx
Normal file
BIN
ENI-2/ENI2/ENI2/ENI2_4_TemporaryKey.pfx
Normal file
Binary file not shown.
@ -2,6 +2,7 @@
|
||||
// Description: Ship-2-Ship Detailansicht
|
||||
//
|
||||
|
||||
using System.Collections.Generic;
|
||||
using System.Windows;
|
||||
|
||||
using bsmd.database;
|
||||
@ -16,6 +17,7 @@ namespace ENI2.EditControls
|
||||
/// </summary>
|
||||
public partial class EditShip2ShipActivitiesDialog : EditWindowBase
|
||||
{
|
||||
|
||||
public EditShip2ShipActivitiesDialog()
|
||||
{
|
||||
InitializeComponent();
|
||||
@ -36,7 +38,7 @@ namespace ENI2.EditControls
|
||||
//this.textBoxActivityType.Text = this.ShipToShipActivity.ShipToShipActivityType;
|
||||
this.textBoxSecurityMatters.Text = this.ShipToShipActivity.ShipToShipActivitySecurityMattersToReport;
|
||||
|
||||
this.comboBoxActivityType.ItemsSource = Util.GlobalStructures.Edifact8025;
|
||||
this.comboBoxActivityType.ItemsSource = Util.GlobalStructures.Edifact8025WithKey;
|
||||
this.comboBoxActivityType.SelectionChanged += ComboBoxActivityType_SelectionChanged;
|
||||
this.comboBoxActivityType.SelectedValue = this.ShipToShipActivity.ShipToShipActivityTypeCode;
|
||||
|
||||
@ -61,10 +63,12 @@ namespace ENI2.EditControls
|
||||
this.ShipToShipActivity.ShipToShipActivityLocationCoordinatesLatitude = bsmd.database.Util.DecimalDegreesToNSW(this.doubleUpDownLatitudeDegrees.Value ?? 0);
|
||||
this.ShipToShipActivity.ShipToShipActivityLocationCoordinatesLongitude = bsmd.database.Util.DecimalDegreesToNSW(this.doubleUpDownLongitudeDegrees.Value ?? 0);
|
||||
this.ShipToShipActivity.ShipToShipActivityDateFrom = this.datePickerFrom.SelectedDate;
|
||||
this.ShipToShipActivity.ShipToShipActivityDateTo = this.datePickerTo.SelectedDate;
|
||||
// this.ShipToShipActivity.ShipToShipActivityType = this.textBoxActivityType.Text.Trim();
|
||||
if(this.comboBoxActivityType.SelectedValue != null)
|
||||
this.ShipToShipActivity.ShipToShipActivityTypeCode = (int) this.comboBoxActivityType.SelectedValue;
|
||||
this.ShipToShipActivity.ShipToShipActivityDateTo = this.datePickerTo.SelectedDate;
|
||||
if (this.comboBoxActivityType.SelectedValue != null)
|
||||
{
|
||||
this.ShipToShipActivity.ShipToShipActivityTypeCode = (int)this.comboBoxActivityType.SelectedValue;
|
||||
this.ShipToShipActivity.ShipToShipActivityType = GlobalStructures.Edifact8025[this.ShipToShipActivity.ShipToShipActivityTypeCode.Value];
|
||||
}
|
||||
this.ShipToShipActivity.ShipToShipActivitySecurityMattersToReport = this.textBoxSecurityMatters.Text.Trim();
|
||||
}
|
||||
|
||||
|
||||
@ -92,7 +92,7 @@
|
||||
<DataGridTextColumn Header="Id" Binding="{Binding DisplayId}" IsReadOnly="True" />
|
||||
<DataGridTextColumn Header="Status" Binding="{Binding BSMDStatusInternal}" IsReadOnly="True" />
|
||||
<DataGridTextColumn Header="{x:Static p:Resources.textTicketNo}" Binding="{Binding TicketNo}" IsReadOnly="True" Width="*"/>
|
||||
<DataGridTextColumn Header="# Sent" Binding="{Binding NumberSent}" IsReadOnly="True" />
|
||||
<DataGridTextColumn Header="# Sent" Binding="{Binding NumberSentDisplay}" SortMemberPath="NumberSent" IsReadOnly="True" />
|
||||
<DataGridCheckBoxColumn Header="Locked" Binding="{Binding Locked}" IsReadOnly="True" />
|
||||
</DataGrid.Columns>
|
||||
</DataGrid>
|
||||
|
||||
2
OTRS.md
2
OTRS.md
@ -1 +1 @@
|
||||
# OTRS Server
## Stand: 10.2.2020
Da ich zur Pflege genötigt wurde hier ein paar dafür notwendige Notizen
Der Server ist eine VM die mit Centos läuft. Anmeldung erfolgt umständlich:
Nach Sophos VPN Zugang geht es auf den NSW Rechner, von dort aus per RDP auf die 192.168.99.220, Zugangsdaten sind in Keepass.
Backup ist ein .sh Script, das im Root verzeichnis (Home) liegt.
Hier wird einfach auf ein gemountetes Verzeichnis kopiert (Mount-Ziel der neue AD: SRV-21)
Das Script läuft nur dann an, wenn im Zielverzeichnis (/backup) eine Datei namens ".mounted" existiert. Hier scheint es einen kleinen Bug zu geben, da mMn diese Datei automatisch mit dem Mount generiert werden müsste. Falls der Backup nicht geht ist es daher immer einfach, diese Datei einfach per "touch" anzulegen, danach sollte es mit dem nächsten Cycle anlaufen.
Unter Tage habe ich das noch nie angeschmissen, da das Script den Server gut belastet und natürlich auch gleichzeitig damit gearbeitet wird.
AD Einstellung, LDAP Server. Hier geht es nicht um die AD Anbindung von Kunden, sondern der Mitarbeiter (AGENTS).
Diese Einstellung findet man in der /opt/otrs/Kernel/Config.pm
Hier nach "LDAP" suchen und die beiden Einträge von "Host" entsprechend ändern. Früher war da die IP hinterlegt, jetzt habe ich den neuen Sven AD eingetragen (SRV-21).
Aus inhaltlichen Änderungen bei OTRS halte ich mich raus, da ich keine Zeit habe, mich in die Materie einzuarbeiten. Das habe ich auch so geg. Basti kommuniziert.
2. Versuch:
In Config.pm wurde der Eintrag von SRV-21 auf 192.168.99.221 geändert (also IP)
Jetzt funktioniert es auch nach Abschaltung des alten AD. Ich komme aktuell von außen nicht mehr auf das OTRS aber das soll für den Moment egal sein. Arbeiten können sie ja..
|
||||
# OTRS Server
## Stand 23.7.21
der 192.168.99.220 ist Geschichte.
Von NSW Server aus müsste es direkt mit SSH gehen (! SSH Client installieren)
Korrekte IP ist 192.168.99.219 (OTRS Server)
Nach Platte voll Größe von Sven in der VM auf 150GB verdoppelt, dann mit fdisk Platte gelöscht und neu angelegt (ist /dev/sdc, einzige Partition), anschließend mit resize2fs das Dateisystem vergrößert und rebootet.
Zugang: Sophos BSMD -> auf Wetris Server -> mit Firefox die 192.168.99.241 erreicht und auf dem VMware Oberfläche angemeldet mit DanielSchick und Winter2021+
Root Passwort ist: aadIXX213___3131A
## Stand: 10.2.2020
Da ich zur Pflege genötigt wurde hier ein paar dafür notwendige Notizen
Der Server ist eine VM die mit Centos läuft. Anmeldung erfolgt umständlich:
Nach Sophos VPN Zugang geht es auf den NSW Rechner, von dort aus per RDP auf die 192.168.99.220, Zugangsdaten sind in Keepass.
Backup ist ein .sh Script, das im Root verzeichnis (Home) liegt.
Hier wird einfach auf ein gemountetes Verzeichnis kopiert (Mount-Ziel der neue AD: SRV-21)
Das Script läuft nur dann an, wenn im Zielverzeichnis (/backup) eine Datei namens ".mounted" existiert. Hier scheint es einen kleinen Bug zu geben, da mMn diese Datei automatisch mit dem Mount generiert werden müsste. Falls der Backup nicht geht ist es daher immer einfach, diese Datei einfach per "touch" anzulegen, danach sollte es mit dem nächsten Cycle anlaufen.
Unter Tage habe ich das noch nie angeschmissen, da das Script den Server gut belastet und natürlich auch gleichzeitig damit gearbeitet wird.
AD Einstellung, LDAP Server. Hier geht es nicht um die AD Anbindung von Kunden, sondern der Mitarbeiter (AGENTS).
Diese Einstellung findet man in der /opt/otrs/Kernel/Config.pm
Hier nach "LDAP" suchen und die beiden Einträge von "Host" entsprechend ändern. Früher war da die IP hinterlegt, jetzt habe ich den neuen Sven AD eingetragen (SRV-21).
Aus inhaltlichen Änderungen bei OTRS halte ich mich raus, da ich keine Zeit habe, mich in die Materie einzuarbeiten. Das habe ich auch so geg. Basti kommuniziert.
2. Versuch:
In Config.pm wurde der Eintrag von SRV-21 auf 192.168.99.221 geändert (also IP)
Jetzt funktioniert es auch nach Abschaltung des alten AD. Ich komme aktuell von außen nicht mehr auf das OTRS aber das soll für den Moment egal sein. Arbeiten können sie ja..
|
||||
Binary file not shown.
@ -1388,7 +1388,8 @@ namespace bsmd.database
|
||||
cmd.CommandText = "SELECT COUNT(*) FROM MessageHeader WHERE MessageHeader.MessageCoreId = @ID AND MessageHeader.BSMDStatus = 5 AND MessageHeader.NotificationClass > 1 AND MessageHeader.NotificationClass < 28"; // compare "CONFIRMED"
|
||||
int sent = this.PerformReadIntQuery(cmd) ?? 0;
|
||||
|
||||
core.NumberSent = string.Format("{0}/{1}", sent, total);
|
||||
core.NumberSentDisplay = string.Format("{0}/{1}", sent, total);
|
||||
core.NumberSent = sent;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -330,10 +330,12 @@ namespace bsmd.database
|
||||
/// </summary>
|
||||
public bool IsHighlighted { get; set; }
|
||||
|
||||
public int NumberSent { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// ENI helper, # of notif. classes already sent vs total number (e.g. 18/27)
|
||||
/// </summary>
|
||||
public string NumberSent { get; set; }
|
||||
public string NumberSentDisplay { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
@ -2,6 +2,6 @@
|
||||
|
||||
[assembly: AssemblyCompany("schick Informatik")]
|
||||
[assembly: AssemblyProduct("BSMD NSW interface")]
|
||||
[assembly: AssemblyInformationalVersion("6.4.2")]
|
||||
[assembly: AssemblyInformationalVersion("6.4.3")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2014-2021 schick Informatik")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
@ -1,4 +1,4 @@
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("6.4.2.*")]
|
||||
[assembly: AssemblyVersion("6.4.3.*")]
|
||||
|
||||
|
||||
@ -70,6 +70,10 @@ namespace bsmd.database
|
||||
[ENI2Validation]
|
||||
public string ShipToShipActivityType { get; set; }
|
||||
|
||||
public string ShipToShipActivityTypeDisplay {
|
||||
get { return string.Format("{0} {1}", ShipToShipActivityTypeCode.HasValue ? ShipToShipActivityTypeCode.ToString() : "", ShipToShipActivityType); }
|
||||
}
|
||||
|
||||
[ShowReport]
|
||||
[MaxLength(255)]
|
||||
[ENI2Validation]
|
||||
|
||||
@ -426,7 +426,8 @@ namespace bsmd.database
|
||||
}
|
||||
if(totalWAGTNP == 0)
|
||||
{
|
||||
violations.Add(RuleEngine.CreateViolation(ValidationCode.IMPLAUSIBLE, "Total waste is 0 for WasteAmountGeneratedTillNextPort for all waste types", null, this.Title, null, this.Tablename));
|
||||
// herausgenommen lt Karte für 6.4.3 (15.7.21)
|
||||
// violations.Add(RuleEngine.CreateViolation(ValidationCode.IMPLAUSIBLE, "Total waste is 0 for WasteAmountGeneratedTillNextPort for all waste types", null, this.Title, null, this.Tablename));
|
||||
}
|
||||
if((totalWDA == 0) && !(WasteDisposalDelivery.HasValue && (WasteDisposalDelivery.Value == 2)))
|
||||
{
|
||||
|
||||
@ -5,9 +5,8 @@ ___
|
||||
|
||||
# Planung
|
||||
|
||||
6.4.2 ExcelReadService
|
||||
NEU: log4net 2.0.8 -> 2.0.12 // Muss bei allen abhängigen Projekten beachtet werden!
|
||||
Newtonsoft.JSON 13.0.1
|
||||
ENI 6.4.3 (Updates abh. Libraries, neuer ClickOnce Key (!!!) da abgelaufen, kleinere Änderungen)
|
||||
ReportGenerator 6.4.3 (?), mit den Restpunkten, z.B. verbesserte IMDG Darstellung
|
||||
|
||||
# Aktuell installiert bei BSMD
|
||||
|
||||
@ -19,9 +18,9 @@ LockingService (Anmeldungen sperren) vom 23.11.17
|
||||
|
||||
nswservice DBH (Antworten, IIS) vom 2.12.19
|
||||
|
||||
## 6.0.7
|
||||
## 6.4.2
|
||||
|
||||
ReportGenerator vom 13.5.20
|
||||
ReportGenerator vom 24.6.21
|
||||
|
||||
## 6.0.8
|
||||
|
||||
@ -31,9 +30,9 @@ POService vom 15.7.20
|
||||
|
||||
nsw.service (Wetris Datenabruf) vom 15.3.21
|
||||
|
||||
## 6.2.0
|
||||
## 6.4.2
|
||||
|
||||
ExcelReadService (classic mit Pop3) vom 26.4.21
|
||||
ExcelReadService (neu mit BouncyCastle) vom 24.6.21
|
||||
|
||||
## 6.4.0
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user