protected override bool IsAvailableFor(ClaimModel model, DtoBase parentDto)
        {
            if (base.IsAvailableFor(model, parentDto))
            {
                IClaimLitigationData claimlitigationdata = null;
                claimlitigationdata = parentDto.Data as ClaimLitigationData;

                if (claimlitigationdata.LitigationType == AXAClaimConstants.LITIGATIONTYPE_LIT && this.LinkableComponentType == StaticValues.LinkableComponentType.NameInvolvement)
                {
                    return true;
                }
            }

            return false ;
        }
        private ObservableCollection<CodeRow> PopulateDetails(ClaimModel claimModel)
        {
            ObservableCollection<CodeRow> details = new ObservableCollection<CodeRow>();
            details.Add(new CodeRow() { Code = string.Empty, Description = " " });
            foreach (ClaimDetailDto claimDetailDto in claimModel.HeaderDto.ClaimDetails)
            {
                CodeRow codeRow = new CodeRow();
                codeRow.Code = claimDetailDto.ClaimDetailData.ClaimDetailReference;
                codeRow.Description = claimDetailDto.ClaimDetailData.ClaimDetailReference + (!String.IsNullOrEmpty(claimDetailDto.ClaimDetailData.ClaimDetailTitle) ? (" - " + claimDetailDto.ClaimDetailData.ClaimDetailTitle) : string.Empty);
                details.Add(codeRow);
            }

            claimModel.InvokeCollectionChanged("ClaimEvent", claimModel.HeaderDto.Data.DataId);
            return details;
        }
        protected override bool IsAvailableFor(ClaimModel model, DtoBase parentDto)
        {
            if (base.IsAvailableFor(model, parentDto))
            {
                IClaimDetailData claimDetailData = null;
                claimDetailData = parentDto.Data as ClaimDetailData;

                if (claimDetailData.ClaimDetailTypeCode == AXAClaimConstants.CLAIMDETAILTYPE_AD && this.LinkableComponentType == StaticValues.LinkableComponentType.Recovery)
                {
                    return true;
                }

                if ((claimDetailData.ClaimDetailTypeCode == AXAClaimConstants.CLAIMDETAILTYPE_TPVD || claimDetailData.ClaimDetailTypeCode == AXAClaimConstants.CLAIMDETAILTYPE_TPPD || claimDetailData.ClaimDetailTypeCode == AXAClaimConstants.CLAIMDETAILTYPE_TPI || claimDetailData.ClaimDetailTypeCode == AXAClaimConstants.CLAIMDETAILTYPE_LIA) && this.LinkableComponentType == StaticValues.LinkableComponentType.Litigation)
                {
                    return true;
                }
            }

            return false ;
        }
Esempio n. 4
0
 public AXAClaimDetailModel(ClaimModel ClaimModel)
     : base(ClaimModel)
 {
     // base.AddClaimDetailCommand = new DelegateCommand<NavigationMenuItemEventArgs>(base.OnAddClaimDetail, this.CanAddClaimDetail1);
 }