public IActionResult UploadDonationRemark(DonationRemarkModel model)
        {
            string login_id = UserHelper.UserInfo(((ClaimsIdentity)User.Identity), "LoginId");
            string remark   = model.Remark.Replace("'", "''");

            DonationRemarkService.UpdateDonationRemark(model, login_id);
            return(RedirectToAction("Index", "DonationRemark", new { inst_code = model.Inst_code }));
        }
        public IActionResult Index(string inst_code)
        {
            Session.SetString("current_sys", "D");
            ViewBag.IsHtmlMessage        = true;
            ViewBag.SuccessMessage       = TempData["SuccessMessage"] != null ? TempData["SuccessMessage"] : ViewBag.SuccessMessage;
            ViewBag.ErrorMessage         = TempData["ErrorMessage"] != null ? TempData["ErrorMessage"] : ViewBag.ErrorMessage;
            ViewBag.HospClusterList      = MenuService.GetHospitalClusterList(UserHelper.UserInfo(((ClaimsIdentity)User.Identity), "UserGroup_D"));
            ViewBag.HospClusterExAllList = MenuService.GetHospitalClusterList(UserHelper.UserInfo(((ClaimsIdentity)User.Identity), "UserGroup_D"), false);

            ViewBag.DonationPeriod    = UserHelper.UserInfo(((ClaimsIdentity)User.Identity), "Donation_Period");
            ViewBag.PrivilegeDonation = UserHelper.UserInfo(((ClaimsIdentity)User.Identity), "Privilege_Donation");
            ViewBag.HospDesc          = MenuService.GetFlashRptHospGpDesc(inst_code);
            DonationRemarkModel model = new DonationRemarkModel();

            model.Inst_code = inst_code;
            model.Remark    = DonationRemarkService.GetRemarkByHosp(inst_code);
            return(View(model));
        }
Exemple #3
0
 public void UpdateDonationRemark(DonationRemarkModel model, string login_id)
 {
     DonationRemarkRepository.DeleteRemarkByHosp(model.Inst_code);
     DonationRemarkRepository.InsertRemarkByHosp(model.Inst_code, model.Remark, login_id);
 }