This repository has been archived by the owner on Aug 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeltas.jl
59 lines (50 loc) · 2.29 KB
/
deltas.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
on(contractsModel.command) do _
if (contractsModel.command[] != "")
println("command is " * string(contractsModel.command[]))
println(contractsModel.cs["revision"]["description"])
w = Workflow(type_of_entity="Contract",
ref_history=DbId(9),
tsw_validfrom=ZonedDateTime(2022, 11, 01, 12, 0, 1, 1, tz"UTC"),
)
update_entity!(w)
try
previous::Dict{String,Any} = contractsModel.csorig
current::Dict{String,Any} = contractsModel.cs[]
println("vor compare")
deltas = compareModelStateContract(previous, current)
for delta in deltas
println(delta)
prev = delta[1]
curr = delta[2]
update_component!(prev, curr, w)
end
contractsModel.command[] = ""
println("model persisted")
catch err
println("compare shief gegangen ")
@error "ERROR: " exception = (err, catch_backtrace())
end
end
end
contractsModel.cs = cs
contractsModel.cs["loaded"] = "true"
contractsModel.csorig = copy(cs)
cs::R{Dict{String,Any}} = Dict{String,Any}("loaded" => "false")
csorig::Dict{String,Any} = Dict{String,Any}("loaded" => "false")
btn("Show Product Items", outline=true, @click("show_product_items=!show_product_items")),
"""
<div class="q-pa-md">
<div class="q-gutter-md" style="max-width: 300px">
<q-field label="Standard" stack-label>
<template v-slot:control>
<div class="self-center full-width no-outline" tabindex="0">{{cs['revision']['ref_invalidfrom']}}</div>
</template>
</q-field>
<q-field label="Standard" stack-label>
<template v-slot:control>
<div class="self-center full-width no-outline" tabindex="0">{{selected_contract_idx}}</div>
</template>
</q-field>
<q-input v-model="cs['revision']['description']" label="Description" placeholder="Placeholder" hint="With placeholder" :dense="dense"></q-input></td>
</div>
</div>