| | |
| | | List<OptionTemplete> optionTempleteList = new List<OptionTemplete>(); |
| | | optionTempleteList.add(new OptionTemplete('0年','0')); |
| | | for(MultiYearWarranty__c mu: priceMap.get(id)){ |
| | | optionTempleteList.add(new OptionTemplete((mu.AgeLimit__c + 1) + '年',(mu.AgeLimit__c + 1) + '')); |
| | | optionTempleteList.add(new OptionTemplete(mu.AgeLimit__c + '年',mu.AgeLimit__c + '')); |
| | | } |
| | | optionMap.put(id,optionTempleteList); |
| | | } |
| | |
| | | this.exPrice = mu.MultiOneYearWarrantyPrice__c; |
| | | } |
| | | } |
| | | }else{ |
| | | this.Learning_Community = 0 + ''; |
| | | this.exPrice = 0; |
| | | } |
| | | if(period > 0){ |
| | | List<OptionTemplete> optionTempleteList = new List<OptionTemplete>(); |
| | | List<OptionTemplete> optionTempleteList = new List<OptionTemplete>(); |
| | | optionTempleteList.add(new OptionTemplete('0年','0')); |
| | | if(period > 0){ |
| | | for(MultiYearWarranty__c mu: this.multiYearWarrantyList){ |
| | | optionTempleteList.add(new OptionTemplete((mu.AgeLimit__c + 1) + '年',(mu.AgeLimit__c + 1) + '')); |
| | | optionTempleteList.add(new OptionTemplete(mu.AgeLimit__c + '年',mu.AgeLimit__c + '')); |
| | | } |
| | | // for(Integer j = 0;j < period;j++){ |
| | | // optionTempleteList.add(new OptionTemplete((j + 1) + '年',(j + 1) + '')); |
| | | // } |
| | | this.Learning_CommunityOptions = optionTempleteList; |
| | | } |
| | | this.Learning_CommunityOptions = optionTempleteList; |
| | | if(qli.ExtendedWarrantyPeriod__c == null && this.Learning_CommunityOptions.size() > 1){ |
| | | this.Learning_Community = this.multiYearWarrantyList.get(this.multiYearWarrantyList.size() - 1).AgeLimit__c + ''; |
| | | this.exPrice = this.multiYearWarrantyList.get(this.multiYearWarrantyList.size() - 1).MultiOneYearWarrantyPrice__c; |
| | | } |
| | | |
| | | // this.ExtendedWarrantyPeriod = new WarrantyPeriod(optionTempleteList,''); |