5.9.2: kleiner Patch f HIS-Nord: Live/Testsystem Abruf einstellbar über Config
This commit is contained in:
parent
509cc64798
commit
34ecc34a90
Binary file not shown.
@ -484,14 +484,18 @@ namespace SendNSWMessageService
|
||||
|
||||
}
|
||||
|
||||
bsmd.hisnord.transmitter.CallTransmitter(true);
|
||||
bsmd.hisnord.transmitter.CallTransmitter(false); // wird aktuell nicht funktionieren
|
||||
if(bsmd.hisnord.Properties.Settings.Default.ConnectTestSystem)
|
||||
bsmd.hisnord.transmitter.CallTransmitter(true);
|
||||
if(bsmd.hisnord.Properties.Settings.Default.ConnectLiveSystem)
|
||||
bsmd.hisnord.transmitter.CallTransmitter(false);
|
||||
|
||||
// ob test oder nicht ist in stat. dict gespeicher
|
||||
bsmd.hisnord.Request.ReadResponseFiles();
|
||||
// ob test oder nicht ist in stat. dict gespeichert
|
||||
bsmd.hisnord.Request.ReadResponseFiles();
|
||||
|
||||
bsmd.hisnord.Response.ReadAnswers(true);
|
||||
bsmd.hisnord.Response.ReadAnswers(false);
|
||||
if (bsmd.hisnord.Properties.Settings.Default.ConnectTestSystem)
|
||||
bsmd.hisnord.Response.ReadAnswers(true);
|
||||
if (bsmd.hisnord.Properties.Settings.Default.ConnectLiveSystem)
|
||||
bsmd.hisnord.Response.ReadAnswers(false);
|
||||
|
||||
List<MessageCore> coresMarkedForStatusQuery = DBManager.Instance.GetMessageCoresWithNSWStatusFlag();
|
||||
|
||||
|
||||
@ -2,6 +2,6 @@
|
||||
|
||||
[assembly: AssemblyCompany("schick Informatik")]
|
||||
[assembly: AssemblyProduct("BSMD NSW interface")]
|
||||
[assembly: AssemblyInformationalVersion("5.9.1")]
|
||||
[assembly: AssemblyInformationalVersion("5.9.2")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2014-2019 schick Informatik")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
@ -1,4 +1,4 @@
|
||||
using System.Reflection;
|
||||
|
||||
[assembly: AssemblyVersion("5.9.1.*")]
|
||||
[assembly: AssemblyVersion("5.9.2.*")]
|
||||
|
||||
|
||||
@ -12,7 +12,7 @@ namespace bsmd.hisnord.Properties {
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "14.0.0.0")]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "16.2.0.0")]
|
||||
public sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
|
||||
|
||||
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
|
||||
@ -130,5 +130,29 @@ namespace bsmd.hisnord.Properties {
|
||||
this["LiveTransmitterRoot"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("False")]
|
||||
public bool ConnectTestSystem {
|
||||
get {
|
||||
return ((bool)(this["ConnectTestSystem"]));
|
||||
}
|
||||
set {
|
||||
this["ConnectTestSystem"] = value;
|
||||
}
|
||||
}
|
||||
|
||||
[global::System.Configuration.UserScopedSettingAttribute()]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Configuration.DefaultSettingValueAttribute("True")]
|
||||
public bool ConnectLiveSystem {
|
||||
get {
|
||||
return ((bool)(this["ConnectLiveSystem"]));
|
||||
}
|
||||
set {
|
||||
this["ConnectLiveSystem"] = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -29,5 +29,11 @@
|
||||
<Setting Name="LiveTransmitterRoot" Type="System.String" Scope="User">
|
||||
<Value Profile="(Default)" />
|
||||
</Setting>
|
||||
<Setting Name="ConnectTestSystem" Type="System.Boolean" Scope="User">
|
||||
<Value Profile="(Default)">False</Value>
|
||||
</Setting>
|
||||
<Setting Name="ConnectLiveSystem" Type="System.Boolean" Scope="User">
|
||||
<Value Profile="(Default)">True</Value>
|
||||
</Setting>
|
||||
</Settings>
|
||||
</SettingsFile>
|
||||
@ -34,6 +34,12 @@
|
||||
<setting name="LiveTransmitterRoot" serializeAs="String">
|
||||
<value />
|
||||
</setting>
|
||||
<setting name="ConnectTestSystem" serializeAs="String">
|
||||
<value>False</value>
|
||||
</setting>
|
||||
<setting name="ConnectLiveSystem" serializeAs="String">
|
||||
<value>True</value>
|
||||
</setting>
|
||||
</bsmd.hisnord.Properties.Settings>
|
||||
</userSettings>
|
||||
</configuration>
|
||||
@ -157,9 +157,16 @@ namespace bsmd.hisnord
|
||||
try
|
||||
{
|
||||
XmlSerializer serializer = new XmlSerializer(typeof(result));
|
||||
using (FileStream fs = new FileStream(filename, FileMode.Open))
|
||||
if (!File.Exists(filename))
|
||||
{
|
||||
aResult = (result)serializer.Deserialize(fs);
|
||||
_log.WarnFormat("Expected file {0} does not exist!", filename);
|
||||
}
|
||||
else
|
||||
{
|
||||
using (FileStream fs = new FileStream(filename, FileMode.Open))
|
||||
{
|
||||
aResult = (result)serializer.Deserialize(fs);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
@ -169,8 +176,5 @@ namespace bsmd.hisnord
|
||||
return aResult;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user