EAS BOS MsgBox使用大全

EAS   BOS 开发程中,不管是调试还是 系统 逻辑提示,都会使用到信息提示、信息确认框,但在网上找不到比较全面的Messagebox使用说明;对于内部开发员来说,相当的不便,我用了一天的时间试了MsgBox的用法,由于没法上传图片,所以每个 函数 的结果就略了;如对其他人有帮助,那花时间整也是值得的,如需更详的情况发邮件给我 EvensQiu@Gmail.com
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)


转载:http://dev.kingdee.com/bbs/viewthread.php?tid=2204&extra=page%3D1

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值