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; }
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; }
public ButtonVO getButtonVO() { ButtonVO btnVo = new ButtonVO(); btnVo.setBtnNo(121); btnVo.setBtnCode("tpzd"); btnVo.setBtnName("手动拣货"); btnVo.setBtnChinaName("手动拣货"); btnVo.setChildAry(new int[] {}); return btnVo; }
public ButtonVO getButtonVO() { ButtonVO btnVo = new ButtonVO(); btnVo.setBtnNo(108); btnVo.setBtnCode("CfOpen"); btnVo.setBtnName("解封车辆"); btnVo.setBtnChinaName("解封车辆"); btnVo.setChildAry(new int[] {}); return btnVo; }
/** 注册自定义按钮 */ protected void initPrivateButton() { int[] listButns = getUIControl().getListButtonAry(); boolean hasCommit = false; boolean hasAudit = false; boolean hasCancelAudit = false; for (int i = 0; i < listButns.length; i++) { if (listButns[i] == nc.ui.trade.button.IBillButton.Commit) hasCommit = true; if (listButns[i] == nc.ui.trade.button.IBillButton.Audit) hasAudit = true; if (listButns[i] == nc.ui.trade.button.IBillButton.CancelAudit) hasCancelAudit = true; } int[] cardButns = getUIControl().getCardButtonAry(); for (int i = 0; i < cardButns.length; i++) { if (cardButns[i] == nc.ui.trade.button.IBillButton.Commit) hasCommit = true; if (cardButns[i] == nc.ui.trade.button.IBillButton.Audit) hasAudit = true; if (cardButns[i] == nc.ui.trade.button.IBillButton.CancelAudit) hasCancelAudit = true; } if (hasCommit) { ButtonVO btnVo = nc.ui.trade.button.ButtonVOFactory.getInstance() .build(nc.ui.trade.button.IBillButton.Commit); btnVo.setBtnCode(null); addPrivateButton(btnVo); } if (hasAudit) { ButtonVO btnVo2 = nc.ui.trade.button.ButtonVOFactory.getInstance() .build(nc.ui.trade.button.IBillButton.Audit); btnVo2.setBtnCode(null); addPrivateButton(btnVo2); } if (hasCancelAudit) { ButtonVO btnVo3 = nc.ui.trade.button.ButtonVOFactory.getInstance() .build(nc.ui.trade.button.IBillButton.CancelAudit); btnVo3.setBtnCode(null); addPrivateButton(btnVo3); } }
// 添加自定义按钮 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(); }