Showing
2 changed files
with
110 additions
and
0 deletions
www.reportinghub.no/swp/MPRP.uispin.html
0 → 100644
| 1 | +<ui:group | ||
| 2 | +let:report="{# SELECT ?report WHERE { ?report a ep-report:MonthlyProductionReportPartner . } }" | ||
| 3 | +let:activity="{# SELECT ?activity WHERE {?activity a ep-fac:TemporalPartOfAProductionFacility . ?report ep-report:reportOn ?activity}}" | ||
| 4 | +let:activityEnd="{# SELECT ?activityEnd WHERE {?activity a ep-fac:TemporalPartOfAProductionFacility . ?report ep-report:reportOn ?activity . ?activity ep-activity:finishedAt ?activityEnd}}" | ||
| 5 | +let:reportedFieldName="{# SELECT ?reportedFieldName | ||
| 6 | +WHERE { | ||
| 7 | + ?report a ep-report:MonthlyProductionReportPartner . | ||
| 8 | + ?productVolumeReport ep-core:partOf ?report . | ||
| 9 | + ?productVolumeReport a ep-report:ProductVolumeReport . | ||
| 10 | + ?productVolumeReport ep-report:reportOn ?productionFlowsInReportingPeriod . | ||
| 11 | + ?productionFlowsInReportingPeriod a ep-flow:ProductionFlowNetwork . | ||
| 12 | + ?stateOfField ep-flow:facilityContainsFlow ?productionFlowsInReportingPeriod . | ||
| 13 | + ?stateOfField ep-core:temporalPartOf ?reportedField . | ||
| 14 | + ?reportedField npd:name ?reportedFieldName . | ||
| 15 | +}}" | ||
| 16 | + | ||
| 17 | +> | ||
| 18 | + | ||
| 19 | +<h1>Monthly Partner Report : {= ?reportedFieldName } Field, Month Ending {= ?activityEnd}</h1> | ||
| 20 | +<h2>Report title : {# SELECT ?title WHERE { ?report a ep-report:MonthlyProductionReportPartner . ?report ep-core:name ?title . } }</h2> | ||
| 21 | +<h2>Submitted by : {# SELECT ?submittingFieldName WHERE | ||
| 22 | +{ | ||
| 23 | + | ||
| 24 | +?report a ep-report:MonthlyProductionReportPartner . | ||
| 25 | +?report ep-report:reportSubmittedFrom ?submittingFieldState . | ||
| 26 | +?submittingFieldState ep-core:temporalPartOf ?submittingField . | ||
| 27 | +?submittingField npd:name ?submittingFieldName . | ||
| 28 | + | ||
| 29 | +} }</h2> | ||
| 30 | + | ||
| 31 | + <h3>{= ?productionFlowName }</h3> | ||
| 32 | + <table> | ||
| 33 | + | ||
| 34 | + <tr><td class="nameValueName">type:</td><td class="nameValueValue">{= ?productionFlowDefinitionTypeName | ||
| 35 | + }</td></tr> | ||
| 36 | +<tr><td class="nameValueName">subtype:</td><td class="nameValueValue">{= ?productionFlowDefinitionSubTypeName }</td></tr> | ||
| 37 | +<tr><td class="nameValueName">purpose:</td><td class="nameValueValue">{= ?productionFlowPurposeTypeName }</td></tr> | ||
| 38 | +<tr><td class="nameValueName">product:</td><td class="nameValueValue">{= ?productFlowName }</td></tr> | ||
| 39 | +<tr><td class="nameValueName">material type:</td><td class="nameValueValue">{= ?productFlowMaterialTypeName }</td></tr> | ||
| 40 | +<tr><td class="nameValueName">gross or net:</td><td class="nameValueValue">{= ?productFlowGrossOrNetTypeName }</td></tr> | ||
| 41 | +<tr><td class="nameValueName">duration type:</td><td class="nameValueValue">{= ?productFlowInPeriodDurationTypeName }</td></tr> | ||
| 42 | +<tr><td class="nameValueName">mass (kg):</td><td class="nameValueValue">{= ?massInKilograms }</td></tr> | ||
| 43 | +<tr><td class="nameValueName">pressure (atm):</td><td class="nameValueValue">{= ?pressureInAtmospheres }</td></tr> | ||
| 44 | +<tr><td class="nameValueName">temperature (C°):</td><td class="nameValueValue">{= ?temperatureInCelsius }</td></tr> | ||
| 45 | +<tr><td class="nameValueName">volume (m<sup>3</sup>):</td><td class="nameValueValue">{= ?volumeInMetre3 }</td></tr> | ||
| 46 | +<tr><td class="nameValueName">gross calorific value (MJ/m<sup>3</sup>):</td><td class="nameValueValue">{= ?grossCalorificValueInMegaJouleMetre_3 }</td></tr> | ||
| 47 | + | ||
| 48 | + | ||
| 49 | + </table> | ||
| 50 | + | ||
| 51 | + </ui:forEach> --> | ||
| 52 | + | ||
| 53 | + <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:GasSales" /> | ||
| 54 | + | ||
| 55 | + <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:WellProductionFlows" /> | ||
| 56 | + | ||
| 57 | + <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:Cargo" /> | ||
| 58 | + | ||
| 59 | + <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:CargoOwnership" /> | ||
| 60 | + | ||
| 61 | + <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionSales" /> | ||
| 62 | + | ||
| 63 | + <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionFlowsAll" /> | ||
| 64 | + | ||
| 65 | + <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionInventory" /> | ||
| 66 | + | ||
| 67 | + <mprgswp:Table arg:report="{= ?report }" arg:template="mpr-tables:ProductionInventoryOwnership" /> | ||
| 68 | + | ||
| 69 | + | ||
| 70 | + | ||
| 71 | + | ||
| 72 | +</ui:group> | ||
| 73 | + | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
| 1 | +<ui:call ui:template="{= ?template }" arg:report="{= ?report }"> | ||
| 2 | + <ui:if ui:condition="{= spr:rowCount(?rs) > 0 }"> | ||
| 3 | + <div> | ||
| 4 | + <hr /> | ||
| 5 | + <ui:setContext ui:queryGraph="<http://www.reportinghub.no/ep/spin/mpr-tables>"> | ||
| 6 | + <h2>{= ui:label(?template) }</h2> | ||
| 7 | + </ui:setContext> | ||
| 8 | + <table class="ddrTable" letrs:hrs="{# | ||
| 9 | + SELECT ?header ?left | ||
| 10 | + WHERE { | ||
| 11 | + GRAPH <http://www.reportinghub.no/ep/spin/mpr-tables> { | ||
| 12 | + ?template rhspin:tableHeaders ?list . | ||
| 13 | + ?list <http://jena.hpl.hp.com/ARQ/list#member> ?str . | ||
| 14 | + BIND (fn:starts-with(?str, '*') AS ?left) . | ||
| 15 | + BIND (IF(?left, fn:substring(?str, 2), ?str) AS ?header) . | ||
| 16 | + } | ||
| 17 | + } | ||
| 18 | + }"> | ||
| 19 | + <tr class="ddrTR"> | ||
| 20 | + <ui:forEach ui:resultSet="{= ?hrs }"> | ||
| 21 | + <th class="ddrTH" style="text-align: {= IF(?left, 'left', 'center') }" | ||
| 22 | + ><ui:parse ui:str="{= html:encodeBRs(spif:replaceAll(?header, ' ', ' ')) }" /></th> | ||
| 23 | + </ui:forEach> | ||
| 24 | + </tr> | ||
| 25 | + <ui:forEach ui:resultSet="{# SELECT ?row ?rowIndex WHERE { ?rs spr:rowIndices ?rowIndex } }"> | ||
| 26 | + <tr class="ddrTR"> | ||
| 27 | + <ui:forEach ui:resultSet="{# SELECT ?cell ?colIndex WHERE { (?rs ?rowIndex) spr:rowCells (?cell ?colIndex) } }"> | ||
| 28 | + <!--td class="ddrTD" style="text-align: {= IF(spr:cell(?hrs, ?colIndex, 1), 'left', 'center') }"--> | ||
| 29 | + <td class="ddrTD">{= ?cell }</td> | ||
| 30 | + </ui:forEach> | ||
| 31 | + </tr> | ||
| 32 | + </ui:forEach> | ||
| 33 | + </table> | ||
| 34 | + <br /> | ||
| 35 | + </div> | ||
| 36 | + </ui:if> | ||
| 37 | +</ui:call> | ||
| ... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment