Ejemplo n.º 1
0
 /// <summary>
 /// 添加新提醒
 /// </summary>
 /// <param name="model"></param>
 public static void AddNewRemind(Model.RemindModel model)
 {
     model.CreateTime = DateTime.Now;
     model.RemindId   = Common.TimeString.GetNow_ff();
     DAL.RemindDAL dal = new DAL.RemindDAL();
     dal.Add(model);
 }
Ejemplo n.º 2
0
        /// <summary>
        /// 保存一个新的提醒
        /// </summary>
        /// <param name="model"></param>
        public void SaveReMind(Model.RemindModel model)
        {
            model.RemindId = Common.TimeString.GetNow_ff();
            if (model.ReUserId.Trim() == Common.CookieSings.GetCurrentUserId().Trim())
            {
                //如果被提醒的用户就是当前我登录的用户, 那就无需提醒了吧

                return;
            }
            DAL.RemindDAL dal = new DAL.RemindDAL();
            dal.Add(model);
        }
Ejemplo n.º 3
0
 /// <summary>
 /// 获得点评列表
 /// </summary>
 /// <param name="strWhere"></param>
 /// <param name="CurrentPage"></param>
 /// <returns></returns>
 public DataSet GetRemindPageList(string strWhere, int CurrentPage)
 {
     DAL.RemindDAL dal = new DAL.RemindDAL();
     return(dal.GetPageList(strWhere, CurrentPage, 20));
 }