zoukankan      html  css  js  c++  java
  • eas之去掉关闭eas页面时校验是否修改的提示

    EditUI------->
    public boolean checkBeforeWindowClosing() {
               boolean b = super.checkBeforeWindowClosing();
               if ((this.editData != null) && (this.editData.getId() != null)) {
                    attachmentPerform(this.attachMentTempID, this.editData.getId()
                               .toString());
               }
               if (!(b)) {
                    return b;
               }
               if (isModify()) {
                    String message = null;
                    if (!(isModifySave())) {
                         message = EASResource
                                    .getString("com.kingdee.eas.framework.FrameWorkResource.Confirm_Save_Exit");
                    } else {
                         message = EASResource
                                    .getString("com.kingdee.eas.framework.FrameWorkResource.Confirm_Save_Exit");
                    }
                    int result = MsgBox.showConfirm3(this, message);
                    if (result == 0) {
                         try {
                               if ((!(isModifySave())) || (!(this.actionSave.isEnabled()))) {
                                    this.actionSubmit.setDaemonRun(false);
                                    ActionEvent event = new ActionEvent(this.btnSubmit,
                                               1001, this.btnSubmit.getActionCommand());
                                    UtilRequest.setPrepare(false);
                                    this.btnSubmit.getAction().actionPerformed(event);
                                    return (!(this.actionSubmit.isInvokeFailed()));
                               }
                               this.actionSave.setDaemonRun(false);
                               ActionEvent event = new ActionEvent(this.btnSave, 1001,
                                         this.btnSave.getActionCommand());
                               UtilRequest.setPrepare(false);
                               this.btnSave.getAction().actionPerformed(event);
                               return (!(this.actionSave.isInvokeFailed()));
                         } catch (Exception exc) {
                               return false;
                         }
                    }
                    return (result == 1);
               }
               return true;
         }   
    承接钉钉定制;网站服务定制; 联系qq:1655119603
  • 相关阅读:
    从数据库表导出为excel表格
    特别好用的eclipse快捷键
    Oracle安装后出现的问题
    Linux系统(X32)安装Oracle11g完整安装图文教程另附基本操作
    Java导出引用jar包的文件
    poi读取、通过poi导出数据库的记录到excl表
    Oracle数据库体系结构(7) 表空间管理1
    Oracle数据库体系结构(6)数据库归档重做日志文件管理
    5 重做日志文件
    Oracle数据库体系结构(4)oracle控制文件
  • 原文地址:https://www.cnblogs.com/luojiabao/p/10963570.html
Copyright © 2011-2022 走看看