cy
2022-06-21 129904537f66509f97b285e7eb4f42b3dc349dd0
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
[#include "/component/DatePicker.html" /]
 
[#include "/component/sel.html" /]
 
[#macro vprop source=[] textareaprop=[] values={} groupid=""]
[#assign changeRow = (source?size)%2 /]
<tr>
    [#list source as d]
    <th style="width:15%;"><label>${d.COLUMNNAME}:</label></th>
    <td><span class="infotxt">
        [#if d.DATATYPE==1 || d.DATATYPE==2]
            ${values[d.ID]}
        [/#if]
        [#if d.DATATYPE==4]
            ${DateUtil.format("yyyy-MM-dd",values[d.ID])}
        [/#if]
        [#if d.DATATYPE==5]    
            [#if d.DATATYPE==5]
                [#list d.items as item]
                    [#if item.ID == values[d.ID]]
                        ${item.ITEMVALUE}
                    [/#if]
                [/#list]
            [/#if]
        [/#if]
        </span>
    </td>
    [#if (d_index+1)%2==0]</tr><tr>[/#if]
    [/#list]
</tr>
 
[#list textareaprop as d]
<tr>
<th style="width:15%;"><label [#if d.ALLOWNULL==2] class="required"[/#if]>${d.COLUMNNAME}:</label></th>
<td colspan="3">
[#if d.DATATYPE==6]
        [#assign itemVal = values[d.ID]]
          [#list d.items as item]
              [#if itemVal?contains(item.ID)]${item.ITEMVALUE}&nbsp;[/#if]
          [/#list]
[#else]
        ${values[d.ID]}
[/#if]
</td>
</tr>
[/#list]
[/#macro]