jDesktopPane1.add(textFieldInspectionID);
textFieldInspectionID.setColumns(10);
}
{
ComboBoxModel jComboBox1Model = new DefaultComboBoxModel(typeList);
jComboBoxMaterialType = new JComboBox4j();
jDesktopPane1.add(jComboBoxMaterialType);
jComboBoxMaterialType.setModel(jComboBox1Model);
jComboBoxMaterialType.setBounds(382, 8, 248, 23);
}
{
jTextFieldDescription = new JTextField4j();
jDesktopPane1.add(jTextFieldDescription);
jTextFieldDescription.setBounds(126, 44, 506, 20);
}
{
jLabel1 = new JLabel4j_std();
jLabel1.setHorizontalAlignment(SwingConstants.RIGHT);
jDesktopPane1.add(jLabel1);
jLabel1.setText(lang.get("lbl_Material"));
jLabel1.setBounds(12, 11, 105, 20);
}
{
jLabel2 = new JLabel4j_std();
jLabel2.setHorizontalAlignment(SwingConstants.RIGHT);
jDesktopPane1.add(jLabel2);
jLabel2.setText(lang.get("lbl_Material_Type"));
jLabel2.setBounds(260, 11, 115, 20);
}
{
jLabel3 = new JLabel4j_std();
jLabel3.setHorizontalAlignment(SwingConstants.RIGHT);
jDesktopPane1.add(jLabel3);
jLabel3.setText(lang.get("lbl_Description"));
jLabel3.setBounds(12, 44, 106, 20);
}
{
ComboBoxModel jComboBox2Model = new DefaultComboBoxModel(uomList);
jComboBoxBaseUOM = new JComboBox4j();
jDesktopPane1.add(jComboBoxBaseUOM);
jComboBoxBaseUOM.setModel(jComboBox2Model);
jComboBoxBaseUOM.setBounds(126, 77, 154, 23);
jComboBoxBaseUOM.setMaximumRowCount(12);
}
{
jLabel4 = new JLabel4j_std();
jLabel4.setHorizontalAlignment(SwingConstants.RIGHT);
jDesktopPane1.add(jLabel4);
jLabel4.setText(lang.get("lbl_Base_UOM"));
jLabel4.setBounds(12, 80, 106, 20);
}
{
jButtonAdd = new JButton4j(Common.icon_add);
jDesktopPane1.add(jButtonAdd);
jButtonAdd.setText(lang.get("btn_Add"));
jButtonAdd.setBounds(214, 143, 105, 28);
jButtonAdd.setMnemonic(lang.getMnemonicChar());
jButtonAdd.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_MATERIAL_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(321, 143, 105, 28);
jButtonEdit.setMnemonic(lang.getMnemonicChar());
jButtonEdit.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_MATERIAL_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(428, 143, 105, 28);
jButtonDelete.setMnemonic(lang.getMnemonicChar());
jButtonDelete.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("FRM_ADMIN_MATERIAL_DELETE"));
jButtonDelete.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
deleteRecord();
}
});
}
{
jButtonHelp = new JButton4j(Common.icon_help);
jDesktopPane1.add(jButtonHelp);
jButtonHelp.setText(lang.get("btn_Help"));
jButtonHelp.setBounds(749, 143, 105, 28);
jButtonHelp.setMnemonic(lang.getMnemonicChar());
}
{
jLabel7 = new JLabel4j_std();
jDesktopPane1.add(jLabel7);
jLabel7.setText(lang.get("lbl_Material_Shelf_Life"));
jLabel7.setBounds(650, 11, 154, 20);
jLabel7.setHorizontalAlignment(SwingConstants.RIGHT);
}
{
jTextFieldShelfLife = new JTextField4j();
jDesktopPane1.add(jTextFieldShelfLife);
jTextFieldShelfLife.setBounds(812, 11, 125, 20);
}
{
JShelfLifeUom slu = new JShelfLifeUom();
slu.setUom("");
slu.setDescription("");
shelfLifeUomList.add(slu);
shelfLifeUomList.addAll(slu.getShelfLifeUOMs());
ComboBoxModel jComboBox5Model = new DefaultComboBoxModel(shelfLifeUomList);
jComboBoxShelfLifeUOM = new JComboBox4j();
jDesktopPane1.add(jComboBoxShelfLifeUOM);
jComboBoxShelfLifeUOM.setModel(jComboBox5Model);
jComboBoxShelfLifeUOM.setBounds(813, 41, 125, 23);
jComboBoxShelfLifeUOM.setMaximumRowCount(12);
}
{
jLabel8 = new JLabel4j_std();
jDesktopPane1.add(jLabel8);
jLabel8.setText(lang.get("lbl_Material_Shelf_Life_UOM"));
jLabel8.setBounds(650, 44, 153, 20);
jLabel8.setHorizontalAlignment(SwingConstants.TRAILING);
}
{
jButtonClose = new JButton4j(Common.icon_close);
jDesktopPane1.add(jButtonClose);
jButtonClose.setText(lang.get("btn_Close"));
jButtonClose.setBounds(856, 143, 105, 28);
jButtonClose.setMnemonic(lang.getMnemonicChar());
jButtonClose.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
JDBQuery.closeStatement(listStatement);
dispose();
}
});
}
{
jButtonPrint = new JButton4j(Common.icon_report);
jDesktopPane1.add(jButtonPrint);
jButtonPrint.setText(lang.get("btn_Print"));
jButtonPrint.setBounds(535, 143, 105, 28);
jButtonPrint.setEnabled(Common.userList.getUser(Common.sessionID).isModuleAllowed("RPT_MATERIALS"));
jButtonPrint.setMnemonic(lang.getMnemonicChar());
jButtonPrint.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
print();
}
});
}
{
JShelfLifeRoundingRule slrr = new JShelfLifeRoundingRule();
slrr.setRule("");
slrr.setDescription("");
shelfLifeRule.add(slrr);
shelfLifeRule.addAll(slrr.getShelfLifeRoundingRules());
ComboBoxModel jComboBoxRoundingRuleModel = new DefaultComboBoxModel(shelfLifeRule);
jComboBoxRoundingRule = new JComboBox4j();
jDesktopPane1.add(jComboBoxRoundingRule);
jComboBoxRoundingRule.setModel(jComboBoxRoundingRuleModel);
jComboBoxRoundingRule.setBounds(814, 77, 125, 23);
}
{
jLabel9 = new JLabel4j_std();
jDesktopPane1.add(jLabel9);
jLabel9.setText(lang.get("lbl_Material_Shelf_Life_Rounding_Rule"));
jLabel9.setBounds(650, 80, 157, 20);
jLabel9.setHorizontalAlignment(SwingConstants.TRAILING);
}
{
jLabel10 = new JLabel4j_std();
jDesktopPane1.add(jLabel10);
jLabel10.setText(lang.get("lbl_Sort_By"));
jLabel10.setHorizontalAlignment(SwingConstants.TRAILING);
jLabel10.setBounds(358, 110, 98, 20);
}
{
ComboBoxModel jComboBoxSortByModel = new DefaultComboBoxModel(new String[] { "MATERIAL", "MATERIAL_TYPE", "DESCRIPTION", "BASE_UOM", "PRODUCTION_UOM", "ISSUE_UOM", "SHELF_LIFE", "SHELF_LIFE_RULE", "DEFAULT_PALLET_STATUS",
"DEFAULT_BATCH_STATUS" });
jComboBoxSortBy = new JComboBox4j();
jDesktopPane1.add(jComboBoxSortBy);
jComboBoxSortBy.setModel(jComboBoxSortByModel);
jComboBoxSortBy.setBounds(464, 110, 168, 23);
}
{
jLabel12 = new JLabel4j_std();
jDesktopPane1.add(jLabel12);
jLabel12.setText(lang.get("lbl_Material_Default_Batch_Status"));
jLabel12.setHorizontalAlignment(SwingConstants.TRAILING);
jLabel12.setBounds(383, 80, 112, 20);
}
{
ComboBoxModel jComboBoxDefaultBatchStatusModel = new DefaultComboBoxModel(Common.batchStatusIncBlank);
jComboBoxDefaultBatchStatus = new JComboBox4j();
jDesktopPane1.add(jComboBoxDefaultBatchStatus);
jComboBoxDefaultBatchStatus.setModel(jComboBoxDefaultBatchStatusModel);
jComboBoxDefaultBatchStatus.setBounds(505, 77, 126, 23);
}
{