Package clips.delegate.service

Examples of clips.delegate.service.SerRenLocal$DiscountCardCache


                SheduleReceptionData data = tsi.get();
                List<Integer> srl = data.getLinkedServicesList();
                List<SerRenLocal> clientServices = getServices(data.getClient(am));

                for (int i = 0; i < clientServices.size(); i++) {
                    SerRenLocal s = clientServices.get(i);
                    if (srl.contains(s.getID())) {
                        try {
                            desc += " - " + s.getService().getTitle() + "\n";
                        } catch (ClipsException ex) {
                            ex.printStackTrace();
                        }
                    }
                }
View Full Code Here


            String services = "";
            List<Integer> srl = item.getLinkedServicesList();
            List<SerRenLocal> clientServices = getServices(item.getClient(am));
            if (srl.size() != 0) {
                for (int i = 0; i < clientServices.size(); i++) {
                    SerRenLocal s = clientServices.get(i);
                    if (srl.contains(s.getID())) {
                        services += "    - " + s.getService().getTitle() + "\n";
                    }
                }
            }
            else {
                services += "    нет привязанных услуг";
View Full Code Here

    @Override
    public void setValueAt(Object aValue, int row, int column) {       
        try {
            FollowupData data = followupList.get(row);
            FollowupLocal followUp = new FollowupLocal(data.details, new SerRenLocal(data.details.serrenUpID, am), am);
            if (column == COL_CALLED) {               
                FollowupEventData event = followUp.getLastEvent();
                event.setCalled((Boolean) aValue);
                followUp.save1();
                data.lastEventDetails.called = (Boolean) aValue;
View Full Code Here

        currentTime.add(Calendar.DAY_OF_YEAR, 1);
        Date end = DateTimeUtils.getDateOnly(currentTime.getTime());
        serrenList = client.getSerRenList(begin, end, null);
        DefaultComboBoxModel cbModel = new DefaultComboBoxModel();
        for (int i = 0; i < serrenList.size(); i++) {
            SerRenLocal serRenLocal = serrenList.get(i);
            String item = Converter.dateToString(serRenLocal.getSerDate())
                    + serRenLocal.getService().getTitle();
            cbModel.addElement(item);
        }
        if (serrenList.size() == 0) {
            cbModel.addElement("На текущую дату у пациента не найден талон");
            cbSerren.setEnabled(false);
View Full Code Here

            }
            for (ProfcheckupItemLocal pil : profcheckupItemList){
                Map<Integer, CheckupXMLData> smallXmlMap = new HashMap<Integer, CheckupXMLData>();
                List<SerRenLocal> s = pil.getDiseaseLocal().getSerrenList();
                for (int i = 0; i < s.size(); i++) {
                    SerRenLocal srl = s.get(i);
                    if (srl.getAnalysis() != null) {
                        smallXmlMap.put(srl.getService().getID(), srl.getAnalysis().getCheckupXMLData());
                    }
                }
                for (Iterator<CheckupXMLData> it = smallXmlMap.values().iterator(); it.hasNext();) {
                    CheckupXMLData cxmld = it.next();
                    System.out.println("============Exist XML============");
View Full Code Here

        currentTime.add(Calendar.DAY_OF_YEAR, 1);
        Date end = DateTimeUtils.getDateOnly(currentTime.getTime());
        serrenList = sicklist.getClient().getSerRenList(begin, end, null);
        DefaultComboBoxModel cbModel = new DefaultComboBoxModel();
        for (int i = 0; i < serrenList.size(); i++) {
            SerRenLocal serRenLocal = serrenList.get(i);
            String item = Converter.dateToString(serRenLocal.getSerDate()) + " "
                    + serRenLocal.getService().getTitle();
            cbModel.addElement(item);
        }
        if (serrenList.size() == 0) {
            cbModel.addElement("На текущую дату у пациента не найден талон");
            cbSerren.setEnabled(false);
View Full Code Here

    @Override
    public Object getValueAt(int row, int col) {
        try {
            MedSerrenResultData res = medexam.getResultList().get(row);
            SerRenLocal serren = medexam.getSerRen(res);
            switch (col) {
                case COL_SERVICE:
                    return serren.getService().getTitle();
                case COL_RENDER:
                    return serren.getCollaboratorFunctions();
                case COL_DATE:
                    return serren.getSerRenderDate();
                case COL_RESULT:
                    return res.getResult();
                default:
                    throw new IllegalArgumentException("Некорректный номер столбца : " + col);
            }
View Full Code Here

                if (medexam.getResultList().get(row).getResult().equals(aValue)) {
                    //Нет изменений
                    return;
                }
                MedSerrenResultData res = medexam.getResultList().get(row);
                SerRenLocal serren = medexam.getSerRen(res);
                if (UserInfo.get().isSuperUser() || serren.getCollaboratorFunctions() != null
                        && serren.getCollaboratorFunctions().getCollaborator().getID() == UserInfo.get().getCollaborator().getID() ) {
                    medexam.getResultList().get(row).setResult((DirectoryProfcheckupResultItem) aValue);
                    return;
                } else {
                    MessageBox.showWarning("Ставить результаты может только сотрудник, оказавший услугу");
                    return;
View Full Code Here

            tfAssigned.setText("Информация недоступна");
            tfAssigned.setToolTipText(MessageBox.parseException(ex));
        }
        //Оплачена
        try {
            SerRenLocal serRenRef = serRenLocal.getReferencedSerRen();
            if (serRenRef != null) {
                tfPayed.setText("Бесплатно в рамках услуги: " + serRenRef.getService().getTitle());
            } else if (serRenLocal.getPolisData().getContract().getType() == Contract.TYPE_OMI){
                tfPayed.setText("Посещение оплачивается по ОМС");
            } else if (serRenLocal.isSerPayed()) {
                tfPayed.setText("Оплачена");
            } else {
View Full Code Here

     * Добавляет элемент в текущую услугу, переводит выделение на него
     * @param aClass
     */
    private void addDelegateToService(Class<? extends DelegateNode> aClass) {
        if (selectedServiceNode != null) {
            SerRenLocal selectedService = selectedServiceNode.getDelegate();
            try {
                DelegateNode leaf = null;
                if (aClass.equals(ContraindicationLocal.class)) {
                    leaf = new ContraindicationLocal(selectedService);
                } else if (aClass.equals(CheckupLocal.class)) {
                    leaf = new CheckupLocal(selectedService);
                } else if (aClass.equals(PrescriptionLocal.class)) {
                    leaf = new PrescriptionLocal(selectedService);
                } else if (aClass.equals(DirectionLocal.class)) {
                    leaf = new DirectionLocal(selectedService);
                } else if (aClass.equals(RecommendationLocal.class)) {
                    leaf = new RecommendationLocal(selectedService);
                } else if (aClass.equals(DiagnosisLocal.class)) {
                    leaf = new DiagnosisLocal(selectedService);
                } else if (aClass.equals(PrescriptionDloLocal.class)) {
                    leaf = new PrescriptionDloLocal(selectedService);
                } else {
                    throw new ClipsException("Попытка создать объект не учтённого типа");
                }
                if (leaf != null) {
                    System.out.println("PANEL EMC, LEAF " + leaf + " ADD TO SERVICE " + selectedService);
                    selectedService.addChild(leaf);
                }
            } catch (ClipsException e) {
                MessageBox.showException(e);
            }
        }
View Full Code Here

TOP

Related Classes of clips.delegate.service.SerRenLocal$DiscountCardCache

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.