Package clips.delegate.contract

Examples of clips.delegate.contract.ServiceContractPriceData


        btSetService.setEnabled(serviceList != null && serviceList.size() > 0 &&
                selectedSCData != null);
    }

    private void reloadTableContractList() throws ClipsException {
        ServiceContractPriceData lastSelectedscData = selectedSCData;
        scDataList = clientLocal.getServiceContractPriceDataList(serviceList, null, packetService);
        //таблица договоров
        tableContractList.setModel(new TableModelContractList(scDataList));
        //автовыбор договора
        if (lastSelectedscData == null) {
            //если не был выбран то выбирается первый (если есть хоть 1)
            if (tableContractList.getRowCount() > 0) {
                tableContractList.getSelectionModel().setSelectionInterval(0, 0);
            }
        } else {
            //если был выбран, то выбирается тот же, если он есть
            boolean founded = false;
            for (int i = 0; i < tableContractList.getRowCount(); i++) {
                if (scDataList.get(i).getPolisDetails().equals(lastSelectedscData.getPolisDetails())) {
                    tableContractList.getSelectionModel().setSelectionInterval(i, i);
                    founded = true;
                }
            }
            if (!founded) {
View Full Code Here


        return COLCOUNT;
    }

    @Override
    public Object getValueAt(int row, int col) {
        ServiceContractPriceData contractData = scData.get(row);
        Object s = "";
        switch (col) {
            case COL_INDEX: {
                String res = contractData.getIndex();
                if (contractData.getPolisDetails().getId() == 0) {
                    res = "*" + res;
                }
                return res;
            }
            case COL_TYPE: {
                return contractData.getContractType();
            }
            case COL_ENTERPRISE: {
                return contractData.getEnterpriseTitle();
            }
        }
        return s;
    }
View Full Code Here

                DirectoryServiceItem service = directoryService.getItemFromID(serviseID);
                priceMap.put(service, chunk.priceMap.get(serviseID));
                moneyMap.put(service, chunk.moneyMap.get(serviseID));
                discountMap.put(service, chunk.discountMap.get(serviseID));
            }
            ServiceContractPriceData scpd = new ServiceContractPriceData(index, type, enterprise, polisID, priceMap, moneyMap, discountMap);
            dataList.add(scpd);
        }
        return dataList;
    }
View Full Code Here

TOP

Related Classes of clips.delegate.contract.ServiceContractPriceData

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.