Package cli_fmw.address

Examples of cli_fmw.address.DialogAddressM


            return;
        }
        PolisData polis = polisList.get(row);
        if (col == TableModelPolisView.COL_ADDRESS) {
            Address address = UserInfo.get().getCollaborator().getLpu().getAddress();
            DialogAddressM dialog = new DialogAddressM(MainWindow.mainWindow, polis.getAddress(), address, getAuditManager());
            dialog.setVisible(true);
            if (dialog.getDlgResult() == ModalDialog.DLG_CANCEL) {
                return;
            }
            if (!dialog.getAddress().equals(polis.getAddress())){
                polis.setAddress(dialog.getAddress());
                contract.savePolisData(polis);
            }
        }
        getContainer().contentStateChanged();
    } catch (ClipsException ex) {
View Full Code Here


private void btAddressActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btAddressActionPerformed
    try {
        Address address = UserInfo.get().getCollaborator().getLpu().getAddress();
        Address ad = new Address(enterprise.getAddress().getDetails());
        DialogAddressM dlg = new DialogAddressM((Frame) getContainer(), ad, address, getAuditManager());
        dlg.setVisible(true);
        if (dlg.getDlgResult() == ModalDialog.DLG_OK){
            enterprise.setAddress(dlg.getAddress());
            taAddress.setText(enterprise.getAddress().toString());
        }
    } catch (ClipsException ex) {
        MessageBox.showException(ex);
    }
View Full Code Here

            }
            else {
                ad = new Address(new AddressDetails());
            }
            Address addressDefault = UserInfo.get().getCollaborator().getLpu().getAddress();
            DialogAddressM dlg = new DialogAddressM((Window) getContainer(), ad, addressDefault, getAuditManager());
            dlg.setVisible(true);
            if (dlg.getDlgResult() == ModalDialog.DLG_OK){
                address = dlg.getAddress();
                tfAddress.setText(address.toString());
                tfAddress.setCaretPosition(0);
            }
            else if (address == null) {
                chbAddress.setSelected(false);
View Full Code Here

            }
            else {
                ad = new Address(new AddressDetails());
            }
            Address addressDefault = UserInfo.get().getCollaborator().getLpu().getAddress();
            DialogAddressM dlg = new DialogAddressM((Window) getContainer(), ad, addressDefault, getAuditManager());
            dlg.setVisible(true);
            if (dlg.getDlgResult() == ModalDialog.DLG_OK){
                address = dlg.getAddress();
                tfAddress.setText(address.toString());
                tfAddress.setCaretPosition(0);
            }
            else if (address == null) {
                chbAddress.setSelected(false);
View Full Code Here

                a = new Address(details.addressDetail);
            }else{
                a = new Address(new AddressDetails());
            }
            Address address = UserInfo.get().getCollaborator().getLpu().getAddress();
            DialogAddressM dialog = new DialogAddressM(this.getOwner(), a, address, getAuditManager());
            dialog.setVisible(true);
            if (dialog.getDlgResult() == ModalDialog.DLG_OK) {
                a = dialog.getAddress();
                details.addressDetail = a.getDetails();
                tfAddress.setText(a.toStringShort());
            }
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
View Full Code Here

    }

    private void btAddressActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btAddressActionPerformed
        try {
            Address address = UserInfo.get().getCollaborator().getLpu().getAddress();
            DialogAddressM dialog = new DialogAddressM((Frame) getContainer(), clientLocal.getAddress(), address, getAuditManager());
            dialog.setVisible(true);
            if (dialog.getDlgResult() == ModalDialog.DLG_OK) {
                if (!dialog.getAddress().equals(clientLocal.getAddress())){
                    clientLocal.setAddress(dialog.getAddress());
                    setDefaultDistrict(clientLocal.getDefaultDistrict(dialog.getAddress()));
                }
            }
            getContainer().contentStateChanged();
//            editAddress.setText(clientLocal.getAddress().toString());
        } catch (ClipsException ex) {
View Full Code Here

    }// </editor-fold>//GEN-END:initComponents

    private void btAddressActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btAddressActionPerformed
        try {
            Address address = UserInfo.get().getCollaborator().getLpu().getAddress();
            DialogAddressM dialog = new DialogAddressM((Frame) getContainer(), lpuLocal.getAddress(), address, getAuditManager());
            dialog.setVisible(true);
            if (dialog.getDlgResult() == ModalDialog.DLG_OK)
            {
                if (!dialog.getAddress().equals(lpuLocal.getAddress())){
                    lpuLocal.setAddress(dialog.getAddress());
                }
            }
            getContainer().contentStateChanged();
//            editAddress.setText(clientLocal.getAddress().toString());
        } catch (ClipsException ex) {
View Full Code Here

TOP

Related Classes of cli_fmw.address.DialogAddressM

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.