Exemplo n.º 1
0
        public bool DalCheckCode(string CODE)
        {
            string sql   = @"SELECT COUNT(*) FROM MMIS_STORAGE WHERE CODE = '" + CODE + "'";
            int?   count = sqlDBHelper.GetCount(sql);

            if (count != null && count > 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }
Exemplo n.º 2
0
        /*实现登陆方法*/
        public bool CheckInformation(string Code, string Password)
        {
            string sql   = @"SELECT COUNT(*) FROM PUB_EMP WHERE ID = " + Code + " AND PASSWORD = "******"";
            int?   count = sqlDBHelper.GetCount(sql);

            if (count != null && count > 0)
            {
                return(true);
            }
            else
            {
                return(false);
            }
        }