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(new java.awt.Color(255, 255, 255));
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 JCheckBox();
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 JCheckBox();
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, 28);
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(Color.WHITE);
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 JCheckBox();
jCheckBoxAutoPrint.setBounds(139, 15, 21, 21);
panel.add(jCheckBoxAutoPrint);
jCheckBoxAutoPrint.setToolTipText("Auto SSCC");
jCheckBoxAutoPrint.setSelected(true);
jCheckBoxAutoPrint.setBackground(new Color(255, 255, 255));
jCheckBoxAutoPrint.setText("New JCheckBox");
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 JCheckBox();
jCheckBoxAutoPreview.setBounds(424, 15, 21, 21);
panel.add(jCheckBoxAutoPreview);
jCheckBoxAutoPreview.setToolTipText("Auto SSCC");
jCheckBoxAutoPreview.setSelected(true);
jCheckBoxAutoPreview.setBackground(new Color(255, 255, 255));
jCheckBoxAutoPreview.setText("New JCheckBox");
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 JCheckBox();
jCheckBoxAutoConfirm.setBackground(Color.WHITE);
jCheckBoxAutoConfirm.setText("New JCheckBox");
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 JCheckBox();
checkBoxIncHeaderText.setSelected(true);
checkBoxIncHeaderText.setText("New JCheckBox");
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);
calendarButtonjSpinnerExpiryDate.setEnabled(false);
calendarButtonjSpinnerExpiryDate.setBounds(290, 18, 21, 21);
jPanelBatch.add(calendarButtonjSpinnerExpiryDate);
}