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); } }
/*实现登陆方法*/ 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); } }