EAS Bos MsgBox使用大全

栏目:eas cloud知识作者:金蝶来源:金蝶云社区发布:2024-09-16浏览:1

EAS Bos MsgBox使用大全

常用的信息提示、信息确认框

1.showInfo(String info)           
showInfo("showInfo方式提示信息");
2.showInfo(Component comp, String info)
showInfo(this,"showInfo方式提示信息");
3.showWarning(String warning)
4.showWarning(Component comp, String warning)           
showWarning(this,"showWarning方式提示信息");
5.showError(Component comp, String error)
showError(this,"showError错误提示");
6.showError(String error, String errorDetail)
注: errorDetail好像是没有用到,即使有传值,在提示框中也没有反应
com.kingdee.eas.util.client.MsgBox.showError("系统功能发生严重错误 ","");
7.showError(Component comp, String error, String errorDetail)
com.kingdee.eas.util.client.MsgBox.showError("系统功能发生严重错误 ","");
8.showDetailAndOK(Component comp, String error, String errorDetail, int msgType)
注:参数msgType好像没有用到,可以传任意值
com.kingdee.eas.util.client.MsgBox.showDetailAndOK(this,"错误/信息","错误或信息明细",0);
9.int showConfirm2(Component comp, String msg)
注:点[确认]返回:0
        点[取消]返回:2
sample:
com.kingdee.eas.util.client.MsgBox.showConfirm2(this,"确定.... ");
10.int showConfirm2(String msg)
11.int showConfirm2New(Component comp, String msg)
sample:
注:点[是]返回:0
        点[否]返回:1
com.kingdee.eas.util.client.MsgBox.showConfirm2New(this,"确认新增?");
12. int showConfirm3(Component comp, String msg)
注:[是]返回:0
      [否]返回:1
       [取消]返回:2
sample:
com.kingdee.eas.util.client.MsgBox.showConfirm3(this,"确认操作....?");
13. int showConfirm3(Component comp, String msg, String detail)
注:[是]返回:0
      [否]返回:1
sample:
com.kingdee.eas.util.client.MsgBox.showConfirm3(this,"showConfirm3.....","操作说明.....");
14.showConfirm3a(Component comp, String msg, String detail)
注:[确认]返回:0
      [取消]返回:2
sample:
com.kingdee.eas.util.client.MsgBox.showConfirm3a(this,"操作....","操作说明.....");
15.int showConfirm4a(Component comp, String msg, String detail)
返回 :[是]  0
           [否] 1
          [取消] 2
Sample:
com.kingdee.eas.util.client.MsgBox.showConfirm4a(this,"操作....","操作说明.....");

16. int showConnectionError()
17. int showConnectionError(String msg)
18. int showConnectionError(Component comp)
19. int showConnectionError(Component comp, String msg)


如何代码关闭MsgBox 窗口

EAS Bos MsgBox使用大全

常用的信息提示、信息确认框1.showInfo(String info) showInfo("showInfo方式提示信息");2.showInfo(Component comp, Stri...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息