コード例 #1
0
ファイル: Workflow.svc.cs プロジェクト: paraneye/WebService
        /**********************************************************************************************
         * Mehtod   명 : SaveWorkflowForEasy
         * 개   발  자 : 양영석
         * 생   성  일 : 2014-03-05
         * 용       도 : 해당 Workflow에 대한 의견을 확정한다.(승인/거부전용)
         * Input    값 : SaveWorkflowForEasy(Workflow Type 코드, 해당ID, 해당순번, 승인여부, 로그인ID, 내용, 결재사유)
         * Ouput    값 : SigmaResultType
         **********************************************************************************************/
        /// <summary>
        /// SaveWorkflowForEasy : 해당 Workflow에 대한 의견을 확정한다.(승인/거부전용)
        /// </summary>
        /// <param name="WorkflowTypeCode">Workflow Type 코드</param>
        /// <param name="TargetId">해당ID</param>
        /// <param name="TargetSeq">해당순번(0일때 가장 마지막 값로딩)</param>
        /// <param name="IsAgree">승인여부</param>
        /// <param name="UserID">로그인ID</param>
        /// <param name="Context">내용</param>
        /// <param name="Comment">결재사유</param>
        /// <returns>SigmaResultType</returns>
        public SigmaResultType SaveWorkflowForEasy(string WorkflowTypeCode, int TargetId, int TargetSeq, bool IsAgree, string UserID, string Context, string Comment)
        {
            SigmaResultType result = new SigmaResultType();

            try
            {
                WorkflowMgr workflowMgr = new WorkflowMgr();

                workflowMgr.SaveWorkflowForEasy(WorkflowTypeCode, TargetId, TargetSeq, IsAgree, UserID, Context, Comment);

                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;
            }
        }