zoukankan      html  css  js  c++  java
  • [转]EAS BOS MsgBox使用大全

    EAS BOS开发程中,不管是调试还是系统逻辑提示,都会使用到信息提示、信息确认框,但在网上找不到比较全面的Messagebox使用说明;对于内部开发员来说,相当的不便,我用了一天的时间试了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)

  • 相关阅读:
    C语言学习代码〈二〉
    C语言学习笔记<三 >
    C语言学习笔记<一 >
    C语言学习代码〈四〉
    C语言学习代码〈三〉
    C语言学习笔记<五>
    C语言学习笔记<四>
    C语言学习笔记<二 >
    C语言学习代码<一> .
    周末练习
  • 原文地址:https://www.cnblogs.com/oktell/p/10723629.html
Copyright © 2011-2022 走看看