=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/reportexcel/excelitem/ExcelItemGroup.java' --- dhis-2/dhis-api/src/main/java/org/hisp/dhis/reportexcel/excelitem/ExcelItemGroup.java 2010-02-23 04:26:05 +0000 +++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/reportexcel/excelitem/ExcelItemGroup.java 2010-03-08 04:35:44 +0000 @@ -229,7 +229,7 @@ public boolean rowAndColumnIsExist( int sheet, int row, int column ) { - return getExcelItemBySheetRowColumn( sheet, row, column ) != null; + return getExcelItemBySheetRowColumn( sheet, row, column ) != null; } public ExcelItem getExcelItemByName( String name ) === modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/reportexcel/excelitem/ExcelItemService.java' --- dhis-2/dhis-api/src/main/java/org/hisp/dhis/reportexcel/excelitem/ExcelItemService.java 2009-11-23 17:43:36 +0000 +++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/reportexcel/excelitem/ExcelItemService.java 2010-03-08 04:35:44 +0000 @@ -24,7 +24,7 @@ public ExcelItemGroup getExcelItemGroup( int id ); - public Collection getExcelItemGroupsByOrganisationUnit( OrganisationUnit organisationUnit ); + public Collection getExcelItemGroups( OrganisationUnit organisationUnit ); // ---------------------------------------------------------------------------- // Excelitem services === modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/reportexcel/excelitem/ExcelItemStore.java' --- dhis-2/dhis-api/src/main/java/org/hisp/dhis/reportexcel/excelitem/ExcelItemStore.java 2009-11-23 17:43:36 +0000 +++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/reportexcel/excelitem/ExcelItemStore.java 2010-03-08 04:35:44 +0000 @@ -24,7 +24,7 @@ public ExcelItemGroup getExcelItemGroup( int id ); - public Collection getExcelItemGroupsByOrganisationUnit( OrganisationUnit organisationUnit ); + public Collection getExcelItemGroups( OrganisationUnit organisationUnit ); // ---------------------------------------------------------------------------- // Excelitem services === modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/UserAuthorityGroup.java' --- dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/UserAuthorityGroup.java 2010-02-25 03:10:07 +0000 +++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/user/UserAuthorityGroup.java 2010-03-08 04:35:44 +0000 @@ -56,7 +56,7 @@ private Set dataSets = new HashSet(); private Set reportExcels = new HashSet(); - + // ------------------------------------------------------------------------- // hashCode and equals // ------------------------------------------------------------------------- @@ -163,4 +163,5 @@ { this.reportExcels = reportExcels; } + } === modified file 'dhis-2/dhis-services/dhis-service-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/excelitem/DefaultExcelItemService.java' --- dhis-2/dhis-services/dhis-service-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/excelitem/DefaultExcelItemService.java 2010-02-25 12:09:35 +0000 +++ dhis-2/dhis-services/dhis-service-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/excelitem/DefaultExcelItemService.java 2010-03-08 04:35:44 +0000 @@ -87,10 +87,10 @@ excelItemStore.updateExcelItemGroup( excelItemGroup ); } - public Collection getExcelItemGroupsByOrganisationUnit( OrganisationUnit organisationUnit ) + public Collection getExcelItemGroups( OrganisationUnit organisationUnit ) { - return excelItemStore.getExcelItemGroupsByOrganisationUnit( organisationUnit ); + return excelItemStore.getExcelItemGroups( organisationUnit ); } // -------------------------------------- === modified file 'dhis-2/dhis-services/dhis-service-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/excelitem/hibernate/HibernateExcelItemStore.java' --- dhis-2/dhis-services/dhis-service-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/excelitem/hibernate/HibernateExcelItemStore.java 2010-02-25 12:09:35 +0000 +++ dhis-2/dhis-services/dhis-service-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/excelitem/hibernate/HibernateExcelItemStore.java 2010-03-08 04:35:44 +0000 @@ -13,6 +13,7 @@ import org.hisp.dhis.reportexcel.excelitem.ExcelItem; import org.hisp.dhis.reportexcel.excelitem.ExcelItemGroup; import org.hisp.dhis.reportexcel.excelitem.ExcelItemStore; +import org.hisp.dhis.user.User; /* * Copyright (c) 2004-2007, University of Oslo @@ -165,7 +166,7 @@ } @SuppressWarnings( "unchecked" ) - public Collection getExcelItemGroupsByOrganisationUnit( OrganisationUnit organisationUnit ) + public Collection getExcelItemGroups( OrganisationUnit organisationUnit ) { Session session = sessionFactory.getCurrentSession(); @@ -203,4 +204,5 @@ session.delete( getDataElementGroupOrder( id ) ); } + } === modified file 'dhis-2/dhis-services/dhis-service-excel-reporting/src/main/resources/org/hisp/dhis/reportexcel/excelitem/hibernate/ExcelItemGroup.hbm.xml' --- dhis-2/dhis-services/dhis-service-excel-reporting/src/main/resources/org/hisp/dhis/reportexcel/excelitem/hibernate/ExcelItemGroup.hbm.xml 2009-11-11 04:15:09 +0000 +++ dhis-2/dhis-services/dhis-service-excel-reporting/src/main/resources/org/hisp/dhis/reportexcel/excelitem/hibernate/ExcelItemGroup.hbm.xml 2010-03-08 04:35:44 +0000 @@ -15,7 +15,8 @@ + lazy="false" column="periodtypeid" not-null="true" + foreign-key="fk_excelitemgroup_periodtypeid" /> === modified file 'dhis-2/dhis-services/dhis-service-user-hibernate/src/main/resources/org/hisp/dhis/user/hibernate/UserAuthorityGroup.hbm.xml' --- dhis-2/dhis-services/dhis-service-user-hibernate/src/main/resources/org/hisp/dhis/user/hibernate/UserAuthorityGroup.hbm.xml 2009-09-26 09:41:54 +0000 +++ dhis-2/dhis-services/dhis-service-user-hibernate/src/main/resources/org/hisp/dhis/user/hibernate/UserAuthorityGroup.hbm.xml 2010-03-08 04:35:44 +0000 @@ -38,6 +38,6 @@ - + === modified file 'dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/DatabaseAutomaticAccessProvider.java' --- dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/DatabaseAutomaticAccessProvider.java 2010-03-04 20:36:59 +0000 +++ dhis-2/dhis-web/dhis-web-commons/src/main/java/org/hisp/dhis/security/DatabaseAutomaticAccessProvider.java 2010-03-08 04:35:44 +0000 @@ -74,7 +74,7 @@ userStore.addUser( user ); UserAuthorityGroup userAuthorityGroup = new UserAuthorityGroup(); - userAuthorityGroup.setName( "ALL" ); + userAuthorityGroup.setName( "Superuser" ); userAuthorityGroup.setAuthorities( new HashSet( getAuthorities() ) ); === modified file 'dhis-2/dhis-web/dhis-web-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/importing/action/GetImportingParamsAction.java' --- dhis-2/dhis-web/dhis-web-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/importing/action/GetImportingParamsAction.java 2010-03-06 15:36:08 +0000 +++ dhis-2/dhis-web/dhis-web-excel-reporting/src/main/java/org/hisp/dhis/reportexcel/importing/action/GetImportingParamsAction.java 2010-03-08 04:35:44 +0000 @@ -29,8 +29,6 @@ import java.io.File; import java.util.ArrayList; -import java.util.Collection; -import java.util.Collections; import java.util.List; import org.hisp.dhis.organisationunit.OrganisationUnit; @@ -38,9 +36,7 @@ import org.hisp.dhis.reportexcel.action.ActionSupport; import org.hisp.dhis.reportexcel.excelitem.ExcelItemGroup; import org.hisp.dhis.reportexcel.excelitem.ExcelItemService; -import org.hisp.dhis.reportexcel.excelitem.comparator.ExcelItemGroupComparator; import org.hisp.dhis.reportexcel.state.SelectionManager; -import org.hisp.dhis.user.CurrentUserService; /** * @author Chau Thu Tran @@ -60,8 +56,6 @@ private SelectionManager selectionManager; - private CurrentUserService currentUserService; - // ------------------------------------------------------------------------- // Inputs && Outputs // ------------------------------------------------------------------------- @@ -79,11 +73,6 @@ this.selectionManager = selectionManager; } - public void setCurrentUserService( CurrentUserService currentUserService ) - { - this.currentUserService = currentUserService; - } - public void setExcelItemService( ExcelItemService excelItemService ) { @@ -91,6 +80,11 @@ } + public List getExcelItemGroups() + { + return excelItemGroups; + } + public void setOrganisationUnitSelectionManager( OrganisationUnitSelectionManager organisationUnitSelectionManager ) { this.organisationUnitSelectionManager = organisationUnitSelectionManager; @@ -104,6 +98,11 @@ private File fileExcel; + public void setFileExcel( File fileExcel ) + { + this.fileExcel = fileExcel; + } + public File getFileExcel() { return fileExcel; @@ -145,7 +144,7 @@ // Load and sort ExcelItemGroups // --------------------------------------------------------------------- - //excelItemGroups = new ArrayList( excelItemService.getExcelItemGroups( organisationUnit ) ); + excelItemGroups = new ArrayList( excelItemService.getExcelItemGroups( organisationUnit ) ); return SUCCESS; } === modified file 'dhis-2/dhis-web/dhis-web-excel-reporting/src/main/resources/struts.xml' --- dhis-2/dhis-web/dhis-web-excel-reporting/src/main/resources/struts.xml 2010-03-05 08:27:33 +0000 +++ dhis-2/dhis-web/dhis-web-excel-reporting/src/main/resources/struts.xml 2010-03-08 04:35:44 +0000 @@ -1052,6 +1052,8 @@ /dhis-web-excel-reporting/responseSuccess.vm /dhis-web-excel-reporting/responseError.vm + + /dhis-web-excel-reporting/responseSuccess.vm $i18n.getString( "upload_file" ) $i18n.getString( "success" )
$fileExcel.getName() - #end - + +

$i18n.getString('import_data')

@@ -14,7 +14,7 @@ @@ -64,7 +64,6 @@
$i18n.getString( 'select_excel_file' ) - +
-