コード例 #1
0
  private void sendQuotation() {
    CommonProgressDialog.getInstance()
        .showCancelableProgressDialog(getActivity(), getString(R.string.message_sent_loading));
    // 是滞存在附件
    if (!Utils.isEmpty(sendData.mFilePath)) {

      RequestCenter.uploadFile(uploadListener, sendData.mFilePath, "quotationAttachment");
    } else {
      if (isEdit) {
        RequestCenter.modifyQuotation(sendData, sendListener);
      } else {
        RequestCenter.sendQuotation(sendData, quoteSource, quotationid, sendListener);
      }
    }
  }