Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
clean-and-itasks
clean-libraries
Commits
4793cd36
Commit
4793cd36
authored
Dec 29, 2006
by
Rinus Plasmeijer
Browse files
*** empty log message ***
parent
d7c8f212
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/htmlGEC/Examples/Simple Workflows/quotation.icl
0 → 100644
View file @
4793cd36
module
quotation
import
StdEnv
,
StdHtml
,
GenEq
derive
gForm
QForm
,
QState
derive
gUpd
QForm
,
QState
derive
gParse
QForm
,
QState
derive
gPrint
QForm
,
QState
derive
gerda
QForm
,
QState
derive
gEq
QState
Start
world
=
doHtmlServer
(
multiUserTask
2
[]
(
Quotation
createDefault
))
world
::
QForm
=
{
fromComp
::
String
,
toComp
::
String
,
startDate
::
HtmlDate
,
endDate
::
HtmlDate
,
estimatedHours
::
Int
,
description
::
TextArea
,
price
::
Int
}
::
QState
=
Submitted
|
Approved
|
Cancelled
|
NeedsRework
|
Draft
Quotation
::
(
QState
,
QForm
)
TSt
->
((
QState
,
QForm
),
TSt
)
Quotation
(
state
,
form
)
tst
#
(
form
,
tst
)
=
([
Txt
"Fill in Form:"
,
Br
,
Br
]
?>>
id
(
STask
"Submit"
form
))
tst
#
(
state
,
tst
)
=
(
1
@::
review
(
state
,
form
))
tst
#
(_,
tst
)
=
([
Txt
(
"Quotation "
<+++
printToString
state
),
Br
,
Br
]
?>>
STask
"OK"
Void
)
tst
|
state
===
NeedsRework
=
mkTask
(
Quotation
(
state
,
form
))
tst
=
returnV
(
state
,
form
)
tst
where
review
(
state
,
form
)
tst
=
(
[
toHtml
form
,
Br
,
Br
]?>>
CTask_button
[
(
"Rework"
,
returnV
NeedsRework
)
,
(
"Approved"
,
returnV
Approved
)
,
(
"Cancel"
,
returnV
Cancelled
)
]
)
tst
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment