String temp = "";
Date d = jSpinnerProductionDate.getDate();
Calendar caldate = Calendar.getInstance();
caldate.setTime(d);
JDBMaterialBatch mb = new JDBMaterialBatch(Common.selectedHostID, Common.sessionID);
temp = mb.getDefaultBatchNumber(batchFormat, caldate, processorder);
if (temp.equalsIgnoreCase(jTextFieldBatchPrefix.getText()) == false)
{
if (jCheckBoxBatchPrefixOverride.isSelected() == false)
{
jTextFieldBatchPrefix.setText(mb.getDefaultBatchNumber(batchFormat, caldate, processorder));
}
}
if (jCheckBoxExpiryOverride.isSelected() == false)
{