Advertisement
widana

base report

Oct 8th, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.98 KB | None | 0 0
  1.             Boolean isQueue = false;
  2.             if( isQueue ){
  3.                 JSONObject output = reportServerProvider.requestDownloadAsync(SalesHumanTask.DOWNLOAD_INQUIRY_SALES_XLS_JETT,
  4.                         reportName,
  5.                         fileName, "Report Inquiry Sales",
  6.                         input);
  7.                 JSONObject result = JSONObjectUtil.getResult(output);
  8.                  
  9.                 if( ServiceResult.isOk(output)    ){
  10.                     reportServerProvider.goToResultPage(
  11.                             result,
  12.                             FacesContext.getCurrentInstance() );
  13.                      
  14.                 } else{
  15.                     MessageHelper.displayError(result);
  16.                 }
  17.             } else {
  18.                 reportServerProvider.requestDownloadSync(SalesHumanTask.DOWNLOAD_INQUIRY_SALES_XLS_JETT,
  19.                         reportName,
  20.                         fileName, "Report Inquiry Sales",
  21.                         input,
  22.                         FacesContext.getCurrentInstance());
  23.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement