This commit is contained in:
2025-12-29 15:48:28 +00:00
parent cade3b10ad
commit f3b0831df3
@@ -52,9 +52,12 @@ public class PeopleView extends JPanel implements EditorRecord {
private final ComboBoxValModel m_ReasonModel;
/** Creates new form PeopleEditor
/**
* Creates new form PeopleEditor
*
* @param dlAdmin
* @param dirty */
* @param dirty
*/
public PeopleView(DataLogicAdmin dlAdmin, DirtyManager dirty) {
initComponents();
@@ -214,7 +217,6 @@ public class PeopleView extends JPanel implements EditorRecord {
m_jRole.setModel(m_RoleModel);
}
/**
*
*/
@@ -222,12 +224,14 @@ public class PeopleView extends JPanel implements EditorRecord {
public void refresh() {
}
/** This method is called from within the constructor to
/**
* This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
// <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
// <editor-fold defaultstate="collapsed" desc="Generated
// Code">//GEN-BEGIN:initComponents
private void initComponents() {
nameLabel = new javax.swing.JLabel();
@@ -321,7 +325,7 @@ public class PeopleView extends JPanel implements EditorRecord {
add(taxIdTextField);
}// </editor-fold>//GEN-END:initComponents
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_jButton1ActionPerformed
String sNewPassword = Hashcypher.changePassword(this);
if (sNewPassword != null) {
@@ -329,36 +333,33 @@ public class PeopleView extends JPanel implements EditorRecord {
m_Dirty.setDirty(true);
}
}//GEN-LAST:event_jButton1ActionPerformed
}// GEN-LAST:event_jButton1ActionPerformed
private void webCBSecurityActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_webCBSecurityActionPerformed
private void webCBSecurityActionPerformed(java.awt.event.ActionEvent evt) {// GEN-FIRST:event_webCBSecurityActionPerformed
if(webCBSecurity.getSelectedIndex() == 0){
if (webCBSecurity.getSelectedIndex() == 0) {
if (JOptionPane.showConfirmDialog(this,
AppLocal.getIntString("message.cardnew"),
AppLocal.getIntString("title.editor"),
JOptionPane.YES_NO_OPTION,
JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION)
{
JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) {
cardIdTextField.setText("C" + StringUtils.getCardNumber());
m_Dirty.setDirty(true);
}
}
if(webCBSecurity.getSelectedIndex() == 1){
if (webCBSecurity.getSelectedIndex() == 1) {
if (JOptionPane.showConfirmDialog(this,
AppLocal.getIntString("message.cardremove"),
AppLocal.getIntString("title.editor"),
JOptionPane.YES_NO_OPTION,
JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION)
{
JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) {
cardIdTextField.setText(null);
m_Dirty.setDirty(true);
}
}
if(webCBSecurity.getSelectedIndex() == 2){
if (webCBSecurity.getSelectedIndex() == 2) {
if (JOptionPane.showConfirmDialog(this,
AppLocal.getIntString("message.ibuttonassign"),
AppLocal.getIntString("title.editor"),
@@ -366,16 +367,16 @@ public class PeopleView extends JPanel implements EditorRecord {
JOptionPane.INFORMATION_MESSAGE) == JOptionPane.OK_OPTION)
{
cardIdTextField.setText( uOWWatch.getibuttonid() );
cardIdTextField.setText(uOWWatch.getibuttonid());
cardIdLabel.setText(AppLocal.getIntString("label.ibutton"));
m_Dirty.setDirty(true);
}
}
}//GEN-LAST:event_webCBSecurityActionPerformed
}// GEN-LAST:event_webCBSecurityActionPerformed
private void nameLabelMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_nameLabelMouseClicked
private void nameLabelMouseClicked(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_nameLabelMouseClicked
if (evt.getClickCount() == 2) {
String uuidString = m_oId.toString();
StringSelection stringSelection = new StringSelection(uuidString);
@@ -385,8 +386,7 @@ public class PeopleView extends JPanel implements EditorRecord {
JOptionPane.showMessageDialog(null,
AppLocal.getIntString("message.uuidcopy"));
}
}//GEN-LAST:event_nameLabelMouseClicked
}// GEN-LAST:event_nameLabelMouseClicked
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JLabel cardIdLabel;
@@ -403,6 +403,7 @@ public class PeopleView extends JPanel implements EditorRecord {
private javax.swing.JLabel taxIdLabel;
private javax.swing.JTextField taxIdTextField;
private javax.swing.JLabel visiableLabel;
private com.alee.laf.combobox.WebComboBox webCBSecurity;
// End of variables declaration//GEN-END:variables
}