bool ITerminalService.ValidateClerkID(String ClerkID, bool Required, out String Message)
        {
            Message = "NO CLERK ID";
            if (ClerkID == null)
            {
                if (Required)
                {
                    return(false);
                }
                else
                {
                    return(true);
                }
            }
            Message = "INVALID CLERKID";
            if (ClerkID.Length > 10)
            {
                return(false);
            }
            ClerkIDAttribute ClerkTest = new ClerkIDAttribute();

            if (!(ClerkTest.IsValid(ClerkID)))
            {
                return(false);
            }

            return(true);
        }
Beispiel #2
0
        String GetFromClerkIDCookie()
        {
            String     ClerkID = "";
            HttpCookie cookie  = Request.Cookies.Get("ClerkID");

            if (cookie != null)
            {
                ClerkID = cookie.Value;
            }
            ClerkIDAttribute Tester = new ClerkIDAttribute();

            if (!Tester.IsValid(ClerkID))
            {
                ClerkID = "";
            }
            return(ClerkID);
        }