Ejemplo n.º 1
0
  private void initExecuter() {

    mHandler = new Handler();

    mExecuter = new CommandExecuter();
    mExecuter.setHandler(mHandler);
  }
Ejemplo n.º 2
0
  @SuppressWarnings("unused")
  private void getWebsitInfo() {
    BaseCommand distractQuery =
        ClientSession.getInstance().getCmdFactory().getDistractQuery(); // 网点ID,此处暂时设置为1,为玉桥路网点

    mExecuter.execute(distractQuery, mDistractQueryRespHandler);

    dialogUtils.showProgress();
  }
Ejemplo n.º 3
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();
  }
Ejemplo n.º 4
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();
  }
Ejemplo n.º 5
0
  /** 查询费用 */
  public void rateQuery() {
    BaseCommand login = ClientSession.getInstance().getCmdFactory().getRateQuery();

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