コード例 #1
0
ファイル: Workflow.svc.cs プロジェクト: paraneye/WebService
        /**********************************************************************************************
         * Mehtod   명 : AddWorkflowRoleTitle
         * 개   발  자 : 양영석
         * 생   성  일 : 2014-03-11
         * 용       도 : WorkflowRoleTitle 테이블에 부여된 타이틀을 등록한다.
         * Input    값 : AddWorkflowRoleTitle(TransitionDs 데이터셋, 등록자ID)
         * Ouput    값 : SigmaResultType
         **********************************************************************************************/
        /// <summary>
        /// AddWorkflowRoleTitle : WorkflowRoleTitle 테이블에 부여된 타이틀을 등록한다.
        /// </summary>
        /// <param name="TransitionDsLst">TransitionDs 데이터셋</param>
        /// <param name="CreateBy">등록자ID</param>
        /// <returns>SigmaResultType</returns>
        public SigmaResultType AddWorkflowRoleTitle(List<TypeTransition> TransitionDsLst, string CreateBy)
        {
            SigmaResultType result = new SigmaResultType();

            try
            {
                WorkflowMgr workflowMgr = new WorkflowMgr();

                // wfp_RemoveWorkflowRoleTitle
                // wfp_AddWorkflowRoleTitle
                result.AffectedRow = workflowMgr.AddWorkflowRoleTitle(TransitionDsLst, CreateBy);
                result.IsSuccessful = true;
                return result;
            }
            catch (Exception ex)
            {
                // Log Exception
                ExceptionHelper.logException(ex);
                result.IsSuccessful = false;
                result.ErrorMessage = ex.Message;
                return result;
            }
        }