Exemplo n.º 1
0
        /// <summary>
        /// 发送人事提示信息
        /// </summary>
        /// <param name="msgId">提示标题</param>
        /// <param name="account">提示用户</param>
        /// <param name="args">提示信息</param>
        /// <returns></returns>
        public static bool SendPersonnelMsg(string msgId, string account, string msgs)
        {
            bool ret = false;

            try
            {
                IMMsgSender send = new IMMsgSender(MsgServerIP);
                ret = send.SendPersonnelMsg(msgId, account, msgs);
            }
            catch (Exception e)
            {
                ret = false;
                //LogHelper.Write(e.Message, LogMessageType.Error);
            }
            return(ret);
        }
Exemplo n.º 2
0
        /// <summary>
        /// Send Approve
        /// </summary>
        /// <param name="msgId"></param>
        /// <param name="account"></param>
        /// <param name="args"></param>
        /// <param name="MsgServerIP"></param>
        /// <returns></returns>
        public static bool SendApprove(string msgId, string account, string[] args)
        {
            IMMsgSender send = new IMMsgSender(MsgServerIP);

            return(send.SendApprove(msgId, account, args));
            //bool ret = false;
            //try
            //{
            //    if (!string.IsNullOrEmpty(MsgServerIP))
            //    {
            //        IMMsgSender send = new IMMsgSender(MsgServerIP);
            //        ret = send.SendApprove(msgId, account, args);
            //    }
            //}
            //catch (Exception e)
            //{
            //    ret = false;
            //    LogHelper.Write(e.Message);
            //}
            //return ret;
        }