From 440bf9736294fd7062a6e41a49a22d476757b1e6 Mon Sep 17 00:00:00 2001 From: 4yn Date: Tue, 5 Nov 2019 14:40:03 +0800 Subject: [PATCH] Change to 4D NRIC, add gitignore --- .gitignore | 1 + SL Clearance Management System/.gitignore | 2 + .../BusinessLogic/SLVMSDataBaseConnection.cs | 2 +- .../Model/PersonnelDetails.cs | 4 + .../Model/VisitorRecord.cs | 3 +- .../SL Clearance Management System.csproj | 616 +++++++++--------- .../View/AllVisitorHistory.xaml | 2 +- .../View/BookInPersonnel.xaml | 2 +- .../View/DashBoard.xaml | 4 +- .../View/LookUpClearance.xaml | 4 +- .../PersonnelParticularsEntryControl.xaml | 2 +- .../PersonnelParticularsEntryControl.xaml.cs | 7 +- .../ReviewPersonnelParticularsControl.xaml | 2 +- .../SelectEscortPersonnelDialogueControl.xaml | 2 +- .../View/VisitorHistoryLookup.xaml | 8 +- .../VisitorHistoryLookupViewModel.cs | 8 +- 16 files changed, 343 insertions(+), 326 deletions(-) create mode 100644 .gitignore create mode 100644 SL Clearance Management System/.gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..88dbff1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.vs/ diff --git a/SL Clearance Management System/.gitignore b/SL Clearance Management System/.gitignore new file mode 100644 index 0000000..cd42ee3 --- /dev/null +++ b/SL Clearance Management System/.gitignore @@ -0,0 +1,2 @@ +bin/ +obj/ diff --git a/SL Clearance Management System/BusinessLogic/SLVMSDataBaseConnection.cs b/SL Clearance Management System/BusinessLogic/SLVMSDataBaseConnection.cs index 94bde50..4804ea0 100644 --- a/SL Clearance Management System/BusinessLogic/SLVMSDataBaseConnection.cs +++ b/SL Clearance Management System/BusinessLogic/SLVMSDataBaseConnection.cs @@ -92,7 +92,7 @@ public SLDataBaseConnection(string dataBaseLocation = null) { Environment.Exit(1); } - _connectionString = $"Provider=\'{OleDbProvider}\';Data Source=\'{DataBaseLocation}\'"; + _connectionString = $"Provider=\'{OleDbProvider}\';Data Source=\'{DataBaseLocation}\';"; if(RunConnectionTest()) return; diff --git a/SL Clearance Management System/Model/PersonnelDetails.cs b/SL Clearance Management System/Model/PersonnelDetails.cs index cdb5874..18fcf08 100644 --- a/SL Clearance Management System/Model/PersonnelDetails.cs +++ b/SL Clearance Management System/Model/PersonnelDetails.cs @@ -43,6 +43,10 @@ public string NRIC RaisePropertyChangedEvent(nameof(NRIC)); } } + public string NRIC4D + { + get => _nric.Substring(5, 4); + } public string Rank { get => _rank; diff --git a/SL Clearance Management System/Model/VisitorRecord.cs b/SL Clearance Management System/Model/VisitorRecord.cs index f49ea45..72e0e13 100644 --- a/SL Clearance Management System/Model/VisitorRecord.cs +++ b/SL Clearance Management System/Model/VisitorRecord.cs @@ -6,7 +6,8 @@ public class VisitorRecord { public string NRIC => Visitor?.NRIC ?? "NA"; public string EscortNRIC => Escort?.NRIC ?? "NA"; - + public string NRIC4D => Visitor?.NRIC4D ?? "NA"; + public string EscortNRIC4D => Escort?.NRIC4D ?? "NA"; public PersonnelDetails Visitor { get; set; } public PersonnelDetails Escort { get; set; } diff --git a/SL Clearance Management System/SL Clearance Management System.csproj b/SL Clearance Management System/SL Clearance Management System.csproj index 33c86c0..3a6693c 100644 --- a/SL Clearance Management System/SL Clearance Management System.csproj +++ b/SL Clearance Management System/SL Clearance Management System.csproj @@ -1,309 +1,309 @@ - - - - - Debug - AnyCPU - {FEB497A8-E963-4646-96A5-77F9588C48FC} - WinExe - SLCMS - SLCMS - v4.6.2 - 512 - {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} - 4 - true - - false - publish\ - true - Disk - false - Foreground - 7 - Days - false - false - true - 0 - 1.0.0.%2a - false - true - - - AnyCPU - true - full - false - bin\Debug\ - DEBUG;TRACE - prompt - 4 - - - AnyCPU - pdbonly - true - bin\Release\ - TRACE - prompt - 4 - - - SLCMS.SLVisitorApp - - - true - bin\x64\Debug\ - DEBUG;TRACE - full - x64 - prompt - MinimumRecommendedRules.ruleset - false - true - - - bin\x64\Release\ - TRACE - true - pdbonly - x64 - prompt - MinimumRecommendedRules.ruleset - true - - - icon.ico - - - - - - - - - - - 4.0 - - - - - - - - MSBuild:Compile - Designer - - - - - - LookUpClearance.xaml - - - - - SLClearanceApp.xaml - - - SLClearanceManagementMainWindow.xaml - - - - - - - - - - - - - - - - - - - - - - - - - AllVisitorHistory.xaml - - - ElasticSlackLoadingIndicator.xaml - - - PassManagement.xaml - - - BookInPersonnel.xaml - - - DashBoard.xaml - - - - - - - SettingsUserControl.xaml - - - CircularProgressBar.xaml - - - SelectEscortPersonnelDialogueControl.xaml - - - PersonnelParticularsEntryControl.xaml - - - ReviewPersonnelParticularsControl.xaml - - - ClearanceDetailsEntryControl.xaml - - - UploadBulkClearance.xaml - - - VisitorHistoryLookup.xaml - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - MSBuild:Compile - Designer - - - SLVisitorApp.xaml - Code - - - SLVisitorManagementMainWindow.xaml - Code - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - Designer - MSBuild:Compile - - - - - Code - - - True - True - Resources.resx - - - True - Settings.settings - True - - - ResXFileCodeGenerator - Resources.Designer.cs - - - SettingsSingleFileGenerator - Settings.Designer.cs - - - - - Designer - - - - - - - - False - Microsoft .NET Framework 4.6.2 %28x86 and x64%29 - true - - - False - .NET Framework 3.5 SP1 - false - - - - - - - - - + + + + + Debug + AnyCPU + {FEB497A8-E963-4646-96A5-77F9588C48FC} + WinExe + SLCMS + SLCMS + v4.6.2 + 512 + {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC} + 4 + true + + false + publish\ + true + Disk + false + Foreground + 7 + Days + false + false + true + 0 + 1.0.0.%2a + false + true + + + AnyCPU + true + full + false + bin\Debug\ + DEBUG;TRACE + prompt + 4 + + + AnyCPU + pdbonly + true + bin\Release\ + TRACE + prompt + 4 + + + SLCMS.SLVisitorApp + + + true + bin\x64\Debug\ + DEBUG;TRACE + full + x64 + prompt + MinimumRecommendedRules.ruleset + false + false + + + bin\x64\Release\ + TRACE + true + pdbonly + x64 + prompt + MinimumRecommendedRules.ruleset + true + + + icon.ico + + + + + + + + + + + 4.0 + + + + + + + + MSBuild:Compile + Designer + + + + + + LookUpClearance.xaml + + + + + SLClearanceApp.xaml + + + SLClearanceManagementMainWindow.xaml + + + + + + + + + + + + + + + + + + + + + + + + + AllVisitorHistory.xaml + + + ElasticSlackLoadingIndicator.xaml + + + PassManagement.xaml + + + BookInPersonnel.xaml + + + DashBoard.xaml + + + + + + + SettingsUserControl.xaml + + + CircularProgressBar.xaml + + + SelectEscortPersonnelDialogueControl.xaml + + + PersonnelParticularsEntryControl.xaml + + + ReviewPersonnelParticularsControl.xaml + + + ClearanceDetailsEntryControl.xaml + + + UploadBulkClearance.xaml + + + VisitorHistoryLookup.xaml + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + MSBuild:Compile + Designer + + + SLVisitorApp.xaml + Code + + + SLVisitorManagementMainWindow.xaml + Code + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + Designer + MSBuild:Compile + + + + + Code + + + True + True + Resources.resx + + + True + Settings.settings + True + + + ResXFileCodeGenerator + Resources.Designer.cs + + + SettingsSingleFileGenerator + Settings.Designer.cs + + + + + Designer + + + + + + + + False + Microsoft .NET Framework 4.6.2 %28x86 and x64%29 + true + + + False + .NET Framework 3.5 SP1 + false + + + + + + + + + \ No newline at end of file diff --git a/SL Clearance Management System/View/AllVisitorHistory.xaml b/SL Clearance Management System/View/AllVisitorHistory.xaml index b165286..6705d3e 100644 --- a/SL Clearance Management System/View/AllVisitorHistory.xaml +++ b/SL Clearance Management System/View/AllVisitorHistory.xaml @@ -60,7 +60,7 @@ - + diff --git a/SL Clearance Management System/View/BookInPersonnel.xaml b/SL Clearance Management System/View/BookInPersonnel.xaml index d96786e..e49ffe6 100644 --- a/SL Clearance Management System/View/BookInPersonnel.xaml +++ b/SL Clearance Management System/View/BookInPersonnel.xaml @@ -319,7 +319,7 @@ + Binding="{Binding Path=NRIC4D, Mode=OneWay}"/> diff --git a/SL Clearance Management System/View/DashBoard.xaml b/SL Clearance Management System/View/DashBoard.xaml index 591b5ca..cf378fb 100644 --- a/SL Clearance Management System/View/DashBoard.xaml +++ b/SL Clearance Management System/View/DashBoard.xaml @@ -60,9 +60,9 @@ LoadingRow="VisitorInCampDataGrid_LoadingRow" SelectionChanged="VisitorInCampDataGrid_SelectionChanged" RowHeight="30"> - + - + diff --git a/SL Clearance Management System/View/LookUpClearance.xaml b/SL Clearance Management System/View/LookUpClearance.xaml index de41aa3..d8db3fa 100644 --- a/SL Clearance Management System/View/LookUpClearance.xaml +++ b/SL Clearance Management System/View/LookUpClearance.xaml @@ -306,10 +306,10 @@ controls:DataGridTextSearch.SearchValue="{Binding ElementName=SearchTextBox, Path=Text, UpdateSourceTrigger=PropertyChanged}" LoadingRow="VisitorInCampDataGrid_LoadingRow" SelectionChanged="VisitorInCampDataGrid_SelectionChanged" RowHeight="30"> - + - + diff --git a/SL Clearance Management System/View/UIControls/PersonnelParticularsEntryControl.xaml b/SL Clearance Management System/View/UIControls/PersonnelParticularsEntryControl.xaml index 1f3b5b8..64b0e81 100644 --- a/SL Clearance Management System/View/UIControls/PersonnelParticularsEntryControl.xaml +++ b/SL Clearance Management System/View/UIControls/PersonnelParticularsEntryControl.xaml @@ -92,7 +92,7 @@ - +