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