Package clips.delegate.doctor.profchekup

Examples of clips.delegate.doctor.profchekup.ProfcheckupLocal$ProfcheckupItemCacheList


        this.setBounds(new Rectangle((int) (0.8 * scrSize.width), (int) (0.8 *
                scrSize.height)));
        Rectangle dlgSize = this.getBounds();
        this.setLocation((scrSize.width - dlgSize.width) / 2, (scrSize.height -
                dlgSize.height) / 2);
        profcheckup = new ProfcheckupLocal(am);
        panelProfcheckup
                = new PanelProfcheckup(container, dirCollab, contractLocal, profcheckup);
        pnlProfcheckup.add(panelProfcheckup, BorderLayout.CENTER);
    StateSaver.attachTo(this);
    }
View Full Code Here


    if (tblProfcheckups.getSelectedRowCount() > 0) {

        try {
//        PanelProfcheckupView profcheckupView = new PanelProfcheckupView(getContainer(), profcheckupLocals.get(tblProfcheckups.getSelectedRow()));
//        PageGeneric page = getContainer().addNewPage((PageGeneric) profcheckupView, null);
            ProfcheckupLocal pl = profcheckupLocals.get(tblProfcheckups.getSelectedRowSorted());
            ArrayList<ProfcheckupItemLocal> items = pl.getItems();
            if (items.isEmpty()) {
                MessageBox.showError(MessageBox.E_MAKE_FUCKING_EXCEPTION, "Профосмотр пуст, просмотр невозможен!");
                return;
            }
            PanelProfcheckupView panelProfcheckup = new PanelProfcheckupView(getContainer(),
                    pl.getItems().get(0).getPolisData().getContract(),
                    pl);
            PageGeneric page = getContainer().addNewPage(panelProfcheckup, null);
            getContainer().activatePage(page);
        } catch (PageException ex) {
            MessageBox.showException(ex);
View Full Code Here

}//GEN-LAST:event_tblProfcheckupsMouseClicked

private void btResultActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btResultActionPerformed
        if (tblProfcheckups.getSelectedRowCount() == 1){
            try {
                ProfcheckupLocal pl = profcheckupLocals.get(tblProfcheckups.getSelectedRowSorted());
                PanelProfcheckupEdit ppe = new PanelProfcheckupEdit(getContainer(), pl);
                getContainer().addNewPage(ppe, null);
            } catch (ClipsException ex) {
                MessageBox.showException(ex);
            }
View Full Code Here

    class ProfCeckupComparator implements Comparator {

        @Override
        public int compare(Object o1, Object o2) {
            ProfcheckupLocal p1 = (ProfcheckupLocal) o1;
            ProfcheckupLocal p2 = (ProfcheckupLocal) o2;
            try {
                if (p1.getDateFrom().after(p2.getDateFrom())) {
                    return 1;
                } else {
                    return -1;
                }
            } catch (ClipsException ex) {
View Full Code Here

TOP

Related Classes of clips.delegate.doctor.profchekup.ProfcheckupLocal$ProfcheckupItemCacheList

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.