if (rowCount >= 0)
{
int[] rows = jTable1.getSelectedRows();
JDBPallet temp = new JDBPallet(Common.selectedHostID, Common.sessionID);
JDBControl ctrl = new JDBControl(Common.selectedHostID, Common.sessionID);
JDBMHNDecisions decis = new JDBMHNDecisions(Common.selectedHostID, Common.sessionID);
int n = JOptionPane.showConfirmDialog(Common.mainForm, "Assign selected SSCC's to Master Hold Notice [" + mhnnumber + " ?", "Confirm", JOptionPane.YES_NO_OPTION, 0, Common.icon_confirm);
if (n == 0)
{
String initalDecision = ctrl.getKeyValueWithDefault("MHN INITIAL DECISION", "Pending", "Decision for pallets added to MHN");
String initialStatus = "";
if (decis.getDecisionProperties(initalDecision) == true)
{
initialStatus = decis.getStatus();
}
else
{
initialStatus = "";
}
for (int l = 0; l < rows.length; l++)
{
String sscc = jTable1.getValueAt(rows[l], JDBMHNPalletTableModelAssign.SSCC_Col).toString();
temp.getPalletProperties(sscc);
temp.updateMHNNumber(mhnnumber);
temp.updateMHNDecision(initalDecision);
if (initialStatus.equals("") == false)
{
temp.updateStatus(initialStatus);
}
jStatusText.setText("SSCC "+sscc+" added to MHN "+mhnnumber);
Rectangle progressRect = jStatusText.getBounds();
progressRect.x = 0;
progressRect.y = 0;