Package org.sprimaudi.zkspring.entity

Examples of org.sprimaudi.zkspring.entity.UserGrup


    private Pegawai peg = null;


    @Listen("onClick=#btnSend")
    public void onSend(Event evt) {
        UserGrup ug = userGrupLookuper.getValue(txtGrup);
        if (ug != null) {
            userService.sendActivation(peg, ug);
            alert("Activation Code for this pegawai has already been sent");
            self.detach();
        } else {
View Full Code Here


    @WireVariable
    UserMgt usr;

    @Listen("onSelect=#lstGrup")
    public void onSelect(Event evt) {
        UserGrup ug = lstGrup.getSelectedItem() != null ? lstGrup.getSelectedItem().getValue() != null ? (UserGrup) lstGrup.getSelectedItem().getValue() : null : null;
        if (ug != null) {
            prepareRoleList(ug);

        }
    }
View Full Code Here

    @Listen("onClick=#miRemove")
    public void onRemove(Event evt) {
        UserGrupRole ug = lstGrupRole.getSelectedItem() != null ? lstGrup.getSelectedItem().getValue() != null ? (UserGrupRole) lstGrupRole.getSelectedItem().getValue() : null : null;
        if (ug != null) {
            UserGrup grup = ug.getGrup();
            userService.unAssignRoleOfGrup(ug);
            if (grup != null) {
                prepareRoleList(grup);
            }
        }
View Full Code Here

    }

    @Listen("onClick=#miAssign")
    public void onAssign(Event evt) {
        UserGrup ug = lstGrup.getSelectedItem() != null ? lstGrup.getSelectedItem().getValue() != null ? (UserGrup) lstGrup.getSelectedItem().getValue() : null : null;
        UserRole ur = lstRole.getSelectedItem() != null ? lstRole.getSelectedItem().getValue() != null ? (UserRole) lstRole.getSelectedItem().getValue() : null : null;
        userService.assignRoleToGrup(ug, ur);
        prepareRoleList(ug);
    }
View Full Code Here

        ListModelList<UserGrup> lmUg = new ListModelList<UserGrup>(grups);
        lstData.setModel(lmUg);
    }

    public UserGrup extract() {
        UserGrup tarif = txtIdUserGrup.getText() != null
                ? !"".equals(txtIdUserGrup.getText())
                ? userGrupRepository.findOne(txtIdUserGrup.getText())
                : new UserGrup()
                : new UserGrup();
        tarif.setKeterangan(txtKeterangan.getText());
        tarif.setNama(txtNama.getValue());
        tarif.setKode(txtKode.getValue());
        return tarif;
    }
View Full Code Here

        prepareData();
    }

    @Listen("onClick=#tbNewDr")
    public void onNewDr(Event evt) {
        dataref = new UserGrup();
        show();
        txtNama.focus();
        menu = "user_grup";
        ctx.switchContext(hbCrud, null, menu);
        ctx.switchContext(gdForm, null, menu);
View Full Code Here

                    Messagebox.QUESTION)
                    == Messagebox.YES) {
                userGrupRepository.delete(dataref);
                alert("selected User Grup succesfully deleted");
                menu = "user_grup";
                dataref = new UserGrup();
                show();
                prepareData();
            }
        } else {
            alert("There is no any Data Request Row selected");
View Full Code Here

TOP

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

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.