Package clips.delegate.doctor.checkup.shedule

Examples of clips.delegate.doctor.checkup.shedule.CheckupSheduleLocal$CheckupInfo


            int row = jTable1.getSelectedRowSorted();   //выделенная
            int col = jTable1.getSelectedColumn();      //ячейка
            if (col < TableModelAnalyseShedule.COL_COUNT) {
                return;
            }
            CheckupSheduleLocal shedule = ((TableModelAnalyseShedule) jTable1.getModel()).getSheduleAt(row, col);
            //Возможно элемент расписания был null создаем его
            if (shedule == null) {
                DirectoryCheckupTypeItem checkupType = ((TableModelAnalyseShedule)
                        jTable1.getModel()).getCheckUpTypeAt(row);
                Date sheduleDate = ((TableModelAnalyseShedule) jTable1.getModel()).getDateAt(col);
                shedule = new CheckupSheduleLocal(checkupType, sheduleDate, getAuditManager());
                //trySincShedule(shedule);
            }
            //Создание и вызов диалога
            shedule.addContentStateListener(getContainer());
            CollectionUtils.addObectIfNotExist(checkupSheduleLocalList, shedule);
            DialogSheduleEditM1 dialog
                    = new DialogSheduleEditM1(MainWindow.mainWindow,
                                              freeCheckupMap.get(shedule.getType()),
                                              shedule, getAuditManager());
            dialog.addPropertyChangeListener(this);
            dialog.setVisible(true);


            //посмотрим чего вернул диалог
            int res = dialog.getDlgResult();
            System.out.println("FREE PANEL: "+freeCheckupMap);
            switch (res) {
                case ModalDialog.DLG_OK:
                    //готово или анализ
                    trySincShedule(shedule);//пробуем сохранить
                    if (dialog.getIndividualCheckUp() != null) {//проверим, мож индивидуальный анализ
                        individualAnalyse(dialog.getIndividualCheckUp(), shedule);
                    }
                    break;
                case ModalDialog.DLG_CANCEL:
                    //отмена
                    shedule.restore();//откатим шедулю
                    break;
                case ModalDialog.DLG_NEXTRESULT:
                    //в лабораторию
                    trySincShedule(shedule);
                    if (!shedule.getCheckupSet().isEmpty()){
                        PanelAnalyse panelAnalyse = new PanelAnalyse(getContainer(), shedule);
                        PageGeneric page = getContainer().addNewPage(panelAnalyse, null);
                        getContainer().activatePage(page);
                    } else{
                        MessageBox.showWarning("Панель "+PanelAnalyse.class.getSimpleName()+
View Full Code Here


                return inSedule;
            } else {
                /*Вычисляем сколько чекапов находятся в элементе расписания данного
                типа, приходящееся на данную дату
                 */
                CheckupSheduleLocal shedule = getSheduleAt(row, col);
                if (shedule != null) {
                    int size = shedule.getCheckupSet() != null
                            ? shedule.getCheckupSet().size() : 0;
                    return size == 0 ? null : size;
                } else {
                    return null;
                }
            }
View Full Code Here

        if (col < COL_COUNT) {
            return null;
        }
        GregorianCalendar gcCell = new GregorianCalendar();
        gcCell.setTime(getDateAt(col));
        CheckupSheduleLocal founded = null;
        if (sheduleMap.get(typeList.get(row)) != null) {
            for (CheckupSheduleLocal shedule : sheduleMap.get(typeList.get(row))) {
                GregorianCalendar gcShedule = new GregorianCalendar();
                gcShedule.setTime(shedule.getDate());
                if (gcShedule.get(GregorianCalendar.YEAR) ==
View Full Code Here

TOP

Related Classes of clips.delegate.doctor.checkup.shedule.CheckupSheduleLocal$CheckupInfo

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.