Package open.dolphin.infomodel

Examples of open.dolphin.infomodel.DocumentModel


        if (getBaseKarte() == null) {
            return;
        }
       
        ChartImpl chart = (ChartImpl) getContext();
        DocumentModel baseDocumentModel = getBaseKarte().getModel();

        // すでに修正中の document があれば toFront するだけで帰る
        if (chart.toFrontDocumentIfPresent(baseDocumentModel)) { return; }
        // 削除フラグが設定されていたらenterしない
        if (IInfoModel.STATUS_DELETE.equals(baseDocumentModel.getDocInfo().getStatus())){
            return;
        }

        String docType = baseDocumentModel.getDocInfo().getDocType();
        String dept = chart.getPatientVisit().getDepartment();
        String deptCode = chart.getPatientVisit().getDepartmentCode();

        Preferences prefs = Project.getPreferences();

        NewKarteParams params = new NewKarteParams(Chart.NewKarteOption.BROWSER_MODIFY);
        params.setDocType(docType);
        params.setDepartment(dept);
        params.setDepartmentCode(deptCode);
        // このフラグはカルテを別ウインドウで編集するかどうか
        params.setOpenFrame(prefs.getBoolean(Project.KARTE_PLACE_MODE, true));

        DocumentModel editModel = chart.getKarteModelToEdit(baseDocumentModel);
        KarteEditor editor = chart.createEditor();
        editor.setModel(editModel);
        editor.setEditable(true);
        editor.setModify(true);
        int mode = docType.equals(IInfoModel.DOCTYPE_KARTE) ? KarteEditor.DOUBLE_MODE : KarteEditor.SINGLE_MODE;
View Full Code Here


            // claim を送るのはカルテだけ
            String docType = getBaseKarte().getModel().getDocInfo().getDocType();
            if (!IInfoModel.DOCTYPE_KARTE.equals(docType)) { return; }

            ChartImpl chart = (ChartImpl) getContext();
            DocumentModel model = chart.getKarteModelToEdit(getBaseKarte().getModel());
            model.setKarte(getContext().getKarte());
            model.getDocInfo().setConfirmDate(new Date());

            sendClaim(model);
           
            message = "ORCA に送信しました";
            messageType = JOptionPane.PLAIN_MESSAGE;
View Full Code Here

TOP

Related Classes of open.dolphin.infomodel.DocumentModel

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.