Package clips.delegate.directory.simple.regionIdCode

Examples of clips.delegate.directory.simple.regionIdCode.DirectoryRegionIdCodeItem


                        return "";
                    }
                }
                case COL_INSURER_REGION: {
                    //код региона страховой компании
                    DirectoryRegionIdCodeItem region = polisData.getRegionCode();
                    if (region != null) {
                        return region;
                    } else {
                        return "";
                    }
View Full Code Here


            DirectoryRegionIdCode dir = DirectoryLocator.getDirectory(DirectoryRegionIdCode.class);
            DialogDirectorySimpleM dlg = new DialogDirectorySimpleM(MainWindow.mainWindow, dir, null, false);
            dlg.setVisible(true);
            if (dlg.getDlgResult() == ModalDialog.DLG_OK
                    && dlg.getSelectedItem() != null) {
                DirectoryRegionIdCodeItem item = (DirectoryRegionIdCodeItem) dlg.getSelectedItem();
                configLocal.setConfigRegionCode(item);
                tfRegionCode.setText(item.getExtKey());
            }
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
        }
    }//GEN-LAST:event_btRegionCodeActionPerformed
View Full Code Here

    }//GEN-LAST:event_btUpdateActionPerformed

    private void btFormalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btFormalActionPerformed
        try {
            DirectoryInsurerItem defaultInsurer = UserInfo.get().getCollaborator().getLpu().getDefaultInsurer();
            DirectoryRegionIdCodeItem configRegionCode = ConfigLocal.getInstance().getConfigRegionCode();
            cbInsurer.setSelectedItem(defaultInsurer);
            cbRegion.setSelectedItem(configRegionCode);
            tfSeries.setText("");
            tfNumber.setText(Polis.FICTIVE_POLIS_NUMBER);
        } catch (ClipsException ex) {
View Full Code Here

            polisS = polis.getNumber();
            if (polisS != null) {
                data.put("polis_number", polisS);
            }

            DirectoryRegionIdCodeItem regItem = polis.getRegionCode();
            if (regItem != null && regItem.getID()!=0) {
                data.put("polis_area", regItem.getRegionTitle());
            }

            DirectoryInsurerItem ins = polis.getInsurer();
            if (ins != null && ins.getID() != 0) {
                data.put("polis_insurer", ins.getTitle());
View Full Code Here

TOP

Related Classes of clips.delegate.directory.simple.regionIdCode.DirectoryRegionIdCodeItem

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.