GWY
2022-05-16 a9baff8a4508c1850e650f68831d857b953eace4
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
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
<apex:page standardController="Opportunity" extensions="OpportunityProductController" showHeader="false" sidebar="false" id="allPage" action="{!init}" title="询价产品">
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
 
<script>
function saveJs() {
    blockme();
    saveLine();
}
function addJs() {
    blockme();
    addLine();
}
function deleteJs(line) {
    blockme();
    deleteLine(line);
}
function refreshPage(){
    var errflg = j$(escapeVfId("errorflag")).value();
    var refreshflg = j$(escapeVfId("refresh")).value();
    var baseUrl = j$(escapeVfId("baseUrl")).value();
    if (errflg == "false" && refreshflg == "true") {
        window.parent.location.href = baseUrl + '/{!URLENCODE(opp.id)}';
    }
}
function openSelectWindow(line, str) {
    var baseUrl = j$(escapeVfId("baseUrl")).value();
    var oppid = j$(escapeVfId("oppId")).value();
    var str = j$(escapeVfId("allPage:allForm:allBlock:records:" + (line - 1) + ":product")).value();
    window.open(baseUrl + '/apex/SearchProduct?lineno=' + line + '&val=' + encodeURIComponent(str) + '&oppId=' + encodeURIComponent(oppid) + '&openFlag=opp', 'pselect', 'width=950,height=450,scrollbars=yes,toolbar=no,status=no,directories=no,menubar=no,resizable=1', true);
}
function getLastLineNoNext(doc) {
    var hasRecordFlg = false;
    var lastLineNo = 0;
    for(var i=99; i>=0; i--){
        if (j$(escapeVfId('allPage:allForm:allBlock:records:' + i + ':productId')).value() != ''){
            if (!hasRecordFlg) {
                lastLineNo = i;
            }
            hasRecordFlg = true;
        }
    }
    if (hasRecordFlg) {
        lastLineNo = lastLineNo + 1 + 1;
    }
    return lastLineNo;
}
function changeLimit(i) {
    if (j$(escapeVfId('allPage:allForm:allBlock:records:' + (i - 1) + ':productId')).value() != ''){
        var unitprice = j$(escapeVfId('allPage:allForm:allBlock:records:' + (i - 1) + ':unitPrice')).value();
        var salesprice = j$(escapeVfId('allPage:allForm:allBlock:records:' + (i - 1) + ':price0')).value();
        var ispm = j$(escapeVfId('allPage:allForm:allBlock:records:' + (i - 1) + ':isProductModel')).value();
        var isPartsdirect = j$(escapeVfId('isPartsdirect')).value();
        var isHiddenUser = j$(escapeVfId('isHiddenUser')).value();
        var isDealerUser = j$(escapeVfId('isDealerUser')).value();
        var hiddenflg = j$(escapeVfId('allPage:allForm:allBlock:records:' + (i - 1) + ':hiddenflg')).value();
        //alert(ispm);
        if (isPartsdirect == 'true' || ispm == 'true') {
            //setTotalPrice((i - 1));
        } else {
            alert("不能手动修改销售价格。");
            if (isHiddenUser == 'true' || isDealerUser == 'true' && hiddenflg == 'true') {
                j$(escapeVfId('allPage:allForm:allBlock:records:' + (i - 1) + ':unitPrice')).val(0);
            } else {
                j$(escapeVfId('allPage:allForm:allBlock:records:' + (i - 1) + ':unitPrice')).val(salesprice);
            }
        }
    }
}
function doReroadJs(line) {
    var pname = j$(escapeVfId('allPage:allForm:allBlock:records:' + line + ':product')).value();
    if (pname == null || pname == '') {
        doReroad();
    } else {
        return;
    }
}
 
