~mikeevolution/dhis2/conversion_trunk

« back to all changes in this revision

Viewing changes to dhis-2/dhis-services/dhis-service-importexport/src/main/java/org/hisp/dhis/importexport/dhis14/file/rowhandler/ValidationRuleRowHandler.java

  • Committer: Mike Nelushi
  • Date: 2015-04-20 07:43:54 UTC
  • Revision ID: mikeevolution@gmail.com-20150420074354-p880ui1u4adbsxav
finalĀ conversionĀ code

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
import org.hisp.dhis.importexport.importer.ValidationRuleExpressionImporter;
39
39
import org.hisp.dhis.importexport.importer.ValidationRuleImporter;
40
40
import org.hisp.dhis.period.DailyPeriodType;
 
41
import org.hisp.dhis.period.MonthlyPeriodType;
41
42
import org.hisp.dhis.period.PeriodType;
42
43
import org.hisp.dhis.validation.ValidationRule;
43
44
import org.hisp.dhis.validation.ValidationRuleService;
123
124
            final Integer expressionRightId = dhis14ExpressionMap.get( validationRule.getDhis14RightRuleDescription()
124
125
                .trim() );
125
126
            
126
 
            Integer dailyPeriodTypeId = periodTypeMapping.get( DailyPeriodType.NAME );
 
127
            Integer dailyPeriodTypeId = periodTypeMapping.get( MonthlyPeriodType.NAME );
127
128
 
128
129
            Expression expLeft = new Expression();
129
130
            Expression expRight = new Expression();