111
沙世明
2022-11-22 928399eceec50e3d37ea08669a12789a9410a9d2
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
60
61
62
<apex:page controller="FrameNumController" showHeader="false" sidebar="false" action="{!init}" docType="html-5.0" >
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
<apex:includeScript value="/soap/ajax/29.0/connection.js"/>
<apex:includeScript value="/soap/ajax/29.0/apex.js"/>
<body>
    <title>机身号管理</title>
    <table>
        <apex:form >
            <apex:pageBlock >
                <!-- 测试样式第三个表格,成品 -->
                <table border="1px" class="list" style="border-collapse: collapse;">
                    <!-- <apex:pageBlockTable> -->
                    <tr>
                        <th>产品明细</th>
                        <th>机身号码</th>
                        <th>管理编码</th>
                        <th>预览链接</th>
                        <th>报关单下载链接</th>
                        <th>商检证下载链接</th>
                        <!-- <th>合并数</th> -->
                    </tr>
                    <apex:repeat value="{!newinitList}" var="i">
                        <tr>
                            <td>{!i.ProductName}</td>
                            <td>{!i.FrameNo}</td>
                            <td><a href="/{!i.id}">{!i.Name}</a></td>
                            <!-- <td><a href="/{!i.Id}" >{!i.Name}</a> </td> -->  <!-- 2022-11-10 zyh注释,新加下三行 -->
                            <apex:variable var="type" value="" rendered="{!IF(i.count =null ,false,true)}"> 
                                <td rowspan="{!i.count}" style="text-align: center; "><a href="/{!i.Id}" >{!i.Name}</a></td>
                            </apex:variable>
                            <apex:variable var="type" value="" rendered="{!IF(i.count =null ,false,true)}"> 
                                <apex:variable var="type" value="" rendered="{!IF(i.code ='不出证' ,true,false)}"> 
                                    <td rowspan="{!i.count}" style="text-align: center; ">{!i.code}</td>
                                </apex:variable>
                                <apex:variable var="type" value="" rendered="{!IF(i.code !='不出证' ,true,false)}"> 
                                    <td rowspan="{!i.count}" style="text-align: center; "><a href="{!i.code}">下载</a></td>
                                </apex:variable>
                            </apex:variable>
                            <apex:variable var="type" value="" rendered="{!IF(i.count =null ,false,true)}"> 
                                <apex:variable var="type" value="" rendered="{!IF(i.sj_code ='不出证' ,true,false)}"> 
                                    <td rowspan="{!i.count}" style="text-align: center; ">{!i.sj_code}</td>
                                </apex:variable>
                                <apex:variable var="type" value="" rendered="{!IF(i.sj_code !='不出证' ,true,false)}"> 
                                    <td rowspan="{!i.count}" style="text-align: center; "><a href="{!i.sj_code}">下载</a></td>
                                </apex:variable>
                            </apex:variable>
                            <!-- <apex:variable var="type" value="" rendered="{!IF(i.count =null ,false,true)}"> 
                                <td rowspan="{!i.count}" style="text-align: center; "><a href="{!i.code}">下载</a></td>
                            </apex:variable> --><!-- 
                            <td >{!i.code}</td>
                            <td >{!i.count}</td> -->
                            
                        </tr>
                    </apex:repeat>
                </table>
            </apex:pageBlock>
        </apex:form>
    </table>
</body>
</apex:page>