Subversion Repositories bacoAlunos

Compare Revisions

Ignore whitespace Rev 490 → Rev 491

/impl/src/java/pt/estgp/estgweb/services/sigesimports/ImportGradesService.java
217,7 → 217,10
*/
public static void main(String[] args) throws ServiceException
{
new ImportGradesService().run(DatesUtils.getImportYear());
String year = DatesUtils.getImportYear();
if(args != null && args.length > 0)
year = args[0];
new ImportGradesService().run(year);
}
 
 
/impl/src/java/pt/estgp/estgweb/services/sigesimports/ImportSumaries.java
178,7 → 178,10
*/
public static void main(String[] args) throws ServiceException
{
new ImportSumaries().run(DatesUtils.getImportYear());
String year = DatesUtils.getImportYear();
if(args != null && args.length > 0)
year = args[0];
new ImportSumaries().run(year);
}
 
 
/impl/src/java/pt/estgp/estgweb/services/sigesimports/ImportStudentsService.java
217,7 → 217,10
 
public static void main(String[] args) throws ServiceException
{
new ImportStudentsService().run(DatesUtils.getImportYear());
String year = DatesUtils.getImportYear();
if(args != null && args.length > 0)
year = args[0];
new ImportStudentsService().run(year);
}
}
 
/impl/src/java/pt/estgp/estgweb/services/sigesimports/ImportTeachersService.java
201,8 → 201,11
*/
public static void main(String[] args) throws ServiceException
{
String year = DatesUtils.getImportYear();
if(args != null && args.length > 0)
year = args[0];
AbstractDao.getCurrentSession().beginTransaction();
new ImportTeachersService().run(DatesUtils.getImportYear());
new ImportTeachersService().run(year);
AbstractDao.getCurrentSession().getTransaction().commit();
}
 
/impl/src/java/pt/estgp/estgweb/services/sigesimports/ImportCourseService.java
166,8 → 166,11
 
public static void main(String[] args) throws ServiceException
{
String year = DatesUtils.getImportYear();
if(args != null && args.length > 0)
year = args[0];
AbstractDao.getCurrentSession().beginTransaction();
new ImportCourseService().run(DatesUtils.getImportYear());
new ImportCourseService().run(year);
AbstractDao.getCurrentSession().getTransaction().commit();
}