Package org.sprimaudi.zkspring.entity

Examples of org.sprimaudi.zkspring.entity.Pegawai


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

    public Pegawai extract() {
        Pegawai peg = txtIdPegawai.getText() != null
                ? !"".equals(txtIdPegawai.getText())
                ? pegawaiRepository.findOne(txtIdPegawai.getText())
                : new Pegawai()
                : new Pegawai();
        peg.setJabatan(referensiUtil.fromCombo(txtJabatan));
        peg.setPangkat(referensiUtil.fromCombo(txtPangkat));
        peg.setNip(txtNip.getText());
        peg.setNama(txtNama.getText());
        peg.setEmail(txtEmail.getText());
        peg.setUnit(unitLookuper.getValue(txtUnit));
//        tarif.setKode(txtKode.getText());
        return peg;
    }
View Full Code Here


        prepareData();
    }

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

                    Messagebox.QUESTION)
                    == Messagebox.YES) {
                pegawaiRepository.delete(dataref);
                alert("selected Employee succesfully deleted");
                menu = "pegawai_browse";
                dataref = new Pegawai();
                show();
                prepareData();
            }
        } else {
            alert("There is no any Employee Row selected");
View Full Code Here

    Toolbarbutton tbSendActiovation;

    @Listen("onCheckActivationSendable=window")
    public void isActivationSendable(Event evt) {
        //activation only for those who doesn't have any user accout;
        Pegawai peg = lstData.getSelectedItem() != null ? (Pegawai) lstData.getSelectedItem().getValue() : null;
        if (peg != null) {
            List<UserUser> users = userUserRepository.getOfPegawai(peg.getId());
            tbSendActiovation.setVisible(!(users.size() > 0));
        }
    }
View Full Code Here

TOP

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

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.