FUYU
2023-12-13 4488f711dbc01a8db6753907cae2ef4021dede68
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
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
<template>
 
    <!-- <body style="font-family: Arial Unicode MS;"> -->
 
    <!-- ページ番号の定義 -->  
    <!-- <apex:variable var="count" value="{!0}"/> -->
    
    <!-- ページのリピート -->
    <template for:each={printRecords} for:item="items" for:index="thePage"></template>
    <!-- ページキャンバス -->        
    <div class="pageCanvas">
    
        <!-- ページ番号インクリメント -->
        <!-- <apex:variable var="count" value="{!count + 1}"/> -->
        <!-- SWAG-C7S8QN 【委托】【重要】SI询价配置单没有抬头  lt  20211015 update    原<template rendered="{!IF(params.trade == 'USD', true, false)}">附件2 </template> -->
        <div  style="text-align: left;font-weight: bold;font-size: 18px;width: 100%;padding-bottom: 20px;"><span >附件2 </span></div>
        <!-- 各ページのタイトル -->
        <!-- <div class="quoteTitle"><template if:true={params.trade = 'USD'} >Commodity List </template></div> -->
        <div class="quoteTitle"><template if:true={params.trade}>Commodity List </template></div>
 
        <!-- WLIG-BYRD37  【委托】询价 打印配置单 字段修改 精琢技术 wql 2021/03/08 start -->
        <div class="quoteTitle">
            <!-- SWAG-C7S8QN 【委托】【重要】SI询价配置单没有抬头  lt  20211015 update -->
            <!-- 20211015  原<template rendered="{!IF(params.PurchaseType == '一般引合' || params.PurchaseType == '  SI(手術室案件)', true, false)}"> -->
            <span >
                 <!-- {Contract_Detail_Title} -->
                 {Contract_Detail_Title}
            </span>
        </div>
        <div class="quoteTitle">
            <!-- <template if:true="{!IF(params.PurchaseType == 'ET24時間販売',true , false)}">0 -->
             <template if:true={params.PurchaseType}>
                 订货单
            </template>
        </div>
        <!-- //WLIG-BYRD37  【委托】询价 打印配置单 字段修改 精琢技术 wql 2021/03/08 end -->
