← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 2032: Removed unused file

 

------------------------------------------------------------
revno: 2032
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Thu 2010-11-11 16:42:14 +0100
message:
  Removed unused file
removed:
  dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/dataElement.vm
modified:
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/ProgramAttributeOptionService.java
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/ProgramAttributeOptionStore.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/ProgramAttributeOptionService.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/ProgramAttributeOptionService.java	2010-11-09 02:09:53 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/ProgramAttributeOptionService.java	2010-11-11 15:42:14 +0000
@@ -29,9 +29,6 @@
 
 import java.util.Collection;
 
-import org.hisp.dhis.patient.PatientAttribute;
-import org.hisp.dhis.patient.PatientAttributeOption;
-
 /**
  * @author Chau Thu Tran
  *
@@ -50,5 +47,4 @@
     ProgramAttributeOption get( int id );
     
     Collection<ProgramAttributeOption> get( ProgramAttribute programAttribute );
-
 }

=== modified file 'dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/ProgramAttributeOptionStore.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/ProgramAttributeOptionStore.java	2010-11-09 02:09:53 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/program/ProgramAttributeOptionStore.java	2010-11-11 15:42:14 +0000
@@ -30,7 +30,6 @@
 import java.util.Collection;
 
 import org.hisp.dhis.common.GenericIdentifiableObjectStore;
-import org.hisp.dhis.patient.PatientAttributeOption;
 
 /**
  * @author Chau Thu Tran
@@ -44,5 +43,4 @@
     ProgramAttributeOption get( ProgramAttribute patientAttribute, String name );
 
     Collection<ProgramAttributeOption> get( ProgramAttribute programAttribute );
-
 }

=== removed file 'dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/dataElement.vm'
--- dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/dataElement.vm	2010-10-28 09:17:13 +0000
+++ dhis-2/dhis-web/dhis-web-dataentry/src/main/webapp/dhis-web-dataentry/dataElement.vm	1970-01-01 00:00:00 +0000
@@ -1,148 +0,0 @@
-<table class="mainPageTable" cellpadding="0">
-	<col id="noCol">
-	<col id="deCol">
-	<col id="typeCol">
-	<col id="minCol">
-    <col id="entryCol">
-	<col id="maxCol">
-	<col id="commentCol">
-	<!--
-	<col>
-	<col>
-	-->
-	<tr>
-		<th>$i18n.getString( "nr" )</th>
-		<th>$i18n.getString( "data_element" )</th>
-		<th>$i18n.getString( "value_type" )</th>
-		<th>$i18n.getString( "min" )</th>
-		<th>$i18n.getString( "entry" )</th>
-		<th>$i18n.getString( "max" )</th>
-		<th>$i18n.getString( "comment" )</th>
-		<!--<th>$i18n.getString( "timestamp" )</th>-->
-		<!--<th>$i18n.getString( "stored_by" )</th>-->
-	</tr>
-#set( $count = 0 )
-#set( $mark = 0 )
-#set( $tabIndex = 1 )
-#foreach( $dataElement in $section.dataElements )
-	#set( $count = $count + 1 )
-	#if( $mark == 1 )
-		#set( $mark = 0 )
-	#else
-		#set( $mark = 1 )
-	#end
-	#set( $dataValue = false )
-	#set( $dataValue = $dataValueMap.get( $dataElement.id ) )
-	#set( $calculatedValue = false )
-	#set( $calculatedValue = $calculatedValueMap.get( $dataElement ) )
-	#set( $minMax = false )
-	#set( $minMax = $minMaxMap.get( $dataElement.id ) )
-	#set( $calculated = false )
-	#set( $calculated = ($calculatedDataElementIds.contains($dataElement.id)) )
-	<tr #if( $mark == 0 ) style="background-color:#dddddd" #end>
-		##count
-		<td style="text-align:right">$count</td>
-		
-		##data element name
-		<td>
-			<span id="value[$dataElement.id].name" title="$!encoder.htmlEncode( $dataElement.description )">
-			#if( $dataElement.type == "int" && $auth.hasAccess( "dhis-web-dataentry", "viewHistory" ) )
-				<a href="javascript:viewHistory( $dataElement.id  )">
-			#end
-			#if( $useShortName )
-				$encoder.htmlEncode( $dataElement.shortName )
-			#else
-				$encoder.htmlEncode( $dataElement.name )
-			#end
-			#if( $dataElement.type == "int" && $auth.hasAccess( "dhis-web-dataentry", "viewHistory" ) )
-				</a>
-			#end
-		    </span>
-		</td>
-		
-		##type
-		<td>$dataElementValueTypeMap.get( $dataElement.type )<span id="value[$dataElement.id].type" style="display:none">$dataElement.getDetailedNumberType()</span></td>
-		
-		##min value
-		<td>
-		#if( $dataElement.type == "int" )
-			<div id="value[$dataElement.id].min" style="text-align:center">$!minMax.min</div>
-		#end
-		</td>
-		
-		##entry
-		<td>
-		#if( $dataElement.type == "bool" )
-			<select name="entryselect" id="value[$dataElement.id].boolean" #if( $auth.hasAccess( "dhis-web-dataentry", "saveValue" )) onchange="saveBoolean( $dataElement.id, this )" #else disabled="disabled" #end style="width:100%" tabindex="$tabIndex">
-				<option value="">[$i18n.getString( "no_value" )]</option>
-				<option value="true" #if( $datavalue && $dataValue.value == "true" ) selected="selected" #end>$i18n.getString( "yes" )</option>
-				<option value="false" #if( $datavalue && $dataValue.value == "false" ) selected="selected" #end>$i18n.getString( "no" )</option>
-			</select>
-            
-        #else
-            
-                #if( $dataElement.type == "string" )
-                    #set( $coun = 0 ) 
-                    #foreach($customValue in $customValues)
-                        #if($dataElement.id == $customValue.dataElement.id && $dataValue.optionCombo.id == $customValue.optionCombo.id)                                    
-                            #set( $coun = $coun +1 )
-                        #end
-                    #end  
-                        #if($coun>0)   
-                            <select name="entryselect" id="$dataEntryId" #if( $auth.hasAccess( "dhis-web-dataentry", "saveValue" )) onchange="saveBoolean($dataElement.id,$optionComboId, this )"  #else disabled="disabled" #end style="width:100%" tabindex="$tabIndex" #if( $locked ) disabled="disabled"#end>
-                            <option value="">[$i18n.getString( "please_select" )] </option>               
-                                #foreach($customValue in $customValues)
-                                    #if($dataElement.id == $customValue.dataElement.id && $dataValue.optionCombo.id == $customValue.optionCombo.id)
-                                <option value="$customValue.customValue" #if( $dataValue.value == $customValue.customValue ) selected="selected" #end>$customValue.customValue</option>   
-                                    #end
-                                #end 
-                            </select>
-                        #else
-                        #set( $zeroValueSaveMode = true )
-                               <input name="entryfield" id="$dataEntryId" type="text" value="$!encoder.htmlEncode( $dataValue.value )" #if( $auth.hasAccess( "dhis-web-dataentry", "saveValue") ) onchange="saveValue( $dataElement.id, $optionCombo.id, '$encoder.jsEncode( $dataElement.name )', $zeroValueSaveMode )" ondblclick="viewHistory( $dataElement.id, $optionCombo.id, true  )" #else disabled="disabled" #end onkeypress="return keyPress(event, this)" style="width:100% #if( $minMaxError ) ;background-color:#ffcccc #end #if( $dataElement.type == "int" ) ;text-align:center #end" tabindex="$tabIndex" #if( $locked ) disabled="disabled"#end>                                
-                        #end    
-                #end                  
-            
-            
-
-			#set( $minMaxError = false )
-			#if( $dataElement.type == "int" && $dataValue && $minMax )
-				#if( $integer.parseInt( $dataValue.value ) < $minMax.min || $integer.parseInt( $dataValue.value ) > $minMax.max )
-					#set( $minMaxError = true )
-				#end
-			#end
-			#if ( $calculated && $dataElement.type != "string")
-			<input name="entryfield" id="value[$dataElement.id].value" class="calculated" type="text" value="#if($dataValue) $!encoder.htmlEncode( $dataValue.value ) #elseif( $calculatedValue )$!encoder.htmlEncode( $calculatedValue ) #end" disabled="disabled" onkeypress="return keyPress(event, this)" style="width:100% #if( $minMaxError ) ;background-color:#ffcccc #end #if( $dataElement.type == "int" ) ;text-align:center #end">
-			#else 
-                #if ( $dataElement.type != "string")
-			<input name="entryfield" id="value[$dataElement.id].value" type="text" value="$!encoder.htmlEncode( $dataValue.value )" #if( $auth.hasAccess( "dhis-web-dataentry", "saveValue") ) onchange="saveValue( $dataElement.id, '$encoder.jsEncode( $dataElement.name )' )" #else disabled="disabled" #end onkeypress="return keyPress(event, this)" style="width:100% #if( $minMaxError ) ;background-color:#ffcccc #end #if( $dataElement.type == "int" ) ;text-align:center #end" tabindex="$tabIndex">
-                #end
-            #end
-		#end
-		</td>
-		
-		##max value
-		<td>
-		#if( $dataElement.type == "int" )
-			<div id="value[$dataElement.id].max" style="text-align:center">$!minMax.max</div>
-		#end
-		</td>
-		
-		##comment
-		<td>
-			<select id="value[$dataElement.id].comments" #if( $auth.hasAccess( "dhis-web-dataentry", "saveComment" )) onchange="commentSelected( $dataElement.id )" #else disabled="disabled" #end #if( $dataValue.comment && !$standardComments.contains( $dataValue.comment )) style="display:none; width:100%" #end>
-				<option value="">[$i18n.getString( "no_comment" )]</option>
-				<option value="custom">[$i18n.getString( "custom_comment" )]</option>
-			#foreach( $comment in $standardComments )
-				<option value="$encoder.htmlEncode( $comment )" #if( $datavalue.comment && $comment == $dataValue.comment ) selected="selected" #end>$encoder.htmlEncode( $comment )</option>
-			#end
-			</select>
-			<input id="value[$dataElement.id].comment" type="text" value="$!encoder.htmlEncode( $dataValue.comment )" #if( $auth.hasAccess( "dhis-web-dataentry", "saveComment" ))
-			    onblur="commentLeft( $dataElement.id )" #else disabled="disabled" #end style="width:100% #if( !$dataValue.comment || $standardComments.contains( $dataValue.comment )) ;display:none #end">
-		</td>
-		<!--<td><span id="value[$dataElement.id].timestamp">#if( $dataValue.timestamp ) $format.formatDateTime( $dataValue.timestamp ) #end</span></td>-->
-		<!--<td><span id="value[$dataElement.id].storedBy">$!encoder.htmlEncode( $dataValue.storedBy )</span></td>-->
-	</tr>
-	#set( $tabIndex = $tabIndex + 1 )
-#end
-</table>
\ No newline at end of file