Exemple #1
0
        /**********************************************************************************************
         * Mehtod   명 : AddMessageBox
         * 개   발  자 : 양영석
         * 생   성  일 : 2014-03-07
         * 용       도 : MessageBox에 Message 등록
         * Input    값 : AddMessageBox(메세지타입코드, 메세지제목, 대상자ID, 내용순번, 발신자ID)
         * Ouput    값 : DataTable
         * Input    값 : AddMessageBox(메세지 내용)
         * Ouput    값 : SigmaResultType
         **********************************************************************************************/
        /// <summary>
        /// AddMessageBox : MessageBox에 Message 등록
        /// </summary>
        /// <param name="MsgTypeCode">메세지타입코드</param>
        /// <param name="MsgTitle">메세지제목</param>
        /// <param name="MsgTo">대상자ID</param>
        /// <param name="ContextSeq">내용순번</param>
        /// <param name="MsgFrom">발신자ID</param>
        /// <returns>SigmaResultType</returns>
        public SigmaResultType AddMessageBox(string MsgTypeCode, string MsgTitle, string MsgTo, int ContextSeq, string MsgFrom)
        {
            SigmaResultType result = new SigmaResultType();

            try
            {
                WorkflowMgr workflowMgr = new WorkflowMgr();

                // wfp_AddMessageBox
                result = workflowMgr.AddMessageBox(MsgTypeCode, MsgTitle, MsgTo, ContextSeq, MsgFrom);
                result.AffectedRow = 1;
                result.IsSuccessful = true;
                return result;
            }
            catch (Exception ex)
            {
                // Log Exception
                ExceptionHelper.logException(ex);
                result.IsSuccessful = false;
                result.ErrorMessage = ex.Message;
                return result;
            }
        }