Пример #1
0
 /// <summary>
 /// 添加一个新的页面元素
 /// </summary>
 /// <param name="model"></param>
 public void SaveIndexDataInfo(Model.IndexDataModel model)
 {
     DAL.IndexDataDAL dal = new DAL.IndexDataDAL();
     if (model.AutoId == 0)
     {
         dal.Add(model);
     }
     else
     {
         dal.Update(model);
     }
 }
Пример #2
0
 public Model.IndexDataModel GetIndexDataModel(decimal AutoId)
 {
     DAL.IndexDataDAL dal = new DAL.IndexDataDAL();
     return(dal.GetModel(AutoId));
 }
Пример #3
0
 public DataSet GetIndexDataPageList(string strWhere, int CurrentPage)
 {
     DAL.IndexDataDAL dal = new DAL.IndexDataDAL();
     return(dal.GetPageList(strWhere, CurrentPage, 20));
 }