Package open.dolphin.delegater

Examples of open.dolphin.delegater.DocumentDelegater


   
    private Callable<Long> getDocumentTask(final DocumentModel model) {
       
        Callable<Long> c = new Callable() {
            public Long call() {
                DocumentDelegater ddl = new DocumentDelegater();
                long result = ddl.putKarte(model);
//pns           return new Long(result);
                return Long.valueOf(result);
            }
        };
        return c;
View Full Code Here


       
        if (!go) {
            return;
        }

        DocumentDelegater ddl = new DocumentDelegater();
        DiagnosisPutTask task = new DiagnosisPutTask(getContext(), sendDiagnosis, ddl);
        task.execute();
    }
View Full Code Here

        spec.setKarteId(getContext().getKarte().getId());
        if (past != null) {
            spec.setFromDate(past);
        }

        final DocumentDelegater ddl = new DocumentDelegater();

        DBTask task = new DBTask<List>(getContext()) {

            @Override
            protected List doInBackground() throws Exception {
                logger.debug("getDiagnosisHistory doInBackground");
                List result = ddl.getDiagnosisList(spec);
                return result;
            }

            @Override
            @SuppressWarnings("unchecked")
            protected void succeeded(List list) {
                logger.debug("getDiagnosisHistory succeeded");

                if (list == null) list = new ArrayList<RegisteredDiagnosisModel>();

                if (ddl.isNoError() && list.size() > 0) {
                    if (ascend) Collections.sort(list);
                    else Collections.sort(list, Collections.reverseOrder());
                }
                // addedDiagnosis がある場合は list に追加
                if (addedDiagnosis.size() > 0) {
View Full Code Here

        //
        // 削除する status = 'D'
        //
        long deletePk = delete.getModel().getId();
        DocumentDelegater ddl = new DocumentDelegater();
        DeleteTask task = new DeleteTask(getContext(), deletePk, ddl);
        task.execute();
    }
View Full Code Here

                today.add(GregorianCalendar.MONTH, past);
                today.clear(Calendar.HOUR_OF_DAY);
                today.clear(Calendar.MINUTE);
                today.clear(Calendar.SECOND);
                today.clear(Calendar.MILLISECOND);
                DocumentDelegater ddl = new DocumentDelegater();
                KarteBean karteBean = ddl.getKarte(getPatientVisit().getPatient().getId(), today.getTime());
                return karteBean;
            }

            @Override
            protected void succeeded(KarteBean karteBean) {
View Full Code Here

            }
           
            if (! added.isEmpty()) {
                progressBar.setMaximum(added.size());
               
                DocumentDelegater ddl = new DocumentDelegater();
                int count = 0;
                boolean hasNext = true;
                while (hasNext) {
                    List<Long> pkList = new ArrayList<Long>(FRACTION);
                    for (int i = 0; i<FRACTION; i++) {
                        pkList.add(added.get(count++).getDocPk());
                        if (count >= added.size()) {
                            hasNext = false;
                            break;
                        }
                    }
                    // 途中で選択が変わったり,ウインドウが閉じられている可能性がある
                    if (savedSelectedHistories == selectedHistories
                            && getContext().getFrame().isVisible()) {
                       
                        List<DocumentModel> dm = ddl.getDocuments(pkList);
                        publish(dm);
                        progressBar.setValue(count);
                       
                    } else {
                        //logger.info("selection has changed");
View Full Code Here

    private Logger logger;

    public DocumentPeeker() {
        //使い回す Object
        today = new GregorianCalendar();
        ddl = new DocumentDelegater();
        pnsdl = new PnsDelegater();
        spec = new DiagnosisSearchSpec();
        yesterday = new GregorianCalendar();
        yesterday.add(GregorianCalendar.DATE, -1);
        yesterday.set(Calendar.HOUR_OF_DAY, 23);
View Full Code Here

        removeExtraCR(doc);
        removeRepeatedCR(doc);

        composeModel(params);
       
        final DocumentDelegater ddl = new DocumentDelegater();
        final DocumentModel saveModel = model;
        final Chart chart = this.getContext();

        DBTask task = new DBTask<String>(chart) {

            @Override
            protected String doInBackground() throws Exception {
                logger.debug("KarteSaveTask doInBackground");
                String ret = null;
                ddl.putKarte(saveModel);
               
                if (ddl.isNoError()) {
                    if (sendClaim) {
                        if (Project.getProjectStub().isUseOrcaApi()) {
                            OrcaApi api = OrcaApi.getInstance();
                            api.setContext(getContext());
                            api.send(saveModel);
                        } else {
                            claimSender.send(saveModel);
                        }
                    }
                    if (sendMml) {
                        sendMml(saveModel);
                    }
                } else {
                    ret = ddl.getErrorMessage();
                }
                return ret;
            }           

            @Override
            protected void succeeded(String errMsg) {
                logger.debug("KarteSaveTask succeeded");
                if (ddl.isNoError()) {
               
                    // 印刷
                    int copies = params.getPrintCount();
                    if (copies > 0) {
                        printPanel2(chart.getContext().getPageFormat(), copies, false);
View Full Code Here

TOP

Related Classes of open.dolphin.delegater.DocumentDelegater

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.