Exemple #1
0
        /// <summary>
        /// get next or previous message details
        /// </summary>
        /// <param name="msgCode"></param>
        /// <param name="mode"></param>
        /// <param name="mailMode"></param>
        /// <returns></returns>
        public string GetNextOrPreviousMsgCode(string msgCode, string mode, string mailMode)
        {
            DataControl.BLMessaging objMsg     = new DataControl.BLMessaging();
            DataControl.CurrentInfo objCurInfo = new DataControl.CurrentInfo();
            string resultMsgCode = string.Empty;

            try
            {
                resultMsgCode = objMsg.GetPreviousOrNextMail(objCurInfo.GetCompanyCode(), msgCode, mode, objCurInfo.GetUserCode(), mailMode);
                if (string.IsNullOrEmpty(resultMsgCode))
                {
                    resultMsgCode = "NOMSG";
                }
            }
            catch (Exception ex)
            {
                Dictionary <string, string> dicObj = new Dictionary <string, string>();
                DataControl.Impl.ExceptionHandler.WriteLog(ex: ex, dic: dicObj);
            }
            return(resultMsgCode);
        }