DailyProductionReport.uispin.html 6.84 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>Report version : {# SELECT ?reportVersion
WHERE { 
    ?report rdf:type ep-report:ProductionReport .
	?report ep-report:reportVersion ?reportVersion .  
}}</h2>
<h2>Report Status : {# SELECT ?reportStatusLabel
WHERE { 
    ?report rdf:type ep-report:ProductionReport .
    ?report a ?reportStatus .
    ?reportStatus a ep-report:ReportVersionStatus .
    ?reportStatus rdfs:label ?reportStatusLabel .   
}}</h2>
<h2>Submitted by : {# SELECT ?submittingFieldName WHERE 
{ 

?report a ep-report:ProductionReport . 
?reportIssueActivity ep-report:issuedReport ?report .
?reportIssueActivity ep-activity:issuedFrom ?submittingFieldState .
?submittingFieldState ep-core:temporalPartOf ?submittingField .
?submittingField npd:name ?submittingFieldName .

} }</h2>
	
	<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:PersonnelInformation" />

		
	<table>
	
	<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><td>Total Beds Available</td></tr>
     </ui:forEach>
	</table>
	
	
	
	<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:HSEInformation" />	
	<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:SafetyInformation" />	
	<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WeatherInformation" />
	<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:SeaWeatherInformation" />
	<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:OperationInformation" />
	
	<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationActivity" />
	<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationShutdown" />	
	<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationCargoShip" />
	
	<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationMarine" />
	<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionOperationMarineShip" />
	
	
	
	<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductionVolumes" />
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductFlows" /> 
	
	<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:InjectionVolumes" />
		<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductFlowsInjection" />	
	
		<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ImportVolumes" />
			<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductFlowsImport" />	
	
	<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ExportVolumes" />	
		<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductFlowsExport" />	
	
	<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:OtherVolumes" />
	<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:ProductFlowsOther" />
	
		
	
	
	
	
	

	
	<ui:if ui:condition="{# ASK WHERE {    
			 ?report a ep-report:ProductionReport .
        ?wellTestReport ep-core:partOf ?report .
    ?wellTestReport a ep-report:WellTestReport .
    ?wellTestReport ep-report:reportOn ?wellTest .
    ?wellTest a ep-activity:WellTest .
    ?wellTest ep-core:hasPart ?injectionWellTest .
    ?injectionWellTest a ep-prodact:InjectionWellTest . }  }">
 	<hr />       	
        	<h2>General Well Test Information</h2>	
        	
    </ui:if> 
	
	
	
	<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellTest" />

	

	<ui:if ui:condition="{# ASK WHERE {    
			 ?report a ep-report:ProductionReport .
        ?wellTestReport ep-core:partOf ?report .
    ?wellTestReport a ep-report:WellTestReport .
    ?wellTestReport ep-report:reportOn ?wellTest .
    ?wellTest a ep-activity:WellTest .
    ?wellTest ep-core:hasPart ?injectionWellTest .
    ?injectionWellTest a ep-prodact:InjectionWellTest . }  }">
        	
        	<h2>Well Injection Test Information</h2>
        		<hr />
    </ui:if>

	   
	
	
	<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellInjectionTest" />	
	<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellInjectionTestResults" />		
	


		 <ui:if ui:condition="{# ASK WHERE {
    ?report a ep-report:ProductionReport .
    ?wellTestReport ep-core:partOf ?report .
    ?wellTestReport a ep-report:WellTestReport . }  }">
        <h2>Well Fluid Level Test Information</h2>
    </ui:if>   
	

<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellFluidLevelTest" />			
	
	
	<ui:if ui:condition="{# ASK WHERE {    
			 ?report a ep-report:ProductionReport .
        ?wellTestReport ep-core:partOf ?report .
    ?wellTestReport a ep-report:WellTestReport .
    ?wellTestReport ep-report:reportOn ?wellTest .
    ?wellTest a ep-activity:WellTest .   
      ?wellTest ep-core:hasPart ?wellTestPart .
    ?wellTestPart a ep-activity:ProductionWellTest .
    }  }">
        	
        	<h2>Well Production Test Information</h2>
        		<hr />
    </ui:if>	
	
	
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellProductionTest" />			

<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellProductionTestResults" />				

	<ui:if ui:condition="{# ASK WHERE {
    ?report a ep-report:ProductionReport .
    ?fluidSampleReport ep-core:partOf ?report .
    ?fluidSampleReport a ep-report:FluidSampleReport . }  }">
       <h2>Fluid Sample Information</h2>
    </ui:if> 

	
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:FluidSamples" />			

<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:FluidSampleAnalysisResults" />			

</ui:group>