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

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