=== modified file 'local/in/dhis-in-services/dhis-in-service-reports/src/main/java/org/hisp/dhis/reports/DefaultReportService.java' --- local/in/dhis-in-services/dhis-in-service-reports/src/main/java/org/hisp/dhis/reports/DefaultReportService.java 2010-12-29 16:17:28 +0000 +++ local/in/dhis-in-services/dhis-in-service-reports/src/main/java/org/hisp/dhis/reports/DefaultReportService.java 2010-12-31 07:16:18 +0000 @@ -591,7 +591,7 @@ { Double aggregatedValue = aggregationService.getAggregatedDataValue( dataElement, optionCombo, startDate, endDate, organisationUnit ); - System.out.println( dataElement.getId() + " : " + optionCombo.getId() + " : " + startDate + " : " + endDate + " : " + organisationUnit + " : " + aggregatedValue); + //System.out.println( dataElement.getId() + " : " + optionCombo.getId() + " : " + startDate + " : " + endDate + " : " + organisationUnit + " : " + aggregatedValue); if ( aggregatedValue == null ) { replaceString = NULL_REPLACEMENT; === modified file 'local/in/dhis-web-reports-national/src/main/java/org/hisp/dhis/reports/meta/action/GenerateMetaDataReportAnalyserFormAction.java' --- local/in/dhis-web-reports-national/src/main/java/org/hisp/dhis/reports/meta/action/GenerateMetaDataReportAnalyserFormAction.java 2010-08-30 07:07:13 +0000 +++ local/in/dhis-web-reports-national/src/main/java/org/hisp/dhis/reports/meta/action/GenerateMetaDataReportAnalyserFormAction.java 2010-12-31 07:16:18 +0000 @@ -20,7 +20,6 @@ public class GenerateMetaDataReportAnalyserFormAction implements Action { - // ------------------------------------------------------------------------- // Dependencies // ------------------------------------------------------------------------- @@ -52,8 +51,6 @@ private String raFolderName; - int count; - // ------------------------------------------------------------------------- // Action implementation // ------------------------------------------------------------------------- @@ -67,8 +64,6 @@ reportNames = new ArrayList(); - count = 0; - getSelectedReportList( "metaDataReportsList.xml" ); return SUCCESS; @@ -89,15 +84,12 @@ } catch ( NullPointerException npe ) { - // do nothing, but we might be using this somewhere without - // USER_HOME set, which will throw a NPE + System.out.println("DHIS2_HOME is not set."); } String reportId = ""; String reportName = ""; - // int count = 0; - try { DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance(); @@ -121,7 +113,6 @@ reportIds.add( reportId ); reportNames.add( reportName ); - }// end of for loop with s var }// try block end catch ( SAXParseException err ) @@ -138,9 +129,6 @@ { t.printStackTrace(); } - }// getReportList end } - - === modified file 'local/in/dhis-web-reports-national/src/main/java/org/hisp/dhis/reports/meta/action/GenerateMetaDataReportResultAction.java' --- local/in/dhis-web-reports-national/src/main/java/org/hisp/dhis/reports/meta/action/GenerateMetaDataReportResultAction.java 2010-12-29 10:06:33 +0000 +++ local/in/dhis-web-reports-national/src/main/java/org/hisp/dhis/reports/meta/action/GenerateMetaDataReportResultAction.java 2010-12-31 07:16:18 +0000 @@ -53,10 +53,6 @@ import com.opensymphony.xwork2.Action; -// ------------------------------------------------------------------------- - -// ------------------------------------------------------------------------- - public class GenerateMetaDataReportResultAction implements Action { @@ -211,76 +207,55 @@ raFolderName = reportService.getRAFolderName(); + System.out.println( "Report Generation Start Time is : \t" + new Date() ); + if ( metaDataId.equalsIgnoreCase( ORGUNIT ) ) { - System.out.println( "Report Generation Start Time is : \t" + new Date() ); generateOrgUnitList(); - } else if ( metaDataId.equalsIgnoreCase( ORGUNITGRP ) ) { - System.out.println( "Report Generation Start Time is : \t" + new Date() ); generateOrgUnitGroupList(); - } else if ( metaDataId.equalsIgnoreCase( DATAELEMENT ) ) { - System.out.println( "Report Generation Start Time is : \t" + new Date() ); generateDataElementList(); - } else if ( metaDataId.equalsIgnoreCase( DATAELEMENTGRP ) ) { - System.out.println( "Report Generation Start Time is : \t" + new Date() ); generateDataElementGroupList(); - } else if ( metaDataId.equalsIgnoreCase( INDIACTOR ) ) { - System.out.println( "Report Generation Start Time is : \t" + new Date() ); generateIndicatorList(); - } else if ( metaDataId.equalsIgnoreCase( INDICATORGRP ) ) { - System.out.println( "Report Generation Start Time is : \t" + new Date() ); generateIndicatorGroupList(); - } else if ( metaDataId.equalsIgnoreCase( DATASET ) ) { generateDataSetList(); - System.out.println( "Report Generation Start Time is : \t" + new Date() ); } else if ( metaDataId.equalsIgnoreCase( VALIDATIONRULE ) ) { generateValidationRuleList(); - System.out.println( "Report Generation Start Time is : \t" + new Date() ); } else if ( metaDataId.equalsIgnoreCase( VALIDATIONRULEGRP ) ) { - System.out.println( "Report Generation Start Time is : \t" + new Date() ); generateValidationGroupList(); - } else if ( metaDataId.equalsIgnoreCase( USER ) ) { - System.out.println( "Report Generation Start Time is : \t" + new Date() ); generateUserList(); - } else if ( metaDataId.equalsIgnoreCase( ORGUNIT_USER ) ) { - System.out.println( "Report Generation Start Time is : \t" + new Date() ); generateOrgUnitTreeAlongWithUsers(); - } - else if ( metaDataId.equalsIgnoreCase( SUMMARY ) ) { - System.out.println( "Report Generation Start Time is : \t" + new Date() ); generateSummaryReport(); - } statementManager.destroy(); @@ -339,7 +314,6 @@ // ---------------------------------------------------------------------- // Coding For Printing MetaData // ---------------------------------------------------------------------- - // - String outputReportPath = System.getenv( "DHIS2_HOME" ) + File.separator + raFolderName + File.separator + "output" + File.separator + UUID.randomUUID().toString() + ".xls"; === modified file 'local/in/dhis-web-reports-national/src/main/java/org/hisp/dhis/reports/ouwiseprogress/action/GenerateOuWiseProgressReportFormAction.java' --- local/in/dhis-web-reports-national/src/main/java/org/hisp/dhis/reports/ouwiseprogress/action/GenerateOuWiseProgressReportFormAction.java 2010-11-15 18:05:51 +0000 +++ local/in/dhis-web-reports-national/src/main/java/org/hisp/dhis/reports/ouwiseprogress/action/GenerateOuWiseProgressReportFormAction.java 2010-12-31 07:16:18 +0000 @@ -8,18 +8,6 @@ public class GenerateOuWiseProgressReportFormAction implements Action { - - // ------------------------------------------------------------------------- - // Dependencies - // ------------------------------------------------------------------------- -/* - private ReportService reportService; - - public void setReportService( ReportService reportService ) - { - this.reportService = reportService; - } -*/ // ------------------------------------------------------------------------- // Getter & Setter // ------------------------------------------------------------------------- @@ -37,15 +25,6 @@ { return reportTypeName; } - /* - private List reportList; - - public List getReportList() - { - return reportList; - } -*/ - // private String raFolderName; // ------------------------------------------------------------------------- // Action implementation @@ -54,93 +33,10 @@ public String execute() throws Exception { - - - - // raFolderName = reportService.getRAFolderName(); - // System.out.println( "raFolderName = " + raFolderName ); - // reportList = new ArrayList(); - -// reportList = new ArrayList( reportService.getReportsByReportType( ReportType.RT_ORGUNITWISEPROGRESS ) ); reportTypeName = ReportType.RT_ORGUNITWISEPROGRESS; periodTypeName = MonthlyPeriodType.NAME; -// System.out.println( "PeriodTypeName: "+ periodTypeName); - -// reportList = new ArrayList(); - - // getSelectedReportList(); - return SUCCESS; } - /* - * public void getSelectedReportList() { String fileName = - * "ouWiseProgressReportsList.xml"; - * System.out.println("fileName = "+fileName); String path = - * System.getProperty( "user.home" ) + File.separator + "dhis" + - * File.separator + raFolderName + File.separator + fileName; - * System.out.println("path = "+path); try { String newpath = System.getenv( - * "DHIS2_HOME" ); if ( newpath != null ) { path = newpath + File.separator - * + raFolderName + File.separator + fileName; - * System.out.println("path = "+path); } } catch ( NullPointerException npe - * ) { // do nothing, but we might be using this somewhere without // - * DHIS2_HOME set, which will throw a NPE } - * - * String reportId = ""; String reportName = ""; String reportType = ""; - * String reportLevel = ""; String reportModel = ""; String reportFileName = - * ""; - * - * try { DocumentBuilderFactory docBuilderFactory = - * DocumentBuilderFactory.newInstance(); DocumentBuilder docBuilder = - * docBuilderFactory.newDocumentBuilder(); Document doc = docBuilder.parse( - * new File( path ) ); if ( doc == null ) { System.out.println( - * "XML File Not Found at user home" ); return; } - * - * NodeList listOfReports = doc.getElementsByTagName( "report" ); int - * totalReports = listOfReports.getLength(); for ( int s = 0; s < - * totalReports; s++ ) { Node reportNode = listOfReports.item( s ); if ( - * reportNode.getNodeType() == Node.ELEMENT_NODE ) { Element reportElement = - * (Element) reportNode; reportId = reportElement.getAttribute( "id" ); - * - * NodeList reportNameList = reportElement.getElementsByTagName( "name" ); - * Element reportNameElement = (Element) reportNameList.item( 0 ); NodeList - * textreportNameList = reportNameElement.getChildNodes(); reportName = - * ((Node) textreportNameList.item( 0 )).getNodeValue().trim(); - * - * NodeList reportTypeList = reportElement.getElementsByTagName( "type" ); - * Element reportTypeElement = (Element) reportTypeList.item( 0 ); NodeList - * textreportTypeList = reportTypeElement.getChildNodes(); reportType = - * ((Node) textreportTypeList.item( 0 )).getNodeValue().trim(); - * - * NodeList reportModelList = reportElement.getElementsByTagName( "model" ); - * Element reportModelElement = (Element) reportModelList.item( 0 ); - * NodeList textreportModelList = reportModelElement.getChildNodes(); - * reportModel = ((Node) textreportModelList.item( 0 - * )).getNodeValue().trim(); - * - * NodeList reportFileNameList = reportElement.getElementsByTagName( - * "filename" ); Element reportFileNameElement = (Element) - * reportFileNameList.item( 0 ); NodeList textreportFileNameList = - * reportFileNameElement.getChildNodes(); reportFileName = ((Node) - * textreportFileNameList.item( 0 )).getNodeValue().trim(); - * - * NodeList reportLevelList = reportElement.getElementsByTagName( "level" ); - * Element reportLevelElement = (Element) reportLevelList.item( 0 ); - * NodeList textreportLevelList = reportLevelElement.getChildNodes(); - * reportLevel = ((Node) textreportLevelList.item( 0 - * )).getNodeValue().trim(); - * - * Report reportObj = new Report(reportId, reportName, reportType, - * reportModel, reportFileName, reportLevel); reportList.add( reportObj ); } - * }// end of for loop with s var }// try block end catch ( - * SAXParseException err ) { System.out.println( "** Parsing error" + - * ", line " + err.getLineNumber() + ", uri " + err.getSystemId() ); - * System.out.println( " " + err.getMessage() ); } catch ( SAXException e ) - * { Exception x = e.getException(); ((x == null) ? e : - * x).printStackTrace(); } catch ( Throwable t ) { t.printStackTrace(); } - * System.out.println(reportList.size()); - * - * }// getReportList end - */ } === modified file 'local/in/dhis-web-reports-national/src/main/java/org/hisp/dhis/reports/ouwiseprogress/action/GenerateOuWiseProgressReportResultAction.java' --- local/in/dhis-web-reports-national/src/main/java/org/hisp/dhis/reports/ouwiseprogress/action/GenerateOuWiseProgressReportResultAction.java 2010-08-28 10:15:38 +0000 +++ local/in/dhis-web-reports-national/src/main/java/org/hisp/dhis/reports/ouwiseprogress/action/GenerateOuWiseProgressReportResultAction.java 2010-12-31 07:16:18 +0000 @@ -11,13 +11,7 @@ import java.util.Date; import java.util.Iterator; import java.util.List; -import java.util.Map; import java.util.UUID; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - -import javax.xml.parsers.DocumentBuilder; -import javax.xml.parsers.DocumentBuilderFactory; import jxl.Workbook; import jxl.format.Alignment; @@ -32,42 +26,19 @@ import jxl.write.WritableWorkbook; import org.amplecode.quick.StatementManager; -import org.apache.velocity.tools.generic.MathTool; -import org.hisp.dhis.aggregation.AggregationService; -import org.hisp.dhis.dataelement.DataElement; -import org.hisp.dhis.dataelement.DataElementCategoryOptionCombo; -import org.hisp.dhis.dataelement.DataElementCategoryService; -import org.hisp.dhis.dataelement.DataElementService; -import org.hisp.dhis.dataset.DataSet; -import org.hisp.dhis.dataset.DataSetService; -import org.hisp.dhis.datavalue.DataValue; -import org.hisp.dhis.datavalue.DataValueService; import org.hisp.dhis.i18n.I18nFormat; import org.hisp.dhis.organisationunit.OrganisationUnit; import org.hisp.dhis.organisationunit.OrganisationUnitService; import org.hisp.dhis.organisationunit.comparator.OrganisationUnitShortNameComparator; -import org.hisp.dhis.period.Period; -import org.hisp.dhis.period.PeriodService; -import org.hisp.dhis.period.PeriodType; import org.hisp.dhis.reports.ReportService; import org.hisp.dhis.reports.Report_in; -import org.hisp.dhis.system.util.MathUtils; -import org.w3c.dom.Document; -import org.w3c.dom.Element; -import org.w3c.dom.Node; -import org.w3c.dom.NodeList; -import org.xml.sax.SAXException; -import org.xml.sax.SAXParseException; +import org.hisp.dhis.reports.Report_inDesign; import com.opensymphony.xwork2.Action; - public class GenerateOuWiseProgressReportResultAction implements Action { - - private static final String NULL_REPLACEMENT = "0"; - // ------------------------------------------------------------------------- // Dependencies // ------------------------------------------------------------------------- @@ -78,13 +49,6 @@ this.statementManager = statementManager; } - private DataSetService dataSetService; - - public void setDataSetService( DataSetService dataSetService ) - { - this.dataSetService = dataSetService; - } - private ReportService reportService; public void setReportService( ReportService reportService ) @@ -92,20 +56,6 @@ this.reportService = reportService; } - private PeriodService periodService; - - public void setPeriodService( PeriodService periodService ) - { - this.periodService = periodService; - } - - private DataElementService dataElementService; - - public void setDataElementService( DataElementService dataElementService ) - { - this.dataElementService = dataElementService; - } - private OrganisationUnitService organisationUnitService; public void setOrganisationUnitService( OrganisationUnitService organisationUnitService ) @@ -113,39 +63,6 @@ this.organisationUnitService = organisationUnitService; } - public OrganisationUnitService getOrganisationUnitService() - { - return organisationUnitService; - } - - private AggregationService aggregationService; - - public void setAggregationService( AggregationService aggregationService ) - { - this.aggregationService = aggregationService; - } - - private DataValueService dataValueService; - - public void setDataValueService( DataValueService dataValueService ) - { - this.dataValueService = dataValueService; - } - - private DataElementCategoryService dataElementCategoryOptionComboService; - - public void setDataElementCategoryOptionComboService( DataElementCategoryService dataElementCategoryOptionComboService ) - { - this.dataElementCategoryOptionComboService = dataElementCategoryOptionComboService; - } -/* - private DataElementCategoryService dataElementCategoryService; - - public void setDataElementCategoryService( DataElementCategoryService dataElementCategoryService ) - { - this.dataElementCategoryService = dataElementCategoryService; - } -*/ private I18nFormat format; public void setFormat( I18nFormat format ) @@ -156,14 +73,7 @@ // ------------------------------------------------------------------------- // Properties // ------------------------------------------------------------------------- -/* - private PeriodStore periodStore; - public void setPeriodStore( PeriodStore periodStore ) - { - this.periodStore = periodStore; - } -*/ private InputStream inputStream; public InputStream getInputStream() @@ -171,12 +81,6 @@ return inputStream; } - /* - * private String contentType; - * - * public String getContentType() { return contentType; } - */ - private String fileName; public String getFileName() @@ -184,114 +88,6 @@ return fileName; } - /* - * private int bufferSize; - * - * public int getBufferSize() { return bufferSize; } - */ - - private MathTool mathTool; - - public MathTool getMathTool() - { - return mathTool; - } - - private OrganisationUnit selectedOrgUnit; - - public OrganisationUnit getSelectedOrgUnit() - { - return selectedOrgUnit; - } - - private List orgUnitList; - - public List getOrgUnitList() - { - return orgUnitList; - } - - private Period selectedPeriod; - - public Period getSelectedPeriod() - { - return selectedPeriod; - } - - private List dataValueList; - - public List getDataValueList() - { - return dataValueList; - } - - private List services; - - public List getServices() - { - return services; - } - - private List slNos; - - public List getSlNos() - { - return slNos; - } - - private SimpleDateFormat simpleDateFormat; - - public SimpleDateFormat getSimpleDateFormat() - { - return simpleDateFormat; - } - - private SimpleDateFormat monthFormat; - - public SimpleDateFormat getMonthFormat() - { - return monthFormat; - } - - private SimpleDateFormat simpleMonthFormat; - - public SimpleDateFormat getSimpleMonthFormat() - { - return simpleMonthFormat; - } - - private SimpleDateFormat yearFormat; - - public SimpleDateFormat getYearFormat() - { - return yearFormat; - } - - private SimpleDateFormat simpleYearFormat; - - public SimpleDateFormat getSimpleYearFormat() - { - return simpleYearFormat; - } - - private List deCodeType; - - private List serviceType; - - private String reportFileNameTB; -/* - public void setReportFileNameTB( String reportFileNameTB ) - { - this.reportFileNameTB = reportFileNameTB; - } -*/ - private String reportModelTB; -/* - public void setReportModelTB( String reportModelTB ) - { - this.reportModelTB = reportModelTB; - } -*/ private String reportList; public void setReportList( String reportList ) @@ -312,123 +108,43 @@ { this.endDate = endDate; } -/* - private List orgUnitListCB; - public void setOrgUnitListCB( List orgUnitListCB ) - { - this.orgUnitListCB = orgUnitListCB; - } -*/ private int ouIDTB; public void setOuIDTB( int ouIDTB ) { this.ouIDTB = ouIDTB; } -/* - private int availablePeriods; - - public void setAvailablePeriods( int availablePeriods ) - { - this.availablePeriods = availablePeriods; - } - - private String aggCB; - - public void setAggCB( String aggCB ) - { - this.aggCB = aggCB; - } -*/ - private List sheetList; - - private List rowList; - - private List colList; + + private OrganisationUnit selectedOrgUnit; + + private List orgUnitList; + + private SimpleDateFormat simpleDateFormat; + + private String reportFileNameTB; + + private String reportModelTB; private Date sDate; private Date eDate; - private PeriodType periodType; - - public PeriodType getPeriodType() - { - return periodType; - } - - private List periods; - - public List getPeriods() - { - return periods; - } - private String raFolderName; - private List childOrgUnits; - - public List getChildOrgUnits() - { - return childOrgUnits; - } - - Integer startMonth; - - Integer endMonth; - - private Map months; - - public Map getMonths() - { - return months; - } - - private Map monthOrder; - - public Map getMonthOrder() - { - return monthOrder; - } - - int deFlag1; - - int deFlag2; - // ------------------------------------------------------------------------- // Action implementation // ------------------------------------------------------------------------- - @Override public String execute() throws Exception { - statementManager.initialise(); - deFlag2 = 0; - deFlag1 = 0; + // Initialization raFolderName = reportService.getRAFolderName(); - - mathTool = new MathTool(); - services = new ArrayList(); - slNos = new ArrayList(); - deCodeType = new ArrayList(); - serviceType = new ArrayList(); - //String deCodesXMLFileName = ""; - simpleDateFormat = new SimpleDateFormat( "MMM-yyyy" ); - monthFormat = new SimpleDateFormat( "MMMM" ); - simpleMonthFormat = new SimpleDateFormat( "MMM" ); - yearFormat = new SimpleDateFormat( "yyyy" ); - simpleYearFormat = new SimpleDateFormat( "yy" ); - //deCodesXMLFileName = reportList + "DECodes.xml"; - int tempNum = 0; - - startMonth = 0; - - endMonth = 0; - + simpleDateFormat = new SimpleDateFormat( "yyyy-MM-dd" ); + // Getting Report Details String deCodesXMLFileName = ""; @@ -437,24 +153,7 @@ deCodesXMLFileName = selReportObj.getXmlTemplateName(); reportModelTB = selReportObj.getModel(); reportFileNameTB = selReportObj.getExcelTemplateName(); - System.out.println( "Report Generation Start Time is : \t" + new Date() ); - System.out.println( reportModelTB + " : " + reportFileNameTB + " : " + deCodesXMLFileName + " : " + ouIDTB ); - - // String parentUnit = ""; - - sheetList = new ArrayList(); - rowList = new ArrayList(); - colList = new ArrayList(); - - String inputTemplatePath = System.getenv( "DHIS2_HOME" ) + File.separator + raFolderName + File.separator - + "template" + File.separator + reportFileNameTB; - String outputReportPath = System.getenv( "DHIS2_HOME" ) + File.separator + raFolderName + File.separator - + "output" + File.separator + UUID.randomUUID().toString() + ".xls"; - Workbook templateWorkbook = Workbook.getWorkbook( new File( inputTemplatePath ) ); - - WritableWorkbook outputReportWorkbook = Workbook - .createWorkbook( new File( outputReportPath ), templateWorkbook ); - + // OrgUnit Related Info selectedOrgUnit = new OrganisationUnit(); selectedOrgUnit = organisationUnitService.getOrganisationUnit( ouIDTB ); @@ -464,148 +163,98 @@ orgUnitList = new ArrayList( selectedOrgUnit.getChildren() ); Collections.sort( orgUnitList, new OrganisationUnitShortNameComparator() ); orgUnitList.add( selectedOrgUnit ); - } - // System.out.println(orgUnitList.size()); + + System.out.println( selectedOrgUnit.getName()+ " : " + selReportObj.getName()+" : Report Generation Start Time is : " + new Date() ); + + String inputTemplatePath = System.getenv( "DHIS2_HOME" ) + File.separator + raFolderName + File.separator + "template" + File.separator + reportFileNameTB; + String outputReportPath = System.getenv( "DHIS2_HOME" ) + File.separator + raFolderName + File.separator + "output" + File.separator + UUID.randomUUID().toString() + ".xls"; + Workbook templateWorkbook = Workbook.getWorkbook( new File( inputTemplatePath ) ); + + WritableWorkbook outputReportWorkbook = Workbook.createWorkbook( new File( outputReportPath ), templateWorkbook ); + WritableFont arialBold = new WritableFont( WritableFont.ARIAL, 10, WritableFont.BOLD ); // Period Info sDate = format.parseDate( startDate ); eDate = format.parseDate( endDate ); - // System.out.println(sDate.getTime() + " "+ eDate.getTime()); - List deCodesList = getDECodes( deCodesXMLFileName ); + // Getting DataValues + List reportDesignList = reportService.getReportDesign( deCodesXMLFileName ); + int orgUnitCount = 0; Iterator it = orgUnitList.iterator(); - - int rowCounter = 0; - int orgUnitCount = 0; - // System.out.println("deCodesList size = " + deCodesList.size()); - - OrganisationUnit currentOrgUnit = new OrganisationUnit(); - while ( it.hasNext() ) - { - currentOrgUnit = (OrganisationUnit) it.next(); - // System.out.println(orgUnitCount); - Iterator it1 = deCodesList.iterator(); + OrganisationUnit currentOrgUnit = (OrganisationUnit) it.next(); + int count1 = 0; - while ( it1.hasNext() ) + Iterator reportDesignIterator = reportDesignList.iterator(); + while ( reportDesignIterator.hasNext() ) { + Report_inDesign report_inDesign = (Report_inDesign) reportDesignIterator.next(); - String deCodeString = (String) it1.next(); - // System.out.println(deCodeString); - // System.out.println(deCodeType.size()); - // String deType = (String) deCodeType.get( count1 ); - String sType = (String) serviceType.get( count1 ); - // System.out.println(deType + " " + sType); - // int count = 0; - // double sum = 0.0; - //int flag1 = 0; + String sType = report_inDesign.getStype(); + String deCodeString = report_inDesign.getExpression(); String tempStr = ""; - int tempColNo = 0; - int tempRowNo = rowList.get( count1 ); - if ( tempRowNo > 6 ) - { - tempColNo = colList.get( count1 ) + orgUnitCount; - } - else - { - tempColNo = colList.get( count1 ); - } - int sheetNo = sheetList.get( count1 ); - - // System.out.println("tempRowNo = " + tempRowNo + - // " tempColNo = " + tempColNo); - - if ( deCodeString.equalsIgnoreCase( "FACILITY" ) ) + + if ( deCodeString.equalsIgnoreCase( "FACILITY" ) || deCodeString.equalsIgnoreCase( "PROGRESSIVE-ORGUNIT" ) ) { tempStr = currentOrgUnit.getName(); - deFlag2 = 0; } else if ( deCodeString.equalsIgnoreCase( "MONTH-FROM" ) ) { tempStr = simpleDateFormat.format( sDate ); - deFlag2 = 0; } - else if ( deCodeString.equalsIgnoreCase( "MONTH-TO" ) ) { tempStr = simpleDateFormat.format( eDate ); - deFlag2 = 0; } else if ( deCodeString.equalsIgnoreCase( "NA" ) ) { tempStr = " "; - deFlag2 = 0; - } - else if ( tempRowNo == 7 && tempColNo > 3 ) - { - tempStr = currentOrgUnit.getName(); - deFlag2 = 0; } else { - rowCounter += 1; - if ( sType.equalsIgnoreCase( "dataelement" ) ) { - tempStr = getResultDataValue( deCodeString, sDate, eDate, currentOrgUnit ); - if ( deFlag2 == 1 ) - { - try - { - tempNum = Integer.parseInt( tempStr ); - } - catch ( Exception ex ) - { - tempNum = 0; - } - - } + tempStr = reportService.getResultDataValue( deCodeString, sDate, eDate, currentOrgUnit, reportModelTB ); } + } - } + int tempColNo = 0; + int tempRowNo = report_inDesign.getRowno(); + if ( tempRowNo > 6 ) + { + tempColNo = report_inDesign.getColno() + orgUnitCount; + } + else + { + tempColNo = report_inDesign.getColno(); + } + int sheetNo = report_inDesign.getSheetno(); + WritableSheet sheet0 = outputReportWorkbook.getSheet( sheetNo ); if ( tempStr == null || tempStr.equals( " " ) ) { - - WritableSheet sheet0 = outputReportWorkbook.getSheet( sheetNo ); WritableCellFormat wCellformat = new WritableCellFormat(); wCellformat.setBorder( Border.ALL, BorderLineStyle.THIN ); - wCellformat.setBorder( Border.ALL, BorderLineStyle.THIN ); wCellformat.setWrap( true ); wCellformat.setAlignment( Alignment.CENTRE ); sheet0.addCell( new Blank( tempColNo, tempRowNo, wCellformat ) ); - } else { - if ( reportModelTB.equalsIgnoreCase( "PROGRESSIVE-ORGUNIT" ) ) { - if ( deCodeString.equalsIgnoreCase( "FACILITY" ) ) - { - - } - - else if ( deCodeString.equalsIgnoreCase( "MONTH-FROM" ) - || deCodeString.equalsIgnoreCase( "MONTH-TO" ) ) - { - - } - - WritableSheet sheet0 = outputReportWorkbook.getSheet( sheetNo ); + if( deCodeString.equalsIgnoreCase( "FACILITY" ) || deCodeString.equalsIgnoreCase( "MONTH-FROM" ) || deCodeString.equalsIgnoreCase( "MONTH-TO" ) ) + { + } + WritableCellFormat wCellformat; - // WritableCell cell = sheet0.getWritableCell( tempColNo, tempRowNo ); - WritableFont arialBold = new WritableFont( WritableFont.ARIAL, 10, WritableFont.BOLD ); - - int lastCol = 3 + (orgUnitList.size()); - // System.out.println(lastCol); - if ( tempColNo == lastCol ) + if( orgUnitCount == orgUnitList.size()-1 ) { wCellformat = new WritableCellFormat( arialBold ); } @@ -613,35 +262,24 @@ { wCellformat = new WritableCellFormat(); } + wCellformat.setBorder( Border.ALL, BorderLineStyle.THIN ); wCellformat.setAlignment( Alignment.CENTRE ); wCellformat.setWrap( true ); try { - if ( deFlag2 == 1 ) - { - sheet0.addCell( new Number( tempColNo, tempRowNo, tempNum, wCellformat ) ); - } - else - { - sheet0.addCell( new Label( tempColNo, tempRowNo, tempStr, wCellformat ) ); - } + sheet0.addCell( new Number( tempColNo, tempRowNo, Double.parseDouble( tempStr ), wCellformat ) ); } - - catch ( Exception e ) + catch( Exception e ) { - System.out.println( "Cannot write to Excel" ); + sheet0.addCell( new Label( tempColNo, tempRowNo, tempStr, wCellformat ) ); } } } - count1++; - }// inner while loop end - orgUnitCount++; - }// outer while loop end outputReportWorkbook.write(); @@ -653,7 +291,7 @@ File outputReportFile = new File( outputReportPath ); inputStream = new BufferedInputStream( new FileInputStream( outputReportFile ) ); - System.out.println( "Report Generation End Time is : \t" + new Date() ); + System.out.println( selectedOrgUnit.getName()+ " : " + selReportObj.getName()+" Report Generation End Time is : " + new Date() ); outputReportFile.deleteOnExit(); @@ -661,266 +299,4 @@ return SUCCESS; } - - public List getDECodes( String fileName ) - { - List deCodes = new ArrayList(); - String path = System.getProperty( "user.home" ) + File.separator + "dhis" + File.separator + raFolderName - + File.separator + fileName; - try - { - String newpath = System.getenv( "DHIS2_HOME" ); - if ( newpath != null ) - { - path = newpath + File.separator + raFolderName + File.separator + fileName; - } - } - catch ( NullPointerException npe ) - { - // do nothing, but we might be using this somewhere without - // USER_HOME set, which will throw a NPE - } - // System.out.println("path = "+path); - - try - { - DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance(); - DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder(); - Document doc = docBuilder.parse( new File( path ) ); - if ( doc == null ) - { - // System.out.println( "There is no DECodes related XML file in - // the user home" ); - return null; - } - - NodeList listOfDECodes = doc.getElementsByTagName( "de-code" ); - int totalDEcodes = listOfDECodes.getLength(); - - for ( int s = 0; s < totalDEcodes; s++ ) - { - Element deCodeElement = (Element) listOfDECodes.item( s ); - NodeList textDECodeList = deCodeElement.getChildNodes(); - deCodes.add( ((Node) textDECodeList.item( 0 )).getNodeValue().trim() ); - serviceType.add( deCodeElement.getAttribute( "stype" ) ); - deCodeType.add( deCodeElement.getAttribute( "type" ) ); - sheetList.add( new Integer( deCodeElement.getAttribute( "sheetno" ) ) ); - rowList.add( new Integer( deCodeElement.getAttribute( "rowno" ) ) ); - colList.add( new Integer( deCodeElement.getAttribute( "colno" ) ) ); - - }// end of for loop with s var - }// try block end - catch ( SAXParseException err ) - { - System.out.println( "** Parsing error" + ", line " + err.getLineNumber() + ", uri " + err.getSystemId() ); - System.out.println( " " + err.getMessage() ); - } - catch ( SAXException e ) - { - Exception x = e.getException(); - ((x == null) ? e : x).printStackTrace(); - } - catch ( Throwable t ) - { - t.printStackTrace(); - } - // System.out.println("serviceType "+serviceType.size() + " deCodeType " - // +deCodeType.size() +" sheetList "+sheetList.size() + - // " rowList "+rowList.size() + " colList " + colList.size()); - return deCodes; - }// getDECodes end - - /* - * Returns the PeriodType Object for selected DataElement, If no PeriodType - * is found then by default returns Monthly Period type - */ - public PeriodType getDataElementPeriodType( DataElement de ) - { - List dataSetList = new ArrayList( dataSetService.getAllDataSets() ); - Iterator it = dataSetList.iterator(); - while ( it.hasNext() ) - { - DataSet ds = (DataSet) it.next(); - List dataElementList = new ArrayList( ds.getDataElements() ); - if ( dataElementList.contains( de ) ) - { - return ds.getPeriodType(); - } - } - - return null; - - } // getDataElementPeriodType end - - /** - * Converts an expression on the form
- * [34] + [23], where the numbers are IDs of DataElements, to the form
- * 200 + 450, where the numbers are the values of the DataValues registered - * for the Period and source. - * - * @return The generated expression - */ - private String getResultDataValue( String formula, Date startDate, Date endDate, OrganisationUnit organisationUnit ) - { - try - { - - // System.out.println( "expression : " + formula + " ***** " + - // String.valueOf( startDate ) + " **** " - // + String.valueOf( endDate ) ); - - Pattern pattern = Pattern.compile( "(\\[\\d+\\.\\d+\\])" ); - - Matcher matcher = pattern.matcher( formula ); - StringBuffer buffer = new StringBuffer(); - - String resultValue = ""; - - while ( matcher.find() ) - { - String replaceString = matcher.group(); - - replaceString = replaceString.replaceAll( "[\\[\\]]", "" ); - String optionComboIdStr = replaceString.substring( replaceString.indexOf( '.' ) + 1, replaceString - .length() ); - - replaceString = replaceString.substring( 0, replaceString.indexOf( '.' ) ); - - int dataElementId = Integer.parseInt( replaceString ); - int optionComboId = Integer.parseInt( optionComboIdStr ); - - DataElement dataElement = dataElementService.getDataElement( dataElementId ); - DataElementCategoryOptionCombo optionCombo = dataElementCategoryOptionComboService.getDataElementCategoryOptionCombo( optionComboId ); - - if ( dataElement == null || optionCombo == null ) - { - replaceString = ""; - matcher.appendReplacement( buffer, replaceString ); - continue; - } - if ( dataElement.getType().equalsIgnoreCase( "int" ) ) - { - - Double aggregatedValue = aggregationService.getAggregatedDataValue( dataElement, optionCombo, - startDate, endDate, organisationUnit ); - if ( aggregatedValue == null ) - { - replaceString = NULL_REPLACEMENT; - deFlag2 = 1; - } - else - { - replaceString = String.valueOf( aggregatedValue ); - - deFlag2 = 1; - } - - } - else - { - deFlag1 = 1; - deFlag2 = 0; - PeriodType dePeriodType = getDataElementPeriodType( dataElement ); - List periodList = new ArrayList( periodService.getIntersectingPeriodsByPeriodType( - dePeriodType, startDate, endDate ) ); - Period tempPeriod = new Period(); - if ( periodList == null || periodList.isEmpty() ) - { - replaceString = ""; - matcher.appendReplacement( buffer, replaceString ); - continue; - } - else - { - tempPeriod = (Period) periodList.get( 0 ); - } - - DataValue dataValue = dataValueService.getDataValue( organisationUnit, dataElement, tempPeriod, - optionCombo ); - - if ( dataValue != null ) - { - // Works for both text and boolean data types - - replaceString = dataValue.getValue(); - } - - else - replaceString = ""; - - if ( replaceString == null ) - replaceString = ""; - - } - matcher.appendReplacement( buffer, replaceString ); - - resultValue = replaceString; - } - - matcher.appendTail( buffer ); - - if ( deFlag1 == 0 ) - { - - double d = 0.0; - try - { - d = MathUtils.calculateExpression( buffer.toString() ); - } - catch ( Exception e ) - { - d = 0.0; - resultValue = ""; - } - if ( d == -1 ) - { - d = 0.0; - resultValue = ""; - } - else - { - - // This is to display financial data as it is like 2.1476838 - resultValue = "" + d; - - // These lines are to display financial data that do not - // have decimals - d = d * 10; - - if ( d % 10 == 0 ) - { - resultValue = "" + (int) d / 10; - } - - d = d / 10; - - // These line are to display non financial data that do not - // require decimals - if ( !(reportModelTB.equalsIgnoreCase( "STATIC-FINANCIAL" )) ) - resultValue = "" + (int) d; - - // if ( resultValue.equalsIgnoreCase( "0" ) ) - // { - // resultValue = ""; - // } - } - - } - else - { - resultValue = buffer.toString(); - - } - - if ( resultValue.equalsIgnoreCase( "" ) ) - resultValue = " "; - - return resultValue; - } - catch ( NumberFormatException ex ) - { - throw new RuntimeException( "Illegal DataElement id", ex ); - } - } - } === modified file 'local/in/dhis-web-reports-national/src/main/resources/META-INF/dhis/beans.xml' --- local/in/dhis-web-reports-national/src/main/resources/META-INF/dhis/beans.xml 2010-12-29 12:19:53 +0000 +++ local/in/dhis-web-reports-national/src/main/resources/META-INF/dhis/beans.xml 2010-12-31 07:16:18 +0000 @@ -11,14 +11,14 @@ - + - + @@ -33,9 +33,8 @@ - - + @@ -52,25 +51,22 @@ - - + - - + - - - - @@ -115,8 +108,6 @@ ref="org.hisp.dhis.oust.manager.SelectionTreeManager"> - - @@ -124,9 +115,6 @@ ref="org.hisp.dhis.oust.manager.SelectionTreeManager"> - - - @@ -134,9 +122,6 @@ ref="org.hisp.dhis.oust.manager.SelectionTreeManager"> - - - @@ -147,9 +132,6 @@ ref="org.hisp.dhis.organisationunit.OrganisationUnitGroupService"> - - - @@ -160,10 +142,6 @@ ref="org.hisp.dhis.organisationunit.OrganisationUnitGroupService"> - - - - - - - @@ -189,7 +164,6 @@ id="org.hisp.dhis.reports.routine.action.GenerateRoutineReportAnalyserResultAction" class="org.hisp.dhis.reports.routine.action.GenerateRoutineReportAnalyserResultAction" scope="prototype"> - @@ -224,13 +198,8 @@ - - - @@ -370,7 +339,6 @@ id="org.hisp.dhis.reports.upward.action.GenerateUpwardReportAnalyserFormAction" class="org.hisp.dhis.reports.upward.action.GenerateUpwardReportAnalyserFormAction" scope="prototype"> - @@ -378,7 +346,6 @@ id="org.hisp.dhis.reports.upward.action.GenerateUpwardReportAnalyserResultAction" class="org.hisp.dhis.reports.upward.action.GenerateUpwardReportAnalyserResultAction" scope="prototype"> - @@ -444,7 +411,7 @@ - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + @@ -560,39 +499,24 @@ id="org.hisp.dhis.reports.meta.action.GenerateMetaDataReportAnalyserFormAction" class="org.hisp.dhis.reports.meta.action.GenerateMetaDataReportAnalyserFormAction" scope="prototype"> - - - - + - - - - - - - - - - - - - - - - - + + + + + + + + + + + @@ -1071,176 +995,6 @@ - - - - - - - - - - - - === modified file 'local/in/dhis-web-reports-national/src/main/resources/org/hisp/dhis/reports/i18n_module.properties' --- local/in/dhis-web-reports-national/src/main/resources/org/hisp/dhis/reports/i18n_module.properties 2010-12-29 12:19:53 +0000 +++ local/in/dhis-web-reports-national/src/main/resources/org/hisp/dhis/reports/i18n_module.properties 2010-12-31 07:16:18 +0000 @@ -2,6 +2,7 @@ routine_ra = Routine Report Analyser physical_output_ra = Quarterly Physical Output Report periodwise_progress_ra = PeriodWise Progress Report Analyser +orgunitwise_progress_ra = OrganisationunitWise Progress Report Analyser aggregation_ra = Aggregation Reports Analyser periodtype = PeriodType organisationunit = OrganisationUnit === modified file 'local/in/dhis-web-reports-national/src/main/resources/struts.xml' --- local/in/dhis-web-reports-national/src/main/resources/struts.xml 2010-12-22 07:29:08 +0000 +++ local/in/dhis-web-reports-national/src/main/resources/struts.xml 2010-12-31 07:16:18 +0000 @@ -4,11 +4,10 @@ "http://struts.apache.org/dtds/struts-2.0.dtd"> - - + + - + @@ -27,7 +26,7 @@ F_REPORT_MANAGEMENT_LIST - + /main.vm @@ -39,9 +38,8 @@ class="org.hisp.dhis.reports.reportmanagement.action.AddReportAction"> reportManagement.action - - + /main.vm @@ -51,93 +49,70 @@ - - reportManagement.action + reportManagement.action - - - - + + - - /dhis-web-reports/responseReportManagementSuccess.vm - - /dhis-web-reports/responseReportManagementInput.vm + /dhis-web-reports/responseReportManagementSuccess.vm + /dhis-web-reports/responseReportManagementInput.vm plainTextError - - - - + - - /dhis-web-reports/responseReportManagementObject.vm + /dhis-web-reports/responseReportManagementObject.vm plainTextError - - - - + + - - defineReportAssociationsFormChain + defineReportAssociationsFormChain /main.vm /dhis-web-reports/menu.vm /dhis-web-reports/reportAssociations.vm - - ../dhis-web-commons/oust/oust.js,javascript/reportManagementAssociations.js + ../dhis-web-commons/oust/oust.js,javascript/reportManagementAssociations.js - + + - - reportManagement.action + reportManagement.action - - + - - getNumberOfLevelsSelectLevelChain + getNumberOfLevelsSelectLevelChain - - + - - getNumberOfLevelsSelectLevelChain + getNumberOfLevelsSelectLevelChain - - getNumberOfLevelsSelectLevelChain - + getNumberOfLevelsSelectLevelChain - - + - - getNumberOfLevelsSelectLevelChain + getNumberOfLevelsSelectLevelChain - - getNumberOfLevelsSelectLevelChain + getNumberOfLevelsSelectLevelChain - - + getReportSelectLevelChain @@ -149,31 +124,24 @@ /dhis-web-reports/reportAssociations.vm ../dhis-web-commons/oust/oust.js,javascript/reportManagementAssociations.js - - - - reportManagement.action + reportManagement.action - - /main.vm - - /dhis-web-reports/routineReportAnalysisFront.vm - - /dhis-web-reports/menuWithTreeForRoutineReport.vm + /dhis-web-reports/routineReportAnalysisFront.vm + /dhis-web-reports/menuWithTreeForRoutineReport.vm ../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/lists/lists.js,javascript/reportManagement.js,javascript/hashtable.js css/StylesForTags.css + F_REPORT_ROUTINE - @@ -190,12 +158,10 @@ /main.vm /dhis-web-reports/edReportForm.vm /dhis-web-reports/menu.vm - - javascript/reports.js,javascript/date.js + javascript/reports.js,javascript/date.js css/StylesForTags.css F_EDREPORT_GENERATE - @@ -211,14 +177,12 @@ class="org.hisp.dhis.reports.activeplan.action.ActivePlanReportsFormAction"> /main.vm /dhis-web-reports/activePlanReportsForm.vm - - /dhis-web-reports/menuWithTreeForActivePlan.vm - - ../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/calendar/calendar.js,../dhis-web-commons/calendar/calendar-lang.js,../dhis-web-commons/calendar/calendar-setup.js,../dhis-web-commons/lists/lists.js,javascript/reports.js,javascript/hashtable.js + /dhis-web-reports/menuWithTreeForActivePlan.vm + ../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/calendar/calendar.js,../dhis-web-commons/calendar/calendar-lang.js,../dhis-web-commons/calendar/calendar-setup.js,../dhis-web-commons/lists/lists.js,javascript/reports.js,javascript/hashtable.js css/StylesForTags.css + F_REPORT_ACTIVITYPLAN - @@ -228,20 +192,15 @@ 1024 - /main.vm - - /dhis-web-reports/activePlanFeedBackForm.vm - - /dhis-web-reports/menuWithTreeForActivePlan.vm - - ../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/lists/lists.js,javascript/reports.js,javascript/hashtable.js + /dhis-web-reports/activePlanFeedBackForm.vm + /dhis-web-reports/menuWithTreeForActivePlan.vm + ../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/lists/lists.js,javascript/reports.js,javascript/hashtable.js css/StylesForTags.css - @@ -256,16 +215,13 @@ /main.vm - - /dhis-web-reports/benificiaryInfoReportsForm.vm - - /dhis-web-reports/menuWithTreeForBenificiaryInfo.vm - - ../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/calendar/calendar.js,../dhis-web-commons/calendar/calendar-lang.js,../dhis-web-commons/calendar/calendar-setup.js,../dhis-web-commons/lists/lists.js,javascript/reports.js,javascript/hashtable.js + /dhis-web-reports/benificiaryInfoReportsForm.vm + /dhis-web-reports/menuWithTreeForBenificiaryInfo.vm + ../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/calendar/calendar.js,../dhis-web-commons/calendar/calendar-lang.js,../dhis-web-commons/calendar/calendar-setup.js,../dhis-web-commons/lists/lists.js,javascript/reports.js,javascript/hashtable.js css/StylesForTags.css + F_REPORT_BENIFICIARY_INFO - @@ -281,14 +237,12 @@ class="org.hisp.dhis.reports.portal.action.PortalReportsFormAction"> /main.vm /dhis-web-reports/portalReportForm.vm - - /dhis-web-reports/menuWithTreeForPortalReport.vm - - ../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/calendar/calendar.js,../dhis-web-commons/calendar/calendar-lang.js,../dhis-web-commons/calendar/calendar-setup.js,../dhis-web-commons/lists/lists.js,javascript/reports.js,javascript/hashtable.js + /dhis-web-reports/menuWithTreeForPortalReport.vm + ../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/calendar/calendar.js,../dhis-web-commons/calendar/calendar-lang.js,../dhis-web-commons/calendar/calendar-setup.js,../dhis-web-commons/lists/lists.js,javascript/reports.js,javascript/hashtable.js css/StylesForTags.css + F_REPORT_NBITS_PORTAL - @@ -303,42 +257,33 @@ /main.vm - - /dhis-web-reports/autoReportAnalysisFront.vm - - /dhis-web-reports/menuWithTreeForAutoReport.vm - - ../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/calendar/calendar.js,../dhis-web-commons/calendar/calendar-lang.js,../dhis-web-commons/calendar/calendar-setup.js,../dhis-web-commons/lists/lists.js,javascript/reports.js,javascript/hashtable.js + /dhis-web-reports/autoReportAnalysisFront.vm + /dhis-web-reports/menuWithTreeForAutoReport.vm + ../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/calendar/calendar.js,../dhis-web-commons/calendar/calendar-lang.js,../dhis-web-commons/calendar/calendar-setup.js,../dhis-web-commons/lists/lists.js,javascript/reports.js,javascript/hashtable.js css/StylesForTags.css - /main.vm /dhis-web-reports/autoReportSucess.vm /dhis-web-reports/menu.vm - - ../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/calendar/calendar.js,../dhis-web-commons/calendar/calendar-lang.js,../dhis-web-commons/calendar/calendar-setup.js,../dhis-web-commons/lists/lists.js,javascript/reports.js,javascript/hashtable.js + ../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/calendar/calendar.js,../dhis-web-commons/calendar/calendar-lang.js,../dhis-web-commons/calendar/calendar-setup.js,../dhis-web-commons/lists/lists.js,javascript/reports.js,javascript/hashtable.js css/StylesForTags.css - - + /main.vm - - /dhis-web-reports/aggregationReportAnalysisFront.vm - - /dhis-web-reports/menuWithTreeForAggregationReport.vm - - ../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/calendar/calendar.js,../dhis-web-commons/calendar/calendar-lang.js,../dhis-web-commons/calendar/calendar-setup.js,../dhis-web-commons/lists/lists.js,javascript/reportManagement.js,javascript/hashtable.js,../dhis-web-commons/util/validate/jquery.validate.js,../dhis-web-commons/util/jquery.metadata.js,../dhis-web-commons/util/validate/additional-methods.js,../dhis-web-commons/util/validate/messages_locale.js + /dhis-web-reports/aggregationReportAnalysisFront.vm + /dhis-web-reports/menuWithTreeForAggregationReport.vm + ../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/calendar/calendar.js,../dhis-web-commons/calendar/calendar-lang.js,../dhis-web-commons/calendar/calendar-setup.js,../dhis-web-commons/lists/lists.js,javascript/reportManagement.js,javascript/hashtable.js,../dhis-web-commons/util/validate/jquery.validate.js,../dhis-web-commons/util/jquery.metadata.js,../dhis-web-commons/util/validate/additional-methods.js,../dhis-web-commons/util/validate/messages_locale.js css/StylesForTags.css + F_REPORT_AGGREGATION - @@ -349,22 +294,17 @@ - - /main.vm - - /dhis-web-reports/feedbackReportAnalysisFront.vm - - /dhis-web-reports/menuWithTreeForFeedback.vm - - ../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/lists/lists.js,javascript/reportManagement.js,javascript/hashtable.js + /dhis-web-reports/feedbackReportAnalysisFront.vm + /dhis-web-reports/menuWithTreeForFeedback.vm + ../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/lists/lists.js,javascript/reportManagement.js,javascript/hashtable.js css/StylesForTags.css + F_REPORT_FEEDBACK - @@ -379,16 +319,13 @@ /main.vm - - /dhis-web-reports/upwardReportAnalysisFront.vm - - /dhis-web-reports/menuWithTreeForGOIReports.vm - - ../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/lists/lists.js,javascript/reportManagement.js,javascript/hashtable.js + /dhis-web-reports/upwardReportAnalysisFront.vm + /dhis-web-reports/menuWithTreeForGOIReports.vm + ../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/lists/lists.js,javascript/reportManagement.js,javascript/hashtable.js css/StylesForTags.css + F_REPORT_GOI - @@ -407,9 +344,9 @@ /dhis-web-reports/menuWithTreeForDataSetLockReports.vm ../dhis-web-commons/ouwt/ouwt.js,javascript/datasetLockReport.js,javascript/hashtable.js css/StylesForTags.css + F_REPORT_DATASETLOCK - @@ -419,39 +356,32 @@ 1024 - /dhis-web-reports/ougUnitName.vm - - /dhis-web-commons/ajax/xmlPeriods.vm + /dhis-web-commons/ajax/xmlPeriods.vm plainTextError - - - /dhis-web-reports/responseDataSetLock.vm + /dhis-web-reports/responseDataSetLock.vm plainTextError - + /main.vm - - /dhis-web-reports/linelstingReportAnalyserFront.vm - - /dhis-web-reports/menuWithTreeForLineListingReport.vm - - ../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/lists/lists.js,javascript/reportManagement.js,javascript/hashtable.js + /dhis-web-reports/linelstingReportAnalyserFront.vm + /dhis-web-reports/menuWithTreeForLineListingReport.vm + ../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/lists/lists.js,javascript/reportManagement.js,javascript/hashtable.js css/StylesForTags.css + F_REPORT_LINELIST - @@ -462,20 +392,17 @@ - + /main.vm - - /dhis-web-reports/periodWiseprogressReportAnalysisFront.vm - - /dhis-web-reports/menuWithTreeForPeriodWiseProgressReport.vm - - ../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/lists/lists.js,javascript/reportManagement.js,javascript/hashtable.js + /dhis-web-reports/periodWiseprogressReportAnalysisFront.vm + /dhis-web-reports/menuWithTreeForPeriodWiseProgressReport.vm + ../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/lists/lists.js,javascript/reportManagement.js,javascript/hashtable.js css/StylesForTags.css + F_REPORT_PERIODWISE_PROGRESS - @@ -486,20 +413,17 @@ - + /main.vm - - /dhis-web-reports/ouWiseProgressReportFront.vm - - /dhis-web-reports/menuWithTreeForOuWiseProgress.vm - - ../dhis-web-commons/calendar/calendar.js,../dhis-web-commons/calendar/calendar-lang.js,../dhis-web-commons/calendar/calendar-setup.js,../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/util/lists.js,javascript/reportManagement.js,javascript/hashtable.js,../dhis-web-commons/util/validate/jquery.validate.js,../dhis-web-commons/util/jquery.metadata.js,../dhis-web-commons/util/validate/additional-methods.js,../dhis-web-commons/util/validate/messages_locale.js + /dhis-web-reports/ouWiseProgressReportFront.vm + /dhis-web-reports/menuWithTreeForOuWiseProgress.vm + ../dhis-web-commons/calendar/calendar.js,../dhis-web-commons/calendar/calendar-lang.js,../dhis-web-commons/calendar/calendar-setup.js,../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/util/lists.js,javascript/reportManagement.js,javascript/hashtable.js,../dhis-web-commons/util/validate/jquery.validate.js,../dhis-web-commons/util/jquery.metadata.js,../dhis-web-commons/util/validate/additional-methods.js,../dhis-web-commons/util/validate/messages_locale.js css/StylesForTags.css + F_REPORT_ORGUNITWISE_PROGRESS - @@ -526,18 +450,16 @@ application/vnd.ms-excel inputStream filename="${fileName}" - 1024S + 1024 + - - /main.vm /dhis-web-reports/advancedReportsForm.vm - - /dhis-web-reports/menuWithTreeForAdvanced.vm + /dhis-web-reports/menuWithTreeForAdvanced.vm ../dhis-web-commons/calendar/calendar.js,../dhis-web-commons/calendar/calendar-lang.js,../dhis-web-commons/calendar/calendar-setup.js,../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/lists/lists.js,javascript/reportManagement.js,javascript/hashtable.js ,../dhis-web-commons/util/validate/jquery.validate.js,../dhis-web-commons/util/jquery.metadata.js @@ -545,7 +467,6 @@ css/StylesForTags.css - @@ -561,14 +482,11 @@ class="org.hisp.dhis.reports.leprosy.action.LeprosyReportFormAction"> /main.vm /dhis-web-reports/leprosyReportsForm.vm - - /dhis-web-reports/menuWithTreeForNLEPReports.vm - - ../dhis-web-commons/calendar/calendar.js,../dhis-web-commons/calendar/calendar-lang.js,../dhis-web-commons/calendar/calendar-setup.js,../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/lists/lists.js,javascript/reportManagement.js,javascript/hashtable.js + /dhis-web-reports/menuWithTreeForNLEPReports.vm + ../dhis-web-commons/calendar/calendar.js,../dhis-web-commons/calendar/calendar-lang.js,../dhis-web-commons/calendar/calendar-setup.js,../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/lists/lists.js,javascript/reportManagement.js,javascript/hashtable.js css/StylesForTags.css - @@ -578,19 +496,17 @@ 1024 - + + /main.vm /dhis-web-reports/MalaryaReportsForm.vm - - /dhis-web-reports/menuWithTreeForMalaryaReports.vm - - ../dhis-web-commons/calendar/calendar.js,../dhis-web-commons/calendar/calendar-lang.js,../dhis-web-commons/calendar/calendar-setup.js,../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/lists/lists.js,javascript/reportManagement.js,javascript/hashtable.js + /dhis-web-reports/menuWithTreeForMalaryaReports.vm + ../dhis-web-commons/calendar/calendar.js,../dhis-web-commons/calendar/calendar-lang.js,../dhis-web-commons/calendar/calendar-setup.js,../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/lists/lists.js,javascript/reportManagement.js,javascript/hashtable.js css/StylesForTags.css - @@ -606,14 +522,11 @@ class="org.hisp.dhis.reports.grading.action.GenerateGradingReportFormAction"> /main.vm /dhis-web-reports/gradingReportForm.vm - - /dhis-web-reports/menuWithTreeForGradingReport.vm - - ../dhis-web-commons/calendar/calendar.js,../dhis-web-commons/calendar/calendar-lang.js,../dhis-web-commons/calendar/calendar-setup.js,../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/lists/lists.js,javascript/hashtable.js,javascript/grading.js + /dhis-web-reports/menuWithTreeForGradingReport.vm + ../dhis-web-commons/calendar/calendar.js,../dhis-web-commons/calendar/calendar-lang.js,../dhis-web-commons/calendar/calendar-setup.js,../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/lists/lists.js,javascript/hashtable.js,javascript/grading.js css/StylesForTags.css - @@ -623,7 +536,6 @@ 1024 - @@ -633,7 +545,6 @@ 1024 - @@ -643,20 +554,15 @@ 1024 - /main.vm - - /dhis-web-reports/gradingAbstractionForm.vm - - /dhis-web-reports/menuWithTreeForGradingAbstReport.vm - - ../dhis-web-commons/calendar/calendar.js,../dhis-web-commons/calendar/calendar-lang.js,../dhis-web-commons/calendar/calendar-setup.js,../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/lists/lists.js,javascript/hashtable.js + /dhis-web-reports/gradingAbstractionForm.vm + /dhis-web-reports/menuWithTreeForGradingAbstReport.vm + ../dhis-web-commons/calendar/calendar.js,../dhis-web-commons/calendar/calendar-lang.js,../dhis-web-commons/calendar/calendar-setup.js,../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/lists/lists.js,javascript/hashtable.js css/StylesForTags.css - @@ -726,7 +632,6 @@ css/StylesForTags.css - @@ -745,23 +650,20 @@ /dhis-web-reports/menu.vm ../dhis-web-commons/calendar/calendar.js,../dhis-web-commons/calendar/calendar-lang.js,../dhis-web-commons/calendar/calendar-setup.js,../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/lists/lists.js,javascript/reportManagement.js,javascript/hashtable.js css/StylesForTags.css + F_REPORT_POPULATE_USERS - - /dhis-web-reports/responseDataElement.vm - + /dhis-web-reports/responseDataElement.vm plainTextError - - /dhis-web-reports/responsePeriod.vm - + /dhis-web-reports/responsePeriod.vm plainTextError @@ -1129,21 +1031,19 @@ - - - /main.vm - - /dhis-web-reports/physicalReportform.vm - - /dhis-web-reports/menuWithphysicaOutputReports.vm - - ../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/lists/lists.js,javascript/reportManagement.js,javascript/hashtable.js + + + /main.vm + /dhis-web-reports/physicalReportform.vm + /dhis-web-reports/menuWithphysicaOutputReports.vm + ../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/lists/lists.js,javascript/reportManagement.js,javascript/hashtable.js css/StylesForTags.css + F_REPORT_PHYSICALOP - + application/vnd.ms-excel inputStream @@ -1157,12 +1057,11 @@ class="org.hisp.dhis.reports.csreview.action.GenerateCSReviewReportFormAction"> /main.vm /dhis-web-reports/csReviewReportFront.vm - - /dhis-web-reports/menuWithTreeForCSReviewReport.vm + /dhis-web-reports/menuWithTreeForCSReviewReport.vm ../dhis-web-commons/calendar/calendar.js,../dhis-web-commons/calendar/calendar-lang.js,../dhis-web-commons/calendar/calendar-setup.js,../dhis-web-commons/ouwt/ouwt.js,../dhis-web-commons/util/lists.js,javascript/reportManagement.js,javascript/hashtable.js,../dhis-web-commons/util/validate/jquery.validate.js,../dhis-web-commons/util/jquery.metadata.js,../dhis-web-commons/util/validate/additional-methods.js,../dhis-web-commons/util/validate/messages_locale.js css/StylesForTags.css + F_REPORT_CSREVIEW - @@ -1173,8 +1072,5 @@ - - - === modified file 'local/in/dhis-web-reports-national/src/main/webapp/dhis-web-reports/menu.vm' --- local/in/dhis-web-reports-national/src/main/webapp/dhis-web-reports/menu.vm 2010-12-22 07:29:08 +0000 +++ local/in/dhis-web-reports-national/src/main/webapp/dhis-web-reports/menu.vm 2010-12-31 07:16:18 +0000 @@ -1,32 +1,75 @@

Report Analyser

#if( $auth.hasAccess( "dhis-web-reports", "reportManagement") ) - -#end - + +#end + +#if( $auth.hasAccess( "dhis-web-reports", "upwardReportAnalyser") ) +
    +
  • Report Analysis
  • +
      + #if( $auth.hasAccess( "dhis-web-reports", "upwardReportAnalyser") ) +
    • GOI Reports
    • + #end + #if( $auth.hasAccess( "dhis-web-reports", "edReportForm") ) +
    • ED Report
    • + #end + #if( $auth.hasAccess( "dhis-web-reports", "routineReportAnalyser") ) +
    • Routine Reports
    • + #end + #if( $auth.hasAccess( "dhis-web-reports", "feedbackReportAnalyser") ) +
    • Feedback Reports
    • + #end + #if( $auth.hasAccess( "dhis-web-reports", "aggregationReportAnalyser") ) +
    • Aggregation Reports
    • + #end + #if( $auth.hasAccess( "dhis-web-reports", "linelistingReportAnalyser") ) +
    • Linelisting Reports
    • + #end + #if( $auth.hasAccess( "dhis-web-reports", "periodWiseprogressReportAnalyser") ) +
    • Periodwise Progress Reports
    • + #end + #if( $auth.hasAccess( "dhis-web-reports", "ouWiseProgressReportAnalyser") ) +
    • Orgunitwise Progress Reports
    • + #end + #if( $auth.hasAccess( "dhis-web-reports", "metaDataReportAnalyser") ) +
    • Meta Data Reports
    • + #end + #if( $auth.hasAccess( "dhis-web-reports", "dataSetLockReportAnalyser") ) +
    • DataSet Lock Reports
    • + #end + #if( $auth.hasAccess( "dhis-web-reports", "quarterlyPhysicalReport") ) +
    • Quarterly Physical Output Reports
    • + #end + #if( $auth.hasAccess( "dhis-web-reports", "csReviewReportForm") ) +
    • CS Review Reports
    • + #end + #if( $auth.hasAccess( "dhis-web-reports", "populateUsers") ) +
    • Populate Users
    • + #end + +
    +
+#end + +#if( $auth.hasAccess( "dhis-web-reports", "benificiaryInfoReportsAnalyser") ) +
    +
  • NameBased Reports
  • +
      + #if( $auth.hasAccess( "dhis-web-reports", "benificiaryInfoReportsAnalyser") ) +
    • NBITS Benificiary Info
    • + #end + #if( $auth.hasAccess( "dhis-web-reports", "activePlanReportsAnalyser") ) +
    • NBITS Reports
    • + #end + #if( $auth.hasAccess( "dhis-web-reports", "portalReportsAnalyser") ) +
    • NBITS Portal Reports
    • + #end +
    +
+#end \ No newline at end of file === modified file 'local/in/dhis-web-reports-national/src/main/webapp/dhis-web-reports/menuWithTreeForOuWiseProgress.vm' --- local/in/dhis-web-reports-national/src/main/webapp/dhis-web-reports/menuWithTreeForOuWiseProgress.vm 2010-08-28 10:15:38 +0000 +++ local/in/dhis-web-reports-national/src/main/webapp/dhis-web-reports/menuWithTreeForOuWiseProgress.vm 2010-12-31 07:16:18 +0000 @@ -7,35 +7,33 @@ +
- - $i18n.getString( + $i18n.getString(
+ #parse( "/dhis-web-commons/ouwt/orgunittree.vm" ) === modified file 'local/in/dhis-web-reports-national/src/main/webapp/dhis-web-reports/ouWiseProgressReportFront.vm' --- local/in/dhis-web-reports-national/src/main/webapp/dhis-web-reports/ouWiseProgressReportFront.vm 2010-12-09 10:23:58 +0000 +++ local/in/dhis-web-reports-national/src/main/webapp/dhis-web-reports/ouWiseProgressReportFront.vm 2010-12-31 07:16:18 +0000 @@ -1,55 +1,21 @@ - -

Organisationunit Wise Progress Report



+ + + +

$i18n.getString( "orgunitwise_progress_ra" )

+

-
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- Reports :
- -
-
- - -
  
  
- OrganisationUnit :
- -
-
- - -
- -  
  
  - - - - - - - -
-
+
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+ 1. $i18n.getString( "organisationunit" ) :
+ +
+
+ +
  
  
+ 2. $i18n.getString( "reports" ) :
+ +
+
+ +
+ +  
  
  
  + + + + +
+