| | |
| | | <script type="text/javascript"> |
| | | function checkAll() { |
| | | var productCount = j$(escapeVfId('Page:mainForm:productInfoList:Size')).value(); |
| | | // alert(productCount); |
| | | if (j$(escapeVfId('checkAll1')).attr('checked') == 'checked') { |
| | | // alert(productCount); |
| | | for (var i = 0; i < productCount; i++) { |
| | | // Page:mainForm:productInfoList:0:rowcheck |
| | | j$(escapeVfId('Page:mainForm:productInfoList:' + i + ':rowcheck')).attr('checked',true); |
| | | } |
| | | } else { |
| | |
| | | } |
| | | } |
| | | } |
| | | // 跳转到查询产品框 |
| | | // function searchProduct1(i, str) { |
| | | // //id="Page:mainForm:block2:productInfoList:1:proModel" |
| | | // j$(escapeVfId('Page:mainForm:productInfoList:' + (i-1) + ':proModel')).attr('readonly', true); |
| | | // // j$(escapeVfId('Page:mainForm:block:lists:' + i + ':Assert')).attr('readonly', true); |
| | | // openPopup('/apex/OrderSearchProduct?lineno=' + i + '&val=' + str, 'setsearch', 950, 450, 'width=950,height=450,scrollbars=yes,toolbar=no,status=no,directories=no,menubar=no,resizable=1', true); |
| | | // } |
| | | |
| | | // 保存按钮 |
| | | function SaveJs() { |
| | |
| | | } |
| | | } |
| | | |
| | | // function getLastLineNoNext(doc) { |
| | | // var hasRecordFlg = false; |
| | | // var lastLineNo = 0; |
| | | // for(var i=99; i>=0; i--){ |
| | | // if (j$(escapeVfId('Page:mainForm:productInfoList:' + i + ':proModel')).value() != ''){ |
| | | // if (!hasRecordFlg) { |
| | | // lastLineNo = i; |
| | | // } |
| | | // hasRecordFlg = true; |
| | | // } |
| | | // if (hasRecordFlg == true) { |
| | | // if (j$(escapeVfId('Page:mainForm:productInfoList:' + i + ':proModel')).value() == ''){ |
| | | // var moveCheckbox = true; |
| | | // lastLineNo = i; |
| | | // } |
| | | // } |
| | | // } |
| | | // if (hasRecordFlg) { |
| | | // lastLineNo = lastLineNo + 1; |
| | | // } |
| | | // return lastLineNo; |
| | | // } |
| | | |
| | | // function radioChecker(str) { |
| | | // //error初期化 |
| | | // var lastLineNoNext = getLastLineNoNext(document); |
| | | // try { |
| | | // var hasCheckedCnt = 0; |
| | | // for (var i = 0; i < lastLineNoNext; i++) { |
| | | // var iChecked = document.forms['Page:mainForm']['checklist'][i].checked; |
| | | // if (iChecked) { |
| | | // hasCheckedCnt++; |
| | | // if (hasCheckedCnt > 1) { |
| | | // // 如果知道是否有多件检查 break |
| | | // break; |
| | | // } |
| | | // } |
| | | // } |
| | | // if (hasCheckedCnt == 0) { |
| | | // throw '请选中相应的行'; |
| | | // } |
| | | // var hasCheckedCnt1 = 0; // 实际可以变更的件数 |
| | | // if (str == 'del') { |
| | | // for (var i = lastLineNoNext - 1; i >= 0; i--) { |
| | | // var iChecked = document.forms['Page:mainForm']['checklist'][i].checked; |
| | | // if (iChecked) { |
| | | // hasCheckedCnt1++; |
| | | // deletelist(i, document); |
| | | // } |
| | | // } |
| | | // } else { |
| | | // throw 'Unknow Operation'; |
| | | // } |
| | | // if (str == 'del') { |
| | | // clearAllCheck(); |
| | | // } |
| | | // } catch (e) { |
| | | // alert(e); |
| | | // } |
| | | // return true; |
| | | // } |
| | | |
| | | // 清除所选框的勾 |
| | | // 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; |
| | | // } |
| | | // } |
| | | //文本框输入值,复选框自动打勾 thh 2021-12-15 |
| | | function ComputePrice(j) { |
| | | var productCount = j$(escapeVfId('Page:mainForm:productInfoList:Size')).value(); |
| | |
| | | } |
| | | } |
| | | } |
| | | |
| | | </script> |
| | | <!-- 样式 --> |
| | | <style type="text/css"> |
| | |
| | | border-bottom-width: 0; |
| | | } |
| | | |
| | | /* 添加行 html特性增加滑动条 精琢技术 wql 2021/02/09 start */ |
| | | /* 这里不考虑浏览器的兼容性 */ |
| | | input[type="range"] { |
| | | width: 100%; |
| | |
| | | opacity: 1; |
| | | font-weight:bold; |
| | | } |
| | | /* 添加行 html特性增加滑动条 精琢技术 wql 2021/02/09 end */ |
| | | |
| | | </style> |
| | | |
| | | </head> |
| | | <!-- <body onload="init()"> --> |
| | | <apex:form id="mainForm"> |
| | | |
| | | |
| | | <h1 style ="font-size: 30px; margin-left: 45%;">样本订货</h1> |
| | | <!-- 初始化页面(默认十行空行) --> |
| | | <!-- <apex:actionFunction name="searchHospital" action="{!searchHospital}" rerender="mainForm,listsTable" onComplete="unblockUI();mainForm"> |
| | | </apex:actionFunction> --> |
| | | <!-- 默认十行空行 --> |
| | | <!-- <apex:actionFunction name="addrow" action="{!addrow}" rerender="message,listsTable" onComplete="unblockUI();"> --> |
| | | <!-- </apex:actionFunction> --> |
| | | <!-- 保存按钮 --> |
| | | <!-- <apex:actionFunction name="save" action="{!save}" rerender="message,theTable_Body,listsTable" onComplete="unblockUI();"> --> |
| | | <apex:actionFunction name="save" action="{!save}" rerender="message,mainForm,listsTable" onComplete="SaveAllChecktime();unblockUI();"> |
| | | </apex:actionFunction> |
| | | <!-- 删除按钮 --> |
| | | <!-- <apex:actionFunction name="deleteBtn" action="{!deleteBtn}" rerender="message,mainForm,listsTable" onComplete="unblockUI();"> |
| | | </apex:actionFunction> --> |
| | | <!-- 确认按钮 --> |
| | | <apex:actionFunction name="confirmBtn" action="{!confirmBtn}" rerender="message,mainForm,listsTable" onComplete="SaveAllChecktime();unblockUI();"> |
| | | </apex:actionFunction> |
| | | <!-- <apex:actionFunction name="resetDealer" action="{!Dummy}" rerender="listsTable" oncomplete="resetDealer();"></apex:actionFunction> --> |
| | | <!-- 添加行 20211103 lt --> |
| | | <!-- <apex:actionFunction action="{!addMultipleRow}" name="addMultipleRow" reRender="theTable_Body" oncomplete="unblockUI();"> |
| | | <apex:param assignTo="{!rowIdx}" name="rowIdx" value=""/> |
| | | </apex:actionFunction> --> |
| | | |
| | | <apex:outputPanel id="listsTable"> |
| | | <!-- <apex:pageBlock id="block1"> --> |
| | | <div style="width: 100%;text-align:center;margin:0 auto;"> |
| | |
| | | <td></td> |
| | | </th> |
| | | </tr> |
| | | <!-- 20211115 lt start --> |
| | | <tr style="background-color:#f2f3f1;width:900px;"> |
| | | <th style="text-align: left;">收货方:</th> |
| | | <td style="text-align:left;"> |
| | |
| | | <apex:outputPanel rendered="{!!IF(sampleOrder.Status__c='订单已发送',true,false)}" > |
| | | <apex:inputField id="sampleReceivePart" value="{!sampleOrder.ReceivePart__c}" onchange="resetDealer();return false;" /> |
| | | </apex:outputPanel> |
| | | <!-- <apex:inputField id="sampleReceivePart" value="{!sampleOrder.ReceivePart__c}" onchange="resetDealer();return false;" /> --> |
| | | <!-- <apex:selectList id="recevicePart" style="width:177px;height:20px;" value="{!selection_rec}" disabled="{!IF(sampleOrder.Status__c='订单已发送',true,false)}" > |
| | | <apex:selectOptions value="{!options_rec}" /> |
| | | </apex:selectList> --> |
| | | <!-- <apex:inputField style="width:177px;height:20px;" value="{!sampleOrder.ReceivePart__c}" /> --> |
| | | </td> |
| | | <th style="text-align:right;">送达方地址:</th> |
| | | <td style="text-align:left;"> |
| | |
| | | <apex:pageMessages ></apex:pageMessages> |
| | | </apex:outputPanel> |
| | | <input type="hidden" id="Page:mainForm:productInfoList:Size" value="{!tempSize}" /> |
| | | <div id="iframelike" style="width: 100%; height: 400px; text-align:center;margin:0 auto;" > |
| | | <apex:outputPanel rendered="{!IF(sampleOrder.Status__c='订单已发送',false,true)}" > |
| | | <table id="theTable_Body" class="pure-table pure-table-horizontal" border="1" style="border-collapse: collapse; table-layout:fixed;"> |
| | | <tr style="background-color:#f2f3f3; width:900px; color: black;"> |
| | |
| | | </tr> |
| | | </table> |
| | | </apex:outputPanel> |
| | | <div id="iframelike" style="width: 100%; height: 400px; text-align:center;margin:0 auto;" > |
| | | <table id="theTable_Body" class="pure-table pure-table-horizontal" border="1" style="border-collapse: collapse; table-layout:fixed;"> |
| | | <colgroup> |
| | | <col width="2%"/> |
| | |
| | | </apex:outputPanel> |
| | | </td> |
| | | |
| | | <!-- 效期 --> |
| | | <!-- <td class="dataCell" style="text-align:center;"> |
| | | <apex:outputPanel rendered="{!IF(sampleOrder.Status__c='订单已发送',true,false)}"> |
| | | <apex:outputField value="{!pros.SOLDel.TermDate__c}"/> |
| | | </apex:outputPanel> |
| | | <apex:outputPanel rendered="{!!IF(sampleOrder.Status__c='订单已发送',true,false)}" > |
| | | <apex:outputField style="width:90px" id="SFDA_Expiration_Date" value="{!pros.pro.SFDA_Expiration_Date__c}"/> |
| | | </apex:outputPanel> |
| | | </td> --> |
| | | |
| | | <!-- 数量 --> |
| | | <td class="dataCell" style="text-align:center;"> |
| | | <apex:outputPanel rendered="{!IF(sampleOrder.Status__c='订单已发送',true,false)}" > |
| | |
| | | </div> |
| | | </apex:outputPanel> |
| | | </apex:form> |
| | | |
| | | <!-- </body> --> |
| | | |
| | | <!-- 20211103 lt --> |
| | | <!-- 添加行 html特性增加滑动条 精琢技术 wql 2021/02/09 start --> |
| | | <!-- <script type="text/javascript"> |
| | | //const duration = document.getElementById('dur'); |
| | | |
| | | function changeV() { |
| | | var speed = document.getElementById('speed'); |
| | | //durVal = parseFloat(duration.value); |
| | | spdVal = parseFloat(speed.value); |
| | | //const durationPercent = parseFloat(durVal, 2) * 100 |
| | | const speedPercent = parseFloat((spdVal / 100), 2)*100; |
| | | //duration.style.backgroundSize = `${durationPercent}%, 100%` |
| | | speed.style.background = `linear-gradient(to right, #ffa200, white ${speedPercent}%, white` |
| | | document.getElementById("addMultipleRow").value= speed.value; |
| | | |
| | | }; |
| | | function changeI() { |
| | | var speed = document.getElementById('speed'); |
| | | //durVal = parseFloat(duration.value); |
| | | spdVal = parseFloat(document.getElementById("addMultipleRow").value); |
| | | //const durationPercent = parseFloat(durVal, 2) * 100 |
| | | const speedPercent = parseFloat((spdVal / 100), 2)*100; |
| | | //duration.style.backgroundSize = `${durationPercent}%, 100%` |
| | | speed.style.background = `linear-gradient(to right, #ffa200, white ${speedPercent}%, white` |
| | | speed.value = document.getElementById("addMultipleRow").value; |
| | | |
| | | }; |
| | | |
| | | </script> --> |
| | | <!-- //添加行 html特性增加滑动条 精琢技术 wql 2021/02/09 end --> |
| | | <!-- 20211103 lt --> |
| | | |
| | | </apex:page> |