| | |
| | | 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) { |
| | |
| | | pageObject = New QuoteLineItem(); |
| | | pageObject.Quantity__c = Quantity; |
| | | //chenjingwu 20240411 start |
| | | pageObject.ExtendedWarrantyPeriod__c = exYear; |
| | | this.Learning_Community = String.valueof(exYear); |
| | | //chenjingwu 20240411 end |
| | | this.lineNo = i; |
| | | this.Asset_Model = Asset_Model; |