Bozza modifica x gestione user che effettua variazioni magazzino

This commit is contained in:
Samuele Locatelli
2021-11-19 19:40:06 +01:00
parent c7dc020a93
commit e28515776e
2 changed files with 18 additions and 0 deletions
+5
View File
@@ -32,6 +32,11 @@ namespace NKC.Data.DbModels
/// Qty recorded (delta +/-)
/// </summary>
public int QtyRec { get; set; } = 0;
/// <summary>
/// User modificatore
/// </summary>
public string UserMod { get; set; } = "";
/// <summary>
/// Navigation property to Remnant
+13
View File
@@ -5,6 +5,7 @@ using NKC.Data.DbModels;
using NKC.Data.DTO;
using NLog;
using System.Diagnostics;
using System.Security.Claims;
using System.Text;
namespace REMAN.Data
@@ -45,6 +46,18 @@ namespace REMAN.Data
protected const string rKeyRemnants = "Cache:Remnants";
protected static string connStringBBM = "";
#if false
protected string currUser
{
get
{
var claimsIdentity = (ClaimsIdentity)this.User.Identity;
var claim = claimsIdentity.FindFirst(ClaimTypes.NameIdentifier);
var userId = claim.Value;
}
}
#endif
#endregion Protected Fields
#region Public Fields