16,38 → 16,21 |
String importYear = request.getParameter("importYear"); |
|
|
if(importYear == null) |
if(importYear == null || importYear.length()==0) |
{ |
CourseUnitView view = (CourseUnitView) request.getAttribute("CourseUnitView"); |
if(view == null) |
importYear = DaoFactory.getConfigurationDaoImpl().getInterfaceImportYearCreateTransaction(); |
{ |
// importYear = DaoFactory.getConfigurationDaoImpl().getInterfaceImportYearCreateTransaction(); |
} |
else |
{ |
importYear = view.getImportYear(); |
} |
} |
|
|
IServiceManager sm = ServiceManager.getInstance(); |
String[] names = new String[]{}; |
Object[] args = new Object[]{importYear}; |
List<DeleteCourseUnitService.CourseUnitContentsInfo> courseUnitContentsInfos = (List<DeleteCourseUnitService.CourseUnitContentsInfo>) sm.execute(RequestUtils.getRequester(request, response), "LoadCandidatesDeleteCourseUnitService", args, names); |
request.setAttribute("CourseUnitContentsInfos", courseUnitContentsInfos); |
|
%> |
|
<style> |
.modal-dialog{ |
position: absolute; |
left: 0; |
//now you must set a margin left under zero - value is a half width your window |
} |
</style> |
|
|
|
<div class="container"> |
|
<div class="row"> |
|
<div class="col-sm-12 col-md-6"> |
59,6 → 42,7 |
<div class="form-group"> |
<label for="importYear"><bean:message key="courseunit.importYear"/></label> |
<select name="importYear" id="importYear" class="form-control" onchange="this.form.submit()"> |
<option value="">Escolha Ano</option> |
<% |
List<String> years = DatesUtils.getImportYears(10); |
for(String year: years) |
77,7 → 61,37 |
</div> |
</div> |
</div> |
<% |
|
if(importYear == null) |
{ |
|
} |
else |
{ |
|
IServiceManager sm = ServiceManager.getInstance(); |
String[] names = new String[]{}; |
Object[] args = new Object[]{importYear}; |
List<DeleteCourseUnitService.CourseUnitContentsInfo> courseUnitContentsInfos = (List<DeleteCourseUnitService.CourseUnitContentsInfo>) sm.execute(RequestUtils.getRequester(request, response), "LoadCandidatesDeleteCourseUnitService", args, names); |
request.setAttribute("CourseUnitContentsInfos", courseUnitContentsInfos); |
|
%> |
|
<style> |
.modal-dialog{ |
position: absolute; |
left: 0; |
//now you must set a margin left under zero - value is a half width your window |
} |
</style> |
|
|
|
|
|
|
|
<script> |
$(document).ready(function(){ |
$('.deleteModal').on('show.bs.modal', function(e) { |
211,4 → 225,8 |
</div> |
</div> |
</div> |
|
<% |
} |
%> |
</div> |