예제 #1
0
        public bool DeleteUserInfoTable()
        {
            try
            {
                UserInfoQueryBLL.UserInfoDelete(_userName);
            }
            catch (Exception ex)
            {
                //LogHelper.ToLog("DBErr.txt", ex);

                return(false);
            }

            return(true);
        }
예제 #2
0
        public bool UpdateUserInfo()
        {
            Mubea_BTDataSet.UserInfoRow row = UserInfoQueryBLL.UserInfoTable.FindByNameId(UserID);

            if (row != null)
            {
                row.UserName = this.UserName;
                row.Password = this.Password;
                row.Role     = this.Role;

                return(UserInfoQueryBLL.UpdateUserInfo(row));
            }

            return(false);
        }
예제 #3
0
        /// <summary>
        /// UpdateSampleMain, update sample info into samplemian, if update succeed, return True, else return False
        /// </summary>
        /// <returns></returns>
        public bool InsertUserInfoTable()
        {
            try
            {
                UserInfoQueryBLL.UserInfoInsert(_userID, _userName, _password, _role);
            }
            catch (Exception ex)
            {
                //LogHelper.ToLog("DBErr.txt", ex);

                return(false);
            }

            return(true);
        }
예제 #4
0
 public static List <string> GetUsersName()
 {
     return(UserInfoQueryBLL.GetUsers());
 }