EAS_编辑页面有修改不提示
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;
// }
boolean isOnlineOA = OARequestUtil.isOnlineCompany(currentCompany.getId().toString(), EasOAConstant.BosType_CasPaymentBill);
BillStatusEnum billStatus = this.editData.getBillStatus();
if (isOnlineOA && billStatus == BillStatusEnum.AUDITED) {//已审批的单子关闭窗口时候,不校验弹出提示数据是否更改
return true;
}else{
return super.checkBeforeWindowClosing();
}
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;
}
主要是通过 checkBeforeWindowClosing() 这个方法,通过返回值来判断是否有更改
linux下的docker操作命令及异常
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· winform 绘制太阳,地球,月球 运作规律
· 超详细:普通电脑也行Windows部署deepseek R1训练数据并当服务器共享给他人
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· AI 智能体引爆开源社区「GitHub 热点速览」
· 写一个简单的SQL生成工具