Beispiel #1
0
        public static string GetUserCodeByUserName(string pm_sUserName)
        {
            string text2;

            try
            {
                string     text           = "";
                EntityData userByUserName = SystemManageDAO.GetUserByUserName(pm_sUserName);
                if (userByUserName.HasRecord())
                {
                    text = userByUserName.GetString("UserCode");
                }
                userByUserName.Dispose();
                text2 = text;
            }
            catch (Exception exception)
            {
                throw exception;
            }
            return(text2);
        }