| | |
| | | <apex:includeScript value="{!URLFOR($Resource.apex20)}"/> |
| | | |
| | | <apex:stylesheet value="{!URLFOR($Resource.NewQuoteEntryCss)}"/> |
| | | |
| | | |
| | | <script type="text/javascript"> |
| | | //添加行 html特性增加滑动条 精琢技术 wql 2021/02/09 start |
| | | //dialog 弹窗 start |
| | | var popupBox; |
| | | popupBox = new SimpleDialog("SpeedDialogId", false); // 不可拖动 |
| | | popupBox.createDialog(); |
| | | //精琢技术 2021/02/08 start |
| | | function openAddMultipleRow(){ |
| | | popupBox.setTitle("请输入需要增加的行号!"); |
| | | popupBox.importContentNode(document.getElementById("speedDiv")); |
| | | popupBox.show(document.getElementById("speedDiv")); |
| | | document.getElementById("speedDiv").style.display = 'block'; |
| | | |
| | | } |
| | | // function decision2btns(){ |
| | | // ReservedProductVerification(); |
| | | // debugger |
| | | // var filg=j$(escapeVfId('Page:mainForm:filg')).value(); |
| | | // // var filg={!filg}; |
| | | // console.warn(filg); |
| | | // if(filg == 'true'){ |
| | | // console.warn('成功'); |
| | | // // decision2btn(); |
| | | // }else{ |
| | | // alert('产品数量不可超过产品预留数量'); |
| | | // } |
| | | // } |
| | | //dialog 弹窗 end |
| | | // 添加行 html特性增加滑动条 精琢技术 wql 2021/02/09 end |
| | | |
| | | var QuoteEntryMaxLine = {!QuoteEntryMaxLine}; |
| | | var trade = '{!oppInfo.Trade}'; |
| | | var displayCost = '{!displayCost}'; |
| | | var quoid = '{!quoid}'; |
| | | var Session_ID = '{!$Api.Session_ID}'; |
| | | var Price_Valid_Period = '{!$Label.Price_Valid_Period}'; |
| | | var Message_001 = '{!$Label.Message_001}'; |
| | | var Message_Please_Save_Quote = '{!$Label.Please_Save_Quote}'; |
| | | var Message_Check_Your_Clipboard = '{!$Label.Check_Your_Clipboard}'; |
| | | var Error_Message3 = '{!$Label.Error_Message3}'; |
| | | //var Error_Message11 = '{!$Label.Error_Message11}'; |
| | | //var Error_Message29 = '{!$Label.Error_Message29}'; |
| | | var Error_Message33 = '{!$Label.Error_Message33}'; |
| | | var Error_Message34 = '{!$Label.Error_Message34}'; |
| | | var Error_Message35 = '{!$Label.Error_Message35}'; |
| | | var Error_Message36 = '{!$Label.Error_Message36}'; |
| | | var Error_Message40 = '{!$Label.Error_Message40}'; |
| | | var Confirm_ChangedAfterPrint = '打印后行信息有变化,是否继续操作(报价编码会变新)?'; |
| | | var Confirm_ChangedAfterBid = '该报价已成为false传票,是否继续操作(将会做出一个新的报价)?'; |
| | | var Confirm_PriceRefresh = '报价作成后{!$Label.Price_Valid_Period}天,还没有更新过价格,需要执行{!$Label.Status_Update}?'; |
| | | var QuoteDecide = {!QuoteDecide}; |
| | | window.sfdcPage.appendToOnloadQueue(function() { calonLoad() }); |
| | | var openQuoteExcelImportWindow = null; |
| | | |
| | | function selectAll() { |
| | | var checklist = j$("input[name='checklist']"); |
| | | var all = j$(escapeVfId("checkAll")); |
| | | for(var i = 0; i < checklist.length; i++){ |
| | | if (all[0].checked == true) { |
| | | checklist[i].checked = true; |
| | | } else { |
| | | checklist[i].checked = false; |
| | | } |
| | | } |
| | | } |
| | | |
| | | // xudan 20140627 削除後のチェック外すロジック |
| | | function clearAllCheck() { |
| | | j$(escapeVfId("checkAll"))[0].checked = false; |
| | | var checklist = j$("input[name='checklist']"); |
| | | for(var i = 0; i < checklist.length; i++){ |
| | | checklist[i].checked = false; |
| | | } |
| | | } |
| | | // 报价试算 |
| | | function JumpJs() { |
| | | // console.log(ApexPages.currentPage().getParameters().get('core.apexpages.request.devconsole')); |
| | | // var t = '{!quoId}'; |
| | | // window.open('/apex/test02?Id=' + t); |
| | | blockme(); |
| | | Jump.call(); |
| | | return true; |
| | | } |
| | | |
| | | // 2018/09/28 CHAN-B4YAB8 初始化时更新经销商折扣 start |
| | | //AgencyDiscountCalculation1(); |
| | | // 2018/09/28 CHAN-B4YAB8 初始化时更新经销商折扣 end |
| | | </script> |
| | | <style type="text/css"> |
| | | div#iframelike { |
| | | color: #fff; |
| | | color: rgb(24, 24, 24); |
| | | height: 300px; |
| | | overflow: auto; |
| | | } |
| | |
| | | </tr> |
| | | </table> |
| | | </apex:outputPanel> |
| | | <div> |
| | | <div style="background-color:#f4f8fd73"> |
| | | <table border="0"> |
| | | <tr> |
| | | <th style="text-align:right;width:90px;">{!$Label.Quoto_No}</th> |
| | |
| | | <td style="width:130px;"><apex:commandButton onclick="openQuoteExcelImport(event);return false;" value="{!$Label.Excel_Import}" style="width:110px;" rerender="dummy"/></td> |
| | | <td style="text-align:right;width:50px;"><apex:commandButton rerender="dummy" id="Btn_RowDelete" onclick="radioChecker2('del');return false;" value="{!$Label.deleteLabel}" style="width:60px;" /></td> |
| | | <!-- 添加行 --> |
| | | <td width="40px;"> |
| | | <td width="50px;"> |
| | | <!-- 添加行 html特性增加滑动条 精琢技术 wql 2021/02/09 end --> |
| | | <apex:commandButton onclick="openAddMultipleRow(); return false;" value="增加行" rerender="{!displayFlg}"/> |
| | | </td> |
| | | <td style="width:130px;"> |
| | | <apex:commandButton rerender="dummy" id="Btn_RowUp" onclick="radioChecker2('up');return false;" value="{!$Label.Row_Up}" style="width:60px;"/> |
| | | <td style="width:50px;"> |
| | | <apex:commandButton rerender="dummy" id="Btn_RowUp" onclick="radioChecker2('up');return false;" value="{!$Label.Row_Up}" style="width:60px;"/> </td> |
| | | <td style="width:50px;"> |
| | | <apex:commandButton rerender="dummy" id="Btn_RowDown" onclick="radioChecker2('down');return false;" value="{!$Label.Row_Down}" style="width:60px;"/> |
| | | </td> |
| | | |
| | |
| | | </table> |
| | | --> |
| | | <!-- 原代码 end --> |
| | | <table> |
| | | <div style="background-color:#f4f8fd73"> |
| | | <table > |
| | | <tr> |
| | | <td> </td> |
| | | </tr> |
| | | <tr> |
| | | <th style="text-align:right;width:30px;"> </th> |
| | | <th style="text-align:right;width:130px;">合同保修期(年): </th> |
| | | <th style="text-align:left;width:130px;">合同保修期(年): </th> |
| | | <td style="width:190px;"><apex:inputField id="AllGurantee_Period" value="{!quo.Gurantee_Period__c}" onchange="calGuranteePeriod();" style="width:50px; text-align:right;" /> |
| | | <apex:inputHidden id="Gurantee_Period__c" value="{!quo.Gurantee_Period__c}"/> |
| | | </td> |
| | |
| | | <tr> |
| | | <td> </td> |
| | | </tr> |
| | | </table> |
| | | </table></div> |
| | | |
| | | <!-- 多年保修 end --> |
| | | |
| | | <DIV style="OVERFLOW-Y: hidden; OVERFLOW-X:auto;width:1260px"> |
| | |
| | | </td> |
| | | <td class="dataCell" style="text-align: center;width:50px;"> |
| | | <!-- 2018/09/28 CHAN-B4YAB8 经销商单价计算 start --> |
| | | <apex:inputField id="Quantity" style="width:30px;text-align:center;" value="{!s.PageObject.Quantity__c}" onChange="calPrice('{!s.lineNo}');quoteAgencyTotalPriceAction();AgencyDiscountCalculation1();"/> |
| | | <apex:inputField id="Quantity" style="width:45px;text-align:center;" value="{!s.PageObject.Quantity__c}" onChange="calPrice('{!s.lineNo}');quoteAgencyTotalPriceAction();AgencyDiscountCalculation1();"/> |
| | | <!-- 2018/09/28 CHAN-B4YAB8 经销商单价计算 end --> |
| | | </td> |
| | | <td class="dataCell" style="width:20px;text-align: center;"> |
| | |
| | | <apex:outputLabel id="Storagestatustext" value="{!s.StorageStatus}"/> |
| | | <apex:inputHidden id="Storagestatus" rendered="{!displayFlg}" value="{!s.StorageStatus}"/> |
| | | </td> |
| | | <td class="dataCell" id="{!Text(cnt-1)}:td_Name__c" style="width:350px;"> |
| | | <td class="dataCell" id="{!Text(cnt-1)}:td_Name__c" style="width:350px;text-align:center;"> |
| | | <div id="Page:mainForm:block:lists:{!s.lineNo}:NameLink"><apex:outputLink style="width:300px;" value="{!baseUrl}/{!s.PageObject.Id__c}" id="Nametext1" target="_blank">{!s.PageObject.Name__c}</apex:outputLink></div> |
| | | <apex:inputHidden id="Name__c" value="{!s.PageObject.Name__c}"/> |
| | | <apex:outputPanel layout="none" rendered="{!IF(s.changed_name == true || s.wrong_Register == true, true, false)}"> |
| | |
| | | </apex:pageBlock> |
| | | </apex:form> |
| | | <!-- 添加行 html特性增加滑动条 精琢技术 wql 2021/02/09 start --> |
| | | <script type="text/javascript"> |
| | | |
| | | console.log(window); |
| | | console.log(window.sfdcPage); |
| | | var popupBox; |
| | | popupBox = new SimpleDialog("SpeedDialogId", false); // 不可拖动 |
| | | popupBox.createDialog(); |
| | | |
| | | if(window.sfdcPage && window.sfdcPage.appendToOnloadQueue){ |
| | | window.sfdcPage.appendToOnloadQueue( |
| | | function() { calonLoad() } |
| | | ); |
| | | } |
| | | //添加行 html特性增加滑动条 精琢技术 wql 2021/02/09 start |
| | | //dialog 弹窗 start |
| | | |
| | | //精琢技术 2021/02/08 start |
| | | function openAddMultipleRow(){ |
| | | |
| | | popupBox.setTitle("请输入需要增加的行号!"); |
| | | popupBox.importContentNode(document.getElementById("speedDiv")); |
| | | popupBox.show(document.getElementById("speedDiv")); |
| | | document.getElementById("speedDiv").style.display = 'block'; |
| | | |
| | | } |
| | | // function decision2btns(){ |
| | | // ReservedProductVerification(); |
| | | // debugger |
| | | // var filg=j$(escapeVfId('Page:mainForm:filg')).value(); |
| | | // // var filg={!filg}; |
| | | // console.warn(filg); |
| | | // if(filg == 'true'){ |
| | | // console.warn('成功'); |
| | | // // decision2btn(); |
| | | // }else{ |
| | | // alert('产品数量不可超过产品预留数量'); |
| | | // } |
| | | // } |
| | | //dialog 弹窗 end |
| | | // 添加行 html特性增加滑动条 精琢技术 wql 2021/02/09 end |
| | | |
| | | var QuoteEntryMaxLine = {!QuoteEntryMaxLine}; |
| | | console.log(QuoteEntryMaxLine ); |
| | | var trade = '{!oppInfo.Trade}'; |
| | | console.log(trade ); |
| | | var displayCost = '{!displayCost}'; |
| | | console.log(displayCost ); |
| | | var quoid = '{!quoid}'; |
| | | console.log(quoid ); |
| | | var Session_ID = '{!$Api.Session_ID}'; |
| | | var Price_Valid_Period = '{!$Label.Price_Valid_Period}'; |
| | | var Message_001 = '{!$Label.Message_001}'; |
| | | var Message_Please_Save_Quote = '{!$Label.Please_Save_Quote}'; |
| | | var Message_Check_Your_Clipboard = '{!$Label.Check_Your_Clipboard}'; |
| | | var Error_Message3 = '{!$Label.Error_Message3}'; |
| | | //var Error_Message11 = '{!$Label.Error_Message11}'; |
| | | //var Error_Message29 = '{!$Label.Error_Message29}'; |
| | | var Error_Message33 = '{!$Label.Error_Message33}'; |
| | | var Error_Message34 = '{!$Label.Error_Message34}'; |
| | | var Error_Message35 = '{!$Label.Error_Message35}'; |
| | | var Error_Message36 = '{!$Label.Error_Message36}'; |
| | | var Error_Message40 = '{!$Label.Error_Message40}'; |
| | | var Confirm_ChangedAfterPrint = '打印后行信息有变化,是否继续操作(报价编码会变新)?'; |
| | | var Confirm_ChangedAfterBid = '该报价已成为false传票,是否继续操作(将会做出一个新的报价)?'; |
| | | var Confirm_PriceRefresh = '报价作成后{!$Label.Price_Valid_Period}天,还没有更新过价格,需要执行{!$Label.Status_Update}?'; |
| | | var QuoteDecide = {!QuoteDecide}; |
| | | //window.sfdcPage.appendToOnloadQueue(function() { calonLoad() }); 这里有问题 |
| | | var openQuoteExcelImportWindow = null; |
| | | |
| | | function selectAll() { |
| | | var checklist = j$("input[name='checklist']"); |
| | | var all = j$(escapeVfId("checkAll")); |
| | | for(var i = 0; i < checklist.length; i++){ |
| | | if (all[0].checked == true) { |
| | | checklist[i].checked = true; |
| | | } else { |
| | | checklist[i].checked = false; |
| | | } |
| | | } |
| | | } |
| | | |
| | | // xudan 20140627 削除後のチェック外すロジック |
| | | function clearAllCheck() { |
| | | j$(escapeVfId("checkAll"))[0].checked = false; |
| | | var checklist = j$("input[name='checklist']"); |
| | | for(var i = 0; i < checklist.length; i++){ |
| | | checklist[i].checked = false; |
| | | } |
| | | } |
| | | // 报价试算 |
| | | function JumpJs() { |
| | | // console.log(ApexPages.currentPage().getParameters().get('core.apexpages.request.devconsole')); |
| | | // var t = '{!quoId}'; |
| | | // window.open('/apex/test02?Id=' + t); |
| | | blockme(); |
| | | Jump.call(); |
| | | return true; |
| | | } |
| | | |
| | | // 2018/09/28 CHAN-B4YAB8 初始化时更新经销商折扣 start |
| | | //AgencyDiscountCalculation1(); |
| | | // 2018/09/28 CHAN-B4YAB8 初始化时更新经销商折扣 end |
| | | </script> |
| | | <script type="text/javascript"> |
| | | //const duration = document.getElementById('dur'); |
| | | |
| | |
| | | |
| | | </script> |
| | | <!-- //添加行 html特性增加滑动条 精琢技术 wql 2021/02/09 end --> |
| | | |
| | | </apex:page> |