buli
2023-07-14 e6068da47c1bef5517c9e5fdc8c726766867ad4e
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
<apex:page controller="ImportDocTController" action="{!init}" docType="html-5.0" >
<body>
<table>
    <apex:form >
    <!-- 测试样式第一个表格,可忽略 -->
        <apex:pageBlock >
            <apex:pageBlockTable value="{!testList}" var="t">
                <apex:column value="{!t.Id}" ></apex:column>
                <apex:column value="{!t.Name}" ></apex:column>
                <apex:column value="{!t.code__c}" colspan="{!t.Num__c}" ></apex:column>
                <apex:column value="{!t.Name}" ></apex:column>
                <apex:column value="{!t.Name}" ></apex:column>
            </apex:pageBlockTable>
        </apex:pageBlock>
    <!-- 测试样式第二个表格,可忽略 -->
        <apex:pageBlock >
        <table border="1">
            <apex:repeat value="{!testList}" var="m">
                <tr>
                    <td>{!m.Id}</td>
                    <td>{!m.Name}</td>
                    <td>{!IF(2>1,m.code__c,"2")}</td>
                    <td >{!m.code__c}</td>
                    <apex:variable var="type" value="" rendered="{!IF(m.Num__c =null ,false,true)}"> 
                        <td rowspan="{!m.Num__c}">{!m.Num__c}</td>
                    </apex:variable>
                    
                </tr>
            </apex:repeat>
        </table>
        <br/>
    <!-- 测试样式第三个表格,成品 -->
        <table border="1">
            <apex:repeat value="{!newinitList}" var="i">
                <tr>
                    <td>{!i.Id}</td>
                    <td>{!i.Name}</td>
                    <td>{!IF(2>1,i.code,"2")}</td>
                    <td >{!i.code}</td>
                    <td >{!i.count}</td>
                    <apex:variable var="type" value="" rendered="{!IF(i.count =null ,false,true)}"> 
                        <td rowspan="{!i.count}">合并</td>
                    </apex:variable>
                    
                </tr>
            </apex:repeat>
        </table>
        </apex:pageBlock>
    </apex:form>
</table>
</body>
</apex:page>