if (importMpanStr != null && importMpanStr.length() != 0) {
try {
importAgreedSupplyCapacity = new Integer(
importAgreedSupplyCapacityStr);
} catch (NumberFormatException e) {
throw new UserException(
"The import supply capacity must be an integer."
+ e.getMessage());
}
importSupplierContract = SupplierContract
.getSupplierContract(importSupplierContractName);
}
SupplierContract exportSupplierContract = null;
Integer exportAgreedSupplyCapacity = null;
String exportLlfcCode = null;
String exportMpanStr = null;
String exportSupplierAccount = null;
if (values.length > 25) {
exportMpanStr = GeneralImport.addField(csvElement,
"Export MPAN Core", values, 25);
if (exportMpanStr != null && exportMpanStr.trim().length() != 0) {
exportLlfcCode = GeneralImport.addField(csvElement,
"Export LLFC", values, 26);
String exportAgreedSupplyCapacityStr = GeneralImport
.addField(csvElement,
"Export Agreed Supply Capacity", values, 27);
try {
exportAgreedSupplyCapacity = new Integer(
exportAgreedSupplyCapacityStr);
} catch (NumberFormatException e) {
throw new UserException(
"The export agreed supply capacity must be an integer."
+ e.getMessage());
}
String exportSupplierContractName = GeneralImport.addField(
csvElement, "Export Supplier Contract", values, 28);