jLabelProductionDate = new JLabel4j_std();
jPanelPallet.add(jLabelProductionDate);
jLabelProductionDate.setText(lang.get("lbl_Pallet_DOM"));
jLabelProductionDate.setHorizontalAlignment(SwingConstants.TRAILING);
jLabelProductionDate.setBounds(12, 46, 122, 21);
jFormattedTextFieldProdQuantity = new JQuantityInput(new BigDecimal("0"));
jFormattedTextFieldProdQuantity.addPropertyChangeListener(new PropertyChangeListener() {
public void propertyChange(PropertyChangeEvent arg0)
{
Color background = Color.WHITE;
try
{
if (jTextFieldProcessOrder.getText().equals("") == false)
{
BigDecimal newval = new BigDecimal(jFormattedTextFieldProdQuantity.getValue().toString());
int res = newval.compareTo(new BigDecimal(0));
if (res == 0)
{
background = Color.YELLOW;
}
}
} catch (Exception e)
{
background = Color.YELLOW;
}
jFormattedTextFieldProdQuantity.setBackground(background);
}
});
jPanelPallet.add(jFormattedTextFieldProdQuantity);
jFormattedTextFieldProdQuantity.setFont(Common.font_std);
jFormattedTextFieldProdQuantity.setBounds(449, 21, 91, 21);
jFormattedTextFieldProdQuantity.setValue(0);
jFormattedTextFieldProdQuantity.setEnabled(false);
jFormattedTextFieldProdQuantity.setHorizontalAlignment(SwingConstants.TRAILING);
jFormattedTextFieldProdQuantity.addKeyListener(new KeyAdapter() {
public void keyReleased(KeyEvent evt)
{
pallet.setUom(jTextFieldProductionUom.getText());
pallet.setQuantity(JUtility.stringToBigDecimal(jFormattedTextFieldProdQuantity.getText().toString()));
jFormattedTextFieldBaseQuantity.setText(pallet.getBaseQuantityAsString());
}
});
jLabelSSCC = new JLabel4j_std();
jPanelPallet.add(jLabelSSCC);
jLabelSSCC.setText(lang.get("lbl_Pallet_SSCC"));
jLabelSSCC.setHorizontalAlignment(SwingConstants.TRAILING);
jLabelSSCC.setBounds(12, 18, 122, 21);
jTextFieldProductionUom = new JTextField4j();
jPanelPallet.add(jTextFieldProductionUom);
jTextFieldProductionUom.setBounds(666, 21, 70, 21);
jTextFieldProductionUom.setEditable(false);
jTextFieldProductionUom.setEnabled(false);
jLabelProductionEAN = new JLabel4j_std();
jPanelPallet.add(jLabelProductionEAN);
jLabelProductionEAN.setText(lang.get("lbl_Pallet_UOM"));
jLabelProductionEAN.setHorizontalAlignment(SwingConstants.TRAILING);
jLabelProductionEAN.setBounds(546, 21, 113, 21);
jLabel2 = new JLabel4j_std();
jPanelPallet.add(jLabel2);
jLabel2.setText(lang.get("lbl_Pallet_Base_Quantity"));
jLabel2.setHorizontalAlignment(SwingConstants.TRAILING);
jLabel2.setBounds(323, 49, 119, 21);
jLabel3 = new JLabel4j_std();
jPanelPallet.add(jLabel3);
jLabel3.setText(lang.get("lbl_Pallet_Base_UOM"));
jLabel3.setHorizontalAlignment(SwingConstants.TRAILING);
jLabel3.setBounds(546, 49, 113, 21);
jTextFieldBaseUOM = new JTextField4j();
jPanelPallet.add(jTextFieldBaseUOM);
jTextFieldBaseUOM.setEditable(false);
jTextFieldBaseUOM.setEnabled(false);
jTextFieldBaseUOM.setBounds(666, 49, 70, 21);
jFormattedTextFieldBaseQuantity = new JQuantityInput(new BigDecimal("0"));
jPanelPallet.add(jFormattedTextFieldBaseQuantity);
jFormattedTextFieldBaseQuantity.setFont(Common.font_std);
jFormattedTextFieldBaseQuantity.setHorizontalAlignment(SwingConstants.TRAILING);
jFormattedTextFieldBaseQuantity.setText("0.000");
jFormattedTextFieldBaseQuantity.setEnabled(false);