function doReroad() {
    var maxLine = {!maxLine};
    var isHiddenAll = j$(escapeVfId('isHiddenAll')).value();
    var tmp = "false";
    for (var i = 0; i < maxLine; i++) {
        var pname = j$(escapeVfId('allPage:allForm:allBlock:records:' + i + ':product')).value();
        if (pname == null || pname == '') {
            pname = j$(escapeVfId('allPage:allForm:allBlock:records:' + i + ':productLink')).text();
        }
        var phidden = j$(escapeVfId('allPage:allForm:allBlock:records:' + i + ':hiddenflg')).value();
        if (pname != '' && phidden == "true") {
            tmp = "true";
            break;
        }
    }
    if (isHiddenAll != tmp) {
        blockme();
        reloadPage(tmp);
    }
}
</script>
 
    <apex:form id="allForm">
        <apex:actionFunction name="saveLine" action="{!saveLine}" rerender="allBlock,message" onComplete="unblockUI();refreshPage();">
        </apex:actionFunction>
        <apex:actionFunction name="addLine" action="{!addLine}" rerender="allBlock" onComplete="unblockUI();">
        </apex:actionFunction>
        <apex:actionFunction name="deleteLine" action="{!deleteLine}" rerender="allBlock" onComplete="unblockUI();">
            <apex:param name="firstParam" assignTo="{!lineNo}" value="" />
        </apex:actionFunction>
        <apex:actionFunction action="{!reloadPage}" name="reloadPage" reRender="allForm" oncomplete="unblockUI();">
            <apex:param assignTo="{!is_hidden_all}" name="firstparam" value=""/>
        </apex:actionFunction>
        <apex:outputPanel id="allPanel">
            <apex:pageBlock id="allBlock">
                <apex:pageBlockButtons location="top">
                    <apex:commandButton onclick="saveJs();" value="保存产品" rerender="dummy" disabled="{!saveBtnDisabled}"/>
<!--                    <apex:commandButton onclick="addJs();" value="添加行" rerender="dummy" disabled="{!saveBtnDisabled}"/> -->
                        <apex:outputPanel id="message">
                            <apex:messages />
                        </apex:outputPanel>
                </apex:pageBlockButtons>
                
                <input type="hidden" id="oppId" value="{!oppId}"/>
                <input type="hidden" id="errorflag" value="{!errorFlag}"/>
                <input type="hidden" id="refresh" value="{!refresh}"/>
                <input type="hidden" id="baseUrl" value="{!baseUrl}"/>
                <input type="hidden" value="{!is_Parts_direct}" id="isPartsdirect"/>
                <input type="hidden" value="{!is_hidden_user}" id="isHiddenUser"/>
                <input type="hidden" value="{!is_dealer_user}" id="isDealerUser"/>
                <input type="hidden" value="{!specialDealer}" id="isSpecialDealer"/>
                <input type="hidden" value="{!is_hidden_all}" id="isHiddenAll"/>
                <input type="hidden" value="{!is_IE}" id="isIE"/>
 
                <apex:outputPanel layout="none" rendered="{!IF(is_IE == true, true, false)}">
                <table class="linetable" border="0" style="border-collapse: collapse;width:1000px;table-layout:fixed;">
                    <colgroup>
                        <col width="100"/>
                        <col width="100"/>
                        <col width="100"/>
                        <col width="100"/>
                        <col width="100"/>
                        <col width="100"/>
                        <col width="100"/>
                        <col width="100"/>
                        <col width="100"/>
                        <col width="100"/>
                    </colgroup>
                     <apex:outputPanel rendered="{!IF(is_NDT == true, true, false)}">
                        <tr>
                            <th style="text-align:center">&nbsp;</th>
                            <th style="text-align:center">付款条件</th>
                            <td style="text-align:left;" colspan="7">&nbsp;<apex:inputField style="width:90%;" id="paymentTerms" value="{!opp.IE_Payment_terms__c}"></apex:inputField></td>
                            <th style="text-align:center">&nbsp;</th>
                        </tr>
                    </apex:outputPanel>
                    <apex:outputPanel rendered="{!IF(is_NDT == true, false, true)}">
                        <tr>
                            <th style="text-align:center">&nbsp;</th>
                            <th style="text-align:center">付款条件</th>
                            <td style="text-align:left;" colspan="7">&nbsp;<apex:inputField style="width:90%;" id="paymentTerms1" value="{!opp.Payment_terms__c}"></apex:inputField></td>
                            <th style="text-align:center">&nbsp;</th>
                        </tr>
                    </apex:outputPanel>
                    <tr>
                        <th style="text-align:center">&nbsp;</th>
                        <th style="text-align:center">保修期(年)</th>
                        <td style="text-align:center"><apex:inputField style="width:90%;" id="warranty" value="{!opp.IE_Warranty__c}"></apex:inputField></td>
                        <!-- <script type="text/javascript">
                            j$(escapeVfId('allPage:allForm:allBlock:warranty')).attr("readonly","readonly");
                        </script> -->
                        <!--外贸询价优化2021-05-28 start-->
                        <th style="text-align:center">国际贸易条件</th>
                        <td style="text-align:center"><apex:inputField style="width:90%;" id="shipmentTerms" value="{!opp.IE_ShipmentTerm__c}"></apex:inputField></td>
                        <th style="text-align:center">国际贸易条件2</th>
                        <td style="text-align:center"><apex:inputField style="width:90%;" id="shipmentTerm2s" value="{!opp.IE_Shipment_Term2__c}"></apex:inputField></td>
                        <!--外贸询价优化2021-05-28 end-->
                        <th style="text-align:center">&nbsp;</th>
                        <th style="text-align:center">&nbsp;</th>
                        <th style="text-align:center">&nbsp;</th>
                    </tr>
                    <tr>
                        <th style="text-align:center">&nbsp;</th>
