void init() {
    String staffId = sessionManager.getSession().getStaffId();
    dispatch.execute(
        new StaffIntegralRequest(staffId),
        new AsyncCallback<StaffIntegralResponse>() {

          @Override
          public void onFailure(Throwable t) {
            win.alert(t.getMessage());
          }

          @Override
          public void onSuccess(StaffIntegralResponse resp) {
            display
                .getHistoryIntegral()
                .setText(StringUtil.subZeroAndDot(resp.getHistoryIntegral()));
            display
                .getConsumptionIntegral()
                .setText(StringUtil.subZeroAndDot(resp.getConsumptionIntegral()));
            display
                .getBalanceIntegral()
                .setText(StringUtil.subZeroAndDot(resp.getBalanceIntegral()));
          }
        });

    shopWindowPresenter.initShopWindow(1, 3);
    shopWindowPresenter.bind();
    display.setShopWindow(shopWindowPresenter.getDisplay().asWidget());
  }
  private void init() {
    dispatch.execute(
        new DetailsOfGiftRequest(orderVo.getGiftId()),
        new AsyncCallback<DetailsOfGiftResponse>() {
          @Override
          public void onFailure(Throwable e) {
            errorHandler.alert(e.getMessage());
          }

          @Override
          public void onSuccess(final DetailsOfGiftResponse response) {

            display.setGiftName(response.getGiftName());
            display.setGiftNo(response.getGiftNo().substring(response.getGiftNo().length() - 5));
            display.setBrand(response.getBrand());
            display.setType(response.getType());
            display.setStock(response.getStock());
            display.setIntegral(response.getIntegral());
            display.setSummary(response.getSummary());
            display.setExplains(response.getExplains());
            display.setNotes(response.getNotes());
            display.setDispatchcycle(response.getDispatchcycle());
            display.setBusiness(response.getBusiness());
            display.setServicetell(response.getServicetell());
            display.setGiftPhoto(response.getGiftPhoto());

            display
                .getPhotoImage()
                .addClickHandler(
                    new ClickHandler() {

                      @Override
                      public void onClick(ClickEvent event) {
                        win.alertImageStaff(response.getGiftPhoto());
                      }
                    });
          }
        });
    display
        .getExchangeBtn()
        .addClickHandler(
            new ClickHandler() {

              @Override
              public void onClick(ClickEvent event) {
                Platform.getInstance()
                    .getEditorRegistry()
                    .openEditor(
                        OrderConfirmationConstants.EDITOR_ORDERCONFIRMATION_SEARCH,
                        "EDITOR_ORDERCONFIRMATION_SEARCH_DO_ID",
                        new OrderConfirmationClient(orderVo.getGiftId()));
              }
            });
    shopWindowPresenter.initShopWindow(1, 4);
    shopWindowPresenter.bind();
    display.setShopWindow(shopWindowPresenter.getDisplay().asWidget());
  }