<!-- CHAN-B2L4NY 外贸询价的合同配置单格式恢复 -->
    <!-- <template if:true="{!IF(params.trade == 'RMB', true, false)}"> -->
    <template if:true= {params.trade}>
        <!-- 各ページのヘッダキャンバス -->
        <div class="headerCanvas">
            <table style="height:100%;">
                <tr>
                    <td>
                        <div style="height:25px;">{Contract_Detail_System_Code}</div>
                        <div style="height:25px;">{Quote_Client_Name}</div>
                        <!-- <template if:true="{!IF(params.salesRoot == '販売店', true, false)}" layout="none" > -->
                        <template if:true={params.salesRoot} layout="none" >
                            <div style="height:25px;">{Contract_Detail_Dealer_Name}</div>
                        </template>
                        <div style="height:25px;">{Quote_AddressName}</div>
                    </td>
                    <td>
                        <div style="height:25px;">:&nbsp;</div>
                        <div style="height:25px;">:&nbsp;</div>
                        <!-- <template layout="none" if:true="{!IF(params.salesRoot == '販売店', true, false)}"> -->
                        <template layout="none" if:true={params.salesRoot}>
                            <div style="height:25px;">:&nbsp;</div>
                        </template>
                        <div style="height:25px;">:&nbsp;</div>
                    </td>
                    <td>
                        <div style="height:25px;">&nbsp;{params.quoteNo}</div>
                        <div style="height:25px;">&nbsp;{params.clientName}</div>
                        <!-- <template layout="none" if:true="{!IF(params.salesRoot == '販売店', true, false)}"> -->
                        <template layout="none" if:true={params.salesRoot}>
                            <div style="height:25px;">&nbsp;{params.agentNameForContract}</div>
                        </template>
                        <div style="height:25px;">&nbsp;{params.addressName}</div>
                    </td>
                    <td>
                        <div style="height:25px;">&nbsp;</div>
                        <div style="height:25px;">&nbsp;</div>
                        <template layout="none" if:true={params.salesRoot}>
                            <div style="height:25px;">&nbsp;</div>
                        </template>
                        <div style="height:25px;">&nbsp;</div>
                    </td>
                    <td>
                        <div style="height:25px;">&nbsp;</div>
                        <div style="height:25px;">{Quote_Department}</div>
                        <template layout="none" if:true={params.salesRoot}>
                            <div style="height:25px;">&nbsp;</div>
                        </template>
                        <div style="height:25px;">&nbsp;</div>
                    </td>
                    <td>
                        <div style="height:25px;">&nbsp;</div>
                        <div style="height:25px;">:&nbsp;</div>
                        <template layout="none" if:true={params.salesRoot}>
                            <div style="height:25px;">&nbsp;</div>
                        </template>
                        <div style="height:25px;">&nbsp;</div>
                    </td>
                    <td>
                        <div style="height:25px;">&nbsp;</div>
                        <div style="height:25px;">&nbsp;{params.departmentName}</div>
                        <template layout="none" if:true={params.salesRoot}>
                            <div style="height:25px;">&nbsp;</div>
                        </template>
                        <div style="height:25px;">&nbsp;</div>
                    </td>
                </tr>
            </table>
            <table style="top:0px; right:0px; position:absolute; height:100%;">
                <tr>
                    <td>
                        <div style="height:25px;">&nbsp;</div>
                        <div style="height:25px;">&nbsp;</div>
                        <!-- 电子签收ID号 wql 精琢技术 2020/11/20 start -->
                        <template layout="none" if:true={params.salesRoot}>
                            <div style="height:25px;">{eSignAgencyNum}</div>
                        </template>
                        <template layout="none" if:true={params.salesRoot}>
                            <div style="height:25px;">&nbsp;</div>
                        </template>
                        <!-- 电子签收ID号 wql 精琢技术 2020/11/20 end -->
                        <div style="height:25px;">{Contract_Detail_Print_Date}</div>
                    </td>
                    <td>
                        <div style="height:25px;">&nbsp;</div>
                        <div style="height:25px;">&nbsp;</div>
                        <div style="height:25px;">:&nbsp;</div>
                        <div style="height:25px;">:&nbsp;</div>
                    </td>
                    <td>
                        <div style="height:25px;">&nbsp;</div>
                        <div style="height:25px;">&nbsp;</div>
                        <!-- 电子签收ID号 wql 精琢技术 2020/11/20 start -->
                        <template layout="none" if:true={params.salesRoot}>
                            <div style="height:25px;">{params.eSignAgencyNum}</div>
                        </template>
                        <template layout="none" if:true={params.salesRoot}>
                            <div style="height:25px;">&nbsp;</div>
                        </template>
                        <!-- 电子签收ID号 wql 精琢技术 2020/11/20 end -->
                        <div style="height:25px;">&nbsp;{params.offerPrintDateStringContract}</div>
                    </td>
                </tr>
            </table>
        </div>
    </template>
        <br/>
 
        <!-- ページ内の詳細のREPEAT -->
        <div class="detailCanvas" style="font-size: 10px">
            <lightning-datatable
                key-field="id"
                data={items}
                columns = {columns}>
            </lightning-datatable>
 
 
        </div>
 
    <!-- <template rendered="{!count=maxPageNumber}"> -->
    <template rendered=false>
        <div>
            <table style="width:100%;">
                 <tr>
                    <!-- 2018/10/11 CHAN-B5F35C 内贸时不显示 注册证号/备案凭证编号备注 start -->
                    <td style="text-align: left;">
                        <div style="height:25px;">备注:上述产品注册证号/备案凭证号以收到实物中文标签中的注册证信息为准。</div>
                    </td>
                    <!-- 2018/10/11 CHAN-B5F35C 内贸时不显示 注册证号/备案凭证编号备注 end -->
                </tr>
                <tr>
                    <td style="width: 85%;text-align: right;">
                        <div style="height:25px;">{Quote_TotalPrice}</div>
                    </td>
                    <td>
                        <div style="height:25px;">:&nbsp;</div>
                    </td>
                    <td>
                        <div style="height:25px;">&nbsp;
                            <span value={0, number, ###,##0.00}>
                                <param name="" value={params.newTotalPrice}> 
                            </span>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </template>
<!-- CHAN-B2L4NY 外贸询价的合同配置单格式恢复 -->
<!-- <template rendered="{!IF(params.trade == 'RMB', false, true)}"> -->
    <template rendered={params.trade}>
        <!-- 各ページのヘッダキャンバス -->
        <div class="headerCanvas">
            <table style="height:100%;">
                <tr>
                    <td>
                        <div style="height:25px;">
                        Prospect Code&nbsp;{Contract_Detail_System_Code}</div>
                        <div style="height:25px;">End user&nbsp;{Quote_Client_Name}</div>
                        <div style="height:25px;">Department&nbsp;{Quote_Department}</div>
                        <div style="height:25px;">The Buyer&nbsp;{Contract_Detail_Dealer_Name}</div>
                    </td>
                    <td>
                        <div style="height:25px;">:&nbsp;</div>
                        <div style="height:25px;">:&nbsp;</div>
                        <div style="height:25px;">:&nbsp;</div>
                        <div style="height:25px;">:&nbsp;</div>
                    </td>
                    <td>
                        <div style="height:25px;">&nbsp;{!params.quoteNo}</div>
                        <div style="height:25px;">&nbsp;{!params.clientName}</div>
                        <div style="height:25px;">&nbsp;{!params.departmentName}</div>
 
                        <!-- <template if:true="{!IF(params.agentNameForContract != null && params.lenAgentName >= 40, true, false)}"> -->
                        <template>
                            <div style="height:22px; padding-top:3px; font-size:10px;">&nbsp;{params.agentNameForContract}</div>
                        </template>
                        <!-- <template if:true="{!IF(params.agentNameForContract != null && params.lenAgentName < 40, true, false)}"> -->
                        <template>
                            <div style="height:25px;">&nbsp;{params.agentNameForContract}</div>
                        </template>
                    </td>
                </tr>
            </table>
            <table style="top:0px; right:0px; position:absolute; height:100%;">
                <tr>
                    <td>
                        <div style="height:25px;">&nbsp;</div>
                        <div style="height:25px;">&nbsp;</div>
                       <!--   -->
                        <div style="height:25px;">Print date&nbsp;{Contract_Detail_Print_Date}</div>
                        <div style="height:25px;"> ID Code</div>
                    </td>
                    <td>
                        <div style="height:25px;">&nbsp;</div>
                        <div style="height:25px;">&nbsp;</div>
                        <!-- <div style="height:25px;">&nbsp;</div> -->
                        <div style="height:25px;">:&nbsp;</div>
                        <div style="height:25px;">:&nbsp;</div>
                    </td>
                    <td>
                        <div style="height:25px;">&nbsp;</div>
                        <div style="height:25px;">&nbsp;</div>
                        <div style="height:25px;">&nbsp;{params.offerPrintDateStringContract}</div>
                        <div style="height:25px;">&nbsp;</div>
                    </td>
                </tr>
               
            </table>
        </div>
 
        <br/>
 
        <!-- ページ内の詳細のREPEAT -->
        <div class="detailCanvas">
            <!-- 2021/01/15 liying start -->
            <!-- 多表头 第一列表头 -->
            <lightning-datatable
                key-field="id"
                data={items}
                columns = [columns]>
            </lightning-datatable>
<!--             <apex:dataTable value="{!items}" var="item" id="dataTableUSD" styleClass="detailTableUSD" headerClass="detailTableHeaderUSD" columnClasses="detailTableCols">
                <apex:column styleClass="detailRowNumber">
                        <apex:facet name="header">Commodity Type</apex:facet>
                </apex:column>
                <apex:column styleClass="detailRowString">
                        <apex:facet name="header"></apex:facet>
                </apex:column>
                <apex:column styleClass="detailRowString">
                        <apex:facet name="header"></apex:facet>
                </apex:column>
                <apex:column styleClass="detailRowString">
                        <apex:facet name="header">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    Description</apex:facet>
                </apex:column>
                <apex:column styleClass="detailRowNumeric">
                        <apex:facet name="header">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Quantity</apex:facet>
                </apex:column>
                <apex:column styleClass="detailRowNumeric">
                        <apex:facet name="header">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Special Warranty &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Period(year) </apex:facet>
                </apex:column>
 
                 lt 20220223 CHAN-CBW9FX 特殊交货期影响的对应  start -->
<!--                 
                <apex:column styleClass="detailRowNumeric">
                        <apex:facet name="header"> Delivery Date </apex:facet>
                </apex:column> -->
                <!-- lt 20220223 CHAN-CBW9FX 特殊交货期影响的对应  end -->
 
            <!-- </apex:dataTable> --> 
                  <!-- 2021/01/15 liying end -->
            <!-- 多表头 第二列表头 -->
            <!-- <apex:dataTable value="{!items}" var="item" id="dataTable2" styleClass="detailTable" headerClass="detailTableHeader" columnClasses="detailTableCols">
                <apex:column styleClass="detailRowNumber">
                        <apex:facet name="header">{Quote_Product_Code}</apex:facet>
                        <apex:outputText value="{!item.qli.Item_Order__c}"/>
                </apex:column>
                <apex:column styleClass="detailRowString">
                        <apex:facet name="header"></apex:facet>
                        <apex:outputText value="{!item.qli.Asset_Model_No_forPrint__c}"/>
                </apex:column>
                <apex:column styleClass="detailRowString">
                        <apex:facet name="header">  </apex:facet>
                        <apex:outputText value="{!item.qli.NameForPrintDelimiter__c}"/>
                </apex:column>
                <apex:column styleClass="detailRowString">
                        <apex:facet name="header">{Quote_Product_Name}</apex:facet>
                        <apex:outputText value="{!item.qli.NameForPrint__c}"/>
                </apex:column>
                <apex:column styleClass="detailRowNumeric">
                        <apex:facet name="header">{Quantity}</apex:facet>
                        <apex:outputText value="{0, number, ###,###}">
                            <apex:param value="{!item.qli.Quantity}" />
                        </apex:outputText>
                </apex:column>
 
                <apex:column styleClass="detailRowNumeric">
                        <apex:facet name="header">特殊保修年限</apex:facet>
                        <apex:outputText value="{!item.qli.GuaranteePeriod__c}"/>
                </apex:column>
 
                 lt 20220223 CHAN-CBW9FX 特殊交货期影响的对应  start -->
<!--                 <apex:column styleClass="detailRowNumeric">
                        <apex:facet name="header">交货期</apex:facet>
                        <apex:outputText value="{!item.qli.DeliveryDate__c}"/>
                </apex:column> -->
                <!-- lt 20220223 CHAN-CBW9FX 特殊交货期影响的对应  end -->
 
            <!-- </apex:dataTable> --> 
        </div>
</template>
 
        <br />
        
        <!-- 各ページのフッタキャンバス -->
        <div class="footerCanvasContract">
            <div class="footerSignContract">
                ({Contract_Detail_Buyer_Stamp})<br />
                <br />
                年  月  日<br />
            </div>
        </div>
     
     </div>
        
        <!-- 各ページを区切る改ページ、最終ページには出さないようにしている -->
        <!-- <template if:true="{!count<maxPageNumber}"> -->
<!--     <template>
        <div style="page-break-after: always;"/>
    </template> -->
 
<!-- </body> -->
</template>