/// <summary>
        /// 获得数据列表
        /// </summary>
        public List <NoName.NetShop.Model.CategoryModel> GetModelList(string strWhere)
        {
            DataSet ds = dal.GetList(strWhere);
            List <NoName.NetShop.Model.CategoryModel> modelList = new List <NoName.NetShop.Model.CategoryModel>();
            int rowsCount = ds.Tables[0].Rows.Count;

            if (rowsCount > 0)
            {
                NoName.NetShop.Model.CategoryModel model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new NoName.NetShop.Model.CategoryModel();
                    if (ds.Tables[0].Rows[n]["CateId"].ToString() != "")
                    {
                        model.CateId = int.Parse(ds.Tables[0].Rows[n]["CateId"].ToString());
                    }
                    model.CateName = ds.Tables[0].Rows[n]["CateName"].ToString();
                    model.CatePath = ds.Tables[0].Rows[n]["CatePath"].ToString();
                    if (ds.Tables[0].Rows[n]["Status"].ToString() != "")
                    {
                        model.Status = int.Parse(ds.Tables[0].Rows[n]["Status"].ToString());
                    }
                    model.PriceRange = ds.Tables[0].Rows[n]["PriceRange"].ToString();
                    if (ds.Tables[0].Rows[n]["IsHide"].ToString() != "")
                    {
                        if ((ds.Tables[0].Rows[n]["IsHide"].ToString() == "1") || (ds.Tables[0].Rows[n]["IsHide"].ToString().ToLower() == "true"))
                        {
                            model.IsHide = true;
                        }
                        else
                        {
                            model.IsHide = false;
                        }
                    }
                    if (ds.Tables[0].Rows[n]["CateLevel"].ToString() != "")
                    {
                        model.CateLevel = int.Parse(ds.Tables[0].Rows[n]["CateLevel"].ToString());
                    }
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// ��������б�
 /// </summary>
 public List<NoName.NetShop.Model.CategoryModel> GetModelList(string strWhere)
 {
     DataSet ds = dal.GetList(strWhere);
     List<NoName.NetShop.Model.CategoryModel> modelList = new List<NoName.NetShop.Model.CategoryModel>();
     int rowsCount = ds.Tables[0].Rows.Count;
     if (rowsCount > 0)
     {
         NoName.NetShop.Model.CategoryModel model;
         for (int n = 0; n < rowsCount; n++)
         {
             model = new NoName.NetShop.Model.CategoryModel();
             if(ds.Tables[0].Rows[n]["CateId"].ToString()!="")
             {
                 model.CateId=int.Parse(ds.Tables[0].Rows[n]["CateId"].ToString());
             }
             model.CateName=ds.Tables[0].Rows[n]["CateName"].ToString();
             model.CatePath=ds.Tables[0].Rows[n]["CatePath"].ToString();
             if(ds.Tables[0].Rows[n]["Status"].ToString()!="")
             {
                 model.Status=int.Parse(ds.Tables[0].Rows[n]["Status"].ToString());
             }
             model.PriceRange=ds.Tables[0].Rows[n]["PriceRange"].ToString();
             if(ds.Tables[0].Rows[n]["IsHide"].ToString()!="")
             {
                 if((ds.Tables[0].Rows[n]["IsHide"].ToString()=="1")||(ds.Tables[0].Rows[n]["IsHide"].ToString().ToLower()=="true"))
                 {
                 model.IsHide=true;
                 }
                 else
                 {
                     model.IsHide=false;
                 }
             }
             if(ds.Tables[0].Rows[n]["CateLevel"].ToString()!="")
             {
                 model.CateLevel=int.Parse(ds.Tables[0].Rows[n]["CateLevel"].ToString());
             }
             modelList.Add(model);
         }
     }
     return modelList;
 }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(NoName.NetShop.Model.CategoryModel model)
 {
     dal.Update(model);
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public void Add(NoName.NetShop.Model.CategoryModel model)
 {
     dal.Add(model);
 }