예제 #1
0
        public static bool ModifyPwd(Sys_Userlogon model)
        {
            model.SULChangePwdTime = DateTime.Now;
            var updateColumns = new List <Sys_UserlogonFields>()
            {
                Sys_UserlogonFields.SULPassword, Sys_UserlogonFields.SULChangePwdTime
            };

            return(UserLogOnAccess.Update(model, updateColumns) > 0 ? true : false);
        }
예제 #2
0
        public static int UpdateInfo(Sys_Userlogon model)
        {
            var updateColumns = new List <Sys_UserlogonFields>()
            {
                Sys_UserlogonFields.SULAllowMultiUserOnline, Sys_UserlogonFields.SULQuestion
                , Sys_UserlogonFields.SULAnswerQuestion, Sys_UserlogonFields.SULCheckIPAddress
                , Sys_UserlogonFields.SULLanguage, Sys_UserlogonFields.SULTheme
            };

            return(UserLogOnAccess.Update(model, updateColumns));
        }
예제 #3
0
        public static int UpdateLogin(Sys_Userlogon model)
        {
            model.SULIsOnLine      = 1;
            model.SULPrevVisitTime = model.SULLastVisitTime;
            model.SULLastVisitTime = DateTime.Now;
            model.SULLoginCount   += 1;
            var updateColumns = new List <Sys_UserlogonFields>()
            {
                Sys_UserlogonFields.SULIsOnLine, Sys_UserlogonFields.SULPrevVisitTime
                , Sys_UserlogonFields.SULLastVisitTime, Sys_UserlogonFields.SULLoginCount
            };

            return(UserLogOnAccess.Update(model, updateColumns));
        }