Beispiel #1
0
 public virtual MessageGroupCollection GetServerNotifyMessages(HttpContext context)
 {
     using (BPMConnection cn = new BPMConnection())
     {
         cn.WebOpen();
         return(NotifyManager.GetDefaultNotifyMessages(cn));
     }
 }
Beispiel #2
0
        public virtual void SaveServerNotifyMessageCat(HttpContext context)
        {
            YZRequest  request    = new YZRequest(context);
            MessageCat messageCat = request.GetEnum <MessageCat>("messageCat");

            JArray post = request.GetPostData <JArray>();
            MessageItemCollection messageItems = post.ToObject <MessageItemCollection>();

            using (BPMConnection cn = new BPMConnection())
            {
                cn.WebOpen();

                MessageGroupCollection messageGroups = NotifyManager.GetDefaultNotifyMessages(cn);
                messageGroups[messageCat.ToString()].MessageItems = messageItems;
                NotifyManager.SaveDefaultNotifyMessages(cn, messageGroups);
            }
        }