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

            if (rowsCount > 0)
            {
                NoName.NetShop.Model.SalesInfoModel model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new NoName.NetShop.Model.SalesInfoModel();
                    if (ds.Tables[0].Rows[n]["SalesType"].ToString() != "")
                    {
                        model.SalesType = int.Parse(ds.Tables[0].Rows[n]["SalesType"].ToString());
                    }
                    if (ds.Tables[0].Rows[n]["ProductId"].ToString() != "")
                    {
                        model.ProductId = int.Parse(ds.Tables[0].Rows[n]["ProductId"].ToString());
                    }
                    if (ds.Tables[0].Rows[n]["RuleType"].ToString() != "")
                    {
                        model.RuleType = int.Parse(ds.Tables[0].Rows[n]["RuleType"].ToString());
                    }
                    if (ds.Tables[0].Rows[n]["SortValue"].ToString() != "")
                    {
                        model.SortValue = int.Parse(ds.Tables[0].Rows[n]["SortValue"].ToString());
                    }
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(NoName.NetShop.Model.SalesInfoModel model)
 {
     dal.Update(model);
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public void Add(NoName.NetShop.Model.SalesInfoModel model)
 {
     dal.Add(model);
 }
 /// <summary>
 /// ��������б�
 /// </summary>
 public List<NoName.NetShop.Model.SalesInfoModel> GetModelList(string strWhere)
 {
     DataSet ds = dal.GetList(strWhere);
     List<NoName.NetShop.Model.SalesInfoModel> modelList = new List<NoName.NetShop.Model.SalesInfoModel>();
     int rowsCount = ds.Tables[0].Rows.Count;
     if (rowsCount > 0)
     {
         NoName.NetShop.Model.SalesInfoModel model;
         for (int n = 0; n < rowsCount; n++)
         {
             model = new NoName.NetShop.Model.SalesInfoModel();
             if(ds.Tables[0].Rows[n]["SalesType"].ToString()!="")
             {
                 model.SalesType=int.Parse(ds.Tables[0].Rows[n]["SalesType"].ToString());
             }
             if(ds.Tables[0].Rows[n]["ProductId"].ToString()!="")
             {
                 model.ProductId=int.Parse(ds.Tables[0].Rows[n]["ProductId"].ToString());
             }
             if(ds.Tables[0].Rows[n]["RuleType"].ToString()!="")
             {
                 model.RuleType=int.Parse(ds.Tables[0].Rows[n]["RuleType"].ToString());
             }
             if(ds.Tables[0].Rows[n]["SortValue"].ToString()!="")
             {
                 model.SortValue=int.Parse(ds.Tables[0].Rows[n]["SortValue"].ToString());
             }
             modelList.Add(model);
         }
     }
     return modelList;
 }