| | |
| | | xlscode = null; |
| | | xlsQuantity = null; |
| | | xlslist = xls.split('\t', -1); |
| | | system.debug('xlslist+++'+xlslist); |
| | | for (String s : xlslist) { |
| | | //odd number or even number |
| | | if (math.mod(i, 2) != 0) { |
| | | system.debug('xlslist1+++'+s); |
| | | //odd number |
| | | if (s == '' || s == null) { |
| | | errorflg = true; |
| | |
| | | Quantitylist.add(xlsQuantity); |
| | | } |
| | | } else { |
| | | system.debug('xlslist2+++'+s); |
| | | //even number |
| | | if (s == '' || s == null) { |
| | | errorflg = true; |
| | |
| | | } |
| | | } |
| | | } catch (Exception ex) { |
| | | system.debug('xlslist3+++'+xlscnt); |
| | | activities = tmpactivities; |
| | | errorflg = true; |
| | | errormessage = System.Label.Error_Message31; |
| | |
| | | if (codelist.size() == 0 || Quantitylist.size() == 0) { |
| | | activities = tmpactivities; |
| | | errorflg = true; |
| | | system.debug('codelist+++'+codelist); |
| | | system.debug('Quantitylist+++'+Quantitylist); |
| | | errormessage = System.Label.Error_Message31; |
| | | pageArrange(); |
| | | return null; |