Package net.datacrow.core.wf.requests

Examples of net.datacrow.core.wf.requests.CloseWindowRequest$WindowCloser


   
    @Override
    protected void saveValues() {
        apply();
       
        dco.addRequest(new CloseWindowRequest(this));
        for (Permission permission : modulePermissionPanel.getPermissions())
            dco.addChild(permission);
       
        for (Permission permission : pluginPermissionPanel.getPermissions())
          dco.addChild(permission);
View Full Code Here


                            currentLoan.setValue(Loan._D_OBJECTID, o.getID());
                            currentLoan.setValue(Loan._B_ENDDATE, endDate);
                            currentLoan.setValue(Loan._E_DUEDATE, null);
                           
                            if (owner != null && i == objects.size()  - 1) // last item
                                currentLoan.addRequest(new CloseWindowRequest(owner));
                            else if (owner == null)
                                setLoanInformation(currentLoan);
                           
                            dco.setLoanInformation(currentLoan);
View Full Code Here

                        currentLoan.setValue(Loan._A_STARTDATE, startDate);
                        currentLoan.setValue(Loan._C_CONTACTPERSONID, contactPersonID);
                        currentLoan.setValue(Loan._E_DUEDATE, dueDate);
                       
                        if (owner != null && i == objects.size() - 1) // last item
                            currentLoan.addRequest(new CloseWindowRequest(owner));
                        else if (owner == null)
                            setLoanInformation(currentLoan);                       
       
                        o.setLoanInformation(currentLoan);
                       
View Full Code Here

        }
    }

    protected void deleteItem() {
        if (DcSwingUtilities.displayQuestion("msgDeleteQuestion")) {
            dco.addRequest(new CloseWindowRequest(this));
            try {
                dco.delete(true);
            } catch (ValidationException e) {
                DcSwingUtilities.displayWarningMessage(e.getMessage());
            }
View Full Code Here

        DcModules.get(moduleIdx).getOnlineServices().getUI(dco, this, true).setVisible(true);
    }
   
    protected void saveValues() {
        apply();
        dco.addRequest(new CloseWindowRequest(this));
        try {
            if (!update) {
                dco.setIDs();
                dco.saveNew(listener == null);
               
View Full Code Here

    }
   
    @Override
    protected void saveValues() {
        apply();
        dco.addRequest(new CloseWindowRequest(this));
       
        if (!update)  {
            try {
                dco.addRequest(new RefreshChildView(childForm));
                dco.saveNew(true);
View Full Code Here

     * Deletes this item from the database
     */
    @Override
    protected void deleteItem() {
        if (DcSwingUtilities.displayQuestion("msgDeleteQuestion")) {
            dco.addRequest(new CloseWindowRequest(this));
            dco.addRequest(new RefreshChildView(childForm));
           
            try {
                dco.delete(false);
            } catch (ValidationException e) {}
View Full Code Here

        apply();
       
        if (parent != null)
            dco.addRequest(new RefreshSimpleViewRequest(parent));
       
        dco.addRequest(new CloseWindowRequest(this));
       
        if (!update)  {
            try {
                dco.saveNew(true);
            } catch (ValidationException vExp) {
View Full Code Here

     * Deletes this item from the database
     */
    @Override
    protected void deleteItem() {
        if (DcSwingUtilities.displayQuestion("msgDeleteQuestion")) {
            dco.addRequest(new CloseWindowRequest(this));
           
            if (parent != null)
                dco.addRequest(new RefreshSimpleViewRequest(parent));
           
            try {
View Full Code Here

        if (((DcTemplate) dco).isDefault())
            dco.addRequest(new UpdateDefaultTemplate((String) dco.getValue(50), dco.getModule().getIndex()));

        dco.addRequest(new RefreshSimpleViewRequest(parent));
        dco.addRequest(new CloseWindowRequest(this));
       
        if (!update)  {
            try {
                dco.saveNew(true);
            } catch (ValidationException vExp) {
View Full Code Here

TOP

Related Classes of net.datacrow.core.wf.requests.CloseWindowRequest$WindowCloser

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.