From 8a4ee2ec8618ee1859fb12b3cd3dacfcdda409dd Mon Sep 17 00:00:00 2001 From: Serhiy Perevoznyk Date: Fri, 10 Jun 2022 15:17:59 +0200 Subject: [PATCH] Updated document types --- Swelio.Engine/Swelio.Engine/Card.cs | 28 ++++++++++----------- Swelio.Engine/Swelio.Engine/DocumentType.cs | 4 --- Swelio.Engine/Swelio.Engine/Organization.cs | 19 ++++++++++++++ 3 files changed, 32 insertions(+), 19 deletions(-) create mode 100644 Swelio.Engine/Swelio.Engine/Organization.cs diff --git a/Swelio.Engine/Swelio.Engine/Card.cs b/Swelio.Engine/Swelio.Engine/Card.cs index fb19e8f..11bdf2d 100644 --- a/Swelio.Engine/Swelio.Engine/Card.cs +++ b/Swelio.Engine/Swelio.Engine/Card.cs @@ -7,7 +7,6 @@ //=============================================================================== using System; -using System.Collections.Generic; using System.Text; using System.Drawing; using System.IO; @@ -83,6 +82,8 @@ public Identity ReadIdentity() id.DocumentType = DocumentType.BelgianCitizen; break; case 02: + case 31: + case 32: id.DocumentType = DocumentType.EuropeanCommunity; break; case 03: @@ -101,27 +102,24 @@ public Identity ReadIdentity() id.DocumentType = DocumentType.HabilitationCard; break; case 11: - id.DocumentType = DocumentType.ForeignerCard; - break; case 12: - id.DocumentType = DocumentType.ForeignerCard; - break; case 13: - id.DocumentType = DocumentType.ForeignerCard; - break; case 14: - id.DocumentType = DocumentType.ForeignerCard; - break; case 15: - id.DocumentType = DocumentType.ForeignerCard; - break; case 16: - id.DocumentType = DocumentType.ForeignerCard; - break; case 17: - id.DocumentType = DocumentType.ForeignerCard; - break; case 18: + case 19: + case 20: + case 21: + case 22: + case 23: + case 27: + case 28: + case 33: + case 34: + case 35: + case 36: id.DocumentType = DocumentType.ForeignerCard; break; default: diff --git a/Swelio.Engine/Swelio.Engine/DocumentType.cs b/Swelio.Engine/Swelio.Engine/DocumentType.cs index 9052254..9616868 100644 --- a/Swelio.Engine/Swelio.Engine/DocumentType.cs +++ b/Swelio.Engine/Swelio.Engine/DocumentType.cs @@ -6,10 +6,6 @@ // FITNESS FOR A PARTICULAR PURPOSE. //=============================================================================== -using System; -using System.Collections.Generic; -using System.Text; - namespace Swelio.Engine { public enum DocumentType diff --git a/Swelio.Engine/Swelio.Engine/Organization.cs b/Swelio.Engine/Swelio.Engine/Organization.cs new file mode 100644 index 0000000..84ef35c --- /dev/null +++ b/Swelio.Engine/Swelio.Engine/Organization.cs @@ -0,0 +1,19 @@ +//=============================================================================== +// Copyright (c) Serhiy Perevoznyk. All rights reserved. +// THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY +// OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT +// LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND +// FITNESS FOR A PARTICULAR PURPOSE. +//=============================================================================== + +namespace Swelio.Engine +{ + public enum Organization + { + Unknown, + SHAPE, + NATO, + BlueCard, + Researcher + } +}