コード例 #1
0
        /// <summary>
        /// Lock Study
        /// </summary>
        /// <param name="studyUid">string</param>
        /// <param name="comment">LockComment</param>
        public void LockStudy(
            string studyUid,
            LockComment comment)
        {
            GlobalDefinition.LoggerWrapper.LogTraceInfo("public bool LockStudy() start");
            var lockcomment = comment.ToComment();

            if (GetDBInstance().Lock(studyUid, "PA", DBLockLevel.Study, lockcomment))
            {
                GlobalDefinition.LoggerWrapper.LogDevInfo(
                    "lock study, uid is " + studyUid + "comment is " + lockcomment);
            }
            else
            {
                GlobalDefinition.LoggerWrapper.LogDevWarning("lock study fail. uid is " + studyUid);
            }
            GlobalDefinition.LoggerWrapper.LogTraceInfo("public bool LockStudy() end");
        }
コード例 #2
0
        /// <summary>
        /// ToComment
        /// </summary>
        /// <param name="comment">thisLockComment</param>
        /// <returns>string</returns>
        public static string ToComment(this LockComment comment)
        {
            switch (comment)
            {
            case LockComment.StudySplit:
                return("UID_PA_StudySplit_LockComment");

            case LockComment.StudyMerge:
                return("UID_PA_StudyMerge_LockComment");

            case LockComment.StudyModify:
                return("UID_PA_StudyModify_LockComment");

            case LockComment.StudyCopy:
                return("UID_PA_StudyCopy_LockComment");

            case LockComment.StudyExportToCsv:
                return("UID_PA_StudyExportToCsv_LockComment");
            }
            return(string.Empty);
        }