generated from axonivy-market/market-product
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
217 changed files
with
3,262 additions
and
0 deletions.
There are no files selected for viewing
8 changes: 8 additions & 0 deletions
8
...connector-demo/dataclasses/com/axonivy/connector/srf/weather/connector/demo/Data.ivyClass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,10 @@ | ||
Data #class | ||
com.axonivy.connector.srf.weather.connector.demo #namespace | ||
geolocation ch.srgssr.api.srf.meteo.v2.client.GeolocationNamesSearch #field | ||
geolocation PERSISTENT #fieldModifier | ||
forcastPointWeek ch.srgssr.api.srf.meteo.v2.client.ForecastPointWeek #field | ||
forcastPointWeek PERSISTENT #fieldModifier | ||
day ch.srgssr.api.srf.meteo.v2.client.DayForecastInterval #field | ||
day PERSISTENT #fieldModifier | ||
location com.axonivy.connector.srf.weather.connector.demo.Location #field | ||
location PERSISTENT #fieldModifier |
8 changes: 8 additions & 0 deletions
8
...ector-demo/dataclasses/com/axonivy/connector/srf/weather/connector/demo/Location.ivyClass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Location #class | ||
com.axonivy.connector.srf.weather.connector.demo #namespace | ||
zip Number #field | ||
zip PERSISTENT #fieldModifier | ||
geolocationId String #field | ||
geolocationId PERSISTENT #fieldModifier | ||
locationName String #field | ||
locationName PERSISTENT #fieldModifier |
50 changes: 50 additions & 0 deletions
50
srf-weather-connector-demo/processes/srfweatherDemo.p.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
{ | ||
"$schema" : "https://json-schema.axonivy.com/process/11.1.26/process.json", | ||
"id" : "189CFC3474ECF538", | ||
"config" : { | ||
"data" : "com.axonivy.connector.srf.weather.connector.demo.Data" | ||
}, | ||
"elements" : [ { | ||
"id" : "f0", | ||
"type" : "RequestStart", | ||
"name" : "start.ivp", | ||
"config" : { | ||
"signature" : "start" | ||
}, | ||
"visual" : { | ||
"at" : { "x" : 104, "y" : 80 } | ||
}, | ||
"connect" : [ | ||
{ "id" : "f3", "to" : "f2" } | ||
] | ||
}, { | ||
"id" : "f1", | ||
"type" : "TaskEnd", | ||
"visual" : { | ||
"at" : { "x" : 496, "y" : 80 } | ||
} | ||
}, { | ||
"id" : "f2", | ||
"type" : "DialogCall", | ||
"name" : "checkWeatherForm", | ||
"config" : { | ||
"dialog" : "com.axonivy.connector.srf.weather.connector.demo.checkWeatherForm:start(com.axonivy.connector.srf.weather.connector.demo.Data)", | ||
"call" : { | ||
"map" : { | ||
"param.data" : "in" | ||
} | ||
}, | ||
"output" : { | ||
"map" : { | ||
"out" : "result.data" | ||
} | ||
} | ||
}, | ||
"visual" : { | ||
"at" : { "x" : 312, "y" : 80 } | ||
}, | ||
"connect" : [ | ||
{ "id" : "f4", "to" : "f1" } | ||
] | ||
} ] | ||
} |
7 changes: 7 additions & 0 deletions
7
...onivy/connector/srf/weather/connector/demo/checkWeatherForm/checkWeatherForm.rddescriptor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | ||
<richDialogDescriptor> | ||
<property> | ||
<name>viewTechnology</name> | ||
<value>JSF</value> | ||
</property> | ||
</richDialogDescriptor> |
140 changes: 140 additions & 0 deletions
140
.../com/axonivy/connector/srf/weather/connector/demo/checkWeatherForm/checkWeatherForm.xhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,140 @@ | ||
<html xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:f="http://xmlns.jcp.org/jsf/core" | ||
xmlns:h="http://xmlns.jcp.org/jsf/html" | ||
xmlns:ui="http://xmlns.jcp.org/jsf/facelets" | ||
xmlns:ic="http://ivyteam.ch/jsf/component" | ||
xmlns:p="http://primefaces.org/ui" | ||
xmlns:pe="http://primefaces.org/ui/extensions"> | ||
<h:body> | ||
<ui:composition template="/layouts/basic-10.xhtml"> | ||
<ui:define name="title">checkWeatherForm</ui:define> | ||
<ui:define name="content"> | ||
|
||
<h3>Please enter the ZIP code of the city for which you'd like | ||
to retrieve the weather information.</h3> | ||
|
||
<h:form id="form"> | ||
<p:messages /> | ||
<p:panelGrid columns="2" layout="grid" | ||
styleClass="ui-panelgrid-blank ui-fluid" | ||
columnClasses="ui-g-12 ui-md-3 ui-lg-2, ui-g-12 ui-md-9 ui-lg-4, ui-g-12 ui-md-3 ui-lg-2, ui-g-12 ui-md-9 ui-lg-4"> | ||
|
||
<p:outputLabel for="dataZip" value="Zip" /> | ||
<p:inputText id="dataZip" value="#{data.data.location.zip}"></p:inputText> | ||
</p:panelGrid> | ||
|
||
|
||
<p:panelGrid columns="2" layout="grid" | ||
styleClass="ui-panelgrid-blank ui-fluid" | ||
columnClasses="ui-g-12 ui-md-3 ui-lg-2, ui-g-12 ui-md-9 ui-lg-4, ui-g-12 ui-md-3 ui-lg-2, ui-g-12 ui-md-9 ui-lg-4"> | ||
<p:commandButton value="Get Weather" | ||
actionListener="#{logic.getWeather}" update="form" /> | ||
|
||
|
||
</p:panelGrid> | ||
|
||
<p:panelGrid columns="1" layout="grid" | ||
styleClass="ui-panelgrid-blank ui-fluid" | ||
columnClasses="ui-g-12 ui-md-12 ui-lg-12"> | ||
|
||
<h:outputText value="#{data.data.location.locationName}" | ||
style="font-weight: bold; font-size: 30px" /> | ||
|
||
</p:panelGrid> | ||
|
||
<p:panelGrid columns="1" layout="grid" | ||
rendered="#{data.data.day.symbolCode != null ? true : false}" | ||
styleClass="ui-panelgrid-blank ui-fluid" | ||
columnClasses="ui-g-12 ui-md-12 ui-lg-12"> | ||
|
||
<p:dataTable id="theTable" widgetVar="theTable" | ||
value="#{data.data.forcastPointWeek.days}" var="day" rows="7" | ||
emptyMessage="Keine Daten verfügbar"> | ||
|
||
|
||
<p:column headerText="Date"> | ||
<h:outputText value="#{day.dateTime.dayOfWeek}" | ||
style="font-weight: bold" /> | ||
<br /> | ||
<h:outputText | ||
value="#{day.dateTime.dayOfMonth}.#{day.dateTime.month.value}.#{day.dateTime.year}" /> | ||
|
||
|
||
|
||
</p:column> | ||
|
||
<p:column headerText="Weather"> | ||
<h:graphicImage name="images/displayIcons/raindrop#{ivyFreyaTheme.getMode() == 'dark' ? 'W' : ''}.png" | ||
width="13" height="13" /> | ||
<h:outputText | ||
value=" #{day.getRRRMM()}mm / #{day.getPROBPCPPERCENT()} %" /> | ||
<br /> | ||
<h:graphicImage name="images/displayIcons/sun#{ivyFreyaTheme.getMode() == 'dark' ? 'W' : ''}.png" width="13" | ||
height="13" /> | ||
<h:outputText value=" #{day.getSUNH()} Std." /> | ||
<br /> | ||
<h:graphicImage name="images/displayIcons/sunrise#{ivyFreyaTheme.getMode() == 'dark' ? 'W' : ''}.png" width="13" | ||
height="13" /> | ||
<h:outputText value=" #{day.SUNRISE.hour}:#{day.SUNRISE.minute} " /> | ||
|
||
<h:graphicImage name="images/displayIcons/sunset#{ivyFreyaTheme.getMode() == 'dark' ? 'W' : ''}.png" width="13" | ||
height="13" /> | ||
<h:outputText value=" #{day.SUNSET.hour}:#{day.SUNSET.minute} " /> | ||
|
||
</p:column> | ||
|
||
<p:column headerText=""> | ||
<!-- <table style="border: none; border-collapse: collapse;"> --> | ||
<!-- <tr style="border: none;"> --> | ||
<!-- <td --> | ||
<!-- style="text-align: right; width: 60px; padding: 0px; border: none;"><h:graphicImage --> | ||
<!-- name="images/Meteo-API-Icons/#{day.symbolCode}.svg" --> | ||
<!-- width="60" height="60" /></td> --> | ||
<!-- <td style="border: none;"><h:outputText --> | ||
<!-- value="min: #{day.getTNC()}°" /><br /> <h:outputText value="max: #{day.getTXC()}°" /> --> | ||
<!-- </td> --> | ||
|
||
<!-- </tr> --> | ||
<!-- </table> --> | ||
|
||
<table style="align: left"> | ||
<tr> | ||
<td rowspan="3" style="text-align: right; width: 60px; padding: 0px; border: none;"><h:graphicImage | ||
name="images/Meteo-API-Icons/#{ivyFreyaTheme.getMode() eq 'dark' ? '' : 'Dark/'}#{day.symbolCode}.svg" | ||
width="60" height="60" /></td> | ||
<td style="border: none; width: 25px"></td> | ||
<td rowspan="2" style="border: 4; border-color: white; padding:0; background-color: #{day.minColor.backgroundColor}; color: #{day.minColor.textColor}; text-align: center; width: 25px"><h:outputText value="#{day.getTXC()}°" /></td> | ||
</tr> | ||
<tr> | ||
<td rowspan="2" style="border: 4; border-color: white; padding:0; text-align: center; background-color: #{day.minColor.backgroundColor}; color: #{day.minColor.textColor}; width: 25px;"><h:outputText | ||
value="#{day.getTNC()}°" /></td> | ||
</tr> | ||
<tr style="border: none;"> | ||
<td style="border: none; width: 25px"></td> | ||
</tr> | ||
</table> | ||
|
||
</p:column> | ||
|
||
|
||
|
||
</p:dataTable> | ||
|
||
|
||
|
||
</p:panelGrid> | ||
|
||
<br /> | ||
<div class="command-btns"> | ||
<p:commandLink id="cancel" | ||
actionListener="#{ivyWorkflowView.cancel()}" value="Cancel" /> | ||
<p:commandButton id="proceed" actionListener="#{logic.close}" | ||
value="Proceed" update="form" icon="pi pi-check" /> | ||
</div> | ||
</h:form> | ||
|
||
</ui:define> | ||
</ui:composition> | ||
</h:body> | ||
|
||
</html> |
4 changes: 4 additions & 0 deletions
4
...onivy/connector/srf/weather/connector/demo/checkWeatherForm/checkWeatherFormData.ivyClass
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
checkWeatherFormData #class | ||
com.axonivy.connector.srf.weather.connector.demo.checkWeatherForm #namespace | ||
data com.axonivy.connector.srf.weather.connector.demo.Data #field | ||
data PERSISTENT #fieldModifier |
Oops, something went wrong.