<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"> </th>
|
<th style="text-align:center">付款条件</th>
|
<td style="text-align:left;" colspan="7"> <apex:inputField style="width:90%;" id="paymentTerms" value="{!opp.IE_Payment_terms__c}"></apex:inputField></td>
|
<th style="text-align:center"> </th>
|
</tr>
|
</apex:outputPanel>
|
<apex:outputPanel rendered="{!IF(is_NDT == true, false, true)}">
|
<tr>
|
<th style="text-align:center"> </th>
|
<th style="text-align:center">付款条件</th>
|
<td style="text-align:left;" colspan="7"> <apex:inputField style="width:90%;" id="paymentTerms1" value="{!opp.Payment_terms__c}"></apex:inputField></td>
|
<th style="text-align:center"> </th>
|
</tr>
|
</apex:outputPanel>
|
<tr>
|
<th style="text-align:center"> </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"> </th>
|
<th style="text-align:center"> </th>
|
<th style="text-align:center"> </th>
|
</tr>
|
<tr>
|
<th style="text-align:center"> </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"> </th>
|
<th style="text-align:center"> </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"> </th>
|
</tr>
|
<tr>
|
<th style="text-align:center"> </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"> </th>
|
</tr>
|
<tr>
|
<th style="text-align:center"> </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"> </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"> </th>
|
<th style="text-align:center">代理商折扣</th>
|
<td style="text-align:left">
|
<apex:outputPanel rendered="{!is_hidden_all}" layout="none">
|
|
</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">
|
|
</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">
|
|
</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}" -->
|
|
</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">
|
|
</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> </th>
|
<th>2. <apex:commandButton action="{!csvRead}" value="读取CSV"/></th>
|
</tr>
|
</table>
|
</apex:form>
|
</apex:page>
|