Exemplo n.º 1
0
  // 添加自定义按钮
  public void initPrivateButton() {
    ButtonVO btnvo = new ButtonVO();
    btnvo.setBtnNo(HgPuBtnConst.FREEZE);
    btnvo.setBtnName("冻结");
    btnvo.setBtnChinaName("冻结");
    btnvo.setBtnCode(null); // code最好设置为空
    btnvo.setOperateStatus(new int[] {IBillOperate.OP_NOTEDIT});
    addPrivateButton(btnvo);

    ButtonVO btnvo1 = new ButtonVO();
    btnvo1.setBtnNo(HgPuBtnConst.UNFREEZE);
    btnvo1.setBtnName("解冻");
    btnvo1.setBtnChinaName("解冻");
    btnvo1.setBtnCode(null); // code最好设置为空
    btnvo1.setOperateStatus(new int[] {IBillOperate.OP_NOTEDIT});
    addPrivateButton(btnvo1);

    ButtonVO btnvo2 = new ButtonVO();
    btnvo2.setBtnNo(HgPuBtnConst.VIEW);
    btnvo2.setBtnName("查看");
    btnvo2.setBtnChinaName("查看");
    btnvo2.setBtnCode(null); // code最好设置为空
    btnvo2.setOperateStatus(new int[] {IBillOperate.OP_NOTEDIT});
    addPrivateButton(btnvo2);
    super.initPrivateButton();
  }
Exemplo n.º 2
0
  public ButtonVO getButtonVO() {
    ButtonVO btnVo = new ButtonVO();
    btnVo.setBtnChinaName("全消");
    btnVo.setBtnName(
        nc.ui.ml.NCLangRes.getInstance().getStrByID("36201005", "UPP36201005-000030") /*
																									 * @res
																									 * "全消"
																									 */);
    btnVo.setHintStr(
        nc.ui.ml.NCLangRes.getInstance().getStrByID("36201005", "UPP36201005-000030") /*
																									 * @res
																									 * "全消"
																									 */);
    btnVo.setBtnCode("CANCELSELECT");
    btnVo.setBtnNo(IFBMButton.FBM_CANCELSELECT);
    btnVo.setOperateStatus(new int[] {IBillOperate.OP_NOTEDIT});
    btnVo.setModifiers(Event.CTRL_MASK);
    btnVo.setHotKey("N");
    btnVo.setDisplayHotKey("(Ctrl+N)");
    return btnVo;
  }