Esempio n. 1
0
 private void SaveAdminLog(EnumAdminOperationType operationType, string memo)
 {
     try
     {
         AdminMgr.SaveAdminLog(this.User.Identity.Name, this.Request.UserHostAddress, operationType, _account.ZoneId, _account.Account, _account.Name, _account.ManagerId, memo);
     }
     catch (Exception ex)
     {
         LogHelper.Insert(ex);
     }
 }
Esempio n. 2
0
        public static void SaveAdminLog(string adminName, string ip, EnumAdminOperationType operationType,
                                        string targetZoneId, string targetuser, string managerName, Guid managerId, string memo)
        {
            GmLogEntity entity = new GmLogEntity();

            entity.AdminName      = adminName;
            entity.Ip             = ip;
            entity.OperationType  = (int)operationType;
            entity.ManagerId      = managerId;
            entity.ManagerName    = managerName;
            entity.Memo           = memo;
            entity.TargetZoneId   = targetZoneId;
            entity.TargetUser     = targetuser;
            entity.TargetUserList = "";
            entity.RowTime        = DateTime.Now;
            Bll.GmLogMgr.Insert(entity);
        }