예제 #1
0
        public ActionResult NewFileNote(FileNoteDetailModal model)
        {
            DocumentService documentService = new DocumentService();

            documentService.CreateFileNoteRecord(model.CreatedBy_Id_Fn, model.ShortDescription_Fn, model.Detail_Fn, model.ClaimId_Fn, model.FileNoteDate_Fn.Value);
            //return Redirect(Session[SessionHelper.FromURL].ToString());
            string claimNoType = model.ClaimRefNo_Fn;
            string redirectUrl = GetRedirectUrl(claimNoType, model.ClaimId_Fn, "filenote");

            return(Redirect(redirectUrl));
        }
예제 #2
0
        public async Task <ActionResult> _FileNoteDetail(FileNoteDetailModal model)
        {
            documentService = new DocumentService();
            if (!string.IsNullOrEmpty(model.H_FileNotesId_Fn))
            {
                await documentService.UpdateFileNoteRecord(model.CreatedBy_Id_Fn, model.ShortDescription_Fn, model.Detail_Fn, model.ClaimId_Fn, model.FileNoteDate_Fn.Value, model.H_FileNotesId_Fn);
            }
            else
            {
                await documentService.CreateFileNoteRecord(model.CreatedBy_Id_Fn, model.ShortDescription_Fn, model.Detail_Fn, model.ClaimId_Fn, model.FileNoteDate_Fn.Value);
            }

            return(Json("success", JsonRequestBehavior.AllowGet));
        }
예제 #3
0
        public ActionResult NewFileNote()
        {
            Session[SessionHelper.FromURL] = Request.UrlReferrer == null?Request.Url.AbsoluteUri.ToString() : Request.UrlReferrer.ToString();

            FileNoteDetailModal model         = new FileNoteDetailModal();
            ClaimServices       claimServices = new ClaimServices();
            ClaimTeamLoginModel client        = (ClaimTeamLoginModel)Session[SessionHelper.claimTeamLogin];

            model.CreatedDate_Fn  = DateTime.Now;
            model.CreatedBy_Id_Fn = client.UserId;
            model.CreatedBy_Fn    = client.FirstName + " " + client.LastName;
            model.RefnuberList_Fn = claimServices.GetClaimsForUser(client.UserId);

            return(View(model));
        }
예제 #4
0
        public ActionResult _FileNoteDetail(string claimId, string Claim_Reference_Num, string claimTeam)
        {
            FileNoteDetailModal model = new FileNoteDetailModal();

            claimServices = new ClaimServices();
            ClaimTeamLoginModel client = (ClaimTeamLoginModel)Session[SessionHelper.claimTeamLogin];

            model.CreatedDate_Fn  = DateTime.Now;
            model.CreatedBy_Id_Fn = client.UserId;
            model.CreatedBy_Fn    = client.FirstName + " " + client.LastName;
            model.ClaimId_Fn      = claimId;
            model.ClaimRefNo_Fn   = Claim_Reference_Num;
            model.RefnuberList_Fn = claimServices.GetClaimsForUser(client.UserId);
            model.FileNoteDate_Fn = DateTime.Now;
            ViewBag.CurrentDate   = DateTime.Now.ToString("dd/MM/yyyy");

            model.ClaimTeamUsersList_Fn = claimServices.GetTeamGetUsersofTeam(ClaimHelper.GetFullTeamName(claimTeam));
            return(PartialView(model));
        }