Package open.dolphin.infomodel

Examples of open.dolphin.infomodel.AppointmentModel


            String str = (String)val;
            if (col != MEMO_COLUMN || str == null || str.trim().equals("")) {
                return;
            }
           
            AppointmentModel entry = (AppointmentModel)getObject(row);
           
            if (entry != null) {
               
                entry.setMemo(str);
               
                if (entry.getState() == AppointmentModel.TT_HAS) {
                    entry.setState(AppointmentModel.TT_REPLACE);
                }
               
                fireTableCellUpdated(row, col);
               
                if (! dirty) {
View Full Code Here


        dragSource.createDefaultDragGestureRecognizer(this, DnDConstants.ACTION_COPY_OR_MOVE, this);
    }
   
    public void dragGestureRecognized(DragGestureEvent event) {
       
        AppointmentModel appo = new AppointmentModel();
        appo.setName(this.getText());
        Transferable t = new AppointEntryTransferable(appo);
        Cursor cursor = DragSource.DefaultCopyDrop;

        // Starts the drag
        dragSource.startDrag(event, cursor, t, this);
View Full Code Here

            if (c.getRelativeMonth() >= 0) {
               
                ArrayList<AppointmentModel> list = c.getUpdatedAppoints();
                int size = list.size();
                for (int i = 0; i < size; i++) {
                    AppointmentModel appo = list.get(i);
                   
                    // 新規予約のみEJB3.0の関係を設定する
                    if (appo.getKarte() == null) {
                        appo.setKarte(getContext().getKarte());
                    }
                    appo.setCreator(Project.getUserModel());
                   
                    // 確定日、記録日、開始日
                    // 現状の実装はここまで
                    Date confirmed = new Date();
                    appo.setConfirmed(confirmed);
                    appo.setRecorded(confirmed);
                    if (appo.getStarted() == null) {
                        appo.setStarted(confirmed);
                    }
                    // 常にFINAL
                    appo.setStatus(IInfoModel.STATUS_FINAL);
                   
                    results.add(list.get(i));
                }
            }
        }
View Full Code Here

        ArrayList<AppointmentModel> updated = new ArrayList<AppointmentModel>();
        ArrayList<AppointmentModel> removed = new ArrayList<AppointmentModel>();

        for (int i = 0; i < size; i++) {

            AppointmentModel model = (AppointmentModel) results.get(i);
            int state = model.getState();
            String appoName = model.getName();

            if (state == AppointmentModel.TT_NEW) {
                // 新規予約
                added.add(model);
View Full Code Here

                        + "and a.karte.id = (select k.id from KarteBean k where k.patient.id = :pk)")
                .setParameter("pk", patient.getId())
                .setParameter("date", theDate)
                .getResultList();
                if (c != null && c.size() > 0) {
                    AppointmentModel appo = (AppointmentModel) c.get(0);
                    pvt.setAppointment(appo.getName());
                }
            }
        }
       
        //System.out.println("getPvt end at " + new Date());
View Full Code Here

TOP

Related Classes of open.dolphin.infomodel.AppointmentModel

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.