| | |
| | | //chenjingwu DB202308355043 2023.8.25 start |
| | | ,Category5__c |
| | | //chenjingwu DB202308355043 2023.8.25 end |
| | | //chenjingwu 20240411 start |
| | | ,ProductCategory__c |
| | | //chenjingwu 20240411 end |
| | | ,Estimated_ConsumptionDueDate__c |
| | | //DB202312560765 you 否有EndoRapid资质检查 start |
| | | ,IFEndoRapidFlag__c |
| | |
| | | //chenjingwu DB202308355043 2023.8.25 start |
| | | , prd.Category5__c |
| | | //chenjingwu DB202308355043 2023.8.25 end |
| | | //chenjingwu 20240411 start |
| | | , 0 |
| | | ,prd.ProductCategory__c |
| | | //chenjingwu 20240411 end |
| | | //fy DB202312538864 2024.02.02 start |
| | | ,prd.LastbuyProductFLG__c |
| | | ,prd.whetherOldCode_PrePro__c |
| | |
| | | //chenjingwu DB202308355043 2023.8.25 start |
| | | , prd.Category5__c |
| | | //chenjingwu DB202308355043 2023.8.25 end |
| | | //chenjingwu 20240411 start |
| | | , 0 |
| | | ,prd.ProductCategory__c |
| | | //chenjingwu 20240411 end |
| | | //fy DB202312538864 2024.02.02 start |
| | | ,prd.LastbuyProductFLG__c |
| | | ,prd.whetherOldCode_PrePro__c |
| | |
| | | for (String s : xlslist) { |
| | | //odd number or even number |
| | | // chenjingwu 20240411 start |
| | | if (math.mod(i, 3) == 0) { |
| | | if (math.mod(i, 3) == 1) { |
| | | system.debug('xlslist1+++'+s); |
| | | //odd number |
| | | if (s == '' || s == null) { |
| | |
| | | xlsQuantity = Integer.valueOf(s); |
| | | Quantitylist.add(xlsQuantity); |
| | | } |
| | | } else if(math.mod(i, 3) == 1){ |
| | | } else if(math.mod(i, 3) == 0){ |
| | | system.debug('xlslist2+++'+s); |
| | | //even number |
| | | if (s == '' || s == null) { |
| | |
| | | //chenjingwu DB202308355043 2023.8.25 start |
| | | ,Category5__c |
| | | //chenjingwu DB202308355043 2023.8.25 end |
| | | //chenjingwu 20240411 start |
| | | ,ProductCategory__c |
| | | //chenjingwu 20240411 end |
| | | ,Estimated_ConsumptionDueDate__c |
| | | //DB202312560765 you 否有EndoRapid资质检查 start |
| | | ,IFEndoRapidFlag__c |
| | |
| | | //chenjingwu DB202308355043 2023.8.25 end |
| | | //chenjingwu 20240411 start |
| | | , exYearList[l] |
| | | ,prd.ProductCategory__c |
| | | //chenjingwu 20240411 end |
| | | //fy DB202312538864 2024.02.02 start |
| | | ,prd.LastbuyProductFLG__c |
| | |
| | | //chenjingwu DB202308355043 2023.8.25 end |
| | | //chenjingwu 20240411 start |
| | | , exYearList[l] |
| | | , prd.ProductCategory__c |
| | | //chenjingwu 20240411 end |
| | | //fy DB202312538864 2024.02.02 start |
| | | ,prd.LastbuyProductFLG__c |
| | |
| | | // chenjingwu sp主机类型 20240318 start |
| | | public String SPAssistant; |
| | | public Boolean SPAssistantFlag; |
| | | public String ProductCategory; |
| | | // chenjingwu sp主机类型 20240318 end |
| | | // chenjingwu 3+2多年保 20240401 start |
| | | public String Learning_Community; |
| | |
| | | Category5 = qli.PricebookEntry.Product2.Category5__c; |
| | | //chenjingwu DB202308355043 2023.8.25 end |
| | | // chenjingwu SP主机类型 20240318 start |
| | | this.ProductCategory = qli.PricebookEntry.Product2.ProductCategory__c; |
| | | if(qli.PricebookEntry.Product2.ProductCategory__c == 'SP主机'){ |
| | | this.SPAssistantFlag = true; |
| | | } |
| | |
| | | if(qli.ExtendedWarrantyPeriod__c != null && qli.ExtendedWarrantyPeriod__c != 0){ |
| | | this.Learning_Community = String.valueof(qli.ExtendedWarrantyPeriod__c); |
| | | } |
| | | this.multiYearWarrantyList = [select Id,MultiOneYearWarrantyPrice__c,AmountWithheld__c from MultiYearWarranty__c where ProductName__c =: qli.PricebookEntry.Product2Id]; |
| | | this.multiYearWarrantyList = [select Id,MultiOneYearWarrantyPrice__c,AmountWithheld__c,AgeLimit__c from MultiYearWarranty__c where ProductName__c =: qli.PricebookEntry.Product2Id]; |
| | | Integer period = this.multiYearWarrantyList.size(); |
| | | if(period > 0){ |
| | | List<OptionTemplete> optionTempleteList = new List<OptionTemplete>(); |
| | |
| | | //chenjingwu DB202308355043 2023.8.25 end |
| | | //chenjingwu 20240411 start |
| | | , Integer exYear |
| | | ,String ProductCategory |
| | | //chenjingwu 20240411 end |
| | | //fy DB202312538864 2024.02.02 start |
| | | ,Boolean lastbuyProductFLG |
| | |
| | | pageObject = New QuoteLineItem(); |
| | | pageObject.Quantity__c = Quantity; |
| | | //chenjingwu 20240411 start |
| | | pageObject.ExtendedWarrantyPeriod__c = exYear; |
| | | this.Learning_Community = String.valueof(exYear); |
| | | this.ProductCategory = ProductCategory; |
| | | //chenjingwu 20240411 end |
| | | this.lineNo = i; |
| | | this.Asset_Model = Asset_Model; |