Rev 1927 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1927 | Rev 1935 | ||
---|---|---|---|
Line 91... | Line 91... | ||
91 | ); |
91 | ); |
92 | } |
92 | } |
93 | </script> |
93 | </script> |
94 | 94 | ||
95 | <% |
95 | <% |
- | 96 | //Falta Chamar Serviço |
|
- | 97 | ||
96 | 98 | ||
97 | String courseCode = request.getParameter("courseCode"); |
99 | String courseCode = request.getParameter("courseCode"); |
98 | String year = request.getParameter("year"); |
100 | String year = request.getParameter("year"); |
99 | AbstractDao.getCurrentSession().beginTransaction(); |
101 | AbstractDao.getCurrentSession().beginTransaction(); |
100 | CourseImpl courseImpl = DaoFactory.getCourseDaoImpl().findCourseByCode(courseCode); |
102 | CourseImpl courseImpl = DaoFactory.getCourseDaoImpl().findCourseByCode(courseCode); |
Line 312... | Line 314... | ||
312 | function(){} |
314 | function(){} |
313 | ); |
315 | ); |
314 | } |
316 | } |
315 | } |
317 | } |
316 | 318 | ||
- | 319 | $scope.Save = function () { |
|
- | 320 | widgetCallWithActionParameters( |
|
- | 321 | "<%=request.getContextPath()%>/user/courseReport.do", |
|
- | 322 | "SaveCourseReportDocument", |
|
- | 323 | { |
|
- | 324 | "courseReportDocument":BacoJS.stringifyOrdered($scope.report) |
|
- | 325 | }, |
|
- | 326 | "#courseReportApp", |
|
- | 327 | function(json) |
|
- | 328 | { |
|
- | 329 | alert(BacoJS.stringifyOrdered(json)); |
|
- | 330 | }, |
|
- | 331 | function(){} |
|
- | 332 | ); |
|
317 | 333 | } |
|
318 | 334 | ||
319 | 335 | ||
320 | }); |
336 | }); |
321 | </script> |
337 | </script> |
322 | 338 | ||
323 | <!--TEMPLATES FOR DOCUMENT BUILDER--> |
339 | <!--TEMPLATES FOR DOCUMENT BUILDER--> |
324 | <jsp:include page="../utils/documentsBuilder.jsp"/> |
340 | <jsp:include page="../utils/documentsBuilder.jsp"/> |
325 | <jsp:include page="coursereport/templates.jsp"/> |
341 | <jsp:include page="coursereport/templates.jsp"/> |
326 | 342 | ||
- | 343 | ||
327 | <div class="form-vertical"> |
344 | <div class="form-vertical"> |
328 | <div id="courseReportApp" ng-app="courseReportApp" ng-controller="courseReportAppController"> |
345 | <div id="courseReportApp" ng-app="courseReportApp" ng-controller="courseReportAppController"> |
329 | - | ||
- | 346 | <div class="web-messages"> </div> |
|
- | 347 | <button ng-click="Save()">Click me</button> |
|
330 | <div ng-init="section=report;" ng-include="'pt_estgp_estgweb_utils_documentBuilder_DocumentSection'"> |
348 | <div ng-init="section=report;" ng-include="'pt_estgp_estgweb_utils_documentBuilder_DocumentSection'"> |
331 | 349 | ||
332 | </div> |
350 | </div> |
333 | 351 | ||
334 | <!-- <pre class="code">{{ report | json }}</pre>--> |
352 | <!-- <pre class="code">{{ report | json }}</pre>--> |
Line 344... | Line 362... | ||
344 | 362 | ||
345 | </div><!--container-fluid--> |
363 | </div><!--container-fluid--> |
346 | 364 | ||
347 | <% |
365 | <% |
348 | AbstractDao.getCurrentSession().getTransaction().commit(); |
366 | AbstractDao.getCurrentSession().getTransaction().commit(); |
349 | %> |
- | |
350 | 367 | %> |
|
- | 368 |