Removed two SWP files that are only needed in the EPIM-Sources repo
Added rhspin:companyName
Showing
3 changed files
with
13 additions
and
170 deletions
www.reportinghub.no/download-ddr.swp
deleted
100644 → 0
1 | -<html> | ||
2 | - <head> | ||
3 | - <title>ReportingHub - Download DDR</title> | ||
4 | - <link rel="stylesheet" type="text/css" href="lib/rh/rh.css" /> | ||
5 | - <link rel="stylesheet" type="text/css" href="lib/rh/jquery/jquery-ui.css" /> | ||
6 | - | ||
7 | - <script type="text/javascript" src="lib/rh/jquery/jquery.js"></script> | ||
8 | - <script type="text/javascript" src="lib/rh/jquery/jquery-ui.js"></script> | ||
9 | - <script type="text/javascript" src="lib/rh/js/rh.js"></script> | ||
10 | - | ||
11 | - <script> | ||
12 | - | ||
13 | - function updateWellBores() { | ||
14 | - // Updates the content of the well bores list based on selected well | ||
15 | - $("#wellSelect option:selected").each(function() { | ||
16 | - updateSelect('#wellBoreSelect', '{= rhspin:GetWellBoresOfWell }', { well: $(this).val() }); | ||
17 | - }); | ||
18 | - } | ||
19 | - | ||
20 | - </script> | ||
21 | - | ||
22 | - </head> | ||
23 | - <body> | ||
24 | - <div id="wrapper"> | ||
25 | - <rhswp:Header /> | ||
26 | - | ||
27 | - <div id="content"> | ||
28 | - | ||
29 | - <h3>Download a Daily Drilling Report</h3> | ||
30 | - <form action="download-report"> | ||
31 | - | ||
32 | - <table> | ||
33 | - <tr> | ||
34 | - <td style="vertical-align: top"> | ||
35 | - <div class="formHeader">1. Select Well:</div> | ||
36 | - <select size="10" id="wellSelect" style="width: 200px"> | ||
37 | - <ui:forEach ui:resultSet="{# | ||
38 | - SELECT ?well ?wellName | ||
39 | - WHERE { | ||
40 | - GRAPH npdata:npd { | ||
41 | - ?well a ep-well:Well . | ||
42 | - ?well npd:name ?wellName . | ||
43 | - } | ||
44 | - } ORDER BY ?wellName | ||
45 | - }"> | ||
46 | - <option value="{= ?well }">{= ?wellName }</option> | ||
47 | - </ui:forEach> | ||
48 | - </select> | ||
49 | - | ||
50 | - <script> | ||
51 | - $('#wellSelect').change(function() { | ||
52 | - updateWellBores(); | ||
53 | - }); | ||
54 | - </script> | ||
55 | - | ||
56 | - </td> | ||
57 | - <td></td> | ||
58 | - <td style="padding-left:20px; vertical-align: top"> | ||
59 | - <div> | ||
60 | - <div class="formHeader">2. Select Well Bore:</div> | ||
61 | - <select size="5" id="wellBoreSelect" name="wellboreId" style="width:200px"> | ||
62 | - </select> | ||
63 | - </div><br /> | ||
64 | - <div> | ||
65 | - <div class="formHeader">3. Select Date(s):</div> | ||
66 | - <input type="hidden" name="timeFrom" id="timeFrom" /> | ||
67 | - <input type="hidden" name="timeTo" id="timeTo" /> | ||
68 | - <input type="text" id="datepicker1" style="width: 90px" /> - <input type="text" id="datepicker2" style="width: 90px" /> | ||
69 | - <script> | ||
70 | - $(function() { | ||
71 | - $("#datepicker1").datepicker({ altField: '#timeFrom' , altFormat: 'yy-mm-dd' }); | ||
72 | - $("#datepicker2").datepicker({ altField: '#timeTo' , altFormat: 'yy-mm-dd' }); | ||
73 | - }); | ||
74 | - </script> | ||
75 | - </div> | ||
76 | - </td> | ||
77 | - <td></td> | ||
78 | - <td style="padding-left:20px; vertical-align: top"> | ||
79 | - <div> | ||
80 | - <div class="formHeader">4. Select Format:</div> | ||
81 | - <input type="radio" name="format" value="html" checked="checked"/>HTML<br /> | ||
82 | - <input type="radio" name="format" value="pdf" />PDF<br /> | ||
83 | - <input type="radio" name="format" value="xml" />XML<br /> | ||
84 | - </div><br /> | ||
85 | - <input type="submit" value="Download" /> | ||
86 | - </td> | ||
87 | - </tr> | ||
88 | - </table> | ||
89 | - </form> | ||
90 | - </div> | ||
91 | - </div> | ||
92 | - </body> | ||
93 | -</html> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -232,6 +232,13 @@ rhspin:companyHasLicenceForWellBore | ... | @@ -232,6 +232,13 @@ rhspin:companyHasLicenceForWellBore |
232 | ] ; | 232 | ] ; |
233 | spin:returnType <http://www.reportinghub.no/ep/schema/well#WellBore> . | 233 | spin:returnType <http://www.reportinghub.no/ep/schema/well#WellBore> . |
234 | 234 | ||
235 | +rhspin:companyName | ||
236 | + rdf:type spin:Function ; | ||
237 | + rdfs:comment "Gets the name of the company of the currently logged in user."^^xsd:string ; | ||
238 | + rdfs:label "company name"^^xsd:string ; | ||
239 | + rdfs:subClassOf spin:Functions ; | ||
240 | + spin:returnType xsd:string . | ||
241 | + | ||
235 | rhspin:discoveryById | 242 | rhspin:discoveryById |
236 | rdf:type spin:Function ; | 243 | rdf:type spin:Function ; |
237 | rdfs:label "discovery by id"^^xsd:string ; | 244 | rdfs:label "discovery by id"^^xsd:string ; |
... | @@ -272,15 +279,15 @@ rhspin:dtypeValue | ... | @@ -272,15 +279,15 @@ rhspin:dtypeValue |
272 | ] ; | 279 | ] ; |
273 | spin:constraint | 280 | spin:constraint |
274 | [ rdf:type spl:Argument ; | 281 | [ rdf:type spl:Argument ; |
275 | - rdfs:comment "The subject of the value."^^xsd:string ; | ||
276 | - spl:predicate sp:arg1 ; | ||
277 | - spl:valueType rdfs:Resource | ||
278 | - ] ; | ||
279 | - spin:constraint | ||
280 | - [ rdf:type spl:Argument ; | ||
281 | rdfs:comment "The predicate that points to the reified value."^^xsd:string ; | 282 | rdfs:comment "The predicate that points to the reified value."^^xsd:string ; |
282 | spl:predicate sp:arg2 ; | 283 | spl:predicate sp:arg2 ; |
283 | spl:valueType rdf:Property | 284 | spl:valueType rdf:Property |
285 | + ] ; | ||
286 | + spin:constraint | ||
287 | + [ rdf:type spl:Argument ; | ||
288 | + rdfs:comment "The subject of the value."^^xsd:string ; | ||
289 | + spl:predicate sp:arg1 ; | ||
290 | + spl:valueType rdfs:Resource | ||
284 | ] . | 291 | ] . |
285 | 292 | ||
286 | rhspin:facilityById | 293 | rhspin:facilityById | ... | ... |
www.reportinghub.no/upload-ddr.swp
deleted
100644 → 0
1 | -<html> | ||
2 | - <head> | ||
3 | - <title>ReportingHub - Validate/Upload DDR</title> | ||
4 | - <link href="lib/rh/rh.css" rel="stylesheet" type="text/css" /> | ||
5 | - <script type="text/javascript" src="lib/rh/jquery/jquery.js"></script> | ||
6 | - <script type="text/javascript" src="lib/rh/jquery/jquery.form.js"></script> | ||
7 | - | ||
8 | - <script type="text/javascript"> | ||
9 | - | ||
10 | - $(document).ready(function() { | ||
11 | - $('#theForm').ajaxForm({ | ||
12 | - beforeSubmit: clearOutput, | ||
13 | - success: writeOutput | ||
14 | - }); | ||
15 | - }); | ||
16 | - | ||
17 | - function clearOutput(a, f, o) { | ||
18 | - $('#output').html('Submitting report...'); | ||
19 | - } | ||
20 | - | ||
21 | - function writeOutput(data) { | ||
22 | - var $out = $('#output'); | ||
23 | - if('valid' == data["validation-status"]) { | ||
24 | - $out.html('Report validated OK'); | ||
25 | - } | ||
26 | - else { | ||
27 | - $out.html('Validation failed: ' + data); | ||
28 | - } | ||
29 | - } | ||
30 | - | ||
31 | - </script> | ||
32 | - </head> | ||
33 | - <body> | ||
34 | - <div id="wrapper"> | ||
35 | - | ||
36 | - <rhswp:Header /> | ||
37 | - | ||
38 | - <div id="content"> | ||
39 | - <h3>Validate/Upload a Daily Drilling Report</h3> | ||
40 | - <p> | ||
41 | - Please select a DDR XML file: | ||
42 | - </p> | ||
43 | - <form enctype="multipart/form-data" id="theForm" method="post"> | ||
44 | - <input type="hidden" name="MAX_FILE_SIZE" value="100000" /> | ||
45 | - <div> | ||
46 | - <input name="file" type="file" /> | ||
47 | - </div> | ||
48 | - <br /> | ||
49 | - <input id="validateButton" type="radio" name="type" value="validate" checked="checked" />Validate only<br /> | ||
50 | - <input id="uploadButton" type="radio" name="type" value="upload" />Validate & upload<br /> | ||
51 | - <script> | ||
52 | - | ||
53 | - function updateAction() { | ||
54 | - var newAction = $("#validateButton").attr("checked") ? "validate-report" : "validate-and-upload-report"; | ||
55 | - $("#theForm").attr("action", newAction); | ||
56 | - } | ||
57 | - | ||
58 | - $("#validateButton").change(updateAction); | ||
59 | - $("#uploadButton").change(updateAction); | ||
60 | - | ||
61 | - updateAction(); | ||
62 | - </script> | ||
63 | - <br /> | ||
64 | - <input type="submit" value="Submit" /> | ||
65 | - </form> | ||
66 | - <br /> | ||
67 | - <div id="output"></div> | ||
68 | - </div> | ||
69 | - </div> | ||
70 | - </body> | ||
71 | -</html> | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
-
Please register or login to post a comment