<!--                       <apex:outputPanel layout="none" rendered="{!IF(is_RVI == true, false, true)}"> -->
                        <apex:outputPanel layout="none" rendered="{!IF(is_NDT == false && is_IE_direct == false, true, false)}">
                            <th style="text-align:center">代理商系数</th>
                            <td style="text-align:left">
                                <apex:outputText style="width:90%;" id="discount_n" value="{0,number,###,###,##0.00}">
                                    <apex:param value="{!dealer_coefficient}"/>
                                </apex:outputText>
                            </td>
                        </apex:outputPanel>
                        <apex:outputPanel layout="none" rendered="{!IF(is_NDT != true, false, true)}">
                            <th style="text-align:center">总价</th>
                            <td style="text-align:left">
                                <apex:outputField style="width:90%;" id="TotalPrice1" value="{!opp.Quote_TotalPrice__c}"></apex:outputField>
                            </td>
                        </apex:outputPanel>
<!--                       </apex:outputPanel>
                      <apex:outputPanel layout="none" rendered="{!IF(is_RVI == true, true, false)}">
                        <th style="text-align:center">&nbsp;</th>
                        <th style="text-align:center">&nbsp;</th>
                      </apex:outputPanel> -->
                        <th style="text-align:center">特殊折扣</th>
                        <td style="text-align:left"><apex:inputField style="width:90%;" id="discount_sp" value="{!opp.IE_Discount_Special__c}"></apex:inputField></td>
                        <th style="text-align:center">客户总价</th>
                        <td style="text-align:left"><div class="requiredInput"><div class="requiredBlock"></div>
                        <apex:inputField style="width:90%;" id="customPrice" value="{!opp.IE_Custom_Price__c}"></apex:inputField></div></td>
                        <th style="text-align:center">&nbsp;</th>
                    </tr>
                    <tr>
                        <th style="text-align:center">&nbsp;</th>
                        <th style="text-align:center">折扣前金额</th>
                        <td style="text-align:left"><apex:outputField style="width:90%;" id="subtotal" value="{!opp.IE_Subtotal__c}"></apex:outputField></td>
                        <th style="text-align:center">最终折扣率</th>
                        <td style="text-align:left"><apex:outputField style="width:90%;" id="discount_f" value="{!opp.IE_Discount_final__c}"></apex:outputField></td>
                        <th style="text-align:center">折扣后金额</th>
                        <td style="text-align:left"><apex:outputField style="width:90%;" id="totalprice" value="{!opp.Amount}"></apex:outputField></td>
                        <th style="text-align:center">&nbsp;</th>
                    </tr>
                    <tr>
                        <th style="text-align:center">&nbsp;</th>
                        <th style="text-align:center">运保费</th>
                        <td style="text-align:left"><apex:inputField style="width:90%;" id="shippinghandling" value="{!opp.IE_ShippingHandling__c}"></apex:inputField></td>
                        <th style="text-align:center">国内成本金额</th>
                        <td style="text-align:left"><apex:inputField style="width:90%;" id="localcost" value="{!opp.IE_local_cost__c}"></apex:inputField></td>
                    <apex:outputPanel layout="none" rendered="{!IF(is_IE_direct == true, false, true)}">
                        <th style="text-align:center">代理商利润额</th>
                        <td style="text-align:left"><apex:outputField style="width:90%;" id="profit" value="{!opp.IE_dealer_profit__c}"></apex:outputField></td>
                        <th style="text-align:center">代理商利润率</th>
                        <td style="text-align:left"><apex:outputField style="width:90%;" id="profitprecent" value="{!opp.IE_dealer_profit_percent__c}"></apex:outputField></td>
                    </apex:outputPanel>
                        <th style="text-align:center">&nbsp;</th>
                    </tr>
                </table>
                </apex:outputPanel>
                
                <apex:outputPanel layout="none" rendered="{!IF(is_IE == true, false, true)}">
                    <apex:outputPanel layout="none" rendered="{!IF(specialDealer == true, false , true)}">
                        <table class="linetable" border="0" style="border-collapse: collapse;width:1000px;table-layout:fixed;">
                            <colgroup>
                                <col width="100"/>
                                <col width="100"/>
                                <col width="100"/>
                                <col width="100"/>
                                <col width="100"/>
                                <col width="100"/>
                                <col width="100"/>
                                <col width="100"/>
                                <col width="100"/>
                                <col width="100"/>
                            </colgroup>
                            <tr>
                                <th style="text-align:center">&nbsp;</th>
                                <th style="text-align:center">代理商折扣</th>
                                <td style="text-align:left">
                                    <apex:outputPanel rendered="{!is_hidden_all}" layout="none">
                                        &nbsp;
                                    </apex:outputPanel>
                                    <apex:outputPanel rendered="{!!is_hidden_all}" layout="none">
                                    <apex:outputText style="width:90%;" id="discount_n2" value="{0,number,###,###,##0.00}">
                                        <apex:param value="{!dealer_coefficient}"/>
                                    </apex:outputText>%
                                    </apex:outputPanel>
                                </td>
                                <th style="text-align:center">特殊折扣</th>
                                <td style="text-align:left">
                                    <apex:outputPanel rendered="{!is_hidden_all}" layout="none">
                                        &nbsp;
                                    </apex:outputPanel>
                                    <apex:outputPanel rendered="{!!is_hidden_all}" layout="none">
                                    <apex:outputField style="width:90%;" id="discount_sp2" value="{!opp.IE_Discount_Special__c}"></apex:outputField>
                                    </apex:outputPanel>
                                </td>
                                <th style="text-align:center">最终折扣率</th>
                                <td style="text-align:left">
                                    <apex:outputPanel rendered="{!is_hidden_all}" layout="none">
                                        &nbsp;
                                    </apex:outputPanel>
                                    <apex:outputPanel rendered="{!!is_hidden_all}" layout="none">
                                    <apex:outputText style="width:90%;" id="discount_f2" value="{0,number,###,###,##0.00}">
                                        <apex:param value="{!dealer_discount}"/>
                                    </apex:outputText>%
                                    <!-- <apex:outputField style="width:90%;" id="discount_f2" value="{!opp.dealer_discount}"></apex:outputField> -->
                                    </apex:outputPanel>
                                </td>
                            </tr>
                        </table>
                    </apex:outputPanel>
 
                     <apex:outputPanel layout="none" rendered="{!specialDealer}">
                        <table class="linetable" border="0" style="border-collapse: collapse;width:1000px;table-layout:fixed;">
                            <colgroup>
                                <col width="100"/>
                                <col width="100"/>
                                <col width="100"/>
                                <col width="100"/>
                                <col width="100"/>
                                <col width="100"/>
                                <col width="100"/>
                                <col width="100"/>
                                <col width="100"/>
                                <col width="100"/>
                            </colgroup>
                            <tr>
                                
                                <th style="text-align:left"></th>
                                <th style="text-align:left"></th>
                                <th style="text-align:left">总价</th>
                                <td style="text-align:left"><apex:inputField style="width:90%;" id="discount_sp1" value="{!opp.Amount}"></apex:inputField></td>
                                
                                <th style="text-align:left"></th>
                                <th style="text-align:left"></th>
                                <th style="text-align:left">客户总价</th>
                                <apex:outputPanel layout="none" rendered="{!hasQuote}">
                                    <td style="text-align:left"><apex:outputField style="width:90%;"  value="{!opp.Quote_CustomPrice__c}"></apex:outputField></td>
                                </apex:outputPanel>
                                <apex:outputPanel layout="none" rendered="{!!hasQuote}">
                                    <td style="text-align:left"><apex:inputField style="width:90%;"  value="{!opp.IE_Custom_Price__c}"></apex:inputField></td>
                                </apex:outputPanel>
                            </tr>
 
 
                        </table>
                    </apex:outputPanel>
                </apex:outputPanel>
                <table class="linetable" border="0" style="border-collapse: collapse;width:'965px'};table-layout:fixed;">
                    <tr>
                        <td style="width: 80%;text-align: right;">文件名称</td>
                        <td style="width: 10%;text-align: center;"><apex:inputText id="fileName" value="{!fileName}" style="width:90%;"/></td>
                        <td style="width: 10%;text-align: left;"><apex:commandButton action="{!csvExport}" value="配置导出"/></td>
                    </tr>
                </table>
                <table class="linetable" border="1" style="border-collapse: collapse;width:'965px'};table-layout:fixed;">
                    <colgroup>
                        <col width="25"/>
                        <col width="180"/>
                        <col width="100"/>
                        <col width="100"/>
                        <col width="80"/>
                        <col width="100"/>
                        <col width="80"/>
                        <col width="180"/>
                        <col width="60"/>
                        <col width="60"/>
