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
  • 相关阅读:
    [Java多线程]-并发,并行,synchonrized同步的用法
    [大数据可视化]-saiku的源码打包运行/二次开发构建
    [大数据可视化]-saiku的源码包Bulid常见问题和jar包
    [Java多线程]-线程池的基本使用和部分源码解析(创建,执行原理)
    [机器学习]-PCA数据降维:从代码到原理的深入解析
    [Java多线程]-Thread和Runable源码解析之基本方法的运用实例
    [Java多线程]-学习多线程需要来了解哪些东西?(concurrent并发包的数据结构和线程池,Locks锁,Atomic原子类)
    [Java多线程]-Thread和Runable源码解析
    [机器学习]-Adaboost提升算法从原理到实践
    月是故乡明
  • 原文地址:https://www.cnblogs.com/luojiabao/p/10963570.html
Copyright © 2011-2022 走看看