jPanelProcessOrder.setBounds(7, 7, 748, 112);
jPanelProcessOrder.setBorder(BorderFactory.createTitledBorder(lang.get("lbl_Process_Order")));
jPanelProcessOrder.setLayout(null);
{
jTextFieldProcessOrder = new JTextField4j();
jPanelProcessOrder.add(jTextFieldProcessOrder);
AbstractDocument doc = (AbstractDocument) jTextFieldProcessOrder.getDocument();
doc.setDocumentFilter(new JFixedSizeFilter(JDBProcessOrder.field_process_order));
jTextFieldProcessOrder.setBounds(161, 21, 119, 21);
jTextFieldProcessOrder.addKeyListener(new KeyAdapter() {
public void keyReleased(KeyEvent evt)
{
processOrderChanged(jTextFieldProcessOrder.getText());
}
});
}
jLabelProcessOrder = new JLabel4j_std();
jPanelProcessOrder.add(jLabelProcessOrder);
jLabelProcessOrder.setText(lang.get("lbl_Process_Order"));
jLabelProcessOrder.setHorizontalAlignment(SwingConstants.TRAILING);
jLabelProcessOrder.setBounds(12, 21, 142, 21);
jTextFieldProcessOrderDescription = new JTextField4j();
jPanelProcessOrder.add(jTextFieldProcessOrderDescription);
jTextFieldProcessOrderDescription.setBounds(449, 21, 287, 21);
jTextFieldProcessOrderDescription.setEditable(false);
jTextFieldProcessOrderDescription.setEnabled(false);
jLabelOrderDescription = new JLabel4j_std();
jPanelProcessOrder.add(jLabelOrderDescription);
jLabelOrderDescription.setText(lang.get("lbl_Description"));
jLabelOrderDescription.setHorizontalAlignment(SwingConstants.TRAILING);
jLabelOrderDescription.setBounds(306, 21, 136, 21);
jLabelOrderStatus = new JLabel4j_std();
jPanelProcessOrder.add(jLabelOrderStatus);
jLabelOrderStatus.setText(lang.get("lbl_Process_Order_Status"));
jLabelOrderStatus.setHorizontalAlignment(SwingConstants.TRAILING);
jLabelOrderStatus.setBounds(290, 49, 152, 21);
jSpinnerDueDate = new JDateControl();
jPanelProcessOrder.add(jSpinnerDueDate);
jSpinnerDueDate.setEnabled(false);
jSpinnerDueDate.setBounds(161, 49, 137, 21);
jSpinnerDueDate.getEditor().setOpaque(true);
jSpinnerDueDate.setForeground(new java.awt.Color(238, 238, 238));
jLabelDueDate = new JLabel4j_std();
jPanelProcessOrder.add(jLabelDueDate);
jLabelDueDate.setText(lang.get("lbl_Process_Order_Due_Date"));
jLabelDueDate.setHorizontalAlignment(SwingConstants.TRAILING);
jLabelDueDate.setBounds(12, 49, 142, 21);
jTextFieldProcessOrderStatus = new JTextField4j();
jPanelProcessOrder.add(jTextFieldProcessOrderStatus);
jTextFieldProcessOrderStatus.setBounds(449, 49, 126, 21);
jTextFieldProcessOrderStatus.setEditable(false);
jTextFieldProcessOrderStatus.setEnabled(false);
jTextFieldRecipe = new JTextField4j();
jPanelProcessOrder.add(jTextFieldRecipe);
jTextFieldRecipe.setBounds(161, 77, 139, 21);
jTextFieldRecipe.setEditable(false);
jTextFieldRecipe.setEnabled(false);
jLabelRecipe = new JLabel4j_std();
jPanelProcessOrder.add(jLabelRecipe);
jLabelRecipe.setText(lang.get("lbl_Process_Order_Recipe"));
jLabelRecipe.setHorizontalAlignment(SwingConstants.TRAILING);
jLabelRecipe.setBounds(12, 77, 142, 21);
jTextFieldLocation = new JTextField4j();
jPanelProcessOrder.add(jTextFieldLocation);
jTextFieldLocation.setBounds(449, 77, 126, 21);
jTextFieldLocation.setEditable(false);
jTextFieldLocation.setEnabled(false);
jLabelLocation = new JLabel4j_std();
jPanelProcessOrder.add(jLabelLocation);
jLabelLocation.setText(lang.get("lbl_Location_ID"));
jLabelLocation.setHorizontalAlignment(SwingConstants.TRAILING);
jLabelLocation.setBounds(290, 77, 152, 21);
jButtonPOLookup = new JButton4j(Common.icon_lookup);
jPanelProcessOrder.add(jButtonPOLookup);
jButtonPOLookup.setBounds(280, 21, 20, 20);
jButtonPOLookup.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt)
{
JLaunchLookup.dlgCriteriaDefault = "Ready";
JLaunchLookup.dlgAutoExec = true;
if (JLaunchLookup.processOrders())
{
String po = JLaunchLookup.dlgResult;
processOrderChanged(po);
}
}
});
jPanelMaterial = new JPanel();
jDesktopPane1.add(jPanelMaterial);
jPanelMaterial.setBounds(7, 119, 748, 112);
jPanelMaterial.setBorder(BorderFactory.createTitledBorder(lang.get("lbl_Material")));
jPanelMaterial.setLayout(null);
jPanelMaterial.setFont(Common.font_title);
jPanelMaterial.setBackground(Common.color_app_window);
jTextFieldMaterial = new JTextField4j();
jPanelMaterial.add(jTextFieldMaterial);
jTextFieldMaterial.setBounds(161, 21, 128, 21);
jTextFieldMaterial.setEditable(false);
jTextFieldMaterial.setEnabled(false);
jLabelMaterial = new JLabel4j_std();
jPanelMaterial.add(jLabelMaterial);
jLabelMaterial.setText(lang.get("lbl_Material"));
jLabelMaterial.setHorizontalAlignment(SwingConstants.TRAILING);
jLabelMaterial.setBounds(12, 21, 142, 21);
jTextFieldMaterialDescription = new JTextField4j();
jPanelMaterial.add(jTextFieldMaterialDescription);
jTextFieldMaterialDescription.setBounds(449, 21, 287, 21);
jTextFieldMaterialDescription.setEditable(false);
jTextFieldMaterialDescription.setEnabled(false);
jLabelDescription = new JLabel4j_std();
jPanelMaterial.add(jLabelDescription);
jLabelDescription.setText(lang.get("lbl_Description"));
jLabelDescription.setHorizontalAlignment(SwingConstants.TRAILING);
jLabelDescription.setBounds(291, 21, 151, 21);
jSpinnerShelfLife = new JSpinner();
jPanelMaterial.add(jSpinnerShelfLife);
jSpinnerShelfLife.setModel(shelflifenumbermodel);
JSpinner.NumberEditor nec = new JSpinner.NumberEditor(jSpinnerShelfLife);
nec.getTextField().setFont(Common.font_std);
jSpinnerShelfLife.setEditor(nec);
jSpinnerShelfLife.setBounds(161, 49, 63, 21);
jSpinnerShelfLife.setEnabled(false);
jTextFieldShelfLifeRoundingRule = new JTextField4j();
jPanelMaterial.add(jTextFieldShelfLifeRoundingRule);
jTextFieldShelfLifeRoundingRule.setBounds(638, 49, 98, 21);
jTextFieldShelfLifeRoundingRule.setEditable(false);
jTextFieldShelfLifeRoundingRule.setEnabled(false);
jLabelRounding = new JLabel4j_std();
jPanelMaterial.add(jLabelRounding);
jLabelRounding.setText(lang.get("lbl_Material_Shelf_Life_Rounding_Rule"));
jLabelRounding.setHorizontalAlignment(SwingConstants.TRAILING);
jLabelRounding.setBounds(546, 49, 85, 21);
jTextFieldShelfLifeUOM = new JTextField4j();
jPanelMaterial.add(jTextFieldShelfLifeUOM);
jTextFieldShelfLifeUOM.setBounds(449, 49, 91, 21);
jTextFieldShelfLifeUOM.setEditable(false);
jTextFieldShelfLifeUOM.setEnabled(false);
jLabel1ShelfLifeUOM = new JLabel4j_std();
jPanelMaterial.add(jLabel1ShelfLifeUOM);
jLabel1ShelfLifeUOM.setText(lang.get("lbl_Material_Shelf_Life_UOM"));
jLabel1ShelfLifeUOM.setHorizontalAlignment(SwingConstants.TRAILING);
jLabel1ShelfLifeUOM.setBounds(281, 49, 161, 21);
jLabelShelfLife = new JLabel4j_std();
jPanelMaterial.add(jLabelShelfLife);
jLabelShelfLife.setText(lang.get("lbl_Material_Shelf_Life"));
jLabelShelfLife.setHorizontalAlignment(SwingConstants.TRAILING);
jLabelShelfLife.setBounds(12, 49, 142, 21);
jTextFieldLegacyCode = new JTextField4j();
jPanelMaterial.add(jTextFieldLegacyCode);
jTextFieldLegacyCode.setBounds(161, 77, 128, 21);
jTextFieldLegacyCode.setEditable(false);
jTextFieldLegacyCode.setEnabled(false);
jLabelLegacyCode = new JLabel4j_std();
jPanelMaterial.add(jLabelLegacyCode);
jLabelLegacyCode.setText(lang.get("lbl_Material_Legacy_Code"));
jLabelLegacyCode.setHorizontalAlignment(SwingConstants.TRAILING);
jLabelLegacyCode.setBounds(12, 77, 142, 21);
jLabelEAN = new JLabel4j_std();
jPanelMaterial.add(jLabelEAN);
jLabelEAN.setText(lang.get("lbl_Material_UOM_EAN"));
jLabelEAN.setHorizontalAlignment(SwingConstants.RIGHT);
jLabelEAN.setHorizontalTextPosition(SwingConstants.RIGHT);
jLabelEAN.setBounds(291, 77, 151, 21);
jTextFieldEAN = new JTextField4j();
jPanelMaterial.add(jTextFieldEAN);
jTextFieldEAN.setBounds(449, 77, 126, 21);
jTextFieldEAN.setFocusCycleRoot(true);
jTextFieldEAN.setEditable(false);
jTextFieldEAN.setEnabled(false);
jLabelVariant = new JLabel4j_std();
jPanelMaterial.add(jLabelVariant);
jLabelVariant.setText(lang.get("lbl_Material_UOM_Variant"));
jLabelVariant.setHorizontalAlignment(SwingConstants.RIGHT);
jLabelVariant.setHorizontalTextPosition(SwingConstants.RIGHT);
jLabelVariant.setBounds(579, 77, 110, 21);
jTextFieldVariant = new JTextField4j();
jPanelMaterial.add(jTextFieldVariant);
jTextFieldVariant.setBounds(701, 77, 35, 21);
jTextFieldVariant.setFocusCycleRoot(true);
jTextFieldVariant.setEditable(false);
jTextFieldVariant.setEnabled(false);
jPanelPallet = new JPanel();
jDesktopPane1.add(jPanelPallet);
jPanelPallet.setBounds(7, 231, 748, 84);
jPanelPallet.setBorder(BorderFactory.createTitledBorder(null, lang.get("lbl_Pallet"), TitledBorder.LEADING, TitledBorder.TOP));
jPanelPallet.setLayout(null);
jPanelPallet.setFont(Common.font_std);
jPanelPallet.setBackground(Common.color_app_window);
jLabelQuantity = new JLabel4j_std();
jPanelPallet.add(jLabelQuantity);
jLabelQuantity.setText(lang.get("lbl_Pallet_Quantity"));
jLabelQuantity.setHorizontalAlignment(SwingConstants.TRAILING);
jLabelQuantity.setBounds(323, 21, 119, 21);
comboBoxPrintQueue = new JComboBox4j<String>();
comboBoxPrintQueue.setBounds(116, 455, 621, 23);
jDesktopPane1.add(comboBoxPrintQueue);
{
jTextFieldSSCC = new JTextField4j();
jPanelPallet.add(jTextFieldSSCC);
AbstractDocument doc = (AbstractDocument) jTextFieldSSCC.getDocument();
doc.setDocumentFilter(new JFixedSizeFilter(JDBPallet.field_sscc));
jTextFieldSSCC.setBounds(161, 18, 128, 21);
jTextFieldSSCC.setEnabled(false);
jTextFieldSSCC.addKeyListener(new KeyAdapter() {
public void keyReleased(KeyEvent evt)
{
checkSSCC();
}
});
}
jSpinnerProductionDate = new JDateControl();
jPanelPallet.add(jSpinnerProductionDate);
jSpinnerProductionDate.setFont(new java.awt.Font("Dialog", 0, 12));
jSpinnerProductionDate.setBounds(161, 45, 136, 21);
jSpinnerProductionDate.getEditor().addKeyListener(new KeyAdapter() {
public void keyPressed(KeyEvent e)
{
calcBBEBatch();
}
});
jSpinnerProductionDate.addChangeListener(new ChangeListener() {
public void stateChanged(final ChangeEvent e)
{
calcBBEBatch();
}
});
try
{
jSpinnerProductionDate.setDate(JUtility.getSQLDate());
jSpinnerProductionDate.setEnabled(false);
} catch (Exception e)
{
}
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);
jFormattedTextFieldBaseQuantity.setBounds(449, 49, 91, 21);
jCheckBoxProductionDate = new JCheckBox4j();
jPanelPallet.add(jCheckBoxProductionDate);
jCheckBoxProductionDate.setBackground(new java.awt.Color(255, 255, 255));
jCheckBoxProductionDate.setBounds(139, 45, 21, 21);
jCheckBoxProductionDate.setEnabled(false);
jCheckBoxProductionDate.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt)
{
enableField(jSpinnerProductionDate, jCheckBoxProductionDate.isSelected());
enableField(calendarButtonjSpinnerProductionDate, jCheckBoxProductionDate.isSelected());
}
});
jCheckBoxAutoSSCC = new JCheckBox4j();
jCheckBoxAutoSSCC.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
{
checkSSCC();
}
});
jCheckBoxAutoSSCC.setSelected(true);
jCheckBoxAutoSSCC.setToolTipText("Auto SSCC");
jCheckBoxAutoSSCC.setBackground(new Color(255, 255, 255));
jCheckBoxAutoSSCC.setBounds(139, 18, 21, 21);
jPanelPallet.add(jCheckBoxAutoSSCC);
calendarButtonjSpinnerProductionDate = new JCalendarButton(jSpinnerProductionDate);
calendarButtonjSpinnerProductionDate.setEnabled(false);
calendarButtonjSpinnerProductionDate.setBounds(290, 47, 21, 21);
jPanelPallet.add(calendarButtonjSpinnerProductionDate);
jPanelBatch = new JPanel();
jDesktopPane1.add(jPanelBatch);
jPanelBatch.setBounds(7, 315, 748, 56);
jPanelBatch.setLayout(null);
jPanelBatch.setFont(Common.font_std);
jPanelBatch.setBorder(BorderFactory.createTitledBorder(lang.get("lbl_Material_Batch")));
jPanelBatch.setBackground(Common.color_app_window);
jLabelBatch = new JLabel4j_std();
jPanelBatch.add(jLabelBatch);
jLabelBatch.setText(lang.get("lbl_Material_Batch"));
jLabelBatch.setHorizontalAlignment(SwingConstants.TRAILING);
jLabelBatch.setBounds(320, 21, 96, 21);
jTextFieldBatch = new JTextField4j();
jPanelBatch.add(jTextFieldBatch);
AbstractDocument doc = (AbstractDocument) jTextFieldBatch.getDocument();
doc.setDocumentFilter(new JFixedSizeFilter(JDBMaterialBatch.field_batch_number));
jTextFieldBatch.setBounds(449, 21, 108, 21);
jTextFieldBatch.setEnabled(false);
jSpinnerExpiryDate = new JDateControl();
jSpinnerExpiryDate.addFocusListener(new FocusAdapter() {
@Override
public void focusLost(FocusEvent arg0)
{
jSpinnerExpiryDate.setDate(material.getRoundedExpiryDate(jSpinnerExpiryDate.getDate()));
}
});
jPanelBatch.add(jSpinnerExpiryDate);
jSpinnerExpiryDate.setFont(Common.font_std);
jSpinnerExpiryDate.setBounds(161, 17, 135, 25);
jSpinnerExpiryDate.getEditor().setPreferredSize(new java.awt.Dimension(87, 19));
jSpinnerExpiryDate.getEditor().setSize(87, 21);
jSpinnerExpiryDate.setEnabled(false);
jLabelBatchExpiry = new JLabel4j_std();
jPanelBatch.add(jLabelBatchExpiry);
jLabelBatchExpiry.setText(lang.get("lbl_Material_Batch_Expiry_Date"));
jLabelBatchExpiry.setHorizontalAlignment(SwingConstants.TRAILING);
jLabelBatchExpiry.setBounds(12, 17, 122, 21);
jCheckBoxExpiry = new JCheckBox4j();
jPanelBatch.add(jCheckBoxExpiry);
jCheckBoxExpiry.setBounds(139, 17, 21, 21);
jCheckBoxExpiry.setBackground(new java.awt.Color(255, 255, 255));
jCheckBoxExpiry.setEnabled(false);
jCheckBoxExpiry.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt)
{
enableField(jSpinnerExpiryDate, jCheckBoxExpiry.isSelected());
enableField(calendarButtonjSpinnerExpiryDate, jCheckBoxExpiry.isSelected());
calcBBEBatch();
}
});
jCheckBoxBatch = new JCheckBox4j();
jPanelBatch.add(jCheckBoxBatch);
jCheckBoxBatch.setEnabled(false);
jCheckBoxBatch.setBackground(new java.awt.Color(255, 255, 255));
jCheckBoxBatch.setBounds(422, 21, 21, 21);
jCheckBoxBatch.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt)
{
enableField(jTextFieldBatch, jCheckBoxBatch.isSelected());
calcBBEBatch();
}
});
jStatusText = new JLabel4j_std();
jDesktopPane1.add(jStatusText);
jStatusText.setForeground(new java.awt.Color(255, 0, 0));
jStatusText.setBounds(0, 532, 761, 21);
jStatusText.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
jButtonReprint = new JButton4j(Common.icon_report);
jButtonReprint.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e)
{
buildSQL(ssccList, ssccItems);
String pq = comboBoxPrintQueue.getSelectedItem().toString();
JLaunchReport.runReport(labelPrint.getPalletLabelReportName(pallet.getProcessOrder()), listStatement, jCheckBoxAutoPreview.isSelected(), pq,
Integer.valueOf(jSpinnerCopies.getValue().toString()), checkBoxIncHeaderText.isSelected());
}
});
jButtonReprint.setMnemonic(KeyEvent.VK_C);
jButtonReprint.setText(lang.get("btn_Re_Print"));
jButtonReprint.setBounds(248, 492, 126, 32);
jButtonReprint.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_PRODDEC_REPRINT"));
jDesktopPane1.add(jButtonReprint);
{
final JPanel panel = new JPanel();
panel.setBorder(new TitledBorder(null, lang.get("lbl_Options"), TitledBorder.DEFAULT_JUSTIFICATION, TitledBorder.DEFAULT_POSITION, null, null));
panel.setBackground(Common.color_app_window);
panel.setFont(Common.font_title);
panel.setLayout(null);
panel.setBounds(7, 374, 748, 73);
jDesktopPane1.add(panel);
jLabelPrintLabel = new JLabel4j_std();
jLabelPrintLabel.setBounds(0, 15, 129, 21);
panel.add(jLabelPrintLabel);
jLabelPrintLabel.setHorizontalAlignment(SwingConstants.TRAILING);
jLabelPrintLabel.setText(lang.get("lbl_Print"));
jCheckBoxAutoPrint = new JCheckBox4j();
jCheckBoxAutoPrint.setBounds(139, 15, 21, 21);
panel.add(jCheckBoxAutoPrint);
jCheckBoxAutoPrint.setToolTipText("Auto SSCC");
jCheckBoxAutoPrint.setSelected(true);
jCheckBoxAutoPrint.setBackground(new Color(255, 255, 255));
jCheckBoxAutoPrint.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_PRODDEC_PRINT"));
jLabelPrintLabel_1 = new JLabel4j_std();
jLabelPrintLabel_1.setBounds(282, 15, 138, 21);
panel.add(jLabelPrintLabel_1);
jLabelPrintLabel_1.setHorizontalTextPosition(SwingConstants.CENTER);
jLabelPrintLabel_1.setHorizontalAlignment(SwingConstants.TRAILING);
jLabelPrintLabel_1.setText(lang.get("lbl_Preview"));
jCheckBoxAutoPreview = new JCheckBox4j();
jCheckBoxAutoPreview.setBounds(424, 15, 21, 21);
panel.add(jCheckBoxAutoPreview);
jCheckBoxAutoPreview.setToolTipText("Auto SSCC");
jCheckBoxAutoPreview.setSelected(true);
jCheckBoxAutoPreview.setBackground(new Color(255, 255, 255));
jCheckBoxAutoPreview.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_PRODDEC_PREVIEW"));
jLabelPrintLabel_2 = new JLabel4j_std();
jLabelPrintLabel_2.setHorizontalAlignment(SwingConstants.TRAILING);
jLabelPrintLabel_2.setText(lang.get("lbl_Label_Header_Text"));
jLabelPrintLabel_2.setBounds(10, 44, 119, 21);
panel.add(jLabelPrintLabel_2);
jCheckBoxAutoConfirm = new JCheckBox4j();
jCheckBoxAutoConfirm.setBackground(Color.WHITE);
jCheckBoxAutoConfirm.setBounds(424, 44, 21, 21);
panel.add(jCheckBoxAutoConfirm);
jCheckBoxAutoConfirm.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_PRODDEC_CONFIRM"));
jLabelQuantity_1 = new JLabel4j_std();
jLabelQuantity_1.setBounds(474, 15, 201, 21);
panel.add(jLabelQuantity_1);
jLabelQuantity_1.setHorizontalAlignment(SwingConstants.RIGHT);
jLabelQuantity_1.setText(lang.get("lbl_Number_of_SSCCs"));
jSpinnerQuantity = new JSpinner();
jSpinnerQuantity.addChangeListener(new ChangeListener() {
public void stateChanged(final ChangeEvent e)
{
int t = Integer.valueOf(jSpinnerQuantity.getValue().toString());
if (t <= 0)
{
jSpinnerQuantity.setValue(1);
}
if (t > 50)
{
jSpinnerQuantity.setValue(50);
}
}
});
jSpinnerQuantity.setBounds(687, 15, 49, 21);
jSpinnerQuantity.setInputVerifier(null);
jSpinnerQuantity.setModel(quantitynumbermodel);
jSpinnerQuantity.setValue(1);
JSpinner.NumberEditor ne = new JSpinner.NumberEditor(jSpinnerQuantity);
ne.getTextField().setFont(Common.font_std);
jSpinnerQuantity.setEditor(ne);
panel.add(jSpinnerQuantity);
jSpinnerCopies = new JSpinner();
jSpinnerCopies.setBounds(687, 44, 49, 21);
jSpinnerCopies.setInputVerifier(null);
jSpinnerCopies.setModel(copiesnumbermodel);
JSpinner.NumberEditor nec2 = new JSpinner.NumberEditor(jSpinnerCopies);
nec2.getTextField().setFont(Common.font_std);
jSpinnerCopies.setEditor(nec2);
panel.add(jSpinnerCopies);
labelCopies.setText((String) null);
labelCopies.setHorizontalAlignment(SwingConstants.RIGHT);
labelCopies.setBounds(474, 44, 201, 21);
labelCopies.setText(lang.get("lbl_Labels_Per_SSCC"));
panel.add(labelCopies);
label_1 = new JLabel4j_std();
label_1.setHorizontalAlignment(SwingConstants.TRAILING);
label_1.setText(lang.get("lbl_Confirmed"));
label_1.setBounds(292, 44, 129, 21);
panel.add(label_1);
checkBoxIncHeaderText = new JCheckBox4j();
checkBoxIncHeaderText.setSelected(true);
checkBoxIncHeaderText.setBackground(Color.WHITE);
checkBoxIncHeaderText.setBounds(139, 44, 21, 21);
panel.add(checkBoxIncHeaderText);
textFieldBatchExtension = new JTextField4j();
textFieldBatchExtension.setText("");
textFieldBatchExtension.setBounds(561, 21, 39, 21);
jPanelBatch.add(textFieldBatchExtension);
calendarButtonjSpinnerExpiryDate = new JCalendarButton(jSpinnerExpiryDate);