Package clips.delegate.service

Examples of clips.delegate.service.SerRenLocal$polisCashe


    @Override
    public Object getValueAt(int row, int col) {
        try {
            CheckupLocal checkUpLocal = ii.get(row);
            SerRenLocal serRenLocal = checkUpLocal.getSerrenLocal();
            switch (col) {
                case COL_DATE: {
                    //Датой назначения анализа будем считать дату назначения Соответствующей услуги
                    return serRenLocal.getSerDate();
                }
                case COL_DIRECTOR: {
                    return serRenLocal.getSerRenDirector();
                }
                case COL_RENDERER: {
                    if (serRenLocal.isRendered()) {
                        return serRenLocal.getCollaboratorFunctions();
                    } else {
                        return "";
                    }
                }
                case COL_TYPE: {
View Full Code Here


        DialogSicklistContinue dsc = new DialogSicklistContinue(MainWindow.mainWindow, sicklist.getClient(), till, getAuditManager());
        dsc.setVisible(true);
        if (dsc.getDlgResult() == ModalDialog.DLG_OK) {
      Calendar        newLong = dsc.getDateTill();
            SerRenLocal serren = dsc.getSerren();
      GregorianCalendar    coll = new GregorianCalendar();
      coll.setTime(DateTimeUtils.getDateOnly(newLong.getTime()));
      coll.add(GregorianCalendar.DAY_OF_MONTH, -1);
      if (till.after(coll)){
        MessageBox.showError(MessageBox.E_INCORRECT_SICKLIST_PROLOG_DATE);
View Full Code Here

                    String services = "";
                    List<Integer> srl = data.getLinkedServicesList();
                    List<SerRenLocal> clientServices = data.getClient(null).getSerRenListToRender();

                    for (int i = 0; i < clientServices.size(); i++) {
                        SerRenLocal s = clientServices.get(i);
                        if (srl.contains(s.getID())) {
                            services += " - " + s.getService().getTitle() + "\n";
                        }
                    }
                    return services;
                }
                else {
View Full Code Here

private void mainTableMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_mainTableMouseClicked
    if(autoDuration && serviceModel != null) {
        Iterator<SerRenLocal> i = serviceModel.getSelectedList().iterator();
        int sum = 0;
        while(i.hasNext()) {
            SerRenLocal srl = i.next();
            try {
                sum += srl.getService().getDefaultDuration();
            } catch (ClipsException ex) {
                ex.printStackTrace();
            }
        }if(sum < 10) {
            sum = 10;
View Full Code Here

            newSerrenList = new ArrayList<SerRenLocal>();
            for (int i = 0; i < auditList.size(); i++) {
                if (!auditList.get(i).entityClass.equals(ServiceRender.class.getSimpleName())) {
                    continue;
                }
                SerRenLocal serRenLocal = new SerRenLocal(auditList.get(i).getEntityId, getAuditManager());
                newSerrenList.add(serRenLocal);
            }
            dispose();
//            AuditFrame dlg = AuditFrame.getDialog();
//            dlg.showMe(auditList);
View Full Code Here

    }//GEN-LAST:event_miNotRenderedActionPerformed

    private void btSelectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btSelectActionPerformed
        try {
            int row = tabSerRens.getSelectedRowSorted();
            SerRenLocal serRen = serRens.get(row);
            ClientLocal client = serRen.getPolisData().getClient();
            PanelSerRenList panel = new PanelSerRenList(getContainer(), client);
            PageGeneric page = getContainer().addNewPage((PageGeneric) panel, this);
            getContainer().activatePage(page);
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
View Full Code Here

    }

    @Override
    public Object getValueAt(int r, int c) {
        try {
            SerRenLocal serRenLocal = serRenIterator.get(r);
            PolisData polisData = serRenLocal.getPolisData();
            switch (c) {
                case COL_SERVICE: {
                    //наименование услуги
                    return serRenLocal.getService();
                }
                case COL_CONTRACT: {
                    return polisData.getContract().getInfo();
                }
                case COL_CLIENT: {
                    return polisData.getClient().getFIO();
                }
                case COL_DIRECTED: {
                    DirectoryCollaboratorItem serRenDirector = serRenLocal.getSerRenDirector();
                    Date date = serRenLocal.getSerDate();
                    return Converter.dateToString(date) + " " + serRenDirector.toString();
                }
                case COL_RENDERED: {
                    if (serRenLocal.isRendered()) {
                        DirectoryCollaboratorItem cl = serRenLocal.getCollaboratorFunctions().getCollaborator();
                        Date dateOrder = serRenLocal.getSerRenderDate();
                        return Converter.dateToString(dateOrder) + " " + cl.toString();
                    } else {
                        return "Не оказана";
                    }
                }
View Full Code Here

                    String services = "";
                    List<Integer> srl = data.getLinkedServicesList();
                    List<SerRenLocal> clientServices = data.getClient(null).getSerRenListToRender();

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

        return services.size();
    }

    @Override
    public Object getValueAt(int row, int column) {
        SerRenLocal sr = services.get(row).sr;
        try {
            switch (column) {
                case COL_SERVICENAME: {
                    return sr.getService().getTitle();
                }               
                case COL_DIRECTOR: {
                    return sr.getSerRenDirector().getTitle();
                }               
                case COL_INRECEPTION: {
                    return (sr.getReception() != null);
                }
                case COL_FULLPAYED: {
                    return sr.isSerPayed();
                }
                case COL_CHECKBOX: {
                    return services.get(row).checked;
                }
            }
View Full Code Here

                ClientLocal client = work.getClient(am);
                List<SerRenLocal> clientServices = getServices(client);
                //update available function
                List<Integer> orphanServices = work.getLinkedServicesList();
                for (int i = 0; i < clientServices.size(); i++) {
                    SerRenLocal s = clientServices.get(i);
                    s.addContentStateListener(emptyListener);
                    if (orphanServices.contains(s.getID())) {
                        s.setReception(null);
                    }                   
                }
            } catch (ClipsException ex) {
                ex.printStackTrace();
            }
View Full Code Here

TOP

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

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.