コード例 #1
0
 private void updateTotals() {
   if (MGWT.getFormFactor().isDesktop()) {
     txtBudget.setValue(getAmountFormat().format(project.budgeted().getTotal()));
     txtActual.setValue(getAmountFormat().format(project.actual().getTotal()));
     txtPaid.setValue(getAmountFormat().format(project.paid().getTotal()));
     txtBalance.setValue(getAmountFormat().format(project.balance().getTotal()));
     txtPercent.setValue(getPercentFormat().format(project.percent()));
   }
 }
コード例 #2
0
 private String resolveReportParamString() {
   StringBuilder builder = new StringBuilder();
   builder.append(REPORT_SERVICE + "?" + REPORT_TYPE + "=" + detailed_project_report_excel);
   builder.append("&" + EXCEL_PROJECT_ID + "=" + project.getId());
   return builder.toString();
 }