private void save() {
        if (!MyFactory.getResourceService().hasRight(MyFactory.getCurrentUser(), Resource.USER_MNG)) {
            return;
        }
        String username = username_jtf.getText();
        if (username == null || "".equals(username)) {
            JOptionPane.showMessageDialog(null, "用户名不能为空");
        }
        String password = password_jtf.getText();
        if (password == null || "".equals(password)) {
            JOptionPane.showMessageDialog(null, "密码不能为空");
        }

        User user = new User();
        user.setName(username);
        user.setPassword(password);
        boolean flag = MyFactory.getUserService().create(user);

        if (flag) {
            JOptionPane.showMessageDialog(null, "增加成功");
            refresh();
        } else {
            JOptionPane.showMessageDialog(null, "增加失败，请重试！");
        }
    }