More Common.CurrentUser related changes (IPERL/ORACLE)

This commit is contained in:
Milan Hanajik
2022-05-30 16:18:56 +02:00
parent f1f662a419
commit 33f5274a6d
10 changed files with 106 additions and 40 deletions
+5 -3
View File
@@ -1,5 +1,5 @@
///
/// Copyright (c) 2016-2021 Sensus Slovensko a.s.
/// Copyright (c) 2016-2022 Sensus Slovensko a.s.
///
using System;
using System.Windows.Forms;
@@ -23,7 +23,7 @@ namespace TBF.UI.ResultsMI
public int FailedCount;
public bool Sent;
protected PreviousResultCtrl()
PreviousResultCtrl()
{
InitializeComponent();
}
@@ -109,11 +109,13 @@ namespace TBF.UI.ResultsMI
/// Access only to thise who manage production tracing
GID[] rqrdGroupMembership = new GID[] { GID.TraceabilityManagement };
if ((new SharedDatabase.Forms.LoginDlg(GlobalData.GetCurrentUserName(), rqrdGroupMembership)).ShowDialog() != DialogResult.OK)
if ((new SharedDatabase.Forms.LoginDlg(CurrentUser.UserName(), rqrdGroupMembership, parent)).ShowDialog() != DialogResult.OK)
{
return;
}
Program.MainWnd.UpdateUser();
parent.OnReloadAndFix(this, new PreviousResultIdEventArgs(BatchNr));
}
#endif