From 5ac8a9ae35e94e95815717e3414037431a1fb8e5 Mon Sep 17 00:00:00 2001 From: Luc Date: Wed, 28 Apr 2021 14:14:12 +0200 Subject: [PATCH] tested --- eDosStation/EntryBadge.xaml.cs | 18 +++++++++--------- eDosStation/ShowEPDDose.xaml | 32 +++++++++++++++++++++----------- eDosStation/ShowEPDDose.xaml.cs | 9 +++++---- eDosStation/eDosStation.csproj | 12 +++++++----- 4 files changed, 42 insertions(+), 29 deletions(-) diff --git a/eDosStation/EntryBadge.xaml.cs b/eDosStation/EntryBadge.xaml.cs index 8a0b6c2..cb39b07 100644 --- a/eDosStation/EntryBadge.xaml.cs +++ b/eDosStation/EntryBadge.xaml.cs @@ -23,8 +23,7 @@ namespace eDosStation Boolean Inst1 = false, Inst2 = false; private System.Threading.Tasks.Task ReaderTask =null; private DataInterface dataInterface; - - public static LSWDesfirePublic.CCard dfReader; + public LSWDesfirePublic.CCard dfReader = null; //System.Threading.Thread t; //bool nextCSN = false; //bool nextSite = false; @@ -36,6 +35,7 @@ namespace eDosStation DataSet1.GetTaskInfoRow CurTaskRow; enum eCOE { quiz=1} ; + #if SimulateEPD public SimulateData simulData = new SimulateData(); @@ -384,23 +384,24 @@ namespace eDosStation } public void showBadge(int persID, string csn) { - CSN.Text = csn; - Site.Text = string.Empty; - Code.Text = persID.ToString(); - Dispatcher.Invoke(CheckBadge); + CSN.Text = csn; + Site.Text = string.Empty; + Code.Text = persID.ToString(); + Dispatcher.Invoke(CheckBadge); + } public void endPage() { - dfReader.Dispose(); + dfReader.CancelWait(); this.Close(); } private void bClose_Click(object sender, RoutedEventArgs e) { - dfReader?.Dispose(); dfReader = null; this.Close(); } + private void BClear_Click(object sender, RoutedEventArgs e) { CSN.Text = string.Empty; @@ -520,7 +521,6 @@ namespace eDosStation private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e) { - dfReader?.Dispose(); dfReader = null; ep.Close(); } diff --git a/eDosStation/ShowEPDDose.xaml b/eDosStation/ShowEPDDose.xaml index 93cfc15..08770bc 100644 --- a/eDosStation/ShowEPDDose.xaml +++ b/eDosStation/ShowEPDDose.xaml @@ -21,23 +21,33 @@ + - + - - - - - - - - + + + + + + + + + + + + + + + + + @@ -48,8 +58,8 @@ - - + + diff --git a/eDosStation/ShowEPDDose.xaml.cs b/eDosStation/ShowEPDDose.xaml.cs index e56f70a..fb66f2b 100644 --- a/eDosStation/ShowEPDDose.xaml.cs +++ b/eDosStation/ShowEPDDose.xaml.cs @@ -37,15 +37,16 @@ namespace eDosStation { ep.GetStatus(); - isIssued.IsChecked = ep.Issued; + isIssued.Text = ep.Issued ? "Yes" : "no"; Wearer.Text = ep.WearerName; - EpdVisit.Text = $"Visit {ep.WearerID}"; + EpdVisit.Text = ep.WearerID.ToString(); if ((ep.otherAlarms & 0x7f)!=0 || ep.alarmStatus>0) { - cAlarm.IsChecked = true; + hasAlarm.Text = "Yes"; } else - cAlarm.IsChecked = false; + hasAlarm.Text = "no"; + Decoder.AlarmToTextBox(sAlarm, ep); diff --git a/eDosStation/eDosStation.csproj b/eDosStation/eDosStation.csproj index f5899d7..5e5daed 100644 --- a/eDosStation/eDosStation.csproj +++ b/eDosStation/eDosStation.csproj @@ -1,7 +1,7 @@  - + Debug @@ -90,7 +90,9 @@ http://timestamp.digicert.com - + + ..\..\..\..\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.8\System.dll + @@ -301,14 +303,14 @@ This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}. - - + + "C:\Program Files (x86)\Windows Kits\10\bin\10.0.19041.0\x64\signtool.exe" sign /sha1 857150b64ef7d3e679c8cbde425d2a0b5e58ffaa /fd sha256 /d "Integrity & Authenticity" /tr "http://timestamp.digicert.com" $(TargetPath) - + \ No newline at end of file