}
});
}
{
jLabel1 = new JLabel4j_std();
jDesktopPane1.add(jLabel1);
jLabel1.setText(lang.get("lbl_Pallet_SSCC"));
jLabel1.setBounds(7, 6, 133, 21);
jLabel1.setHorizontalAlignment(SwingConstants.TRAILING);
}
{
jLabel5 = new JLabel4j_std();
jDesktopPane1.add(jLabel5);
jLabel5.setBounds(7, 280, 133, 21);
jLabel5.setHorizontalAlignment(SwingConstants.TRAILING);
jLabel5.setText(lang.get("lbl_Material_UOM"));
}
{
jLabel15 = new JLabel4j_std();
jDesktopPane1.add(jLabel15);
jLabel15.setText(lang.get("lbl_Pallet_Status"));
jLabel15.setHorizontalAlignment(SwingConstants.TRAILING);
jLabel15.setBounds(7, 389, 133, 21);
}
{
textFieldDespatchNo = new JTextField4j();
textFieldDespatchNo.setFocusCycleRoot(true);
textFieldDespatchNo.setEnabled(false);
textFieldDespatchNo.setBounds(147, 446, 119, 21);
textFieldDespatchNo.addKeyListener(new KeyAdapter() {
public void keyReleased(KeyEvent evt) {
despatchNoChanged();
}
});
jDesktopPane1.add(textFieldDespatchNo);
}
{
ComboBoxModel jComboBox1Model = new DefaultComboBoxModel(Common.palletStatus);
jComboBoxDefaultPalletStatus = new JComboBox4j();
jDesktopPane1.add(jComboBoxDefaultPalletStatus);
jComboBoxDefaultPalletStatus.setModel(jComboBox1Model);
jComboBoxDefaultPalletStatus.setBounds(147, 389, 168, 23);
jComboBoxDefaultPalletStatus.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_EDIT_STATUS"));
jComboBoxDefaultPalletStatus.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
jButtonSave.setEnabled(true);
jButtonUndo.setEnabled(true);
}
});
}
{
jLabel2 = new JLabel4j_std();
jDesktopPane1.add(jLabel2);
jLabel2.setText(lang.get("lbl_Material"));
jLabel2.setHorizontalAlignment(SwingConstants.TRAILING);
jLabel2.setBounds(7, 87, 133, 21);
}
{
jTextFieldMaterial = new JTextField4j();
AbstractDocument doc = (AbstractDocument) jTextFieldMaterial.getDocument();
doc.setDocumentFilter(new JFixedSizeFilter(JDBMaterial.field_material));
jDesktopPane1.add(jTextFieldMaterial);
jTextFieldMaterial.setBounds(147, 87, 119, 21);
jTextFieldMaterial.setEditable(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_EDIT_MATERIAL"));
jTextFieldMaterial.addKeyListener(new KeyAdapter() {
public void keyReleased(KeyEvent evt) {
materialChanged();
}
});
}
{
jButtonLookupMaterial = new JButton4j(Common.icon_lookup);
jDesktopPane1.add(jButtonLookupMaterial);
jButtonLookupMaterial.setBounds(266, 87, 21, 21);
jButtonLookupMaterial.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_EDIT_MATERIAL"));
jButtonLookupMaterial.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
JLaunchLookup.dlgAutoExec = false;
JLaunchLookup.dlgCriteriaDefault = "";
if (JLaunchLookup.materials()) {
jTextFieldMaterial.setText(JLaunchLookup.dlgResult);
materialChanged();
}
}
});
}
{
jLabel3 = new JLabel4j_std();
jDesktopPane1.add(jLabel3);
jLabel3.setText(lang.get("lbl_Material_Batch"));
jLabel3.setHorizontalAlignment(SwingConstants.TRAILING);
jLabel3.setBounds(7, 141, 133, 21);
}
{
jTextFieldBatch = new JTextField4j();
AbstractDocument doc = (AbstractDocument) jTextFieldBatch.getDocument();
doc.setDocumentFilter(new JFixedSizeFilter(JDBMaterialBatch.field_batch_number));
jDesktopPane1.add(jTextFieldBatch);
jTextFieldBatch.setBounds(147, 141, 119, 21);
jTextFieldBatch.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_EDIT_BATCH"));
jTextFieldBatch.addKeyListener(new KeyAdapter() {
public void keyReleased(KeyEvent evt) {
materialBatchChanged();
}
});
}
{
jButtonLookupBatch = new JButton4j(Common.icon_lookup);
jDesktopPane1.add(jButtonLookupBatch);
jButtonLookupBatch.setBounds(266, 141, 21, 21);
jButtonLookupBatch.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_EDIT_BATCH"));
jButtonLookupBatch.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
JLaunchLookup.dlgCriteriaDefault = jTextFieldMaterial.getText();
JLaunchLookup.dlgAutoExec = true;
if (JLaunchLookup.materialBatches()) {
jTextFieldBatch.setText(JLaunchLookup.dlgResult);
materialBatchChanged();
}
}
});
}
{
jLabel4 = new JLabel4j_std();
jDesktopPane1.add(jLabel4);
jLabel4.setText(lang.get("lbl_Location_ID"));
jLabel4.setHorizontalAlignment(SwingConstants.TRAILING);
jLabel4.setBounds(7, 226, 133, 21);
}
{
jTextFieldLocation = new JTextField4j();
AbstractDocument doc = (AbstractDocument) jTextFieldLocation.getDocument();
doc.setDocumentFilter(new JFixedSizeFilter(JDBLocation.field_location_id));
jDesktopPane1.add(jTextFieldLocation);
jTextFieldLocation.setBounds(147, 226, 119, 21);
jTextFieldLocation.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_EDIT_LOCATION"));
jTextFieldLocation.addKeyListener(new KeyAdapter() {
public void keyReleased(KeyEvent evt) {
locationChanged();
}
});
}
{
jButtonLookupLocation = new JButton4j(Common.icon_lookup);
jDesktopPane1.add(jButtonLookupLocation);
jButtonLookupLocation.setBounds(266, 226, 21, 21);
jButtonLookupLocation.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_EDIT_LOCATION"));
jButtonLookupLocation.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
JLaunchLookup.dlgAutoExec = true;
JLaunchLookup.dlgCriteriaDefault = "Y";
if (JLaunchLookup.locations()) {
jTextFieldLocation.setText(JLaunchLookup.dlgResult);
locationChanged();
}
}
});
}
{
jLabelProcessOrder = new JLabel4j_std();
jDesktopPane1.add(jLabelProcessOrder);
jLabelProcessOrder.setText(lang.get("lbl_Process_Order"));
jLabelProcessOrder.setHorizontalAlignment(SwingConstants.TRAILING);
jLabelProcessOrder.setBounds(7, 33, 133, 21);
}
{
jTextFieldProcessOrder = new JTextField4j();
AbstractDocument doc = (AbstractDocument) jTextFieldProcessOrder.getDocument();
doc.setDocumentFilter(new JFixedSizeFilter(JDBProcessOrder.field_process_order));
jDesktopPane1.add(jTextFieldProcessOrder);
jTextFieldProcessOrder.setBounds(147, 33, 119, 21);
jTextFieldProcessOrder.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_EDIT_PROCESS_ORDER"));
jTextFieldProcessOrder.addKeyListener(new KeyAdapter() {
public void keyReleased(KeyEvent evt) {
processOrderChanged();
}
});
}
{
jButtonLookupProcessOrder = new JButton4j(Common.icon_lookup);
jDesktopPane1.add(jButtonLookupProcessOrder);
jButtonLookupProcessOrder.setBounds(266, 33, 21, 21);
jButtonLookupProcessOrder.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_EDIT_PROCESS_ORDER"));
jButtonLookupProcessOrder.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
JLaunchLookup.dlgCriteriaDefault = "Ready";
JLaunchLookup.dlgAutoExec = true;
if (JLaunchLookup.processOrders()) {
jTextFieldProcessOrder.setText(JLaunchLookup.dlgResult);
processOrderChanged();
}
}
});
}
{
jLabel6 = new JLabel4j_std();
jDesktopPane1.add(jLabel6);
jLabel6.setText(lang.get("lbl_Material_UOM_EAN"));
jLabel6.setHorizontalAlignment(SwingConstants.RIGHT);
jLabel6.setHorizontalTextPosition(SwingConstants.RIGHT);
jLabel6.setBounds(7, 335, 133, 21);
}
{
jTextFieldLayers = new JTextField4j();
jTextFieldLayers.setFocusCycleRoot(true);
jTextFieldLayers.setEnabled(false);
jTextFieldLayers.setBounds(147, 308, 32, 21);
jDesktopPane1.add(jTextFieldLayers);
}
{
lblLayers = new JLabel4j_std();
lblLayers.setText(lang.get("lbl_Pallet_Layers"));
lblLayers.setHorizontalTextPosition(SwingConstants.RIGHT);
lblLayers.setHorizontalAlignment(SwingConstants.RIGHT);
lblLayers.setBounds(7, 308, 133, 21);
jDesktopPane1.add(lblLayers);
}
{
jTextFieldEAN = new JTextField4j();
jDesktopPane1.add(jTextFieldEAN);
jTextFieldEAN.setBounds(147, 335, 111, 21);
jTextFieldEAN.setFocusCycleRoot(true);
jTextFieldEAN.setEnabled(false);
}
{
jLabel7 = new JLabel4j_std();
jDesktopPane1.add(jLabel7);
jLabel7.setText(lang.get("lbl_Material_UOM_Variant"));
jLabel7.setHorizontalAlignment(SwingConstants.RIGHT);
jLabel7.setHorizontalTextPosition(SwingConstants.RIGHT);
jLabel7.setBounds(266, 335, 74, 21);
}
{
jTextFieldVariant = new JTextField4j();
jDesktopPane1.add(jTextFieldVariant);
jTextFieldVariant.setBounds(352, 335, 32, 21);
jTextFieldVariant.setFocusCycleRoot(true);
jTextFieldVariant.setEnabled(false);
}
{
jLabelQuantity = new JLabel4j_std();
jDesktopPane1.add(jLabelQuantity);
jLabelQuantity.setText(lang.get("lbl_Pallet_Quantity"));
jLabelQuantity.setHorizontalAlignment(SwingConstants.TRAILING);
jLabelQuantity.setBounds(7, 253, 133, 21);
}
{
jFormattedTextFieldQuantity = new JQuantityInput(new BigDecimal("0"));
jDesktopPane1.add(jFormattedTextFieldQuantity);
jFormattedTextFieldQuantity.setFont(Common.font_std);
jFormattedTextFieldQuantity.setHorizontalAlignment(SwingConstants.TRAILING);
jFormattedTextFieldQuantity.setBounds(147, 253, 91, 21);
jFormattedTextFieldQuantity.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_EDIT_QUANTITY"));
jFormattedTextFieldQuantity.addKeyListener(new KeyAdapter() {
public void keyReleased(KeyEvent evt) {
jButtonSave.setEnabled(true);
jButtonUndo.setEnabled(true);
}
});
}
{
jLabelDespatchNo = new JLabel4j_std();
jDesktopPane1.add(jLabelDespatchNo);
jLabelDespatchNo.setText(lang.get("lbl_Despatch_No"));
jLabelDespatchNo.setHorizontalAlignment(SwingConstants.TRAILING);
jLabelDespatchNo.setBounds(7, 444, 133, 25);
}
{
jLabelProductionDate = new JLabel4j_std();
jDesktopPane1.add(jLabelProductionDate);
jLabelProductionDate.setText(lang.get("lbl_Pallet_DOM"));
jLabelProductionDate.setHorizontalAlignment(SwingConstants.TRAILING);
jLabelProductionDate.setBounds(7, 416, 133, 25);
}
{
productionDate = new JDateControl();
jDesktopPane1.add(productionDate);
productionDate.setBounds(147, 416, 125, 25);
productionDate.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_PALLET_EDIT_PROD_DATE"));
}
productionDate.getEditor().addKeyListener(new KeyAdapter() {
public void keyPressed(KeyEvent e) {
jButtonSave.setEnabled(true);
jButtonUndo.setEnabled(true);
}
});
productionDate.addChangeListener(new ChangeListener() {
public void stateChanged(final ChangeEvent e)
{
jButtonSave.setEnabled(true);
jButtonUndo.setEnabled(true);
}
});
{
jTextFieldProcessOrderDescription = new JTextField4j();
jDesktopPane1.add(jTextFieldProcessOrderDescription);
jTextFieldProcessOrderDescription.setBounds(147, 60, 287, 21);
jTextFieldProcessOrderDescription.setEnabled(false);
}
{
jLabel8 = new JLabel4j_std();
jDesktopPane1.add(jLabel8);
jLabel8.setText(lang.get("lbl_Description"));
jLabel8.setHorizontalAlignment(SwingConstants.TRAILING);
jLabel8.setBounds(7, 60, 133, 21);
}
{
jLabel9 = new JLabel4j_std();
jDesktopPane1.add(jLabel9);
jLabel9.setText(lang.get("lbl_Description"));
jLabel9.setHorizontalAlignment(SwingConstants.TRAILING);
jLabel9.setBounds(7, 114, 133, 21);
}
{
jTextFieldMaterialDescription = new JTextField4j();
jTextFieldMaterialDescription.setEditable(false);
jDesktopPane1.add(jTextFieldMaterialDescription);
jTextFieldMaterialDescription.setBounds(147, 114, 287, 21);
jTextFieldMaterialDescription.setEnabled(false);
jTextFieldMaterialDescription.addKeyListener(new KeyAdapter() {
public void keyReleased(KeyEvent evt) {
jButtonSave.setEnabled(true);
jButtonUndo.setEnabled(true);
}
});
}
{
jLabel10 = new JLabel4j_std();
jDesktopPane1.add(jLabel10);
jLabel10.setText(lang.get("lbl_Material_Batch_Status"));
jLabel10.setHorizontalAlignment(SwingConstants.TRAILING);
jLabel10.setBounds(7, 168, 133, 21);
}
{
jTextFieldBatchStatus = new JTextField4j();
jDesktopPane1.add(jTextFieldBatchStatus);
jTextFieldBatchStatus.setBounds(147, 168, 119, 21);
jTextFieldBatchStatus.setEnabled(false);
jTextFieldBatchStatus.addKeyListener(new KeyAdapter() {
public void keyReleased(KeyEvent evt) {
jButtonSave.setEnabled(true);
jButtonUndo.setEnabled(true);
}
});
}
{
expiryDate = new JDateControl();
expiryDate.addChangeListener(new ChangeListener() {
public void stateChanged(ChangeEvent e) {
jButtonSave.setEnabled(true);
jButtonUndo.setEnabled(true);
}
});
jDesktopPane1.add(expiryDate);
expiryDate.setEnabled(false);
expiryDate.setBounds(147, 195, 125, 25);
expiryDate.getEditor().setPreferredSize(new java.awt.Dimension(87, 19));
expiryDate.getEditor().setSize(87, 21);
}
{
jLabelBatchExpiry = new JLabel4j_std();
jDesktopPane1.add(jLabelBatchExpiry);
jLabelBatchExpiry.setText(lang.get("lbl_Material_Batch_Expiry_Date"));
jLabelBatchExpiry.setHorizontalAlignment(SwingConstants.TRAILING);
jLabelBatchExpiry.setBounds(7, 199, 133, 21);
}
{
jStatusText = new JLabel4j_std();
jDesktopPane1.add(jStatusText);
jStatusText.setForeground(new java.awt.Color(255, 0, 0));
jStatusText.setBorder(BorderFactory.createBevelBorder(BevelBorder.LOWERED));
jStatusText.setBounds(0, 535, 455, 21);
}
{
jButton1 = new JButton4j(Common.icon_lookup);
jDesktopPane1.add(jButton1);
jButton1.setBounds(266, 168, 21, 21);
jButton1.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_MATERIAL_BATCH_EDIT"));
jButton1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
JLaunchMenu.runForm("FRM_ADMIN_MATERIAL_BATCH_EDIT", jTextFieldMaterial.getText(), jTextFieldBatch.getText());
}
});
}
{
jButtonEditBatch = new JButton4j(Common.icon_edit);
jDesktopPane1.add(jButtonEditBatch);
jButtonEditBatch.setBounds(278, 195, 21, 25);
jButtonEditBatch.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_MATERIAL_BATCH_EDIT"));
jButtonEditBatch.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
JLaunchMenu.runForm("FRM_ADMIN_MATERIAL_BATCH_EDIT", jTextFieldMaterial.getText(), jTextFieldBatch.getText());
}
});
}
{
jButtonUndo = new JButton4j(Common.icon_undo);
jButtonUndo.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
refresh();
}
});
jButtonUndo.setMnemonic(KeyEvent.VK_U);
jButtonUndo.setText(lang.get("btn_Undo"));
jButtonUndo.setBounds(116, 502, 111, 28);
jDesktopPane1.add(jButtonUndo);
}
{
jLabelProductionDate_1 = new JLabel4j_std();
jLabelProductionDate_1.setHorizontalAlignment(SwingConstants.TRAILING);
jLabelProductionDate_1.setText(lang.get("lbl_Confirmed"));
jLabelProductionDate_1.setBounds(7, 470, 133, 24);
jDesktopPane1.add(jLabelProductionDate_1);
}
{
checkBoxConfirmed.setBackground(Color.WHITE);
checkBoxConfirmed.addActionListener(new ActionListener() {
public void actionPerformed(final ActionEvent e) {
jButtonSave.setEnabled(true);
jButtonUndo.setEnabled(true);
}
});
checkBoxConfirmed.setText("");
checkBoxConfirmed.setBounds(143, 470, 32, 24);
jDesktopPane1.add(checkBoxConfirmed);
}
{
calendarButtonproductionDate = new JCalendarButton(productionDate);
calendarButtonproductionDate.setBounds(275, 418, 21, 21);
jDesktopPane1.add(calendarButtonproductionDate);
}
{
calendarButtonexpiryDate = new JCalendarButton(expiryDate);
calendarButtonexpiryDate.setBounds(275, 197, 21, 21);
calendarButtonexpiryDate.setVisible(false);
jDesktopPane1.add(calendarButtonexpiryDate);
}
{
JLabel4j_std label = new JLabel4j_std();
label.setText(lang.get("lbl_Customer_ID"));
label.setHorizontalAlignment(SwingConstants.TRAILING);
label.setBounds(12, 362, 128, 21);
jDesktopPane1.add(label);
textFieldCustomer = new JTextField4j();
textFieldCustomer.addKeyListener(new KeyAdapter() {
public void keyReleased(KeyEvent e) {