Beispiel #1
0
  @SuppressWarnings("unused")
  private void getWebsitInfo() {
    BaseCommand distractQuery =
        ClientSession.getInstance().getCmdFactory().getDistractQuery(); // 网点ID,此处暂时设置为1,为玉桥路网点

    mExecuter.execute(distractQuery, mDistractQueryRespHandler);

    dialogUtils.showProgress();
  }
Beispiel #2
0
  /**
   * 建立常用地址
   *
   * @param detailAddress
   * @param id
   */
  private void addressCreate(String detailAddress, long pos) {
    long distractId = websitListData.get((int) pos).getDistractId();
    long customerId = mLocalSharePref.getUserId();

    newAddressInfo = new AddressData();
    newAddressInfo.setAddressDetail(detailAddress);
    newAddressInfo.setDistractId(distractId);
    newAddressInfo.setCustomerId(customerId);
    newAddressInfo.setBranchName(websitListData.get((int) pos).getBranchName());
    BaseCommand addressCreate =
        ClientSession.getInstance()
            .getCmdFactory()
            .getAddressCreate(distractId, detailAddress, customerId); // 网点ID,此处暂时设置为1,为玉桥路网点

    mExecuter.execute(addressCreate, mAddressCreateRespHandler);

    dialogUtils.showProgress();
  }
Beispiel #3
0
  private void placeOrder(FeeData feeData) {
    BaseCommand carRegister =
        ClientSession.getInstance()
            .getCmdFactory()
            .getPlaceOrder(
                mLocalSharePref.getUserId(),
                feeData.getFeeType(),
                mLocalSharePref.getUserName(),
                0,
                0,
                0,
                "00",
                null,
                null,
                feeData.getFeeTypeMi(),
                feeData.getFee(),
                1);

    mExecuter.execute(carRegister, mPlaceOrderRespHandler);

    dialogUtils.showProgress();
  }
Beispiel #4
0
  /** 查询费用 */
  public void rateQuery() {
    BaseCommand login = ClientSession.getInstance().getCmdFactory().getRateQuery();

    mExecuter.execute(login, mRespHandler);
    dialogUtils.showProgress();
  }