// // GET: /ReportContainer/ public ActionResult Index() { ClaimSelector claimSelectorInfo = new ClaimSelector { ModuleId = Convert.ToInt32(EnumHelperLibrary.GetFieldInfoFromEnum(Enums.Modules.Reporting).FieldIdentityNumber) }; SelectClaimsViewModel selectClaimViewModel = AutoMapper.Mapper.Map <ClaimSelector, SelectClaimsViewModel>(claimSelectorInfo); return(View(selectClaimViewModel)); }
public ActionResult Index() { ClaimSelector claimSelectorInfo = new ClaimSelector { ModuleId = Convert.ToInt32(EnumHelperLibrary.GetFieldInfoFromEnum(Enums.Modules.Reporting).FieldIdentityNumber) }; SelectClaimsViewModel denialSelectClaimsViewModel = AutoMapper.Mapper.Map <ClaimSelector, SelectClaimsViewModel>(claimSelectorInfo); return(View("~/Areas/Report/Views/DenialManagementReport/Index.cshtml", denialSelectClaimsViewModel)); }
public JsonResult GetSelectClaims(SelectClaimsViewModel selectClaims) { selectClaims.FacilityId = GetCurrentFacilityId(); ClaimSelector selectClaimsList = AutoMapper.Mapper.Map <SelectClaimsViewModel, ClaimSelector>(selectClaims); //Get the UserName logged in selectClaimsList.UserName = GetCurrentUserName(); selectClaimsList.FacilityId = GetCurrentFacilityId(); selectClaimsList.SsiNumber = GetSsiNumberBasedOnFacilityId(selectClaims.FacilityId); selectClaimsList.ModelId = selectClaims.ModelId; long claimscount = PostApiResponse <long>(Constants.ClaimSelection, Constants.GetSelectedClaimList, selectClaimsList); return(claimscount > 0 ? Json(new { sucess = true, Id = claimscount }) : Json(new { sucess = true, Id = 0 })); }
public JsonResult AddSelectClaims(SelectClaimsViewModel selectClaims) { selectClaims.FacilityId = GetCurrentFacilityId(); selectClaims.IsUserDefined = true; ClaimSelector selectClaimsList = AutoMapper.Mapper.Map <SelectClaimsViewModel, ClaimSelector>(selectClaims); //Get the UserName logged in selectClaimsList.UserName = GetCurrentUserName(); selectClaimsList.CommandTimeoutForSelectClaimIdsforAdjudicate = Convert.ToInt32(GlobalConfigVariable.CommandTimeoutForClaimsSelection); bool isRequestnameExist = PostApiResponse <bool>(Constants.ClaimSelection, Constants.CheckAdjudicationRequestNameExist, selectClaimsList); //Get Request Unique name exist or not if (isRequestnameExist) { return(Json(new { success = true })); } long claimsId = PostApiResponse <long>(Constants.ClaimSelection, Constants.AddEditSelectClaims, selectClaimsList); return(claimsId > 0 ? Json(new { sucess = true, Id = claimsId }) : Json(new { sucess = false, Id = claimsId })); }