<!--                        <col width="60"/> -->
                    </colgroup>
                    <tr style="background-color:#DCDCDC;">
                        <th style="text-align:center">No.</th>
                        <th style="text-align:center">{!$ObjectType.OpportunityLineItem.fields.Product_Search__c.label}</th>
                        <apex:outputPanel layout="none" rendered="{!IF(is_NDT == true, false, true)}">
                            <th style="text-align:center">{!$ObjectType.Product_Search__c.fields.ProductCode__c.label}</th>
                            <th style="text-align:center">{!$ObjectType.Product_Search__c.fields.Product_ECCode__c.label}</th>
                        </apex:outputPanel>
                        <apex:outputPanel layout="none" rendered="{!IF(is_NDT != true, false, true)}">
                            <th style="text-align:center">U8 CODE</th>
                            <th style="text-align:center">UPC CODE</th>
                        </apex:outputPanel>
                        <th style="text-align:center">{!$ObjectType.OpportunityLineItem.fields.QuantityD__c.label}</th>
                        <th style="text-align:center">{!$ObjectType.OpportunityLineItem.fields.UnitPriceD__c.label}</th>
                        <th style="text-align:center">{!$ObjectType.OpportunityLineItem.fields.Discount.label}</th>
                        <th style="text-align:center">{!$ObjectType.OpportunityLineItem.fields.DescriptionD__c.label}</th>
                        <th style="text-align:center">{!$ObjectType.OpportunityLineItem.fields.IsNew__c.label}</th>
                        <th style="text-align:center">{!$ObjectType.OpportunityLineItem.fields.IsDelete__c.label}</th>
