Esempio n. 1
0
 public void Handle(SpecialMessage msg)
 {
     SpecialMsgCount++;
 }
 public void Handle(SpecialMessage message)
 {
     // actually handle the SpecialMessage
 }
Esempio n. 3
0
        /// <summary>
        /// 作者:Primo
        /// 时间:2015.06.29
        /// 描述:创建南京的特殊记录
        /// </summary>
        /// <param name="model"></param>
        /// <returns></returns>
        public static bool CreateSpecialMessage(SpecialMessage model)
        {
            try
            {
                var edb = new EmeEntities();
                edb.Entry(model).State = EntityState.Added;
                var result = edb.SaveChanges() > 0;
                return result;
            }
            catch (Exception e)
            {
                // 异常日志消息队列
                Common.MSMQ.QueueManager.AddExceptionLog(new ExceptionLogs()
                {
                    ExceptionType = CommonHelper.To<int>(ExceptionType.Function),
                    Message = string.Format("EmeBLL-CreateSpecialMessage:{0};{1};{2}", e.Message, e.InnerException.Message, e.HelpLink),
                    IsTreat = false,
                    CreateBy = model.CreateBy,
                    CreateTime = DateTime.Now
                });

                return false;
            }
        }
Esempio n. 4
0
 protected void OnSpecialMessageEvt(SpecialMessage sm, object call)
 {
     SpecialMessageEvt?.Invoke(sm, call);
 }
Esempio n. 5
0
 /// <summary>
 /// 作者:Primo
 /// 时间:2015.06.29
 /// 描述:写入学生知道了记录
 /// </summary>
 /// <returns></returns>
 public JsonResult OkSpecialMessage()
 {
     var result = false;
     var model = new SpecialMessage()
     {
         UserId = Eme.WebCommon.LoginUserManager.CurrLoginUser.UserId,
         BranchId = Eme.WebCommon.LoginUserManager.CurrLoginUser.BranchId,
         Status = ConvertEnum.StatusTypeForActive,
         CreateBy = Eme.WebCommon.LoginUserManager.CurrLoginUser.UserId,
         CreateTime = DateTime.Now,
         UpdateBy = Eme.WebCommon.LoginUserManager.CurrLoginUser.UserId,
         UpdateTime = DateTime.Now,
         Remark = ""
     };
     result = EmeBLL.CreateSpecialMessage(model);
     return Json(new { status = result }, JsonRequestBehavior.AllowGet);
 }
Esempio n. 6
0
 public void Handle(SpecialMessage message)
 {
 }