예제 #1
0
        public static CommentViewModel MakeCommentViewModel(BasicSurveyReportViewModel paramModel, string detailCode, RptMentorComment rptMentorComment = null)
        {
            CommentViewModel viewModel = new CommentViewModel();

            if (rptMentorComment == null)
            {
                viewModel.DetailCd = detailCode;
                viewModel.Comment = "";
            }
            else
            {
                viewModel.DetailCd = rptMentorComment.DetailCd;
                viewModel.Comment = rptMentorComment.Comment;
            }

            return viewModel;
        }
예제 #2
0
        public static CommentViewModel MakeCommentViewModel(string detailCode, RptMngComment rptMngComment = null)
        {
            CommentViewModel viewModel = new CommentViewModel();

            if (rptMngComment == null)
            {
                viewModel.DetailCd = detailCode;
                viewModel.Comment = "";
            }
            else
            {
                viewModel.DetailCd = rptMngComment.DetailCd;
                viewModel.Comment = rptMngComment.Comment;
            }

            return viewModel;
        }
예제 #3
0
        public static RptMentorComment MakeRptMentorcomment(CommentViewModel viewModel, BasicSurveyReportViewModel paramModel)
        {
            RptMentorComment rptComment = new RptMentorComment();
            rptComment.DetailCd = viewModel.DetailCd;
            rptComment.Comment = viewModel.Comment == null ? "" : viewModel.Comment ;
            rptComment.BasicYear = paramModel.BizWorkYear;
            rptComment.BizWorkSn = paramModel.BizWorkSn;
            rptComment.QuestionSn = paramModel.QuestionSn;

            return rptComment;
        }