<!--                        <th style="text-align:center">操作</th> -->
                    </tr>
                </table>
                <div style="width:'990px'};height:115px;overflow:auto;">
                    <table class="linetable" border="1" style="border-collapse: collapse;width:'965px'};table-layout:fixed;">
                        <colgroup>
                            <col width="25"/>
                            <col width="180"/>
                            <col width="100"/>
                            <col width="100"/>
                            <col width="80"/>
                            <col width="100"/>
                            <col width="80"/>
                            <col width="180"/>
                            <col width="60"/>
                            <col width="60"/>
<!--                            <col width="60"/> -->
                        </colgroup>
                        <apex:repeat value="{!OPInfoList}" var="OPInfo" id="records">
                            <tr>
                                <td align="center">
                                    <apex:outputText id="lineno" value="{!OPInfo.LineNo}"></apex:outputText>
                                    <apex:inputHidden id="price0" value="{!OPInfo.salesPrice}"/>
                                    <apex:inputHidden id="hiddenflg" value="{!OPInfo.hiddenflg}"/>
                                </td>
                                <td align="center">
                                    <apex:outputPanel layout="none" rendered="{!IF(OPInfo.isNew, true, false)}">
                                        <apex:inputText style="width:90%" id="product" value="{!OPInfo.productName}" onclick="openSelectWindow({!OPInfo.LineNo});" onchange="doReroadJs('{!OPInfo.lineNo}');"></apex:inputText>
                                    </apex:outputPanel>
                                    <apex:outputPanel layout="none" rendered="{!IF(OPInfo.isNew, false, true)}">
                                        <apex:outputLink id="productLink" value="{!baseUrl}/{!OPInfo.oli.Product_Search__c}" target="_blank">{!OPInfo.productName}</apex:outputLink>
                                        <!--<a href="/production/{!OPInfo.oli.Product_Search__c}" id="" target="_blank">{!OPInfo.productName}</a>-->
                                        <!--<apex:outputField style="width:85%" id="productR" value="{!OPInfo.oli.DealerSelectProduct__c}"></apex:outputField>-->
                                    </apex:outputPanel>
                                    <apex:inputHidden id="productId" value="{!OPInfo.productId}"></apex:inputHidden>
                                </td>
                                <td align="center">
                                    <apex:outputText style="width:90%;" id="productCode" value="{!OPInfo.productCode}"></apex:outputText>
                                    <apex:inputHidden id="productCodeHidden" value="{!OPInfo.productCode}"></apex:inputHidden>
                                </td>
                                <td align="center">
                                    <apex:outputText style="width:90%;" id="productEC" value="{!OPInfo.productEC}"></apex:outputText>
                                    <apex:inputHidden id="productECHidden" value="{!OPInfo.productEC}"></apex:inputHidden>
                                </td>
                                <td align="center"><apex:inputField style="width:90%;text-align:right;" id="quantity" value="{!OPInfo.oli.QuantityD__c}"></apex:inputField></td>
                                <td align="center">
                                    <apex:inputHidden id="isProductModel" value="{!OPInfo.isProductModel}"/>
                                    <!-- "{!OPInfo.isProductModel}" -->
                                    <apex:outputPanel rendered="{!is_hidden_all}" layout="none">
 
                                        <apex:outputPanel rendered="{!AND(specialDealer ,OPInfo.isProductModel ) }" layout="none">
                                            <apex:inputText style="width:90%;text-align:right;" id="specialDealerunitPrice" value="{!OPInfo.oli.UnitPriceD__c}" onchange="changeLimit({!OPInfo.LineNo});"/>
                                        </apex:outputPanel>
                                        <apex:outputPanel rendered="{!!AND(specialDealer ,OPInfo.isProductModel ) }" layout="none" >
                                           <!-- "{!OPInfo.isProductModel}" -->
                                           &nbsp;
                                        </apex:outputPanel>
                                    </apex:outputPanel>
                                    <apex:outputPanel rendered="{!!is_hidden_all}" layout="none">
                                        <apex:inputField style="width:90%;text-align:right;" id="unitPrice" value="{!OPInfo.oli.UnitPriceD__c}" onchange="changeLimit({!OPInfo.LineNo});"></apex:inputField>
                                    </apex:outputPanel>
                                    <!-- <apex:inputHidden id="isProductModel" value="{!OPInfo.isProductModel}"/> -->
                                </td>
                                <td align="center">
                                    <apex:outputPanel layout="none" rendered="{!IF(is_IE == true, true, false)}">
                                        <apex:outputText style="width:90%;text-align:right;" id="discountIE" value="{!OPInfo.discount}"/>
                                    </apex:outputPanel>
                                    <apex:outputPanel layout="none" rendered="{!IF(is_IE == true, false, true)}">
                                    <apex:outputPanel rendered="{!is_hidden_all}" layout="none">
                                         &nbsp; 
                                    </apex:outputPanel>
                                    <apex:outputPanel rendered="{!!is_hidden_all}" layout="none">
                                        <apex:inputText style="width:90%;text-align:right;" id="discount" value="{!OPInfo.discount}"/>
                                    </apex:outputPanel>
                                    </apex:outputPanel>
                                </td>
                                <td align="center"><apex:inputField style="width:90%" id="description" value="{!OPInfo.oli.DescriptionD__c}"></apex:inputField></td>
                                <td align="center"><apex:outputField style="width:90%" id="isNew" value="{!OPInfo.oli.IsNew__c}"></apex:outputField></td>
                                <td align="center">
                                    <apex:outputPanel layout="none" rendered="{!IF(OPInfo.isNew, true, false)}">
                                        <apex:outputField style="width:90%;" id="isDelete" value="{!OPInfo.oli.IsDelete__c}"></apex:outputField>
                                    </apex:outputPanel>
                                    <apex:outputPanel layout="none" rendered="{!IF(OPInfo.isNew, false, true)}">
                                        <apex:inputField style="width:90%;" id="isDeleteR" value="{!OPInfo.oli.IsDelete__c}"></apex:inputField>
                                    </apex:outputPanel>
                                </td>
