예제 #1
0
파일: IJobAgent.cs 프로젝트: guomxin/Galaxy
        public static GalaxyJobRunResult String2JobRunResult(string strJobRunResult)
        {
            GalaxyJobRunResult jobRunResult = GalaxyJobRunResult.Failed;

            if (strJobRunResult == "Failed")
            {
                jobRunResult = GalaxyJobRunResult.Failed;
            }
            else if (strJobRunResult == "Successful")
            {
                jobRunResult = GalaxyJobRunResult.Successful;
            }

            return(jobRunResult);
        }
예제 #2
0
파일: IJobAgent.cs 프로젝트: guomxin/Galaxy
        public static string JobRunResult2String(GalaxyJobRunResult jobRunResult)
        {
            string strJobRunResult = "";

            switch (jobRunResult)
            {
            case GalaxyJobRunResult.Failed:
                strJobRunResult = "Failed";
                break;

            case GalaxyJobRunResult.Successful:
                strJobRunResult = "Successful";
                break;
            }

            return(strJobRunResult);
        }