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