Package clips.delegate.client

Examples of clips.delegate.client.ClientLocal


        try {
            EmptyDialog dialog = new EmptyDialog(MainWindow.mainWindow, "Выбор матери пациента", getAuditManager());
            PanelUserSearch panel = new PanelUserSearch(dialog, PanelUserSearch.MODE_SELECT);
            dialog.addNewPage((PageGeneric) panel, null);
            dialog.setVisible(true);
            ClientLocal mother = panel.getSelectedClient();
            if (dialog.getDlgResult() == ModalDialog.DLG_OK) {
                clientLocal.setMother(mother);
                if (mother != null) {
                    editMother.setText(mother.getSurname() + " " +
                            mother.getName() +
                            " " + mother.getPathron());
                } else {
                    editMother.setText("");
                }
            }
        } catch (PageException ex) {
View Full Code Here


        try {
            EmptyDialog dialog = new EmptyDialog(MainWindow.mainWindow, "Выбор отца пациента", getAuditManager());
            PanelUserSearch panel = new PanelUserSearch(dialog, PanelUserSearch.MODE_SELECT);
            dialog.addNewPage((PageGeneric) panel, null);
            dialog.setVisible(true);
            ClientLocal father = panel.getSelectedClient();
            if (dialog.getDlgResult() == ModalDialog.DLG_OK) {
                clientLocal.setFather(father);
                if (father != null) {
                    editFather.setText(father.getSurname() + " " +
                            father.getName() +
                            " " + father.getPathron());
                } else {
                    editFather.setText("");
                }
            }
View Full Code Here

        try {
            EmptyDialog dialog = new EmptyDialog(MainWindow.mainWindow, "Выбор представителя пациента", getAuditManager());
            PanelUserSearch panel = new PanelUserSearch(dialog, PanelUserSearch.MODE_SELECT);
            dialog.addNewPage((PageGeneric) panel, null);
            dialog.setVisible(true);
            ClientLocal representative = panel.getSelectedClient();
            if (dialog.getDlgResult() == ModalDialog.DLG_OK) {
                clientLocal.setRepresentative(representative);
                if (representative != null) {
                    editRepresentative.setText(representative.getSurname() + " " +
                            representative.getName() +
                            " " + representative.getPathron());
                } else {
                    DirectoryRepresentativeStatusItem item = dir.getNullItem();
                    clientLocal.setRepresStatus(item);
                    cbRepresStatus.setSelectedItem(item);
View Full Code Here

    @Override
    public void print(CombinedReportCreator cCreator) throws ClipsException {
        HashMap<String, Object> data = getSerrenLocal().getPolisData().getClient().getPrintFields();

        ClientLocal client = getSerrenLocal().getPolisData().getClient();
        String fio = client.getSurname().getTitle()
                + " " + client.getName().getTitle()
                + " " + client.getPathron().getTitle();
        data.put("pacient_fio", fio);

        //TODO
        data.put("hospital_stamp", UserInfo.get().getCollaborator().getLpu().getLpuCode());
        //ENDTODO
View Full Code Here

        for (ProfcheckupContractChunk pcc : chunks) {
            if (contracts.get(pcc.contract.id) == null){
                contracts.put(pcc.contract.id, new ContractLocal(pcc.contract, al));
            }
            if (clients.get(pcc.client.id) == null){
                clients.put(pcc.client.id, new ClientLocal(pcc.client, al));
            }
            if (dangers.get(pcc.danger.dangerId) == null){
                dangers.put(pcc.danger.dangerId, new DangerExamChunk(pcc.danger));
            }
        }
View Full Code Here

    @Override
    public void print(CombinedReportCreator cCreator) throws ClipsException {
        FormReportCreator creater = cCreator.createFormReporter(getClass(), 2);
       
        ClientLocal client = getClient();

        HashMap<String, Object> data = new HashMap<String, Object>();
        data.put("client", client.toString());
        data.put("clientSex", client.getSex().toString());
        data.put("clientBD", Converter.dateToString(client.getBorn()));
        data.put("clientAddress", client.getAddress().toString());

        DirectoryEnterpriseItem ent = getEnterprise();

        data.put("clientJob", ent == null ? "" : ent.getTitle());
       
View Full Code Here

    combined.setUpReport(null, reportOptions, null);
        FormReportCreator      creator = combined.createFormReporter(getClass(), 3);

        GregorianCalendar dateFrom = getDateOpen();

        ClientLocal client = getClient();

        HashMap<String, Object> data = new HashMap<String, Object>();
        data.put("client", client.toString());
        data.put("client_is_male", client.getSex().isMale());
    if (client.getBorn() != null){
      data.put("client_age", DateTimeUtils.calcAge(client.getBorn(), dateFrom.getTime()));
    }
    else{
      data.put("client_age", null);
    }
    data.put("emc_code", client.getNumberEmc());
   
    if (getProlongationCount() > 0){
      Address      adr = getSerRen(0).getPolisData().getAddress();
      if (adr == null){
        adr = client.getAddress();
      }
      data.put("client_address", adr == null? null: adr.toStringShort());
    }
    if (getOpener() == null){
      data.put("collaborator", getAltOpener());
    }
    else{
      ClientLocal      clolClient = new ClientLocal(getOpener().getDetails().getClient(), null);
      data.put("collaborator", clolClient.getSurname().getTitle());
    }

        DirectoryEnterpriseItem ent = getEnterprise();

        data.put("clientJob", ent == null ? getOtherDirection() : ent.getTitle());
View Full Code Here

    if (tableErrors.getSelectedRowCount() > 0) {
        try {
            int row = tableErrors.getSelectedRowSorted();
            int serrenID = errorList.getSerrenID(row);
            SerRenLocal serren = new SerRenLocal(serrenID, getAuditManager());
            ClientLocal client = serren.getPolisData().getClient(getAuditManager());
            switch (errorList.getType(row)) {
                case ErrorList.SERREN_ERROR : {
                    PanelEMC panel = new PanelEMC(getContainer(), client);
                    getContainer().addNewPage(panel, this);
                    panel.selectInEmc(serren);
View Full Code Here

    }

    @Override
    public void print(CombinedReportCreator cCreator) throws ClipsException {
        FormReportCreator creater = cCreator.createFormReporter(getClass(), 1);
        ClientLocal cl = getClient();
        HashMap<String, Object> data = cl.getPrintFields();

        Address address = cl.getAddress();
        if (address != null) {
            data.put("pacient_address", address.toStringShort());
        }
        data.put("collab_fio", getCollaboratorUp().getTitle());
        data.put("collab_appointment", getCollabUpDrv());
View Full Code Here

        this.al = al;
    }
   
    @Override
    protected ClientLocal getClientFromID(int id) throws ClipsException{
        return new ClientLocal(id, al);
    }
View Full Code Here

TOP

Related Classes of clips.delegate.client.ClientLocal

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.