示例#1
0
        public DataSet CheckUsernamePassword(string Username, string Password)
        {
            DBTool dbTool = new DBTool ();

            string GetUserDetail = string.Format("SELECT * FROM tb_user WHERE username = '******' and [password] = '{1}' and status = '1'", Username, Password);
            return dbTool.ExecuteDataSet(GetUserDetail);
        }
示例#2
0
        public DataSet GetList(string categoryid)
        {
            string SQL = "SELECT * FROM mst_subcategory WHERE categoryid = "+categoryid;

            DBTool dbTool = new DBTool();

            try
            {
                return dbTool.ExecuteDataSet(SQL);
            }
            catch (Exception)
            {
                return null;
            }
        }
示例#3
0
        public DataSet GetList()
        {
            string SQL = "SELECT * FROM mst_category where status = 1 ORDER BY [name]";

            DBTool dbTool = new DBTool();

            try
            {
                return dbTool.ExecuteDataSet(SQL);
            }
            catch (Exception)
            {
                return null;
            }
        }