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

            if (rowsCount > 0)
            {
                NoName.NetShop.Model.SupplyDemandModel model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new NoName.NetShop.Model.SupplyDemandModel();
                    if (ds.Tables[0].Rows[n]["sdId"].ToString() != "")
                    {
                        model.sdId = int.Parse(ds.Tables[0].Rows[n]["sdId"].ToString());
                    }
                    if (ds.Tables[0].Rows[n]["sdType"].ToString() != "")
                    {
                        model.sdType = int.Parse(ds.Tables[0].Rows[n]["sdType"].ToString());
                    }
                    if (ds.Tables[0].Rows[n]["userId"].ToString() != "")
                    {
                        model.userId = int.Parse(ds.Tables[0].Rows[n]["userId"].ToString());
                    }
                    model.Title   = ds.Tables[0].Rows[n]["Title"].ToString();
                    model.Content = ds.Tables[0].Rows[n]["Content"].ToString();
                    if (ds.Tables[0].Rows[n]["InsertTime"].ToString() != "")
                    {
                        model.InsertTime = DateTime.Parse(ds.Tables[0].Rows[n]["InsertTime"].ToString());
                    }
                    if (ds.Tables[0].Rows[n]["ModifyTime"].ToString() != "")
                    {
                        model.ModifyTime = DateTime.Parse(ds.Tables[0].Rows[n]["ModifyTime"].ToString());
                    }
                    if (ds.Tables[0].Rows[n]["Status"].ToString() != "")
                    {
                        model.Status = int.Parse(ds.Tables[0].Rows[n]["Status"].ToString());
                    }
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(NoName.NetShop.Model.SupplyDemandModel model)
 {
     dal.Update(model);
 }
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public void Add(NoName.NetShop.Model.SupplyDemandModel model)
 {
     dal.Add(model);
 }