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); } } }
@Override public void onSuccess(Object obj) { // TODO Auto-generated method stub MessageDetailUpLoadFile data = (MessageDetailUpLoadFile) obj; if ("0".equals(data.code)) { sendData.prodPhoto = data.content; LogUtil.e("error", "content:" + sendData.prodPhoto); // 进行下面的数据上传 if (isEdit) { RequestCenter.modifyQuotation(sendData, sendListener); } else { RequestCenter.sendQuotation(sendData, quoteSource, quotationid, sendListener); } } else { showError(data.err); } }