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