Esempio n. 1
0
        private void GetlogEntity()
        {
            logEntity.F_LogId          = Guid.NewGuid().ToString();
            logEntity.F_OperateAccount = Passport.Current.UserName + "(" + Passport.Current.UserNickName + ")";
            logEntity.F_OperateUserId  = Passport.Current.UserId.ToString();
            logEntity.F_OperateTime    = DateTime.Now;
            logEntity.F_IPAddress      = WebCommon.GetIPAddress();
            logEntity.F_Host           = WebHelper.Host;
            logEntity.F_Browser        = WebCommon.GetClientBrowserVersions();

            logEntity.F_DeleteMark = false;
        }
Esempio n. 2
0
        private void GetlogEntity()
        {
            logEntity.F_LogId = Guid.NewGuid().ToString();
            System.Web.Caching.Cache objCache = HttpRuntime.Cache;

            logEntity.F_OperateAccount = ((T_User)objCache["session_user"]).userId.ToString();
            logEntity.F_OperateUserId  = Passport.Current.UserId.ToString();
            logEntity.F_OperateTime    = DateTime.Now;
            logEntity.F_IPAddress      = WebCommon.GetIPAddress();
            logEntity.F_Host           = WebHelper.Host;
            logEntity.F_Browser        = WebCommon.GetClientBrowserVersions();

            logEntity.F_DeleteMark = false;
        }