Пример #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();
  }
Пример #2
0
  public ButtonVO getButtonVO() {
    ButtonVO btnVo = new ButtonVO();
    btnVo.setBtnNo(121);
    btnVo.setBtnCode("tpzd");
    btnVo.setBtnName("手动拣货");
    btnVo.setBtnChinaName("手动拣货");

    btnVo.setChildAry(new int[] {});

    return btnVo;
  }
Пример #3
0
  public ButtonVO getButtonVO() {
    ButtonVO btnVo = new ButtonVO();
    btnVo.setBtnNo(108);
    btnVo.setBtnCode("CfOpen");
    btnVo.setBtnName("解封车辆");
    btnVo.setBtnChinaName("解封车辆");

    btnVo.setChildAry(new int[] {});

    return btnVo;
  }
  public ButtonVO getButtonVO() {
    ButtonVO bvo = new ButtonVO();
    bvo.setBtnNo(IFBMButton.Discount_Calculate);
    bvo.setBtnChinaName("лЫожйткЦ");
    bvo.setBtnCode("DISCOUNT");
    bvo.setBtnName(
        nc.ui.ml.NCLangRes.getInstance()
            .getStrByID("fbmcomm", "UPPFBMComm-000012") /* @res"лЫожйткЦ"*/);
    bvo.setHintStr(
        nc.ui.ml.NCLangRes.getInstance()
            .getStrByID("fbmcomm", "UPPFBMComm-000012") /* @res"лЫожйткЦ"*/);
    bvo.setHotKey("D");
    bvo.setDisplayHotKey("(Shift+D)");
    bvo.setModifiers(Event.SHIFT_MASK);
    //        bvo.setOperateStatus(new int[]{IBillOperate.OP_NOTEDIT,IBillOperate.OP_INIT});
    //        bvo.setBusinessStatus(new int[]{IFBMStatus.Transact});

    return bvo;
  }
Пример #5
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;
  }