예제 #1
0
        /// <summary>
        /// User Inforamation set  To class object.
        /// </summary>
        private void _setUserInfo()
        {
            cmdUser     _user   = new cmdUser();
            cmbAuditLog command = new cmbAuditLog();

            UserInfo = _user.GetUserMaster(UserID)[0];
            if (UserInfo != null)
            {
                //Set User last login;
                LastLoginTime = command.UserLastLogin(UserID);
                //Set User Permissions
                Permissions = _user.GetUserMaster(UserID)[0].Permission;
                //Set Role of user
                _setRole();
            }
        }
예제 #2
0
        /// <summary>
        /// Last User login datetime.
        /// </summary>
        /// <param name="UserID">Long UserID</param>
        /// <returns>DateTime </returns>
        public DateTime UserLastLogin(Guid UserID)
        {
            cmbAuditLog command = new cmbAuditLog();

            return(command.UserLastLogin(UserID));
        }
예제 #3
0
        /// <summary>
        /// Fetch Selected User Information From the Userlogs table
        /// </summary>
        /// <param name="UserID">Long UserID </param>
        /// /// <param name="CurrentDate">Date time paramenter</param>
        /// <returns>List of UserLogs of type UserLogCustom</returns>
        public List <cstAutditLog> GetUserLogAll(Guid UserID, DateTime DateOFLog)
        {
            cmbAuditLog command = new cmbAuditLog();

            return(command.GetUserLog(UserID, DateOFLog));
        }
예제 #4
0
        /// <summary>
        /// Fetch Selected User Information From the Userlogs table
        /// </summary>
        /// <param name="UserID">Long UserID </param>
        /// <returns>List of UserLogs of type UserLogCustom</returns>
        public List <cstAutditLog> GetUserLogAll(Guid UserID)
        {
            cmbAuditLog command = new cmbAuditLog();

            return(command.GetUserLog(UserID));
        }
예제 #5
0
        /// <summary>
        /// Update the UserLogs information
        /// </summary>
        /// <param name="lsUserLog">Updated User Information list </param>
        /// <param name="UserID">User Id (Long)</param>
        /// <returns>Boolean Value</returns>
        public Boolean UpdateUserLog(List <cstAutditLog> lsUserLogInfo, Guid UserID)
        {
            cmbAuditLog command = new cmbAuditLog();

            return(command.UpdateUserLog(lsUserLogInfo, UserID));
        }
예제 #6
0
        /// <summary>
        /// UserLogs table Save method
        /// </summary>
        /// <param name="lsUserLog">list Of user Information(UserCustom)</param>
        /// <returns>Boolen true on success else false</returns>
        public Boolean SaveUserLog(List <cstAutditLog> lsUserLogInfo)
        {
            cmbAuditLog command = new cmbAuditLog();

            return(command.SaveUserLog(lsUserLogInfo));
        }