Package clips.delegate.contract

Examples of clips.delegate.contract.ContractLocal$ServiceSpecialityList


        filter.enterpriseId = -1;
        filter.onlyOpen = true;
        filter.lpuID = UserInfo.get().getCollaborator().getLpu().getID();
        ArrayList list = cf.findContractList(filter);
        for (int i = 0; i < list.size(); i++) {
            ContractLocal c = (ContractLocal) list.get(i);
            if (contract != null && contract.getID() == c.getID()) {
                contract = c;
            }
        }
        list.add(0, "Любой");
        return list.toArray();
View Full Code Here


            contractFilter.enterpriseId = -1;
            contractFilter.lpuID = UserInfo.get().getCollaborator().getLpu().getID();
            ArrayList<ContractLocal> contractList = cf.findContractList(contractFilter);
            System.out.println("Найдено " + contractList.size() + " контрактов");
            for (int i = 0; i < contractList.size(); i++) {
                ContractLocal contractLocal = contractList.get(i);
                System.out.println("Обработка контракта № " + (i+1) + " (" + contractLocal + ")");
                contractLocal.unionPolises();
            }
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
        }
View Full Code Here

       
        @Override
        protected PolisData init() throws Exception {
            PolisDetails polisOMI = getBean().getPolisOMI();
            if (polisOMI != null) {
                ContractLocal contract = new ContractLocal(polisOMI.contractID, getAuditListener());
                return new PolisData(contract, ClientLocal.this, polisOMI);
            } else {
                return null;
            }
        }
View Full Code Here

        HashMap<Integer, DangerExamChunk> dangers = new HashMap<Integer, DangerExamChunk>();
        HashMap<Integer, PolisData> polises = new HashMap<Integer, PolisData>();

        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){
View Full Code Here

    private void btOMIActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btOMIActionPerformed
        try {
            PolisData polis = clientLocal.getPolisOMS();
            if (polis == null){
                polis = new PolisData(new ContractLocal(getAuditManager()), clientLocal);
            }
            DialogPolisOMI dialog = new DialogPolisOMI(MainWindow.mainWindow, polis, getAuditManager());
            dialog.setVisible(true);
            if (dialog.getDlgResult() == ModalDialog.DLG_OK) {
                PolisData polisData = dialog.getPolisOMI();
View Full Code Here

     */
    public ServisePriceData getContractService() throws ClipsException {
        //чтобы не создавались копии контрактов, загнал их в мап
        //в течении сеанса цены на услуги не будут обновляться
        int contractID  = getPolisData().getDetails().contractID;
        ContractLocal contract;
        if (contractMap.containsKey(contractID)) {
            contract = contractMap.get(contractID);
        } else {
            contract = getPolisData().getContract();
            contractMap.put(contractID, contract);
        }
        DirectoryServiceItem service = getService();
        ServisePriceData contractService = null;
        DirectoryReceptionTypeItem nullItem = DirectoryLocator.getDirectory(DirectoryReceptionType.class).getNullItem();
        DirectoryReceptionTypeItem recType = nullItem;
        if (getCollaboratorFunctions() != null){
            recType = getCollaboratorFunctions().getReceptionType();
        }
        contractService = contract.getContractService(new Pair<DirectoryServiceItem, DirectoryReceptionTypeItem>(service, recType));
        if (contractService == null){
            contractService = contract.getContractService(new Pair<DirectoryServiceItem, DirectoryReceptionTypeItem>(service, nullItem));
        }
        return contractService;
//        return getPolis().getContract().getContractService(getService());
    }
View Full Code Here

TOP

Related Classes of clips.delegate.contract.ContractLocal$ServiceSpecialityList

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.