diff --git a/.liquibase/Data_alias/basic/2020.1.3/DeleteNotificationtypeKeywords.xml b/.liquibase/Data_alias/basic/2020.1.3/DeleteNotificationtypeKeywords.xml new file mode 100644 index 0000000000000000000000000000000000000000..43d552d2ec9fc93913e088dfa4992289660b4ca1 --- /dev/null +++ b/.liquibase/Data_alias/basic/2020.1.3/DeleteNotificationtypeKeywords.xml @@ -0,0 +1,9 @@ +<?xml version="1.1" encoding="UTF-8" standalone="no"?> +<databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd"> + <changeSet author="s.pongratz" id="0b393c2b-c969-41ab-9eeb-3ccaf418e069"> + <delete tableName="AB_KEYWORD_ENTRY" > + <where>CONTAINER = 'NotificationType'</where> + </delete> + </changeSet> +</databaseChangeLog> diff --git a/.liquibase/Data_alias/basic/2020.1.3/changelog.xml b/.liquibase/Data_alias/basic/2020.1.3/changelog.xml index dd3d04e98c24b8dae828018ccd9036983af343b2..2144ba2aa05757e48e229d77a6615145bdfde80c 100644 --- a/.liquibase/Data_alias/basic/2020.1.3/changelog.xml +++ b/.liquibase/Data_alias/basic/2020.1.3/changelog.xml @@ -2,6 +2,7 @@ <databaseChangeLog xmlns="http://www.liquibase.org/xml/ns/dbchangelog" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd"> <include file="AlterButtonLabelTitles/AlterButtonLabelTitles.xml" relativeToChangelogFile="true" /> + <include file="DeleteNotificationtypeKeywords.xml" relativeToChangelogFile="true" /> <include file="add_Address_LatLon.xml" relativeToChangelogFile="true"/> <include file="VisitPlanEntry/rename_VisitPlanEntry_ORGANISATION_ID.xml" relativeToChangelogFile="true" /> </databaseChangeLog> diff --git a/entity/KeywordEntry_entity/KeywordEntry_entity.aod b/entity/KeywordEntry_entity/KeywordEntry_entity.aod index 33635f575600381c7558ab9a11193459f32ac1cb..2d0edd64d5ba7e6d9b3e6463f32144b574509094 100644 --- a/entity/KeywordEntry_entity/KeywordEntry_entity.aod +++ b/entity/KeywordEntry_entity/KeywordEntry_entity.aod @@ -583,12 +583,6 @@ <fieldName>CategoryKeyword</fieldName> <isConsumer v="false" /> </entityDependency> - <entityDependency> - <name>644a6101-6b11-4998-bd8d-b799c6f376fa</name> - <entityName>Notification_entity</entityName> - <fieldName>TypeKeywords</fieldName> - <isConsumer v="false" /> - </entityDependency> </dependencies> <children> <entityParameter> diff --git a/entity/Notification_entity/Notification_entity.aod b/entity/Notification_entity/Notification_entity.aod index 990b2e77775f315eb4600a2961136a8a962d8efb..365030844701c4976dbe7f8114e7c5d0967ee892 100644 --- a/entity/Notification_entity/Notification_entity.aod +++ b/entity/Notification_entity/Notification_entity.aod @@ -27,6 +27,7 @@ <name>STATE</name> <title>State</title> <consumer>StateKeywords</consumer> + <groupable v="true" /> <displayValueProcess>%aditoprj%/entity/Notification_entity/entityfields/state/displayValueProcess.js</displayValueProcess> </entityField> <entityField> @@ -68,9 +69,8 @@ <entityField> <name>TYPECODE</name> <title>Type</title> - <consumer>TypeKeywords</consumer> <groupable v="true" /> - <displayValueProcess>%aditoprj%/entity/Notification_entity/entityfields/typecode/displayValueProcess.js</displayValueProcess> + <dropDownProcess>%aditoprj%/entity/Notification_entity/entityfields/typecode/dropDownProcess.js</dropDownProcess> </entityField> <entityField> <name>VERSION</name> @@ -119,6 +119,10 @@ <tooltip></tooltip> <tooltipProcess>%aditoprj%/entity/Notification_entity/entityfields/setnotificationstate/children/setnew/tooltipProcess.js</tooltipProcess> </entityActionField> + <entityActionField> + <name>getNotification</name> + <onActionProcess>%aditoprj%/entity/Notification_entity/entityfields/setnotificationstate/children/getnotification/onActionProcess.js</onActionProcess> + </entityActionField> </children> </entityActionGroup> <entityActionField> @@ -129,6 +133,7 @@ <name>RESOLVEDPRIORITY</name> <title>Priority</title> <consumer>PrioKeywords</consumer> + <groupable v="true" /> <textInputAllowed v="false" /> </entityField> <entityConsumer> @@ -159,20 +164,6 @@ </entityParameter> </children> </entityConsumer> - <entityConsumer> - <name>TypeKeywords</name> - <dependency> - <name>dependency</name> - <entityName>KeywordEntry_entity</entityName> - <fieldName>SpecificContainerKeywords</fieldName> - </dependency> - <children> - <entityParameter> - <name>ContainerName_param</name> - <valueProcess>%aditoprj%/entity/Notification_entity/entityfields/typekeywords/children/containername_param/valueProcess.js</valueProcess> - </entityParameter> - </children> - </entityConsumer> </entityFields> <recordContainers> <dbRecordContainer> diff --git a/entity/Notification_entity/entityfields/typecode/displayValueProcess.js b/entity/Notification_entity/entityfields/typecode/displayValueProcess.js deleted file mode 100644 index fcf893072cda6e8d5248ec3392af95b9c2feb13c..0000000000000000000000000000000000000000 --- a/entity/Notification_entity/entityfields/typecode/displayValueProcess.js +++ /dev/null @@ -1,6 +0,0 @@ -import("Keyword_lib"); -import("system.result"); -import("system.vars"); -import("KeywordRegistry_basic"); - -result.string(KeywordUtils.getViewValue($KeywordRegistry.notificationType(), vars.get("$field.TYPECODE"))); \ No newline at end of file diff --git a/entity/Notification_entity/entityfields/typecode/dropDownProcess.js b/entity/Notification_entity/entityfields/typecode/dropDownProcess.js new file mode 100644 index 0000000000000000000000000000000000000000..f4800969f4e5967a497f2d0ce1b0244ccd81da63 --- /dev/null +++ b/entity/Notification_entity/entityfields/typecode/dropDownProcess.js @@ -0,0 +1,12 @@ +import("system.result"); +import("system.logging"); +import("system.notification"); + +var types = [] + +for (let property in notification.getAllTypes()) +{ + types.push(property); +} + +result.object(types); \ No newline at end of file diff --git a/entity/Notification_entity/entityfields/typekeywords/children/containername_param/valueProcess.js b/entity/Notification_entity/entityfields/typekeywords/children/containername_param/valueProcess.js deleted file mode 100644 index 8ccc4158b03124fe0be85ad1ffaeeca86efb0fb2..0000000000000000000000000000000000000000 --- a/entity/Notification_entity/entityfields/typekeywords/children/containername_param/valueProcess.js +++ /dev/null @@ -1,5 +0,0 @@ -import("system.result"); -import("KeywordRegistry_basic"); - - -result.string($KeywordRegistry.notificationType()); \ No newline at end of file diff --git a/language/_____LANGUAGE_de/_____LANGUAGE_de.aod b/language/_____LANGUAGE_de/_____LANGUAGE_de.aod index ea4c97cbf66e1809c84b060581fd693068ac4812..14b87249af125526a2090fb370943eebb3636f65 100644 --- a/language/_____LANGUAGE_de/_____LANGUAGE_de.aod +++ b/language/_____LANGUAGE_de/_____LANGUAGE_de.aod @@ -8820,6 +8820,7 @@ Bitte Datumseingabe prüfen</value> </entry> <entry> <key>New</key> + <value>Neu</value> </entry> <entry> <key>Release</key> diff --git a/neonView/NotificationFilter_view/NotificationFilter_view.aod b/neonView/NotificationFilter_view/NotificationFilter_view.aod index 65c5f94e79b7ca64bc3b52f30166c941c25d7ae7..2ff088a9ccf6c6ae330a9551921fa707c3143f07 100644 --- a/neonView/NotificationFilter_view/NotificationFilter_view.aod +++ b/neonView/NotificationFilter_view/NotificationFilter_view.aod @@ -35,6 +35,7 @@ <iconIdField>ICON</iconIdField> <entityField>#ENTITY</entityField> <isEditable v="false" /> + <informationField>STATE</informationField> </timelineViewTemplate> <tableViewTemplate> <name>NotificationTable</name> diff --git a/process/KeywordRegistry_basic/process.js b/process/KeywordRegistry_basic/process.js index 04e469c42da0bb82885071aec0350704dc6d59bc..76562cebe08f90b4ce28a46a9f1265b5741a8ec0 100644 --- a/process/KeywordRegistry_basic/process.js +++ b/process/KeywordRegistry_basic/process.js @@ -294,4 +294,3 @@ $KeywordRegistry.visitRecommendationPrioSource$manual = function(){return $Keywo $KeywordRegistry.workflowCategory = function(){return "WorkflowCategory";}; $KeywordRegistry.notificationState = function () { return "NotificationState";}; -$KeywordRegistry.notificationType = function () { return "NotificationType";};