Package org.sprimaudi.zkspring.entity

Examples of org.sprimaudi.zkspring.entity.UserUser



    @Listen("onLoginResolved=window")
    public void onLoginResolved(Event evt) {

        UserUser user = pgm.eventParam(UserUser.class, evt, "user");
        if (user != null) {
            lblUserPredicate.setValue(String.format("%s - %s", (user.getPegawai() != null) ? user.getPegawai().getNama() : user.getUsername(), user.getGrup().getNama()));
            pgm.showMenu(MenuController.zulpath, mapper);
            pgm.showNavigation(NavigationContoller.zulpath, new HashMap<String, Object>());
        }
    }
View Full Code Here


        prepareData();
    }

    @Listen("onClick=#tbNewUser")
    public void onNewUser(Event evt) {
        dataref = new UserUser();
        show();
        txtPegawai.focus();
        menu = "user";
        ctx.switchContext(hbCrud, null, menu);
    }
View Full Code Here

        lstUser.setModel(lmUg);
    }


    public UserUser extract() {
        UserUser pdr = txtIdUser.getText() != null
                ? !"".equals(txtIdUser.getText())
                ? userUserRepository.findOne(txtIdUser.getText())
                : new UserUser()
                : new UserUser();

        pdr.setUsername(txtUsername.getText());
        pdr.setGrup(userGrupLookuper.getValue(txtGrup));
        pdr.setPegawai(pegawaiLookuper.getValue(txtPegawai));
        pdr.setEmail(txtEmail.getText());
        pdr.setGrup(userGrupLookuper.getValue(txtGrup));
        return pdr;
    }
View Full Code Here

    MailService mailService;

    @Listen("onClick=#btnSimpan")
    public void onSimpan(Event evt) {
        if (txtPassword.getText() != null ? txtPassword.getText().equals(txtPasswordConfirm.getText()) : false) {
            UserUser u = usr.getUser();
            String pwd = txtPassword.getText();
            String digest = userService.digestPassword(pwd);
            u.setPassword(digest);
            userUserRepository.save(u);
            alert("Password change succeded");
            mailService.sendMail("noreply@signal.org", "tejo.ak@gmail.com", "password change", "your password hasbeen change");
        } else {
            alert("Password and it's confirmation is not equal!!");
View Full Code Here

TOP

Related Classes of org.sprimaudi.zkspring.entity.UserUser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.