src/Model/Part.java
// Alert message text for Outsourced Part data type exceptions
Alert message text for Outsourced Part data type exceptions
Alert message text for Outsourced Part data type exceptions
public static String outsourcedPartDataTypeExceptions(String partPrice, String partStockLevel, String partMaxStockLevel, String partMinStockLevel, String outsourcedPartDataTypeException) {
        if (partPriceDataTypeException(partPrice) == false) {
            outsourcedPartDataTypeException = outsourcedPartDataTypeException + "\nPart Price must be a number in the format XX.XX";
        }
        if (stockLevelDataTypeException(partStockLevel) == false) {
            outsourcedPartDataTypeException = outsourcedPartDataTypeException + "\nPart Inventory Level must be a whole number greater than 0.";
        }
        if (maxLevelDataTypeException(partMaxStockLevel) == false) {
            outsourcedPartDataTypeException = outsourcedPartDataTypeException + "\nPart Maximum Inventory Level must be a whole number.";
        }
        if (minLevelDataTypeException(partMinStockLevel) == false) {
            outsourcedPartDataTypeException = outsourcedPartDataTypeException + "\nPart Minimum Inventory Level must be a whole number.";
        }
        return outsourcedPartDataTypeException;
    }
public static String outsourcedPartDataTypeExceptions ( String partPrice , String partStockLevel , String partMaxStockLevel , String partMinStockLevel , String outsourcedPartDataTypeException ) { if ( partPriceDataTypeException ( partPrice ) == false ) { outsourcedPartDataTypeException = outsourcedPartDataTypeException + "\nPart Price must be a number in the format XX.XX" ; } if ( stockLevelDataTypeException ( partStockLevel ) == false ) { outsourcedPartDataTypeException = outsourcedPartDataTypeException + "\nPart Inventory Level must be a whole number greater than 0." ; } if ( maxLevelDataTypeException ( partMaxStockLevel ) == false ) { outsourcedPartDataTypeException = outsourcedPartDataTypeException + "\nPart Maximum Inventory Level must be a whole number." ; } if ( minLevelDataTypeException ( partMinStockLevel ) == false ) { outsourcedPartDataTypeException = outsourcedPartDataTypeException + "\nPart Minimum Inventory Level must be a whole number." ; } return outsourcedPartDataTypeException ; }
Alert message text for Outsourced Part data type exceptions
Alert message text for Outsourced Part data type exceptions