예제 #1
0
        /// <summary>
        /// 获得数据列表
        /// </summary>
        public List <MobileSoft.Model.System.Tb_System_Help> DataTableToList(DataTable dt)
        {
            List <MobileSoft.Model.System.Tb_System_Help> modelList = new List <MobileSoft.Model.System.Tb_System_Help>();
            int rowsCount = dt.Rows.Count;

            if (rowsCount > 0)
            {
                MobileSoft.Model.System.Tb_System_Help model;
                for (int n = 0; n < rowsCount; n++)
                {
                    model = new MobileSoft.Model.System.Tb_System_Help();
                    //model.IID=dt.Rows[n]["IID"].ToString();
                    if (dt.Rows[n]["CorpID"].ToString() != "")
                    {
                        model.CorpID = int.Parse(dt.Rows[n]["CorpID"].ToString());
                    }
                    model.PNodeCode   = dt.Rows[n]["PNodeCode"].ToString();
                    model.HelpTitle   = dt.Rows[n]["HelpTitle"].ToString();
                    model.HelpContent = dt.Rows[n]["HelpContent"].ToString();
                    modelList.Add(model);
                }
            }
            return(modelList);
        }
예제 #2
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public void Update(MobileSoft.Model.System.Tb_System_Help model)
 {
     dal.Update(model);
 }
예제 #3
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(MobileSoft.Model.System.Tb_System_Help model)
 {
     return(dal.Add(model));
 }