Example #1
0
 public void GetUserList(DSLUser ds)
 {
     sqlDAUser.SelectCommand.Parameters["@userName"].Value = null;
     sqlDAUser.SelectCommand.Parameters["@password"].Value = null;
     sqlDAUser.SelectCommand.Parameters["@userId"].Value   = null;
     sqlDAUser.Fill(ds);
 }
Example #2
0
 /// <summary>
 /// Retrieve user by username and password.
 /// </summary>
 public void GetUser(string userName, string password, DSLUser ds)
 {
     sqlDAUser.SelectCommand.Parameters["@userName"].Value = userName;
     sqlDAUser.SelectCommand.Parameters["@password"].Value = password;
     sqlDAUser.SelectCommand.Parameters["@userId"].Value   = null;
     sqlDAUser.Fill(ds);
 }
Example #3
0
        public override DataSet Clone()
        {
            DSLUser cln = ((DSLUser)(base.Clone()));

            cln.InitVars();
            return(cln);
        }
Example #4
0
        public DSLUser GetUserList()
        {
            DSLUser ds = new DSLUser();

            sqlDAUser.SelectCommand.Parameters["@userName"].Value = null;
            sqlDAUser.SelectCommand.Parameters["@password"].Value = null;
            sqlDAUser.SelectCommand.Parameters["@userId"].Value   = null;
            sqlDAUser.Fill(ds);
            return(ds);
        }
Example #5
0
        /// <summary>
        /// Retrieve user by username.
        /// </summary>
        public DSLUser GetUser(string userName)
        {
            DSLUser ds = new DSLUser();

            sqlDAUser.SelectCommand.Parameters["@userName"].Value = userName;
            sqlDAUser.SelectCommand.Parameters["@password"].Value = null;
            sqlDAUser.SelectCommand.Parameters["@userId"].Value   = null;
            sqlDAUser.Fill(ds);
            if (ds.TUsers.Count == 1)
            {
                return(ds);
            }
            else
            {
                return(null);
            }
        }