Exemplo n.º 1
0
        public UserInfoModel QueryReportUserInfoByUserId(string userId)
        {
            var relationList = RelationDALInstance.QueryByChildNodeIDAndType(userId, 6);

            return(relationList != null && relationList.Any() && !string.IsNullOrEmpty(relationList.First().ParentNodeID)
                       ? UserInfoDALInstance.QueryByID(relationList.First().ParentNodeID): null);
        }
Exemplo n.º 2
0
        public bool ModifyPasswordByUserName(string userName, string password)
        {
            var entity = UserInfoDALInstance.QueryByUserName(userName);

            entity.Password = password;
            return(DataOperationInstance.Modify(entity) > 0);
        }
Exemplo n.º 3
0
        public List <UserInfoModel> QueryAllUserInfoByRoleId(string roleId)
        {
            var relationList = RelationDALInstance.QueryByParentNodeIDAndType(roleId, 5);

            return(relationList != null && relationList.Count > 0
                        ? relationList.Select(entity => UserInfoDALInstance.QueryByID(entity.ChildNodeID)).ToList()
                        : null);
        }
Exemplo n.º 4
0
 public UserInfoModel QueryUserInfoByUserName(string userName)
 {
     return(UserInfoDALInstance.QueryByUserName(userName));
 }
Exemplo n.º 5
0
 public string LoginIn(string userName, string password)
 {
     return(UserInfoDALInstance.Login(userName, password));
 }