Package clips.delegate.client

Examples of clips.delegate.client.ClientLocal$ResultSetByDate


@TagToClass(tagName="pacient_fio",title="Фамилия, имя, отчество пациента")
public class CertTagPacientFIO extends TypeTextField {
   
    public CertTagPacientFIO(CertificateLocal certificateLocal, ReportParam reportParam, DiseaseLocal diseaseLocal) throws ClipsException {
        super(certificateLocal, reportParam, diseaseLocal);
        ClientLocal clientLocal = certificateLocal.getClientLocal();
        if (certificateLocal.isNewlyCreated()) {
            String name = clientLocal.getName() != null ? clientLocal.getName().toString() : "";
            String surname = clientLocal.getSurname() != null ? clientLocal.getSurname().toString() : "";
            String pathron = clientLocal.getPathron() != null ? clientLocal.getPathron().toString() : "";
            setText(String.format("%s %s %s", surname, name, pathron), true);
        }
    }
View Full Code Here


            String name = dirName.getItemFromID(key.nameID).getTitle();
            String pathron = dirPathron.getItemFromID(key.pathronID).getTitle();
            panel.setFIO(surName + " " + name + " " + pathron);
            dialog.addNewPage((PageGeneric) panel, null);
            dialog.setVisible(true);
            ClientLocal client = panel.getSelectedClient();
            if (dialog.getDlgResult() == ModalDialog.DLG_OK) {
                ArrayList<ClientLocal> clientList = new ArrayList<ClientLocal>(1);
                if (client != null) {
                    clientList.add(client);
                }
View Full Code Here

    private void saveData() throws ClipsException {
        for (int i = 0; i < colDataList.size(); i++) {
            CollabData cd = colDataList.get(i);
            ColDataKey key = new ColDataKey(cd.surnameID, cd.nameID, cd.pathronID);
            ClientLocal client = colClientMap.get(key).get(0);
            CollaboratorLocal collab = findCollab(client);
            if (collab == null) {
                collab = new CollaboratorLocal(client);
                collab.save1();
                dirCollab = DirectoryLocator.getDirectory(DirectoryCollaborator.class, true);
View Full Code Here

        ArrayList<ClientLocal> list = clientSearchLocal.getClientList(filter);
        if (list.size() > 1) {
            //Если найдено несколько пробуем уточнить по снилсу
            ArrayList<ClientLocal> tmp = new ArrayList<ClientLocal>(list);
            for (Iterator<ClientLocal> it = tmp.iterator(); it.hasNext();) {
                ClientLocal clientLocal = it.next();
                if (!clientLocal.getSnils().equals(snils)) {
                    it.remove();
                }
            }
            if (tmp.size() == 1) {
                return tmp;
View Full Code Here

public class CertTagPacientDocNumber extends TypeTextField {

    public CertTagPacientDocNumber(CertificateLocal certificateLocal, ReportParam reportParam, DiseaseLocal diseaseLocal) throws ClipsException {
        super(certificateLocal, reportParam, diseaseLocal);
        if (certificateLocal.isNewlyCreated()) {
            ClientLocal clientLocal = certificateLocal.getClientLocal();
            ClientDocumentData doc = clientLocal.getClientDocument();
            if (doc != null) {
                setText(doc.getNumber() != null ? doc.getNumber() : "", true);
            }
        }
    }
View Full Code Here

            recs.remove(work);
            removeTimeSpan(span);

            //обновляем информацию в кеше о том, что некоторые услуги перестали быть записанными на прием
            try {
                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);
View Full Code Here

     * @param span
     */
    private void showSpanDetails(TimeSpanItem span) {
        try {
            SheduleReceptionData item = span.get();
            ClientLocal client = item.getClient(am);
            List<SerRenLocal> clientServices =  getServices(client);

            SheduleItemDialog dlg = new SheduleItemDialog(MainWindow.mainWindow, clientServices.iterator(), getAuditManager());

            Calendar gc = GregorianCalendar.getInstance();
View Full Code Here

                li.add(new Integer(srl.get(i).getID()));
            }
        }
        data.setLinkedServicesList(li);

        ClientLocal client = data.getClient(am);
        List<SerRenLocal> clientServices =  getServices(client);       
       
        //update available function
        //нахрен это???
        /*for(int i=0; i<clientServices.size(); i++) {
View Full Code Here

public class CertTagPacientSicklists extends TypeTextField {

    public CertTagPacientSicklists(CertificateLocal certificateLocal, ReportParam reportParam, DiseaseLocal diseaseLocal) throws ClipsException {
        super(certificateLocal, reportParam, diseaseLocal);
        if (certificateLocal.isNewlyCreated()) {
            ClientLocal client = certificateLocal.getClientLocal();
            ArrayList<SicklistLocal> list = client.getSicklistsInCurrentYear();
            String sicklists = "";
            for (int i = 0; i < list.size(); i++) {
                sicklists += list.get(i).dataToString() + "  ";
            }
            setText(sicklists, true);
View Full Code Here

            MessageBox.showWarning(MessageBox.W_LIST_ELEMENT_NOT_SELECT);
            return;
        }
        try {
            int clientID = followupList.get(tabFollowUps.getSelectedRowSorted()).clientID;
            ClientLocal clientLocal = new ClientLocal(clientID, getAuditManager());
            clientLocal.getMother();
            clientLocal.getFather();
            InfoDialog dialog = new InfoDialog((Frame)getContainer(), clientLocal.toHtml());
            dialog.setVisible(true);
        } catch(ClipsException ex) {
            MessageBox.showException(ex);
        }
    }//GEN-LAST:event_btClientInfoActionPerformed
View Full Code Here

TOP

Related Classes of clips.delegate.client.ClientLocal$ResultSetByDate

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.