java拼接菜单json_关于JSON拼接

1 varpropertyJson="{\"PropertyAllRisks\":{\"actualId\":\"\",\"topactualId\":\"\",\"parentactualId\":\"\","+2 "\"PolicyHolder\":{\"actualId\":\"\",\"topactualId\":\"\","+3 "\"Contact\":\"\","+4 "\"CustomerType\":\"\","+5 "\"Mobile\":\"\","+6 "\"CustomerCode\":\"\","+7 "\"CustomerName\":\""+basicInfo.getValue("PolicyHolder")+"\","+8 "\"CertificateType\":\"\","+9 "\"CertificateNumber\":\"\","+10 "\"Address\":\"\","+11 "\"ZipCode\":\"\","+12 "\"Phone\":\"\","+13 "\"email\":\"\","+14 "\"IsBlanket\":\"\","+15 "\"IsVIP\":\"\"},"+16 "\"AdditionalClause\":["17 varclauseCount=dsPropertyClause.getVisibleCount();18 varcount=0;19 dsPropertyClause.moveFirst();20 while(!dsPropertyClause.isLast()){21 propertyJson=propertyJson+"{\"actualId\":\"\",\"topactualId\":\"\","+22 "\"ClauseType\":\""+dsPropertyClause.getValue("ClauseType")+"\","+23 "\"ClauseContent\":\"\","+24 "\"ClauseName\":\""+dsPropertyClause.getValue("ClauseName")+"\",";25 if(clauseCount-1==count){26 propertyJson+="\"ClauseNo\":\"\"}"27 }else{28 propertyJson+="\"ClauseNo\":\"\"},"29 }30 dsPropertyClause.moveNext();31 count++;32 }33 propertyJson=propertyJson+"], \"Deduction\":{\"actualId\":\"\",\"topactualId\":\"\","+34 "\"DeductionTypeCode\":\"\","+35 "\"DeductibleCalculateMethod\":\"\","+36 "\"DeductibleOptionCode\":\"\","+37 "\"DeductibleRate\":\""+propertyExcess.getValue("DeductibleRate")+"\","+38 "\"DeductibleAmount\":\""+propertyExcess.getValue("DeductibleAmount")+"\","+39 "\"DeductibleModeCode\":\"\","+40 "\"CurrencyCode\":\"\"},"+41 "\"OtherQuotationInfo\":{\"actualId\":\"\",\"topactualId\":\"\","+42 "\"DangerousOfLoss\":\""+otherInfo.getValue("DangerousOfLoss")+"\","+43 "\"IsRenewalPolicy\":\""+booleanToNumber(otherInfo.getValue("isRenewalPolicy"))+"\","+44 "\"RenewalDifference\":\""+otherInfo.getValue("RenewalDifference")+"\","+45 "\"MarketTarget\":\""+otherInfo.getValue("MarketTarget")+"\","+46 "\"Idarv\":\""+otherInfo.getValue("InsuranceDivisionAndRetentionViews")+"\","+47 "\"IsSpecialBackward\":\""+booleanToNumber(otherInfo.getValue("isSpecialBackward"))+"\","+48 "\"RiskAnalysis\":\""+otherInfo.getValue("RiskAnalysis")+"\","+49 "\"IsOffshoreBusiness\":\""+booleanToNumber(otherInfo.getValue("isOffshoreBusiness"))+"\","+50 "\"Attachment\":\"\"},"+51 "\"Premium\":{\"actualId\":\"\",\"topactualId\":\"\","+52 "\"Premium\":\""+propertyCoverage.getValue("Premium")+"\","+53 "\"ExchangeRateAgreed\":\""+propertyCoverage.getValue("ExchangeRateAgreed")+"\","+54 "\"UnderwritingRates\":\""+propertyCoverage.getValue("UnderwritingRates")+"\","+55 "\"PremiumPayment\":\""+propertyCoverage.getValue("PremiumPayment")+"\"},"+56 "\"PolicyBasicInfo\":{\"actualId\":\"\",\"topactualId\":\"\","+57 "\"QuotationNo\":\"\","+58 "\"ShortTermRate\":\"\","+59 "\"StartTime\":\"\","+60 "\"EndTime\":\"\","+61 "\"BusinessMethod\":\"\","+62 "\"ApplicationNo\":\"\","+63 "\"PolicyNo\":\"\","+64 "\"RenewalPolicyNo\":\"\","+65 "\"TempPolicyNo\":\"\","+66 "\"DisputeResolution\":\"\","+67 "\"ArbitrationInstitution\":\""+otherInfo.getValue("ArbitrationInstitution")+"\","+68 "\"Jurisdiction\":\"\","+69 "\"RiskType\":\"\","+70 "\"IsSpecialBusiness\":\"\","+71 "\"SellingExpenseRate\":\"\","+72 "\"IsInterSellingOfHeadOffice\":\"\","+73 "\"Comments\":\"\","+74 "\"HandlerCode\":\"\","+75 "\"OffersiteCode\":\"\","+76 "\"ShortTermMethod\":\"\","+77 "\"NumInsured\":\"\","+78 "\"PolicyStatus\":\"\","+79 "\"EndorsementTimes\":\"\","+80 "\"StartDate\":\""+startDateFormat+"\","+81 "\"BusinessOrg\":\"\","+82 "\"EndDate\":\""+endDateFormat+"\","+83 "\"ClaimTimes\":\"\","+84 "\"CoinsuranceMethod\":\"\","+85 "\"ProductCode\":\"\","+86 "\"CoverageTerritory\":\""+basicInfo.getValue("Underwriter")+"\","+87 "\"ExpirationDate\":\""+getDate(2)+"\","+88 "\"InputDate\":\""+getDate(1)+"\","+89 "\"InputMethod\":\"\"},"+90 "\"PolicyPremiumInfo\":{\"actualId\":\"\",\"topactualId\":\"\","+91 "\"PolicyPremiumChange\":\"\","+92 "\"PolicySumInsuredChange\":\"\","+93 "\"PolicyPremium\":\"\","+94 "\"CurrencyCode\":\"\","+95 "\"PolicySumInsured\":\""+propertyCoverage.getValue("SumInsured")+"\"},"+96 "\"Insurant\":{\"actualId\":\"\",\"topactualId\":\"\","+97 "\"Mobile\":\"\","+98 "\"CustomerType\":\"\","+99 "\"Phone\":\"\","+100 "\"ZipCode\":\"\","+101 "\"Address\":\"\","+102 "\"CertificateNumber\":\"\","+103 "\"CertificateType\":\"\","+104 "\"CustomerName\":\""+basicInfo.getValue("Insured")+"\","+105 "\"CustomerCode\":\"\","+106 "\"email\":\"\"},"+107 "\"Broker\":{\"actualId\":\"\",\"topactualId\":\"\","+108 "\"CustomerName\":\""+basicInfo.getValue("Broker")+"\","+109 "\"Brokerage\":\""+basicInfo.getValue("Brokerage")+"\"},"+110 "\"QuotationBasicInfo\":{\"actualId\":\"\",\"topactualId\":\"\","+111 "\"AcceptInsuranceProjectName\":\""+basicInfo.getValue("AcceptInsuranceProjectName")+"\","+112 "\"Location\":\""+basicInfo.getValue("Location")+"\"}}}"

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值