Subversion Repositories bacoAlunos

Compare Revisions

Ignore whitespace Rev 1895 → Rev 1904

/branches/grupo3/impl/src/java/pt/estgp/estgweb/services/courses/CourseReportServices.java
449,10 → 449,22
}
 
 
/* AA 7/12/2017 */
 
public String save(String reportDocumentJson,UserSession session) throws IOException {
 
CourseReportDocument reportDocument = CourseReportDocument.fromJson(reportDocumentJson);
 
DaoFactory.getCourseDaoImpl().findCourseByCode(reportDocument.getCourseCode());
 
 
 
return reportDocument.toJson();
}
 
 
 
 
/****************************************************************************/
/*
 
/branches/grupo3/impl/src/java/pt/estgp/estgweb/web/controllers/courses/CoursesController.java
696,8 → 696,4
return tJson;
}
 
 
 
 
 
}
/branches/grupo3/impl/src/java/pt/estgp/estgweb/web/controllers/courses/CoursesServicesController.java
43,4 → 43,21
}
 
 
/* AA 7/12/2017 */
 
public JSONObject saveReport(ActionForm form,HttpServletRequest request, HttpServletResponse response) throws Throwable {
 
String courseReportDocument = request.getParameter("courseReportDocument");
 
 
IServiceManager sm = ServiceManager.getInstance();
String json = (String) sm.execute(RequestUtils.getRequester(request, response),
"CourseReportSave",
new Object[]{courseReportDocument});
return new JSONObject(json);
}
 
 
 
 
}