コード例 #1
0
        ///<summary>PatNum can be 0.</summary>
        public static void MakeLogEntry(Permissions permType, int patNum, string logText)
        {
            SecurityLog securityLog = new SecurityLog();

            securityLog.PermType = permType;
            securityLog.UserNum  = Security.CurUser.UserNum;
            securityLog.LogText  = logText;
            securityLog.PatNum   = patNum;
            SecurityLogs.Insert(securityLog);
        }
コード例 #2
0
        ///<summary>PatNum can be 0.</summary>
        public static void MakeLogEntry(Permissions permType, int patNum, string logText)
        {
            SecurityLog securityLog = new SecurityLog();

            securityLog.PermType = permType;
            securityLog.UserNum  = Security.CurUser.UserNum;
            securityLog.LogText  = "From: " + (SystemInformation.ComputerName) + " - " + (logText);
            securityLog.PatNum   = patNum;
            SecurityLogs.Insert(securityLog);
        }