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
  • 相关阅读:
    【转】Android——设置颜色的三种方法
    Eclipse Android安装APP时覆盖安装问题
    自定义数组,实现输出改数组的长度、最大值和最小值
    用程序实现对数组a[45,96,78,6,18,66,50]中的元素进行排序
    PHP面试题2
    PHP面试题
    gulp
    移动端base.css
    笔记
    mouseover和mouseout事件在鼠标经过子元素时也会触发
  • 原文地址:https://www.cnblogs.com/luojiabao/p/10963570.html
Copyright © 2011-2022 走看看