<!--                                <td align="center">
                                    <apex:outputPanel layout="none" rendered="{!IF(OPInfo.isNew, true, false)}">
                                        <input style="width:90%;" type="button" value="删除" onclick="deleteJs({!OPInfo.lineNo})"/>
                                    </apex:outputPanel>
                                    <apex:outputPanel layout="none" rendered="{!IF(OPInfo.isNew, false, true)}">
                                        <input style="width:90%;" type="button" value="删除" onclick="deleteJs({!OPInfo.lineNo})" disabled="disabled"/>
                                    </apex:outputPanel>
                                </td> -->
                            </tr>
                        </apex:repeat>
                    </table>
                </div>
            </apex:pageBlock>
        </apex:outputPanel>
    </apex:form>
     <apex:form id="fileForm">
        <apex:outputPanel rendered="{!errorflag}" layout="none">
            <table width="100%">
                <tr>
                    <td align="left"><div class="errorMsg">{!errorMessage}</div></td>
                </tr>
            </table>
        </apex:outputPanel>
        <table border="0">
            <tr>
                <th>产品导入:</th>
                <th>1.<apex:inputFile value="{!contentFile}" filename="{!nameFile}"/></th>
            </tr>
            <tr>
                <th>&nbsp;</th>
                <th>2.&nbsp;<apex:commandButton action="{!csvRead}" value="读取CSV"/></th>
            </tr>
        </table>
    </apex:form>
</apex:page>