示例#1
0
        public async Task <ActionResult> SearchCommentPopup(RegCommentViewModel paramModel)
        {
            var rptFinanceComment = await _rptFinanceCommentService.GetRptFinanceCommentsAsync(paramModel.CompSn, paramModel.BasicYear, paramModel.BasicMonth);

            var regCommentViewModels =
                Mapper.Map <List <RegCommentViewModel> >(rptFinanceComment);

            return(View(regCommentViewModels));
        }
示例#2
0
        public async Task <ActionResult> RegCommentPopup(RegCommentViewModel paramModel)
        {
            var rptFinanceComment = await _rptFinanceCommentService.GetRptFinanceCommentAsync(paramModel.BizWorkSn, paramModel.CompSn, paramModel.BasicYear, paramModel.BasicMonth);

            if (rptFinanceComment == null)
            {
                paramModel.WriteYN = "N";
            }
            else
            {
                paramModel.WriteYN = "Y";
                paramModel.Comment = rptFinanceComment.Comment;
            }
            return(View(paramModel));
        }
示例#3
0
        public async Task <ActionResult> SaveComment(RegCommentViewModel paramModel)
        {
            var rptFinanceComment =
                Mapper.Map <RptFinanceComment>(paramModel);

            rptFinanceComment.ExpertId = Session[Global.LoginID].ToString();
            rptFinanceComment.WriteDt  = DateTime.Now;

            var saveResult = _rptFinanceCommentService.Insert(rptFinanceComment);

            if (saveResult != null)
            {
                await _rptFinanceCommentService.SaveDbContextAsync();

                return(Json(new { result = true }));
            }
            else
            {
                return(Json(new { result = false }));
            }
        }