示例#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);
 }
示例#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);
        }