| | |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | | <style type="text/css"> |
| | | .BlockSytle{ |
| | | width: 1000px; |
| | | width: 1300px; |
| | | } |
| | | .PageStyleCss{ |
| | | width: 980px; |
| | |
| | | Initdisabled(); |
| | | } |
| | | |
| | | window.addEventListener('DOMContentLoaded', function() { |
| | | var pageBlock = document.getElementById('{!$Component.allBlock}'); |
| | | pageBlock.style.border = 'none'; |
| | | pageBlock.style.boxShadow = 'none'; |
| | | }); |
| | | function Convert_All_Amount() { |
| | | var Total_Contract_Amount = j$(escapeVfId('allPage:allForm:Contract_Amount_Hidden')).val(); |
| | | var Total_Contract_Amount_In_Words = j$(escapeVfId('allPage:allForm:Total_Contract_Amount_In_Words_Hidden')).val(); |
| | |
| | | // fxk 2021/8/31 点检次数必须填 end |
| | | // window.opener.top.location.href = '/{!PageMCEElement.id}'; |
| | | // top.window.close(); |
| | | window.close(); |
| | | setTimeout(function(){ |
| | | window.location.href = '/{!PageMCEElement.id}'; |
| | | }, 1500 ); |
| | | |
| | | // window.close(); |
| | | unblockUI(); |
| | | }else{ |
| | | unblockUI(); |
| | |
| | | |
| | | <apex:pageBlock id="allBlock" > |
| | | <apex:outputPanel id="Messages" style="color:red"> |
| | | <apex:messages /> |
| | | <!-- <apex:messages /> --> |
| | | <apex:pageMessages /> |
| | | </apex:outputPanel> |
| | | <table border="0" > |
| | | <colgroup> |
| | | <col width="25%"/> |
| | | <col width="45%"/> |
| | | <col width="25%"/> |
| | | <col width="25%"/> |
| | | <col width="25%"/> |
| | | <col width="5%"/> |
| | | </colgroup> |
| | | <tr> |
| | | <td style ="text-align: right;"> |
| | |
| | | </apex:pageBlockSection> |
| | | <apex:pageBlockButtons id="allButtons"> |
| | | <apex:outputPanel rendered="{!IF(PageMCEElement.Status__c != '引合中', 'true', 'false')}"> |
| | | <apex:commandButton styleClass="align-save-button" disabled="true" id="SaveButton1" value="保存" action="{!save}" onclick="blockme();" reRender="hiddenInput,Messages" oncomplete="CloseJs();"/> |
| | | <apex:commandButton styleClass="align-save-button" disabled="true" id="SaveButton1" value="保存" action="{!save}" onclick="blockme();" reRender="hiddenInput,Messages" style="margin-top:-2px" oncomplete="CloseJs();"/> |
| | | <apex:commandButton disabled="true" id="CancelButton1" value="取消" onclick="CloseJs(); return false;"/> |
| | | <apex:commandButton disabled="true" id="PrintButton1" value="打印" action="{!print}" onclick="blockme();" rerender="hiddenInput,Messages,pdfPrint" oncomplete="PrintJs();" /> |
| | | </apex:outputPanel> |
| | | <apex:outputPanel id="bottom" rendered="{!IF(PageMCEElement.Status__c == '引合中', 'true', 'false')}"> |
| | | <apex:commandButton id="SaveButton" value="保存" action="{!save}" onclick="blockme();" reRender="hiddenInput,Messages" oncomplete="CloseJs();"/> |
| | | <apex:commandButton id="SaveButton" value="保存" action="{!save}" onclick="blockme();" reRender="hiddenInput,Messages" oncomplete="CloseJs();" style="margin-top:-2px"/> |
| | | <apex:commandButton id="CancelButton" value="取消" onclick="CloseJs(); return false;"/> |
| | | <apex:commandButton id="PrintButton" value="打印" action="{!print}" onclick="blockme();" rerender="hiddenInput,Messages,pdfPrint" oncomplete="PrintJs();" /> |
| | | </apex:outputPanel> |
| | |
| | | function PrintJs() { |
| | | var Rs = j$(escapeVfId('allPage:allForm:statusSave')).value(); |
| | | if(Rs == 'Fin'){ |
| | | // CloseJs(); |
| | | unblockUI(); |
| | | if ('{!printContract}' == 'true') { |
| | | //HWAG-BHT7XX 2019/11/26 START |
| | | if('{!agreeUpperLimit}' == 'true'){ |
| | | // 打印医院限次合同配置 |
| | | window.open('/apex/NewMCHPDFLimit?id={!PageMCEElement.id}', 'MCHLimitPDF'); |
| | | window.close(); |
| | | // window.close(); |
| | | }else{ |
| | | // 打印医院合同配置 |
| | | window.open('/apex/NewMCHPDF?id={!PageMCEElement.id}', 'MCHPDF'); |
| | | window.close(); |
| | | // window.close(); |
| | | } |
| | | //HWAG-BHT7XX 2019/11/26 END |
| | | }else if ('{!printAgent}' == 'true') { |
| | | if('{!agreeUpperLimit}' == 'true'){ |
| | | //打印经销商限次合同 |
| | | window.open('/apex/NewMCAgentPDFLimit?id={!PageMCEElement.id}', 'MCAgentLimitPDF'); |
| | | window.close() |
| | | // window.close() |
| | | }else{ |
| | | //打印经销商合同 |
| | | window.open('/apex/NewMCAgentPDF?id={!PageMCEElement.id}', 'MCHPDF'); |
| | | window.close(); |
| | | // window.close(); |
| | | } |
| | | }else { |
| | | alert('1'); |