/// <summary> /// To show the view on Repair/medical/ACS. /// </summary> /// <param name="controller">claim controller base</param> /// <param name="context">Claim Detail Dto</param> public void SetRenderContext(XIAP.Frontend.Infrastructure.IViewController controller, object context) { var claimModel = (ClaimModel)controller.Model; var claimController = (IClaimControllerBase)controller; ClaimDetailNodeRenderBehaviour claimdetailnoderenderbehaviour = (ClaimDetailNodeRenderBehaviour)controller.Container.Resolve(typeof(INodeRenderBehaviour), "ClaimDetailNodeRenderBehaviour"); claimdetailnoderenderbehaviour.SetRenderContext(controller, context); claimModel.SelectedDto = null; }
public void SetRenderContext(XIAP.Frontend.Infrastructure.IViewController controller, object context) { this.claimController = (AXAClaimController)controller; this.claimModel = (AXAClaimModel)controller.Model; this.claimModel.SelectedDto = (ClaimHeaderDto)context; this.claimModel.ReservePaymentData.UpdateReservePaymentButtonVisibility(ReservePaymentModesEnum.Hidden); this.ValidateDuplicateCommand(); this.AssignClaimantRegistrationNumber(); this.AssignClaimantDetails(); }
public bool IsAvailable(XIAP.Frontend.Infrastructure.ITransactionController transactionController, XIAP.FrontendModules.Infrastructure.NavTree.TreeStructureStore definition, Xiap.Framework.Data.DtoBase parentDto) { IClaimLitigationData cld = null; cld = parentDto.Data as ClaimLitigationData; if (definition.Node == "ClaimLitigationMainDetails" && (cld.LitigationType == AXAClaimConstants.LITIGATIONTYPE_LIT || cld.LitigationType == AXAClaimConstants.LITIGATIONTYPE_OTH)) { return true; } return false; }
public override void Validate(XIAP.Frontend.Infrastructure.ValidateSearchResults plainSearchCompleted, bool isValidate) { this.ClaimSearchModel.SelectedResultsRow.ReferenceValue = this.GenerateClaimReference(this.ClaimSearchModel.SelectedResultsRow.ReferenceValue); if (this.reference.Equals(this.ClaimSearchModel.SelectedResultsRow.ReferenceValue)) { plainSearchCompleted(null); return; } this.reference = this.ClaimSearchModel.SelectedResultsRow.ReferenceValue; base.Validate(plainSearchCompleted, isValidate); }
public void LoadChildren(XIAP.Frontend.Infrastructure.ITransactionController transactionController, TreeNodeData<ActionKey> node) { var headerDto = (ClaimHeaderDto)node.DataObject; List<DtoBase> toLoad = new List<DtoBase>(); List<DtoBase> invToLoad = headerDto.ClaimVehicleInvolvements.Where(x => x.ClaimInsuredObject.ClaimIOVehicles == null).ToList<DtoBase>(); if (headerDto.ClaimInvolvementLinks != null) { headerDto.ClaimVehicleInvolvements.ForEach(CI => { var involvementLinkFrom = headerDto.ClaimInvolvementLinks.Where(CIL => ((ClaimInvolvementLinkData)CIL.Data).ClaimInvolvementFromDataId == CI.Data.DataId); involvementLinkFrom.ForEach(y => { var involvement = headerDto.ClaimInvolvements.Where(z => z.Data.DataId == ((ClaimInvolvementLinkData)y.Data).ClaimInvolvementToDataId); invToLoad.AddRange(involvement); }); var involvementLinkTo = headerDto.ClaimInvolvementLinks.Where(CIL => ((ClaimInvolvementLinkData)CIL.Data).ClaimInvolvementToDataId == CI.Data.DataId); involvementLinkTo.ForEach(y => { var involvement = headerDto.ClaimInvolvements.Where(z => z.Data.DataId == ((ClaimInvolvementLinkData)y.Data).ClaimInvolvementFromDataId); invToLoad.AddRange(involvement); }); }); } int invToLoadCount = invToLoad.Distinct().Count(); int count = 0; if (invToLoad.Distinct().Any()) { transactionController.LoadLiteData( Guid.Empty, RetrievalType.WithChildHierarchy, invToLoad.Distinct(), NavigationType.None, null, r => { if (++count == invToLoadCount) { node.IsLoaded = true; } }, true, BusinessDataVariant.Full); } else { node.IsLoaded = true; } }
protected override bool IsAvailableFor(XIAP.FrontendModules.Claims.Model.ClaimModel claimModel, Xiap.Framework.Data.DtoBase parentDto) { IClaimLitigationData claimlitigationdata = null; claimlitigationdata = parentDto.Data as ClaimLitigationData; if (base.IsAvailableFor(claimModel, parentDto) && (claimlitigationdata.LitigationType == AXAClaimConstants.LITIGATIONTYPE_LIT || claimlitigationdata.LitigationType == AXAClaimConstants.LITIGATIONTYPE_OTH)) { return true; } return false; }
public void SetRenderContext(XIAP.Frontend.Infrastructure.IViewController controller, object context) { ClaimModel claimModel = (ClaimModel)controller.Model; claimModel.NameInvolvementModel.ProductClaimNameInvolvementTypeForFilter = (short)this.NameInvolvementType; claimModel.NameInvolvementModel.ProductClaimNameNameUsageTypeCodeForFilter = this.NameUsageTypeCode; claimModel.NameInvolvementModel.CanAddProductClaimNI = true; var claimControllerBase = (IClaimControllerBase)controller; claimControllerBase.FillClaimNameInvolvementsList(claimModel.NameInvolvementModel.ClaimNameInvolvementDtos.ToList()); // assigned selected nameinvolvement by null to disable edit button when no rows is selecting. claimModel.NameInvolvementModel.SelectedClaimNameInvolvementRow = null; claimModel.NameInvolvementModel.SelectedClaimNameInvolvementData = null; }
public void SetRenderContext(XIAP.Frontend.Infrastructure.IViewController controller, object context) { ClaimModel claimModel = (ClaimModel)controller.Model; claimModel.SelectedDto = claimModel.NameInvolvementModel.SelectedClaimNameInvolvementDto = (ClaimNameInvolvementDto)context; if (claimModel.NameInvolvementModel.SelectedClaimNameInvolvementDto != null) { claimModel.NameInvolvementModel.AddressList = claimModel.GetAddressList(); } else { claimModel.NameInvolvementModel.AddressList = new System.Collections.ObjectModel.ObservableCollection<Xiap.Framework.Metadata.CodeRow>(); } }
protected override bool IsAvailableFor(XIAP.FrontendModules.Claims.Model.ClaimModel model, DtoBase parentDto) { if (base.IsAvailableFor(model, parentDto)) { IClaimDetailData claimDetailData = null; claimDetailData = parentDto.Data as ClaimDetailData; if (this.InternalIOType == StaticValues.InternalIOType.Vehicle && (claimDetailData.ClaimDetailTypeCode == AXAClaimConstants.CLAIMDETAILTYPE_AD || claimDetailData.ClaimDetailTypeCode == AXAClaimConstants.CLAIMDETAILTYPE_TPVD)) { return true; } } return false; }
protected override void SetNameDetail(NameItem nameItem, XIAP.FrontendModules.Common.InsuranceDirectoryService.NameData nameData) { base.SetNameDetail(nameItem, nameData); if (nameData.NameType == (short)StaticValues.NameType.Company) { ReadOnlyCollection<INameInvolvementData> nameInvolvementDataCollection = this.GetNameInvolvements(); nameInvolvementDataCollection.ForEach(nameInvolvementData => { ClaimNameInvolvementData claimNameInvolvementData = nameInvolvementData as ClaimNameInvolvementData; if (claimNameInvolvementData != null && !string.IsNullOrWhiteSpace(claimNameInvolvementData.CustomReference04) && this.nameAndEmails[nameItem] != null && nameItem.NameID == claimNameInvolvementData.NameID) { this.nameAndEmails[nameItem].Add(new CodeRow { Code = claimNameInvolvementData.CustomReference04, Description = claimNameInvolvementData.CustomReference04 }); } }); } }
protected override void PlainSearchCompleted(XIAP.FrontendModules.Common.SearchService.SearchData searchData) { SearchResultRow row = null; if (searchData != null && !searchData.SearchResultRowList.IsNullOrEmpty() && searchData.SearchResultRowList.Count == 1) { row = searchData.SearchResultRowList.SingleOrDefault(); } base.PlainSearchCompleted(searchData); string claimReference = row != null ? row.Columns.First(r => r.ColumnName == "ClaimReference").Value.ToString() : this.reference; if (this.SearchPopupAction != null) { BulkEventEntryRow bulkEventRow = this.SearchPopupModel.ControlDataContext as BulkEventEntryRow; if (bulkEventRow != null) { bulkEventRow.ClaimHeaderReference = claimReference; } } }
public void SetRenderContext(XIAP.Frontend.Infrastructure.IViewController controller, object context) { var claimEventDto = (ClaimEventDto)context; var claimModel = (ClaimModel)controller.Model; claimModel.EventModel.SelectedEventDto = claimEventDto; claimModel.SelectedDto = claimEventDto; claimModel.EventModel.UserRow = null; ClaimEventData claimEventData = (ClaimEventData)claimModel.EventModel.SelectedEventDto.EventData; claimModel.EventModel.UserIdentity = string.Empty; if (claimEventData.EventTypeCode == AXAClaimConstants.EVENT_POST_TYPECODE && claimEventData.CustomCode02 == AXAClaimConstants.EVENT_PRIORITY_REC) { claimEventData.TaskInitialUserID = null; claimModel.EventModel.EventsFields.TaskInitialUserId.Readonly = true; claimModel.EventModel.EventsFields.SetField("TaskInitialUserId", claimModel.EventModel.EventsFields.TaskInitialUserId); } claimModel.EventModel.Details = this.PopulateDetails(claimModel); claimModel.RefreshModelFields(typeof(EventFields)); }
public bool IsAvailable(XIAP.Frontend.Infrastructure.ITransactionController transactionController, TreeStructureStore definition, DtoBase parentDto) { return this.IsChildAllowedForClaimDetail(definition,parentDto); }
private void ClaimModel_DuplicateClaimCheckClick(object sender, XIAP.Frontend.Infrastructure.Events.CommandEventArgs<ClaimHeaderDto> e) { this.PrepareDuplicateClaimSearch(e.Dto as ClaimHeaderDto); }
protected override void SelectTreeNode(object sender, XIAP.Frontend.Infrastructure.NavTree.TreeNodeEventArgs e) { this.AXAClearSelectedDto(); base.SelectTreeNode(sender, e); this.SetIOLinkAddMenuOption(e.TreeNodeData.DataObject); this.SetLitigationLinkAddMenuOption(e.TreeNodeData.DataObject); }