/// <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); } }
public Model.IndexDataModel GetIndexDataModel(decimal AutoId) { DAL.IndexDataDAL dal = new DAL.IndexDataDAL(); return(dal.GetModel(AutoId)); }
public DataSet GetIndexDataPageList(string strWhere, int CurrentPage) { DAL.IndexDataDAL dal = new DAL.IndexDataDAL(); return(dal.GetPageList(strWhere, CurrentPage, 20)); }