diff --git a/bsmd.hisnord/Importer.cs b/bsmd.hisnord/Importer.cs
new file mode 100644
index 00000000..abc65a27
--- /dev/null
+++ b/bsmd.hisnord/Importer.cs
@@ -0,0 +1,67 @@
+// Copyright (c) 2014-present schick Informatik
+// Resembles "Importer.java" from ported transmitter code
+
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Threading;
+using System.Threading.Tasks;
+using log4net;
+
+namespace bsmd.hisnord
+{
+ public class Importer
+ {
+ private string[] curFiles = null;
+ private readonly ILog _log = LogManager.GetLogger(typeof(Importer));
+
+ #region public methods
+
+ public void Execute()
+ {
+ _log.Info("starting transmitter");
+
+ try
+ {
+ this.curFiles = TransmitterUtils.readFiles(Properties.Settings.Default.IMPDIR);
+ this.SendFiles();
+ this.GetAnswers();
+ }
+ catch(Exception ex)
+ {
+ _log.ErrorFormat("transmitter failure: {0}", ex.ToString());
+ }
+
+ }
+
+ #endregion
+
+ #region private methods
+
+ private void GetAnswers()
+ {
+ throw new NotImplementedException();
+ }
+
+ private void SendFiles()
+ {
+ foreach(string file in curFiles)
+ {
+ if(File.Exists(file)) // this is probably nonsense
+ {
+ new Thread(() => SendFile(file)) { IsBackground = true }.Start();
+ }
+ }
+ }
+
+ private void SendFile(string file)
+ {
+ throw new NotImplementedException();
+ }
+
+ #endregion
+
+ }
+}
diff --git a/bsmd.hisnord/Properties/Settings.Designer.cs b/bsmd.hisnord/Properties/Settings.Designer.cs
index 28170550..ff102dd3 100644
--- a/bsmd.hisnord/Properties/Settings.Designer.cs
+++ b/bsmd.hisnord/Properties/Settings.Designer.cs
@@ -12,7 +12,7 @@ namespace bsmd.hisnord.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.8.1.0")]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.10.0.0")]
public sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
@@ -118,5 +118,149 @@ namespace bsmd.hisnord.Properties {
this["TransmitterRoot"] = value;
}
}
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("")]
+ public string SERVER {
+ get {
+ return ((string)(this["SERVER"]));
+ }
+ set {
+ this["SERVER"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("5555")]
+ public uint PORT {
+ get {
+ return ((uint)(this["PORT"]));
+ }
+ set {
+ this["PORT"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("500")]
+ public uint PACKETSIZE {
+ get {
+ return ((uint)(this["PACKETSIZE"]));
+ }
+ set {
+ this["PACKETSIZE"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("")]
+ public string KEYSTORE {
+ get {
+ return ((string)(this["KEYSTORE"]));
+ }
+ set {
+ this["KEYSTORE"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("")]
+ public string STOREPASS {
+ get {
+ return ((string)(this["STOREPASS"]));
+ }
+ set {
+ this["STOREPASS"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("")]
+ public string CERTPASS {
+ get {
+ return ((string)(this["CERTPASS"]));
+ }
+ set {
+ this["CERTPASS"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("")]
+ public string IMPDIR {
+ get {
+ return ((string)(this["IMPDIR"]));
+ }
+ set {
+ this["IMPDIR"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("")]
+ public string EXDIR {
+ get {
+ return ((string)(this["EXDIR"]));
+ }
+ set {
+ this["EXDIR"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("")]
+ public string CORDIR {
+ get {
+ return ((string)(this["CORDIR"]));
+ }
+ set {
+ this["CORDIR"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("")]
+ public string VERSION {
+ get {
+ return ((string)(this["VERSION"]));
+ }
+ set {
+ this["VERSION"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("")]
+ public string XMLRESULTDIR {
+ get {
+ return ((string)(this["XMLRESULTDIR"]));
+ }
+ set {
+ this["XMLRESULTDIR"] = value;
+ }
+ }
+
+ [global::System.Configuration.UserScopedSettingAttribute()]
+ [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [global::System.Configuration.DefaultSettingValueAttribute("10")]
+ public uint INTERVAL {
+ get {
+ return ((uint)(this["INTERVAL"]));
+ }
+ set {
+ this["INTERVAL"] = value;
+ }
+ }
}
}
diff --git a/bsmd.hisnord/Properties/Settings.settings b/bsmd.hisnord/Properties/Settings.settings
index 6d22ad4c..618d3f6a 100644
--- a/bsmd.hisnord/Properties/Settings.settings
+++ b/bsmd.hisnord/Properties/Settings.settings
@@ -26,5 +26,41 @@
E:\svnlager\BSMD\nsw\HIS-NORD\
+
+
+
+
+ 5555
+
+
+ 500
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 10
+
\ No newline at end of file
diff --git a/bsmd.hisnord/TransmitterUtils.cs b/bsmd.hisnord/TransmitterUtils.cs
new file mode 100644
index 00000000..9e80f45b
--- /dev/null
+++ b/bsmd.hisnord/TransmitterUtils.cs
@@ -0,0 +1,32 @@
+// Copyright (c) 2014-present schick Informatik
+// This file is one of the direct ports of the "Transmitter Tool" files, namely the "TransferLib.java"
+
+using System;
+using System.Collections.Generic;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace bsmd.hisnord
+{
+
+ ///
+ ///
+ ///
+ public sealed class TransmitterUtils
+ {
+ public static string[] readFiles(string directoryPath)
+ {
+ if((directoryPath != null) && Directory.Exists(directoryPath))
+ {
+ return Directory.GetFiles(directoryPath, "*.xml");
+ }
+ else
+ {
+ return null;
+ }
+
+ }
+ }
+}
diff --git a/bsmd.hisnord/app.config b/bsmd.hisnord/app.config
index 63ead48a..d9a9e828 100644
--- a/bsmd.hisnord/app.config
+++ b/bsmd.hisnord/app.config
@@ -31,6 +31,42 @@
E:\svnlager\BSMD\nsw\HIS-NORD\
+
+
+
+
+ 5555
+
+
+ 500
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 10
+
\ No newline at end of file
diff --git a/bsmd.hisnord/bsmd.hisnord.csproj b/bsmd.hisnord/bsmd.hisnord.csproj
index 0f7b99a1..b52f0f91 100644
--- a/bsmd.hisnord/bsmd.hisnord.csproj
+++ b/bsmd.hisnord/bsmd.hisnord.csproj
@@ -61,6 +61,7 @@
Properties\AssemblyProjectKeyInfo.cs
+
@@ -72,6 +73,7 @@
+
@@ -85,6 +87,7 @@
+
PublicSettingsSingleFileGenerator
diff --git a/bsmd.hisnord/bsmd.hisnord.licenseheader b/bsmd.hisnord/bsmd.hisnord.licenseheader
new file mode 100644
index 00000000..40a1ad03
--- /dev/null
+++ b/bsmd.hisnord/bsmd.hisnord.licenseheader
@@ -0,0 +1,11 @@
+extensions: designer.cs generated.cs
+extensions: .cs .cpp .h
+// Copyright (c) 2014-present schick Informatik
+extensions: .aspx .ascx
+<%--
+Copyright (c) 2014-present schick Informatik
+--%>
+extensions: .xml .config .xsd
+
\ No newline at end of file