DailyProductionReport.uispin.html 2.59 KB
<ui:group 
let:report="{# SELECT ?report WHERE { ?report a ep-report:ProductionReport . } }"

let:reportedFieldName="{# SELECT ?reportedFieldName
WHERE { 
 ?report a ep-report:ProductionReport .

    ?report ep-report:reportOn ?partOfFacility .
    ?partOfFacility ep-core:temporalPartOf ?reportedField .
    ?reportedField npd:name ?reportedFieldName .
}}"
 
>

<h1>Daily Production Report : {= ?reportedFieldName } Field {# SELECT ?day WHERE { ?partOfFacility ep-activity:existsThroughout ?day . } }</h1>
<h2>Report title : {# SELECT ?title WHERE { ?report a ep-report:ProductionReport . ?report ep-core:name ?title . } }</h2>
<h2>Submitted by : {# SELECT ?submittingFieldName WHERE 
{ 

?report a ep-report:ProductionReport . 
?report ep-report:reportSubmittedFrom ?submittingFieldState . 
?submittingFieldState ep-core:temporalPartOf ?submittingField .
?submittingField npd:name ?submittingFieldName .

} }</h2>
	
	<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:PersonnelInformation" />
		
	<table>
	<tr><th>Facility</th><th>Total Beds Available</th></tr>
	<ui:forEach ui:resultSet="{# SELECT ?facilityName ?beds
WHERE {
    ?report a ep-report:ProductionReport .
    ?productionOperationReport ep-core:partOf ?productionReport .
    ?productionOperationReport a ep-report:ProductionOperationReport .
    ?productionOperationReport ep-report:reportOn ?temporalPartOfFacility .
    ?temporalPartOfFacility ep-core:temporalPartOf ?productionFacility .
    ?productionFacility a ep-fac:Field .
    ?productionFacility npd:name ?facilityName .
    ?productionOperationInstallationReport ep-core:partOf ?productionOperationReport .
    ?productionOperationInstallationReport a ep-report:ProductionOperationInstallationReport .
    ?productionOperationInstallationReport ep-report:reportOn ?installationPart .
    ?installationPart ep-prodfac:numberOfBedsAvailable ?beds .
}

}" >
           <tr><td>{= ?facilityName }</td><td>{= ?beds}</td></tr>
     </ui:forEach>
	</table>
	
	<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationActivity" />
	
	<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionVolumes" />
	<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductFlows" />
	
	<hr />
	<h2>General Well Test Information</h2>		
	
	<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellTest" />
	<hr />
	<h2>Well Injection Test Information</h2>
	
	<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellInjectionTest" />	
	<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellInjectionTestResults" />		
	
</ui:group>