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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
<apex:page standardController="eSignForm__c" extensions="FrameNumController" showHeader="false" sidebar="false" action="{!init}" docType="html-5.0" lightningStylesheets="true" >
<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>
    <apex:form id="allForm">
    <!-- <table style="margin-left: 200px;" width="100%"> -->
        <apex:pageBlock >
            <!-- 测试样式第三个表格,成品 -->
            <table border="1px" class="list" style="border-collapse: collapse;" width="100%">
                <!-- <apex:pageBlockTable> -->
                <tr>
                    <th>产品明细</th>
                    <th>机身号码</th>
                    <th>管理编码</th>
                    <!-- <th>预览链接</th>   2022-12-1   zyh    -->
                    <th style="text-align: center;">报关单预览<!-- 下载链接 2022-12-1   zyh --></th>
                    <th style="text-align: center;">商检证预览<!-- 下载链接 2022-12-1   zyh --></th>
                    <!-- <th>合并数</th> -->
                </tr>
                <apex:repeat value="{!trueInitList}" var="i">
                    <tr>
                        <td>{!i.ProductName}</td>
                        <td>{!i.FrameNo}</td>
                        <td>{!i.Name}</td>
                        <td style="text-align: center;">{!i.code}</td>
                        <td style="text-align: center;">{!i.code}</td>
                    </tr>
                </apex:repeat>
                <apex:repeat value="{!newinitList}" var="i">
                    <tr>
                        <td>{!i.ProductName}</td>
                        <td>{!i.FrameNo}</td>
                        <td>{!i.Name}</td>
                        <!-- <td>{!i.count}</td>
                        <td>{!i.count_sj}</td>
                        <td>{!i.code}</td>
                        <td>{!i.sj_code}</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>     2022-12-1   zyh -->
                        <apex:variable var="type" value="" rendered="{!IF(i.count =null ,false,true)}"> 
                            <!-- 2023-02-07   zyh   将代码中的'不出证'改成不要 -->
                            <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)}"> 
                                <!-- 2023-3-1   zyh   add   start -->
                                <apex:variable var="type" value="" rendered="{!IF((i.code ='' || i.code =null) && (i.code_yl = '' || i.code_yl = null) ,true,false)}"> 
                                    <td rowspan="{!i.count}" style="text-align: center; "></td>
                                </apex:variable> 
                                <apex:variable var="type" value="" rendered="{!IF(CONTAINS(i.code,'预计') ,true,false)}"> 
                                    <td rowspan="{!i.count}" style="text-align: center; ">{!i.code}</td>
                                </apex:variable>
                                <!-- 2023-3-1   zyh   add   end -->
                                <apex:variable var="type" value="" rendered="{!IF((i.code ='' || i.code =null) && (i.code_yl != '' || i.code_yl != null) ,true,false)}"> 
                                    <!-- zhj 2022-12-08 预览与下载增强 start -->
                                    <!-- update 20240202 by DTT-亚楠 start -->
                                    <td rowspan="{!i.count}" style="text-align: center; "><a href="{!i.code_yl}">预览</a></td>
                                    <!-- <td rowspan="{!i.count}" style="text-align: center; "><a href="/apex/FilePreviewDownVF?type=preview&key={!i.awsKey}&name={!i.fileName}" target="_blank">预览</a></td> -->
                                    <!-- update 20240202 by DTT-亚楠 end -->
                                    <!-- zhj 2022-12-08 预览与下载增强 end -->
                                </apex:variable>
                                <apex:variable var="type" value="" rendered="{!IF((i.code !='' || i.code != null) && (i.code_yl = '' || i.code_yl = null) && !CONTAINS(i.code,'预计') ,true,false)}"> 
                                    <!-- zhj 2022-12-08 预览与下载增强 start -->
                                    <!-- update 20240202 by DTT-亚楠 start -->
                                    <td rowspan="{!i.count}" style="text-align: center; "><a href="{!i.code}">下载</a></td>
                                    <!-- <td rowspan="{!i.count}" style="text-align: center; "><a href="/apex/FilePreviewDownVF?type=download&key={!i.awsKey}&name={!i.fileName}" target="_blank">下载</a></td> -->
                                    <!-- update 20240202 by DTT-亚楠 end -->
                                    <!-- zhj 2022-12-08 预览与下载增强 end -->
                                </apex:variable>
                                <apex:variable var="type" value="" rendered="{!IF(i.code !='不要' && (i.code !='' || i.code != null) && (i.code_yl != '' || i.code_yl != null) && !CONTAINS(i.code,'预计') ,true,false)}"> 
                                    <!-- zhj 2022-12-08 预览与下载增强 start -->
                                    <!-- update 20240202 by DTT-亚楠 start -->
                                    <td rowspan="{!i.count}" style="text-align: center; "><a href="{!i.code_yl}">预览</a>  |  <a href="{!i.code}">下载</a></td>
                                    <!-- <td rowspan="{!i.count}" style="text-align: center; "><a href="/apex/FilePreviewDownVF?type=preview&key={!i.awsKey}&name={!i.fileName}" target="_blank">预览</a>  |  <a href="/apex/FilePreviewDownVF?type=download&key={!i.awsKey}&name={!i.fileName}" target="_blank">下载</a></td> -->
                                    <!-- update 20240202 by DTT-亚楠 end -->
                                    <!-- zhj 2022-12-08 预览与下载增强 end -->
                                </apex:variable>
                            </apex:variable>
                        </apex:variable>
                        <apex:variable var="type" value="" rendered="{!IF(i.count_sj =null ,false,true)}"> 
                            <apex:variable var="type" value="" rendered="{!IF(i.sj_code ='不要' ,true,false)}"> 
                                <td rowspan="{!i.count_sj}" style="text-align: center; ">{!i.sj_code}</td>
                            </apex:variable>
                            <apex:variable var="type" value="" rendered="{!IF(i.sj_code !='不要' ,true,false)}"> 
                                <!-- 2023-3-1   zyh   add   start -->
                                <apex:variable var="type" value="" rendered="{!IF((i.sj_code ='' || i.sj_code = null) && (i.sj_code_yl = '' || i.sj_code_yl = null) ,true,false)}"> 
                                    <td rowspan="{!i.count_sj}" style="text-align: center; "></td>
                                </apex:variable> 
                                <apex:variable var="type" value="" rendered="{!IF(CONTAINS(i.sj_code,'预计') ,true,false)}"> 
                                    <td rowspan="{!i.count_sj}" style="text-align: center; ">{!i.sj_code}</td>
                                </apex:variable> 
                                <!-- 2023-3-1   zyh   add   end -->
                                <apex:variable var="type" value="" rendered="{!IF((i.sj_code ='' || i.sj_code ='') && (i.sj_code_yl != '' || i.sj_code_yl != null) ,true,false)}"> 
                                    <!-- zhj 2022-12-08 预览与下载增强 start -->
                                    <!-- update 20240202 by DTT-亚楠 start -->
                                    <td rowspan="{!i.count}" style="text-align: center; "><a href="{!i.sj_code_yl}">预览</a></td>
                                    <!-- <td rowspan="{!i.count_sj}" style="text-align: center; "><a href="/apex/FilePreviewDownVF?type=preview&key={!i.sj_awsKey}&name={!i.sj_fileName}" target="_blank">预览</a></td> -->
                                    <!-- update 20240202 by DTT-亚楠 end -->
                                    <!-- zhj 2022-12-08 预览与下载增强 end -->
                                </apex:variable>
                                <apex:variable var="type" value="" rendered="{!IF((i.sj_code !='' || i.sj_code != null) && (i.sj_code_yl = '' || i.sj_code_yl = null) && !CONTAINS(i.sj_code,'预计') ,true,false)}"> 
                                    <!-- zhj 2022-12-08 预览与下载增强 start -->
                                    <!-- update 20240202 by DTT-亚楠 start -->
                                    <td rowspan="{!i.count}" style="text-align: center; "><a href="{!i.sj_code}">下载</a></td>
                                    <!-- <td rowspan="{!i.count_sj}" style="text-align: center; "><a href="/apex/FilePreviewDownVF?type=download&key={!i.sj_awsKey}&name={!i.sj_fileName}" target="_blank">下载</a></td> -->
                                    <!-- update 20240202 by DTT-亚楠 end -->
                                    <!-- zhj 2022-12-08 预览与下载增强 end -->
                                </apex:variable>
                                <apex:variable var="type" value="" rendered="{!IF(i.sj_code !='不要' && (i.sj_code != '' || i.sj_code != null) && (i.sj_code_yl != '' || i.sj_code_yl != null) && !CONTAINS(i.sj_code,'预计') ,true,false)}"> 
                                    <!-- zhj 2022-12-08 预览与下载增强 start -->
                                    <!-- update 20240202 by DTT-亚楠 start -->
                                    <td rowspan="{!i.count}" style="text-align: center; "><a href="{!i.sj_code_yl}">预览</a>  |  <a href="{!i.sj_code}">下载</a></td>
                                    <!-- <td rowspan="{!i.count_sj}" style="text-align: center; "><a href="/apex/FilePreviewDownVF?type=preview&key={!i.sj_awsKey}&name={!i.sj_fileName}" target="_blank">预览</a>  |  <a href="/apex/FilePreviewDownVF?type=download&key={!i.sj_awsKey}&name={!i.sj_fileName}" target="_blank">下载</a></td> -->
                                    <!-- update 20240202 by DTT-亚楠 end -->
                                    <!-- zhj 2022-12-08 预览与下载增强 end -->
                                </apex:variable>
                            </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>  |  <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> 
    <!-- </table> -->
    </apex:form>
</body>
</apex:page>