
specification.specification.properties-timesheet.csv Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tsl2.nano.h5 Show documentation
Show all versions of tsl2.nano.h5 Show documentation
TSL2 Framework Html5 Extensions (WebServer, Html5Presentation, RuleCover, BeanConfigurator, LogicTable-Sheet, Expression-Descriptors for Actions, Rules, URLs, Queries)
The newest version!
##############################################################################
# Tsl2Nano H5 Specification Properties (Thomas Schneider / 2022)
#
# Syntax:
# |
#
# with:
# create-property : =
# create-user : createuser=:::
# create-rule : <=
# bean-change : [..[|]] | [bean-change-ex]
# with:
# bean-name :
# bean-attribute:
# prop-change : <|||type|id|unique|temporalType|description|doValidation>*=
# attr-change :
# enabler=
# | listener=:
# | rulecover=:
# bean-change-ex:
#
# | addattribute=
# | addaction=
# | attributefilter=
# | icon=
# | createcompositor=,,
# | createcontroller=,,
# | createquery=
# | createstatistics
# | createsheet=,,
#
# with:
# rule :
# constraint : constraint.
# presentable: presentable.
# columndef : columndefinition.|minsearch|maxsearch|standardSummary>
#
# The character ':' can be replaced by one of ';:,\s'. The character '=' can be
# replaced by a tab character.
##############################################################################
%weekday=charge.getFromdate() != null ? charge.getFromdate().toLocaleTimeString('de-DE', {weekday: 'short'}) : '';
%calcTime=var from = fromtime != null ? fromtime.getTime() % 24*3600 : 0; var to = totime != null ? totime.getTime() % 24*3600 : 0; var p = pause != null ? (pause.getTime() - new Date(pause.toGMTString()).getTimezoneOffset()*60000) % 86400000 : 0; Math.round(((to - from) - p) / (3600 * 10)) / 100;
%presValueColor=var map = new java.util.HashMap(); map.put('style', (typeof value != 'undefined' ? value : 0) > 10 ? 'color: red;' : 'color: green;'); map;
&weekcolor= \
matrix, <1>, <2>, <3>, <4>, <5>, <6>, <7> \
weekday, Mo, Di, Mi, Do, Fr, Sa, So \
result, color: green;,color: green;,color: green;,color: green;,color: green;,color: red;,color: red
%id=value
!myAction=de.tsl2.nano.execution.ScriptUtil.ant
§test=test-action
>myflow= \
START (OK) -> !myAction [label="§test"] \
!myAction (NEW) -> END
charge.valueexpression={item}:{value}
charge.icon=icons/clock.png
charge.addattribute=%weekday
charge.value.listener=%calcTime:fromtime,totime,pause
charge.value.rulecover=%presValueColor:presentable.layoutConstraint
charge.value.rulecover=%presValueColor:columnDefinition.presentable.layoutConstraints
charge.fromdate.listener=%id:todate
charge.fromdate.rulecover=&weekcolor:presentable.layoutConstraints
charge.fromdate.rulecover=&weekcolor:columnDefinition.presentable.layoutConstraints
charge.todate.presentation.visible*=false
charge.fromtime.presentation.type*=16
charge.totime.presentation.type*=16
charge.pause.presentation.type*=16
charge.value.constraint.scale*=2
charge.value.constraint.precision*=4
type.icon=icons/equipment.png
type.valueexpression={name}
category.icon=icons/equipment.png
category.valueexpression={name}
account.icon=icons/euro.png
account.valueexpression={name}
property.icon=icons/table.png
property.valueexpression={akey}
#property.attributefilter=
chargeitem.icon=icons/buy.png
chargeitem.valueexpression={item}
chargeitem.charge.constraint.nullable*=false
item.valueexpression={name}
item.icon=icons/equipment.png
address.valueexpression={city},{street}
address.icon=icons/home.png
party.valueexpression={shortname}
party.icon=icons/male.png
chargestatus.valueexpression={name}
chargestatus.icon=icons/yellow_pin.png
mission.valueexpression={name}
mission.icon=icons/yellow_pin.png
organisation.valueexpression={name}
organisation.icon=icons/people.png
area.valueexpression={name}
area.icon=icons/boss.png
location.valueexpression={name}
location.icon=icons/yellow_pin.png
digial.valueexpression={name}
digial.icon=icons/e-mail.png
coordinate.valueexpression={x},{y}
coordinate.icon=icons/blue_pin.png
classification.valueexpression={name}
classification.icon=icons/widget.png
discharge.valueexpression={charge} ({date}: {value})
discharge.icon=icons/accounting.png
charge.createcompositor=item,chargeitems,chargeitem,icon
charge.createcontroller=item,chargeitems,chargeitem,icon,value
charge.createsheet=mysheet,3,3
charge.createstatistics=mystatistics
charge.createquery=select * from Adress
times.addattribute=party.name
createuser=MUSTER:mypasswd:SA::true
© 2015 - 2025 Weber Informatics LLC | Privacy Policy