DailyProductionReport.uispin.html 4.76 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>
	
	<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: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" />
	
		
	
	
	
	
	
	<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" />		
	

        <h2>Well Fluid Level Test Information</h2>
  
	
	
	
	
<dprswp:Table arg:report="{= ?report }" arg:template="dpr-tables:WellFluidLevelTest" />			
	
	<h2>Well Production Test Information</h2>
	
<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>