diff --git a/src/main/java/com/unicenta/pos/admin/PeopleView.form b/src/main/java/com/unicenta/pos/admin/PeopleView.form
index dbc2f17..a54327e 100644
--- a/src/main/java/com/unicenta/pos/admin/PeopleView.form
+++ b/src/main/java/com/unicenta/pos/admin/PeopleView.form
@@ -52,16 +52,18 @@
-
+
+
+
-
+
@@ -75,10 +77,15 @@
-
+
-
+
+
+
+
+
+
@@ -99,7 +106,7 @@
-
+
@@ -246,8 +253,11 @@
-
+
+
+
+
@@ -261,9 +271,6 @@
-
-
-
@@ -272,7 +279,7 @@
-
+
@@ -285,5 +292,23 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/main/java/com/unicenta/pos/admin/PeopleView.java b/src/main/java/com/unicenta/pos/admin/PeopleView.java
index 3053bee..7dbe234 100644
--- a/src/main/java/com/unicenta/pos/admin/PeopleView.java
+++ b/src/main/java/com/unicenta/pos/admin/PeopleView.java
@@ -42,191 +42,195 @@ import javax.swing.*;
*/
public class PeopleView extends JPanel implements EditorRecord {
- private Object m_oId;
- private String m_sPassword;
-
- private final DirtyManager m_Dirty;
-
- private final SentenceList m_sentrole;
- private ComboBoxValModel m_RoleModel;
-
- private final ComboBoxValModel m_ReasonModel;
-
- /** Creates new form PeopleEditor
- * @param dlAdmin
- * @param dirty */
- public PeopleView(DataLogicAdmin dlAdmin, DirtyManager dirty) {
+ private Object m_oId;
+ private String m_sPassword;
- initComponents();
-
- // El modelo de roles
- m_sentrole = dlAdmin.getRolesList();
- m_RoleModel = new ComboBoxValModel();
-
- m_Dirty = dirty;
- m_jName.getDocument().addDocumentListener(dirty);
- m_jRole.addActionListener(dirty);
- m_jVisible.addActionListener(dirty);
- m_jImage.addPropertyChangeListener("image", dirty);
- m_jcard.getDocument().addDocumentListener(dirty);
+ private final DirtyManager m_Dirty;
- m_ReasonModel = new ComboBoxValModel();
- m_ReasonModel.add(AppLocal.getIntString("cboption.generate"));
- m_ReasonModel.add(AppLocal.getIntString("cboption.clear"));
- m_ReasonModel.add(AppLocal.getIntString("cboption.iButton"));
-
- webCBSecurity.setModel(m_ReasonModel);
-
- writeValueEOF();
- }
+ private final SentenceList m_sentrole;
+ private ComboBoxValModel m_RoleModel;
- /**
- *
- */
- @Override
- public void writeValueEOF() {
- m_oId = null;
- m_jName.setText(null);
- m_sPassword = null;
- m_RoleModel.setSelectedKey(null);
- m_jVisible.setSelected(false);
- m_jcard.setText(null);
- m_jImage.setImage(null);
- m_jName.setEnabled(false);
- m_jRole.setEnabled(false);
- m_jVisible.setEnabled(false);
- m_jcard.setEnabled(false);
- m_jImage.setEnabled(false);
- jButton1.setEnabled(false);
- webCBSecurity.setEnabled(false);
- }
-
- /**
- *
- */
- @Override
- public void writeValueInsert() {
- m_oId = null;
- m_jName.setText(null);
- m_sPassword = null;
- m_RoleModel.setSelectedKey(null);
- m_jVisible.setSelected(true);
- m_jcard.setText(null);
- m_jImage.setImage(null);
- m_jName.setEnabled(true);
- m_jRole.setEnabled(true);
- m_jVisible.setEnabled(true);
- m_jcard.setEnabled(true);
- m_jImage.setEnabled(true);
- jButton1.setEnabled(true);
- webCBSecurity.setEnabled(true);
- }
-
- /**
- *
- * @param value
- */
- @Override
- public void writeValueDelete(Object value) {
- Object[] people = (Object[]) value;
- m_oId = people[0];
- m_jName.setText(Formats.STRING.formatValue(people[1]));
- m_sPassword = Formats.STRING.formatValue(people[2]);
- m_RoleModel.setSelectedKey(people[3]);
- m_jVisible.setSelected(((Boolean) people[4]).booleanValue());
- m_jcard.setText(Formats.STRING.formatValue(people[5]));
- m_jImage.setImage((BufferedImage) people[6]);
-
- m_jName.setEnabled(false);
- m_jRole.setEnabled(false);
- m_jVisible.setEnabled(false);
- m_jcard.setEnabled(false);
- m_jImage.setEnabled(false);
- jButton1.setEnabled(false);
- webCBSecurity.setEnabled(false);
- }
+ private final ComboBoxValModel m_ReasonModel;
- /**
- *
- * @param value
- */
- @Override
- public void writeValueEdit(Object value) {
- Object[] people = (Object[]) value;
- m_oId = people[0];
- m_jName.setText(Formats.STRING.formatValue(people[1]));
- m_sPassword = Formats.STRING.formatValue(people[2]);
- m_RoleModel.setSelectedKey(people[3]);
- m_jVisible.setSelected(((Boolean) people[4]).booleanValue());
- m_jcard.setText(Formats.STRING.formatValue(people[5]));
- m_jImage.setImage((BufferedImage) people[6]);
-
- if (m_jcard.getText().length() == 16) {
- jLblCardID.setText(AppLocal.getIntString("label.ibutton"));
- } else {
- jLblCardID.setText(AppLocal.getIntString("label.card"));
- }
- System.out.println(m_jcard.getText().length());
-
- m_jName.setEnabled(true);
- m_jRole.setEnabled(true);
- m_jVisible.setEnabled(true);
- m_jcard.setEnabled(true);
- m_jImage.setEnabled(true);
- jButton1.setEnabled(true);
- webCBSecurity.setEnabled(true);
- }
-
- /**
- *
- * @return
- * @throws BasicException
- */
- @Override
- public Object createValue() throws BasicException {
- Object[] people = new Object[7];
- people[0] = m_oId == null ? UUID.randomUUID().toString() : m_oId;
- people[1] = Formats.STRING.parseValue(m_jName.getText());
- people[2] = Formats.STRING.parseValue(m_sPassword);
- people[3] = m_RoleModel.getSelectedKey();
- people[4] = m_jVisible.isSelected();
- people[5] = Formats.STRING.parseValue(m_jcard.getText());
- people[6] = m_jImage.getImage();
- return people;
- }
+ /**
+ * Creates new form PeopleEditor
+ *
+ * @param dlAdmin
+ * @param dirty
+ */
+ public PeopleView(DataLogicAdmin dlAdmin, DirtyManager dirty) {
- /**
- *
- * @return
- */
- @Override
- public Component getComponent() {
- return this;
- }
+ initComponents();
- /**
- *
- * @throws BasicException
- */
- public void activate() throws BasicException {
-
- m_RoleModel = new ComboBoxValModel(m_sentrole.list());
- m_jRole.setModel(m_RoleModel);
+ // El modelo de roles
+ m_sentrole = dlAdmin.getRolesList();
+ m_RoleModel = new ComboBoxValModel();
+
+ m_Dirty = dirty;
+ m_jName.getDocument().addDocumentListener(dirty);
+ m_jRole.addActionListener(dirty);
+ m_jVisible.addActionListener(dirty);
+ m_jImage.addPropertyChangeListener("image", dirty);
+ m_jcard.getDocument().addDocumentListener(dirty);
+
+ m_ReasonModel = new ComboBoxValModel();
+ m_ReasonModel.add(AppLocal.getIntString("cboption.generate"));
+ m_ReasonModel.add(AppLocal.getIntString("cboption.clear"));
+ m_ReasonModel.add(AppLocal.getIntString("cboption.iButton"));
+
+ webCBSecurity.setModel(m_ReasonModel);
+
+ writeValueEOF();
+ }
+
+ /**
+ *
+ */
+ @Override
+ public void writeValueEOF() {
+ m_oId = null;
+ m_jName.setText(null);
+ m_sPassword = null;
+ m_RoleModel.setSelectedKey(null);
+ m_jVisible.setSelected(false);
+ m_jcard.setText(null);
+ m_jImage.setImage(null);
+ m_jName.setEnabled(false);
+ m_jRole.setEnabled(false);
+ m_jVisible.setEnabled(false);
+ m_jcard.setEnabled(false);
+ m_jImage.setEnabled(false);
+ jButton1.setEnabled(false);
+ webCBSecurity.setEnabled(false);
+ }
+
+ /**
+ *
+ */
+ @Override
+ public void writeValueInsert() {
+ m_oId = null;
+ m_jName.setText(null);
+ m_sPassword = null;
+ m_RoleModel.setSelectedKey(null);
+ m_jVisible.setSelected(true);
+ m_jcard.setText(null);
+ m_jImage.setImage(null);
+ m_jName.setEnabled(true);
+ m_jRole.setEnabled(true);
+ m_jVisible.setEnabled(true);
+ m_jcard.setEnabled(true);
+ m_jImage.setEnabled(true);
+ jButton1.setEnabled(true);
+ webCBSecurity.setEnabled(true);
+ }
+
+ /**
+ *
+ * @param value
+ */
+ @Override
+ public void writeValueDelete(Object value) {
+ Object[] people = (Object[]) value;
+ m_oId = people[0];
+ m_jName.setText(Formats.STRING.formatValue(people[1]));
+ m_sPassword = Formats.STRING.formatValue(people[2]);
+ m_RoleModel.setSelectedKey(people[3]);
+ m_jVisible.setSelected(((Boolean) people[4]).booleanValue());
+ m_jcard.setText(Formats.STRING.formatValue(people[5]));
+ m_jImage.setImage((BufferedImage) people[6]);
+
+ m_jName.setEnabled(false);
+ m_jRole.setEnabled(false);
+ m_jVisible.setEnabled(false);
+ m_jcard.setEnabled(false);
+ m_jImage.setEnabled(false);
+ jButton1.setEnabled(false);
+ webCBSecurity.setEnabled(false);
+ }
+
+ /**
+ *
+ * @param value
+ */
+ @Override
+ public void writeValueEdit(Object value) {
+ Object[] people = (Object[]) value;
+ m_oId = people[0];
+ m_jName.setText(Formats.STRING.formatValue(people[1]));
+ m_sPassword = Formats.STRING.formatValue(people[2]);
+ m_RoleModel.setSelectedKey(people[3]);
+ m_jVisible.setSelected(((Boolean) people[4]).booleanValue());
+ m_jcard.setText(Formats.STRING.formatValue(people[5]));
+ m_jImage.setImage((BufferedImage) people[6]);
+
+ if (m_jcard.getText().length() == 16) {
+ jLblCardID.setText(AppLocal.getIntString("label.ibutton"));
+ } else {
+ jLblCardID.setText(AppLocal.getIntString("label.card"));
}
-
-
- /**
- *
- */
- @Override
- public void refresh() {
- }
-
- /** 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.
- */
+ System.out.println(m_jcard.getText().length());
+
+ m_jName.setEnabled(true);
+ m_jRole.setEnabled(true);
+ m_jVisible.setEnabled(true);
+ m_jcard.setEnabled(true);
+ m_jImage.setEnabled(true);
+ jButton1.setEnabled(true);
+ webCBSecurity.setEnabled(true);
+ }
+
+ /**
+ *
+ * @return
+ * @throws BasicException
+ */
+ @Override
+ public Object createValue() throws BasicException {
+ Object[] people = new Object[7];
+ people[0] = m_oId == null ? UUID.randomUUID().toString() : m_oId;
+ people[1] = Formats.STRING.parseValue(m_jName.getText());
+ people[2] = Formats.STRING.parseValue(m_sPassword);
+ people[3] = m_RoleModel.getSelectedKey();
+ people[4] = m_jVisible.isSelected();
+ people[5] = Formats.STRING.parseValue(m_jcard.getText());
+ people[6] = m_jImage.getImage();
+ return people;
+ }
+
+ /**
+ *
+ * @return
+ */
+ @Override
+ public Component getComponent() {
+ return this;
+ }
+
+ /**
+ *
+ * @throws BasicException
+ */
+ public void activate() throws BasicException {
+
+ m_RoleModel = new ComboBoxValModel(m_sentrole.list());
+ m_jRole.setModel(m_RoleModel);
+ }
+
+ /**
+ *
+ */
+ @Override
+ public void refresh() {
+ }
+
+ /**
+ * 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.
+ */
+ // //GEN-BEGIN:initComponents
private void initComponents() {
@@ -241,8 +245,10 @@ public class PeopleView extends JPanel implements EditorRecord {
jLabel2 = new javax.swing.JLabel();
m_jcard = new javax.swing.JTextField();
jLblCardID = new javax.swing.JLabel();
- webCBSecurity = new com.alee.laf.combobox.WebComboBox();
- jLabel6 = new javax.swing.JLabel();
+ webCBSecurity = new javax.swing.JComboBox();
+ passwordLabel = new javax.swing.JLabel();
+ taxIdTextField = new javax.swing.JTextField();
+ taxIdLabel = new javax.swing.JLabel();
setFont(new java.awt.Font("Arial", 0, 12)); // NOI18N
setPreferredSize(new java.awt.Dimension(500, 500));
@@ -299,10 +305,10 @@ public class PeopleView extends JPanel implements EditorRecord {
jLblCardID.setText(AppLocal.getIntString("label.card")); // NOI18N
jLblCardID.setPreferredSize(new java.awt.Dimension(110, 30));
+ webCBSecurity.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
webCBSecurity.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Generate new key", "Delete exisitng key", "Use iButton ID" }));
webCBSecurity.setSelectedIndex(0);
webCBSecurity.setToolTipText(AppLocal.getIntString("tooltip.peoplesecurity")); // NOI18N
- webCBSecurity.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
webCBSecurity.setPreferredSize(new java.awt.Dimension(140, 45));
webCBSecurity.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
@@ -310,9 +316,15 @@ public class PeopleView extends JPanel implements EditorRecord {
}
});
- jLabel6.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
- jLabel6.setText(AppLocal.getIntString("label.Password")); // NOI18N
- jLabel6.setPreferredSize(new java.awt.Dimension(110, 30));
+ passwordLabel.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
+ passwordLabel.setText(AppLocal.getIntString("label.Password")); // NOI18N
+ passwordLabel.setPreferredSize(new java.awt.Dimension(110, 30));
+
+ taxIdTextField.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
+ taxIdTextField.setPreferredSize(new java.awt.Dimension(0, 30));
+
+ taxIdLabel.setFont(new java.awt.Font("Arial", 0, 14)); // NOI18N
+ taxIdLabel.setText("Tax ID");
javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
this.setLayout(layout);
@@ -338,16 +350,18 @@ public class PeopleView extends JPanel implements EditorRecord {
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(m_jcard, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
- .addComponent(webCBSecurity, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addComponent(webCBSecurity, 0, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(layout.createSequentialGroup()
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jLabel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
- .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
+ .addComponent(passwordLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(taxIdLabel))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
+ .addComponent(taxIdTextField, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(m_jName, javax.swing.GroupLayout.PREFERRED_SIZE, 180, javax.swing.GroupLayout.PREFERRED_SIZE))))
- .addContainerGap())
+ .addContainerGap(50, Short.MAX_VALUE))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
@@ -358,9 +372,13 @@ public class PeopleView extends JPanel implements EditorRecord {
.addComponent(m_jName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
- .addComponent(jLabel6, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(passwordLabel, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
+ .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
+ .addComponent(taxIdTextField, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
+ .addComponent(taxIdLabel))
+ .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.CENTER)
.addComponent(jLblCardID, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(m_jcard, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
@@ -377,91 +395,89 @@ public class PeopleView extends JPanel implements EditorRecord {
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(m_jImage, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
- .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
+ .addContainerGap(110, Short.MAX_VALUE))
);
}// //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) {
- m_sPassword = sNewPassword;
- m_Dirty.setDirty(true);
- }
+ String sNewPassword = Hashcypher.changePassword(this);
+ if (sNewPassword != null) {
+ m_sPassword = sNewPassword;
+ 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 (JOptionPane.showConfirmDialog(this,
+ AppLocal.getIntString("message.cardnew"),
+ AppLocal.getIntString("title.editor"),
+ JOptionPane.YES_NO_OPTION,
+ JOptionPane.QUESTION_MESSAGE) == JOptionPane.YES_OPTION) {
+ m_jcard.setText("C" + StringUtils.getCardNumber());
+ m_Dirty.setDirty(true);
+ }
+ }
- 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)
- {
- m_jcard.setText("C" + StringUtils.getCardNumber());
- m_Dirty.setDirty(true);
- }
- }
+ 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) {
+ m_jcard.setText(null);
+ m_Dirty.setDirty(true);
+ }
+ }
- 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)
- {
- m_jcard.setText(null);
- m_Dirty.setDirty(true);
- }
- }
-
- if(webCBSecurity.getSelectedIndex() == 2){
- if (JOptionPane.showConfirmDialog(this,
- AppLocal.getIntString("message.ibuttonassign"),
- AppLocal.getIntString("title.editor"),
- JOptionPane.OK_CANCEL_OPTION,
- JOptionPane.INFORMATION_MESSAGE) == JOptionPane.OK_OPTION)
+ if (webCBSecurity.getSelectedIndex() == 2) {
+ if (JOptionPane.showConfirmDialog(this,
+ AppLocal.getIntString("message.ibuttonassign"),
+ AppLocal.getIntString("title.editor"),
+ JOptionPane.OK_CANCEL_OPTION,
+ JOptionPane.INFORMATION_MESSAGE) == JOptionPane.OK_OPTION)
- {
- m_jcard.setText( uOWWatch.getibuttonid() );
- jLblCardID.setText(AppLocal.getIntString("label.ibutton"));
- m_Dirty.setDirty(true);
- }
+ {
+ m_jcard.setText(uOWWatch.getibuttonid());
+ jLblCardID.setText(AppLocal.getIntString("label.ibutton"));
+ m_Dirty.setDirty(true);
+ }
- }
-
- }//GEN-LAST:event_webCBSecurityActionPerformed
+ }
+
+ }// GEN-LAST:event_webCBSecurityActionPerformed
+
+ private void jLabel1MouseClicked(java.awt.event.MouseEvent evt) {// GEN-FIRST:event_jLabel1MouseClicked
+ if (evt.getClickCount() == 2) {
+ String uuidString = m_oId.toString();
+ StringSelection stringSelection = new StringSelection(uuidString);
+ Clipboard clpbrd = Toolkit.getDefaultToolkit().getSystemClipboard();
+ clpbrd.setContents(stringSelection, null);
+
+ JOptionPane.showMessageDialog(null,
+ AppLocal.getIntString("message.uuidcopy"));
+ }
+ }// GEN-LAST:event_jLabel1MouseClicked
- private void jLabel1MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel1MouseClicked
- if (evt.getClickCount() == 2) {
- String uuidString = m_oId.toString();
- StringSelection stringSelection = new StringSelection(uuidString);
- Clipboard clpbrd = Toolkit.getDefaultToolkit().getSystemClipboard();
- clpbrd.setContents(stringSelection, null);
-
- JOptionPane.showMessageDialog(null,
- AppLocal.getIntString("message.uuidcopy"));
- }
- }//GEN-LAST:event_jLabel1MouseClicked
-
-
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JButton jButton1;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
- private javax.swing.JLabel jLabel6;
private javax.swing.JLabel jLblCardID;
private com.unicenta.data.gui.JImageEditor m_jImage;
private javax.swing.JTextField m_jName;
private javax.swing.JComboBox m_jRole;
private javax.swing.JCheckBox m_jVisible;
private javax.swing.JTextField m_jcard;
- private com.alee.laf.combobox.WebComboBox webCBSecurity;
+ private javax.swing.JLabel passwordLabel;
+ private javax.swing.JLabel taxIdLabel;
+ private javax.swing.JTextField taxIdTextField;
+ private javax.swing.JComboBox webCBSecurity;
// End of variables declaration//GEN-END:variables
-
+
}