Package clips.delegate.job

Examples of clips.delegate.job.JobLocal$DangersInfo


    @Override
    public void fillItems() throws ClipsException {
        if (certificateLocal == null) throw new ClipsException();
        List<JobLocal> jobList = certificateLocal.getClientLocal().getJobList();
        for (int i = 0; i < jobList.size(); i++) {
            JobLocal jobLocal = jobList.get(i);
            if (!jobLocal.isFired()) {
                if (defaultid == 0) {
                    defaultid = jobLocal.getID();
                }
                String fullTitle = jobLocal.getEnterprise().getFullTitle(false);
                fullTitle.replaceAll("\n", "");
                String profession = jobLocal.getAppointment().getTitle();
                PairIntStr pair = new PairIntStr(jobLocal.getID(), fullTitle + ", " + profession);
                allItems.add(pair);
            }
        }
    }
View Full Code Here


    @Override
    public void fillItems() throws ClipsException {
        if (certificateLocal == null) throw new ClipsException();
        List<JobLocal> jobList = certificateLocal.getClientLocal().getJobList();
        for (int i = 0; i < jobList.size(); i++) {
            JobLocal jobLocal = jobList.get(i);
            if (!jobLocal.isFired()) {
                if (defaultid == 0) {
                    defaultid = jobLocal.getID();
                }
                String fullTitle = jobLocal.getEnterprise().getFullTitle(false);
                fullTitle = fullTitle.replaceAll("\n", "");
                String address = jobLocal.getEnterprise().getAddress().toStringShort();
                PairIntStr pair = new PairIntStr(jobLocal.getID(), fullTitle + ", " + address);
                allItems.add(pair);
            }
        }
    }
View Full Code Here

    @Override
    public void fillItems() throws ClipsException {
        if (certificateLocal == null) throw new ClipsException();
        List<JobLocal> jobList = certificateLocal.getClientLocal().getJobList();
        for (int i = 0; i < jobList.size(); i++) {
            JobLocal jobLocal = jobList.get(i);
            if (!jobLocal.isFired()) {
                if (defaultid == 0) {
                    defaultid = jobLocal.getID();
                }
                String fullTitle = jobLocal.getEnterprise().getFullTitle(false);
                PairIntStr pair = new PairIntStr(jobLocal.getID(), fullTitle.replaceAll("\n", ""));
                allItems.add(pair);
            }
        }
    }
View Full Code Here

        //заполнить комбо с работами
        int count = 0;
        directionCombo.removeAllItems();
        List jobs = clientLocal.getJobList();
        for (int i = 0; i < jobs.size(); i++) {
            JobLocal job = (JobLocal) jobs.get(i);
            if (!job.isFired()) {
                DirectoryEnterpriseItem item = job.getEnterprise();
                EnterpriseInfo entInfo = new EnterpriseInfo(item);
                directionCombo.addItem(entInfo);
                count++;
            }
        }
View Full Code Here

        if (certificateLocal == null) {
            throw new ClipsException();
        }
        List<JobLocal> jobList = certificateLocal.getClientLocal().getJobList();
        for (int i = 0; i < jobList.size(); i++) {
            JobLocal jobLocal = jobList.get(i);
            if (!jobLocal.isFired()) {
                if (defaultid == 0) {
                    defaultid = jobLocal.getID();
                }
                DirectoryProfessionItem profession = jobLocal.getProfession();
                PairIntStr pair = new PairIntStr(jobLocal.getID(), profession.getTitle());
                allItems.add(pair);
            }
        }
    }
View Full Code Here

     * Добавление работы клиенту. Вызываем диалог с деревом предприятий.
     * @param evt
     */
    private void btAddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btAddActionPerformed
        try {
            JobLocal job = new JobLocal(client, getAuditManager());
            job.addContentStateListener(emptyListener);
            DialogJob dialog;
            dialog = new DialogJob(MainWindow.mainWindow, job, client, getAuditManager());
            dialog.setVisible(true);
            if (dialog.getDlgResult() == ModalDialog.DLG_OK) {
                job.save1();
                jobList.add(job);
                tableJob.setModel(new TableModelJobList(jobList));
            }
            tableJob.updateUI();
        } catch (ClipsException ex) {
View Full Code Here

    }//GEN-LAST:event_btAddActionPerformed

    private void btEditActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btEditActionPerformed
        if (tableJob.getSelectedRowSorted() >= 0) {
            try {
                JobLocal job = jobList.get(tableJob.getSelectedRowSorted());
                job.addContentStateListener(emptyListener);
                DialogJob dialog = new DialogJob(MainWindow.mainWindow, job, client, getAuditManager());
                dialog.setVisible(true);
                tableJob.updateUI();
            } catch (ClipsException ex) {
                MessageBox.showException(ex);
View Full Code Here

            if (address.isCitizen() != null) {
                data.put("pacient_resident", address.isCitizen() ? CONST_1 : CONST_2);
            }
        }

        JobLocal job = client.getLastJob();
        if (job != null && job.getEnterprise() != null) {
            data.put("pacient_job", job.getEnterprise().getTitle());
        }

        if (client.getSocialStatus() != null && client.getSocialStatus().getID() != 0 ) {
            data.put("soc_stat", client.getSocialStatus().getID());
        }
View Full Code Here

       
        @Override
        protected List<JobLocal> init() throws Exception {
            List<JobLocal> jobList = new ArrayList<JobLocal>();
            for(JobDetails d : getBean().getJobList()) {
                jobList.add(new JobLocal(d, getAuditListener()));
            }
            return jobList;
        }
View Full Code Here

            jobDates.add(Converter.dateToString(date, "dd.MM.yy"));
        }
        extraFields.put("job_dates", jobDates);
        extraFields.put("job_enterprises", jobEnterprises);

        JobLocal jobLocal = getLastJob();
        if (jobLocal != null) {
            DirectoryEnterpriseItem enter = jobLocal.getEnterprise();
            DirectoryProfessionItem prof = jobLocal.getProfession();
            DirectoryAppointmentItem app = jobLocal.getAppointment();
            extraFields.put("job_enterprise", enter != null && enter.getID() != 0 ? enter.getTitle() : "");
            extraFields.put("job_profession", prof != null && prof.getID() != 0 ? prof.getTitle() : "");
            extraFields.put("job_appointment", app != null && app.getID() != 0 ? app.getTitle() : "");
            //todo поле иждивенец откуда брать?
        }
View Full Code Here

TOP

Related Classes of clips.delegate.job.JobLocal$DangersInfo

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.