}
});
}
{
jTextFieldMaterial = new JTextField4j();
AbstractDocument doc = (AbstractDocument) jTextFieldMaterial.getDocument();
doc.setDocumentFilter(new JFixedSizeFilter(JDBMaterial.field_material));
jDesktopPane1.add(jTextFieldMaterial);
jTextFieldMaterial.setBounds(122, 11, 120, 21);
}
{
jTextFieldLocation = new JTextField4j();
AbstractDocument doc = (AbstractDocument) jTextFieldLocation.getDocument();
doc.setDocumentFilter(new JFixedSizeFilter(JDBLocation.field_location_id));
jDesktopPane1.add(jTextFieldLocation);
jTextFieldLocation.setBounds(340, 11, 103, 21);
}
{
jTextFieldCustomer = new JTextField4j();
AbstractDocument doc = (AbstractDocument) jTextFieldCustomer.getDocument();
doc.setDocumentFilter(new JFixedSizeFilter(JDBCustomer.field_customer_id));
jDesktopPane1.add(jTextFieldCustomer);
jTextFieldCustomer.setBounds(340, 105, 103, 21);
}
{
jLabel1 = new JLabel4j_std();
jDesktopPane1.add(jLabel1);
jLabel1.setText(lang.get("lbl_Material"));
jLabel1.setBounds(2, 11, 108, 21);
jLabel1.setHorizontalAlignment(SwingConstants.TRAILING);
}
{
jLabel3 = new JLabel4j_std();
jDesktopPane1.add(jLabel3);
jLabel3.setText(lang.get("lbl_Location_ID"));
jLabel3.setBounds(260, 11, 74, 21);
}
{
jLabel23 = new JLabel4j_std();
jLabel23.setHorizontalAlignment(SwingConstants.TRAILING);
jDesktopPane1.add(jLabel23);
jLabel23.setText(lang.get("lbl_Customer_ID"));
jLabel23.setBounds(243, 105, 91, 21);
}
{
ComboBoxModel jComboBox2Model = new DefaultComboBoxModel(uomList);
jComboBoxUOM = new JComboBox4j();
jDesktopPane1.add(jComboBoxUOM);
jComboBoxUOM.setModel(jComboBox2Model);
jComboBoxUOM.setBounds(580, 75, 125, 23);
jComboBoxUOM.setMaximumRowCount(12);
}
{
jLabel4 = new JLabel4j_std();
jDesktopPane1.add(jLabel4);
jLabel3.setHorizontalAlignment(SwingConstants.TRAILING);
jLabel4.setText(lang.get("lbl_Material_UOM"));
jLabel4.setBounds(490, 75, 88, 21);
jLabel4.setHorizontalAlignment(SwingConstants.TRAILING);
}
{
jButtonAdd = new JButton4j(Common.icon_add);
jDesktopPane1.add(jButtonAdd);
jButtonAdd.setText(lang.get("btn_Add"));
jButtonAdd.setBounds(196, 230, 98, 28);
jButtonAdd.setMnemonic(lang.getMnemonicChar());
jButtonAdd.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_ADD"));
jButtonAdd.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent evt)
{
addRecord();
}
});
}
{
jButtonEdit = new JButton4j(Common.icon_edit);
jDesktopPane1.add(jButtonEdit);
jButtonEdit.setText(lang.get("btn_Edit"));
jButtonEdit.setBounds(294, 230, 98, 28);
jButtonEdit.setMnemonic(lang.getMnemonicChar());
jButtonEdit.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_EDIT"));
jButtonEdit.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent evt)
{
editRecord();
}
});
}
{
jButtonDelete = new JButton4j(Common.icon_delete);
jDesktopPane1.add(jButtonDelete);
jButtonDelete.setText(lang.get("btn_Delete"));
jButtonDelete.setBounds(392, 230, 98, 28);
jButtonDelete.setMnemonic(lang.getMnemonicChar());
jButtonDelete.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_DELETE"));
jButtonDelete.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent evt)
{
deleteRecord();
}
});
}
{
jButtonSummary = new JButton4j(Common.icon_report);
jButtonSummary.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent e)
{
print_summary();
}
});
jDesktopPane1.add(jButtonSummary);
jButtonSummary.setText(lang.get("btn_Print_Summary"));
jButtonSummary.setBounds(686, 230, 98, 28);
jButtonSummary.setMnemonic(lang.getMnemonicChar());
jButtonSummary.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("RPT_PAL_SUMMARY"));
}
{
jButtonClose = new JButton4j(Common.icon_close);
jDesktopPane1.add(jButtonClose);
jButtonClose.setText(lang.get("btn_Close"));
jButtonClose.setBounds(882, 230, 98, 28);
jButtonClose.setMnemonic(lang.getMnemonicChar());
jButtonClose.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent evt)
{
JDBQuery2.closeStatement(listStatement);
dispose();
}
});
}
{
jButtonPrint = new JButton4j(Common.icon_report);
jDesktopPane1.add(jButtonPrint);
jButtonPrint.setText(lang.get("btn_Print"));
jButtonPrint.setBounds(490, 230, 98, 28);
jButtonPrint.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("RPT_PALLETS"));
jButtonPrint.setMnemonic(lang.getMnemonicChar());
jButtonPrint.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent evt)
{
printRecords("multi");
}
});
}
{
jLabel10 = new JLabel4j_std();
jDesktopPane1.add(jLabel10);
jLabel10.setText(lang.get("lbl_Limit"));
jLabel10.setHorizontalAlignment(SwingConstants.TRAILING);
jLabel10.setBounds(702, 200, 97, 21);
}
{
ComboBoxModel jComboBoxSortByModel = new DefaultComboBoxModel(new String[]
{ "DATE_OF_MANUFACTURE", "DATE_CREATED","DATE_UPDATED","SSCC", "MATERIAL,BATCH_NUMBER", "MATERIAL,PROCESS_ORDER", "BATCH_NUMBER,MATERIAL", "PROCESS_ORDER,DATE_OF_MANUFACTURE", "QUANTITY", "STATUS", "LOCATION_ID", "UOM", "EAN", "VARIANT" });
jComboBoxSortBy = new JComboBox4j();
jDesktopPane1.add(jComboBoxSortBy);
jComboBoxSortBy.setModel(jComboBoxSortByModel);
jComboBoxSortBy.setBounds(318, 198, 355, 23);
}
{
ComboBoxModel jComboBoxDefaultPalletStatusModel = new DefaultComboBoxModel(Common.palletStatusIncBlank);
jComboBoxPalletStatus = new JComboBox4j();
jDesktopPane1.add(jComboBoxPalletStatus);
jComboBoxPalletStatus.setModel(jComboBoxDefaultPalletStatusModel);
jComboBoxPalletStatus.setBounds(805, 11, 169, 23);
}
{
jLabel15 = new JLabel4j_std();
jDesktopPane1.add(jLabel15);
jLabel15.setText(lang.get("lbl_Pallet_Status"));
jLabel15.setHorizontalAlignment(SwingConstants.TRAILING);
jLabel15.setBounds(702, 11, 97, 21);
}
{
jToggleButtonSequence = new JToggleButton();
jToggleButtonSequence.setSelected(true);
jDesktopPane1.add(jToggleButtonSequence);
jToggleButtonSequence.setBounds(680, 198, 21, 21);
jToggleButtonSequence.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent evt)
{
setSequence(jToggleButtonSequence.isSelected());
}
});
}
{
jLabelQuantity = new JLabel4j_std();
jDesktopPane1.add(jLabelQuantity);
jLabelQuantity.setText(lang.get("lbl_Pallet_Quantity"));
jLabelQuantity.setHorizontalAlignment(SwingConstants.TRAILING);
jLabelQuantity.setBounds(490, 105, 88, 21);
}
{
jFormattedTextFieldQuantity = new JQuantityInput(new BigDecimal("0"));
jDesktopPane1.add(jFormattedTextFieldQuantity);
jFormattedTextFieldQuantity.setFont(Common.font_std);
jFormattedTextFieldQuantity.setHorizontalAlignment(SwingConstants.TRAILING);
jFormattedTextFieldQuantity.setBounds(604, 105, 97, 21);
jFormattedTextFieldQuantity.setVerifyInputWhenFocusTarget(false);
jFormattedTextFieldQuantity.setEnabled(false);
}
{
jLabel2 = new JLabel4j_std();
jDesktopPane1.add(jLabel2);
jLabel2.setText(lang.get("lbl_Material_Batch"));
jLabel2.setHorizontalAlignment(SwingConstants.TRAILING);
jLabel2.setBounds(490, 11, 88, 21);
}
{
jTextFieldBatch = new JTextField4j();
AbstractDocument doc = (AbstractDocument) jTextFieldBatch.getDocument();
doc.setDocumentFilter(new JFixedSizeFilter(JDBMaterialBatch.field_batch_number));
jDesktopPane1.add(jTextFieldBatch);
jTextFieldBatch.setBounds(582, 11, 98, 21);
}
{
jLabelProcessOrder = new JLabel4j_std();
jDesktopPane1.add(jLabelProcessOrder);
jLabelProcessOrder.setText(lang.get("lbl_Process_Order"));
jLabelProcessOrder.setHorizontalAlignment(SwingConstants.TRAILING);
jLabelProcessOrder.setBounds(490, 44, 88, 21);
}
{
jTextFieldProcessOrder = new JTextField4j();
AbstractDocument doc = (AbstractDocument) jTextFieldProcessOrder.getDocument();
doc.setDocumentFilter(new JFixedSizeFilter(JDBProcessOrder.field_process_order));
jDesktopPane1.add(jTextFieldProcessOrder);
jTextFieldProcessOrder.setBounds(582, 44, 98, 21);
}
{
jLabelProductionDate = new JLabel4j_std();
jDesktopPane1.add(jLabelProductionDate);
jLabelProductionDate.setText(lang.get("lbl_Pallet_DOM"));
jLabelProductionDate.setHorizontalAlignment(SwingConstants.TRAILING);
jLabelProductionDate.setBounds(2, 42, 108, 25);
}
{
jTextFieldEAN = new JTextField4j();
AbstractDocument doc = (AbstractDocument) jTextFieldEAN.getDocument();
doc.setDocumentFilter(new JFixedSizeFilter(JDBMaterialUom.field_ean));
jDesktopPane1.add(jTextFieldEAN);
jTextFieldEAN.setBounds(805, 75, 117, 21);
jTextFieldEAN.setFocusCycleRoot(true);
}
{
jLabel5 = new JLabel4j_std();
jDesktopPane1.add(jLabel5);
jLabel5.setText(lang.get("lbl_Material_UOM_EAN"));
jLabel5.setHorizontalAlignment(SwingConstants.RIGHT);
jLabel5.setHorizontalTextPosition(SwingConstants.RIGHT);
jLabel5.setBounds(702, 75, 97, 21);
}
{
jLabel6 = new JLabel4j_std();
jDesktopPane1.add(jLabel6);
jLabel6.setText("/");
jLabel6.setHorizontalAlignment(SwingConstants.CENTER);
jLabel6.setHorizontalTextPosition(SwingConstants.RIGHT);
jLabel6.setBounds(922, 75, 15, 21);
}
{
jTextFieldVariant = new JTextField4j();
jTextFieldVariant.setHorizontalAlignment(SwingConstants.CENTER);
AbstractDocument doc = (AbstractDocument) jTextFieldVariant.getDocument();
doc.setDocumentFilter(new JFixedSizeFilter(JDBMaterialUom.field_variant));
jDesktopPane1.add(jTextFieldVariant);
jTextFieldVariant.setBounds(937, 75, 21, 21);
jTextFieldVariant.setFocusCycleRoot(true);
}
{
jCheckBoxQuantity = new JCheckBox();
jDesktopPane1.add(jCheckBoxQuantity);
jCheckBoxQuantity.setBackground(new java.awt.Color(255, 255, 255));
jCheckBoxQuantity.setBounds(582, 105, 21, 21);
jCheckBoxQuantity.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent evt)
{
if (jCheckBoxQuantity.isSelected())
{
jFormattedTextFieldQuantity.setValue(0);
jFormattedTextFieldQuantity.setEnabled(true);
} else
{
jFormattedTextFieldQuantity.setValue(0);
jFormattedTextFieldQuantity.setEnabled(false);
}
}
});
}
{
domDateFrom = new JDateControl();
jDesktopPane1.add(domDateFrom);
domDateFrom.setEnabled(false);
domDateFrom.setFont(Common.font_std);
domDateFrom.setBounds(144, 40, 120, 25);
}
{
jCheckBoxDOMTo = new JCheckBox();
jDesktopPane1.add(jCheckBoxDOMTo);
jCheckBoxDOMTo.setBackground(new java.awt.Color(255, 255, 255));
jCheckBoxDOMTo.setBounds(313, 40, 21, 25);
jCheckBoxDOMTo.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent evt)
{
if (jCheckBoxDOMTo.isSelected())
{
button_CalendardomDateTo.setEnabled(true);
domDateTo.setEnabled(true);
} else
{
domDateTo.setEnabled(false);
button_CalendardomDateTo.setEnabled(false);
}
}
});
}
{
domDateTo = new JDateControl();
jDesktopPane1.add(domDateTo);
domDateTo.setEnabled(false);
domDateTo.setFont(Common.font_std);
domDateTo.setBounds(340, 40, 120, 25);
}
{
jLabel7 = new JLabel4j_std();
jDesktopPane1.add(jLabel7);
jLabel7.setText(lang.get("lbl_Sort_By"));
jLabel7.setHorizontalAlignment(SwingConstants.TRAILING);
jLabel7.setBounds(243, 198, 69, 21);
}
{
SpinnerNumberModel jSpinnerIntModel = new SpinnerNumberModel();
jSpinnerIntModel.setMinimum(1);
jSpinnerIntModel.setMaximum(5000);
jSpinnerIntModel.setStepSize(1);
jSpinnerLimit = new JSpinner();
JSpinner.NumberEditor ne = new JSpinner.NumberEditor(jSpinnerLimit);
ne.getTextField().setFont(Common.font_std);
jSpinnerLimit.setEditor(ne);
jSpinnerLimit.setModel(jSpinnerIntModel);
jSpinnerLimit.setBounds(824, 200, 68, 21);
jSpinnerLimit.setValue(1000);
jSpinnerLimit.getEditor().setSize(45, 21);
jDesktopPane1.add(jSpinnerLimit);
}
{
jCheckBoxLimit = new JCheckBox();
jDesktopPane1.add(jCheckBoxLimit);
jCheckBoxLimit.setBackground(new java.awt.Color(255, 255, 255));
jCheckBoxLimit.setBounds(801, 200, 21, 21);
jCheckBoxLimit.setSelected(true);
jCheckBoxLimit.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent evt)
{
if (jCheckBoxLimit.isSelected())
{
jSpinnerLimit.setEnabled(true);
} else
{
jSpinnerLimit.setEnabled(false);
}
}
});
}
{
jButtonLookupProcessOrder = new JButton4j(Common.icon_lookup);
jDesktopPane1.add(jButtonLookupProcessOrder);
jButtonLookupProcessOrder.setBounds(680, 44, 21, 21);
jButtonLookupProcessOrder.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent evt)
{
JLaunchLookup.dlgCriteriaDefault = "Ready";
JLaunchLookup.dlgAutoExec = true;
if (JLaunchLookup.processOrders())
{
jTextFieldProcessOrder.setText(JLaunchLookup.dlgResult);
}
}
});
}
{
jButtonLookupBatch = new JButton4j(Common.icon_lookup);
jDesktopPane1.add(jButtonLookupBatch);
jButtonLookupBatch.setBounds(680, 11, 21, 21);
jButtonLookupBatch.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent evt)
{
JLaunchLookup.dlgCriteriaDefault = jTextFieldMaterial.getText();
JLaunchLookup.dlgAutoExec = true;
if (JLaunchLookup.materialBatches())
{
jTextFieldBatch.setText(JLaunchLookup.dlgResult);
}
}
});
}
{
jButtonLookupMaterial = new JButton4j(Common.icon_lookup);
jDesktopPane1.add(jButtonLookupMaterial);
jButtonLookupMaterial.setFont(new java.awt.Font("Dialog", 1, 7));
jButtonLookupMaterial.setBounds(243, 11, 21, 21);
jButtonLookupMaterial.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent evt)
{
JLaunchLookup.dlgAutoExec = false;
JLaunchLookup.dlgCriteriaDefault = "";
if (JLaunchLookup.materials())
{
jTextFieldMaterial.setText(JLaunchLookup.dlgResult);
}
}
});
}
{
jButtonLookupLocation = new JButton4j(Common.icon_lookup);
jDesktopPane1.add(jButtonLookupLocation);
jButtonLookupLocation.setBounds(444, 11, 21, 21);
jButtonLookupLocation.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent evt)
{
JLaunchLookup.dlgAutoExec = true;
JLaunchLookup.dlgCriteriaDefault = "Y";
if (JLaunchLookup.locations())
{
jTextFieldLocation.setText(JLaunchLookup.dlgResult);
}
}
});
}
{
jButtonLookupCustomer = new JButton4j(Common.icon_lookup);
jDesktopPane1.add(jButtonLookupCustomer);
jButtonLookupCustomer.setBounds(444, 105, 21, 21);
jButtonLookupCustomer.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent evt)
{
JLaunchLookup.dlgAutoExec = true;
JLaunchLookup.dlgCriteriaDefault = "";
if (JLaunchLookup.customers())
{
jTextFieldCustomer.setText(JLaunchLookup.dlgResult);
}
}
});
}
{
jCheckBoxDOMFrom = new JCheckBox();
jDesktopPane1.add(jCheckBoxDOMFrom);
jCheckBoxDOMFrom.setBackground(new java.awt.Color(255, 255, 255));
jCheckBoxDOMFrom.setBounds(120, 40, 21, 25);
jCheckBoxDOMFrom.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent evt)
{
if (jCheckBoxDOMFrom.isSelected())
{
domDateFrom.setEnabled(true);
button_CalendardomDateFrom.setEnabled(true);
} else
{
domDateFrom.setEnabled(false);
button_CalendardomDateFrom.setEnabled(false);
}
}
});
}
{
jTextFieldSSCC = new JTextField4j();
AbstractDocument doc = (AbstractDocument) jTextFieldSSCC.getDocument();
doc.setDocumentFilter(new JFixedSizeFilter(JDBPallet.field_sscc));
jDesktopPane1.add(jTextFieldSSCC);
jTextFieldSSCC.setBounds(122, 105, 120, 21);
}
{
jLabelSCC = new JLabel4j_std();
jDesktopPane1.add(jLabelSCC);
jLabelSCC.setText(lang.get("lbl_Pallet_SSCC"));
jLabelSCC.setBounds(2, 105, 108, 21);
jLabelSCC.setHorizontalAlignment(SwingConstants.TRAILING);
}
{
expiryDateFrom = new JDateControl();
jDesktopPane1.add(expiryDateFrom);
expiryDateFrom.setEnabled(false);
expiryDateFrom.setFont(Common.font_std);
expiryDateFrom.setBounds(144, 71, 120, 25);
}
{
expiryDateTo = new JDateControl();
jDesktopPane1.add(expiryDateTo);
expiryDateTo.setEnabled(false);
expiryDateTo.setFont(Common.font_std);
expiryDateTo.setBounds(340, 71, 120, 25);
}
{
jLabel8 = new JLabel4j_std();
jDesktopPane1.add(jLabel8);
jLabel8.setText(lang.get("lbl_Material_Batch_Expiry_Date"));
jLabel8.setHorizontalAlignment(SwingConstants.TRAILING);
jLabel8.setBounds(2, 71, 108, 25);
}
{
jCheckBoxExpiryFrom = new JCheckBox();
jDesktopPane1.add(jCheckBoxExpiryFrom);
jCheckBoxExpiryFrom.setBackground(new java.awt.Color(255, 255, 255));
jCheckBoxExpiryFrom.setBounds(120, 71, 21, 25);
jCheckBoxExpiryFrom.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent evt)
{
if (jCheckBoxExpiryFrom.isSelected())
{
expiryDateFrom.setEnabled(true);
calendarButtonexpiryDateFrom.setEnabled(true);
} else
{
expiryDateFrom.setEnabled(false);
calendarButtonexpiryDateFrom.setEnabled(false);
}
}
});
}
{
jCheckBoxExpiryTo = new JCheckBox();
jDesktopPane1.add(jCheckBoxExpiryTo);
jCheckBoxExpiryTo.setBackground(new java.awt.Color(255, 255, 255));
jCheckBoxExpiryTo.setBounds(313, 71, 21, 25);
jCheckBoxExpiryTo.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent evt)
{
if (jCheckBoxExpiryTo.isSelected())
{
expiryDateTo.setEnabled(true);
calendarButtonexpiryDateTo.setEnabled(true);
} else
{
expiryDateTo.setEnabled(false);
calendarButtonexpiryDateTo.setEnabled(false);
}
}
});
}
{
jButtonLabel = new JButton4j(Common.icon_report);
jButtonLabel.setToolTipText("Print labels for all returned rows below");
jDesktopPane1.add(jButtonLabel);
jButtonLabel.setText(lang.get("btn_Label"));
jButtonLabel.setMnemonic(java.awt.event.KeyEvent.VK_L);
jButtonLabel.setBounds(588, 230, 98, 28);
jButtonLabel.addActionListener(new ActionListener()
{
public void actionPerformed(ActionEvent evt)
{
printLabels();
}
});
}
{
jLabel8_1 = new JLabel4j_std();
jLabel8_1.setHorizontalAlignment(SwingConstants.TRAILING);
jLabel8_1.setText(lang.get("lbl_Despatch_No"));
jLabel8_1.setBounds(702, 44, 97, 21);
jDesktopPane1.add(jLabel8_1);
}
{
jTextFieldDespatch_No = new JTextField4j();
AbstractDocument doc = (AbstractDocument) jTextFieldDespatch_No.getDocument();
doc.setDocumentFilter(new JFixedSizeFilter(JDBDespatch.field_despatch_no));
jTextFieldDespatch_No.setFocusCycleRoot(true);
jTextFieldDespatch_No.setBounds(805, 44, 117, 21);
jDesktopPane1.add(jTextFieldDespatch_No);
}