| New file |
| | |
| | | <apex:page Controller="NewPaymentPlanLoadController" showHeader="false" sidebar="false" action="{!init}" id="allPage" title="维修合同文本信息录入页面" pageStyle="PageStyleCss" lightningStylesheets="true"> |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/> |
| | | <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/> |
| | | <style type="text/css"> |
| | | .BlockSytle{ |
| | | width: 1000px; |
| | | } |
| | | .PageStyleCss{ |
| | | width: 980px; |
| | | height: 340px; |
| | | } |
| | | .align-save-button { |
| | | vertical-align: top; |
| | | margin-top: 0.0rem; |
| | | margin-bottom: 0.125rem; |
| | | } |
| | | input{ |
| | | disabled: false; |
| | | } |
| | | </style> |
| | | <script type="text/javascript"> |
| | | j$(escapeVfId('allPage:allForm:allBlock:TextInformation:Contract_Limit_Times__c')).attr('disabled',true); |
| | | function init() { |
| | | |
| | | Convert_All_Amount(); |
| | | // 新增点检总次数(只在页面中显示)fxk 2021/9/2 Star |
| | | AllChecktime(); |
| | | // 新增点检总次数(只在页面中显示)fxk 2021/9/2 ENd |
| | | Initdisabled(); |
| | | } |
| | | |
| | | 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(); |
| | | if( Total_Contract_Amount !=null && Total_Contract_Amount!=undefined && Total_Contract_Amount.length > 0 ){ |
| | | Convert_Contract_Amount(); |
| | | Amount_Warranty_Coverage(); |
| | | for(var i=1; i<7; i++){ |
| | | Convert_Amount(i); |
| | | } |
| | | } |
| | | } |
| | | |
| | | function Initdisabled() { |
| | | var Status = '{!PageMCEElement.Status__c}'; |
| | | if(Status != '引合中'){ |
| | | j$(escapeVfId('allPage:allForm:allBlock:Is_Standard_Contract')).attr("disabled", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Term_Of_Payment__c')).attr("disabled", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:one_off_payment_agreed_period__c')).attr("disabled", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Total_Contract_Amount_In_Words')).attr("disabled", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Total_Payment_Time__c')).attr("disabled", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Payment_Plan_Date_First')).attr("disabled", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Payment_Plan_Date_Second')).attr("disabled", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Payment_Plan_Date_Third')).attr("disabled", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Payment_Plan_Date_Forth')).attr("disabled", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Payment_Plan_Date_Fifth')).attr("disabled", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Payment_Plan_Date_Sixth')).attr("disabled", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Payment_Plan_Sum_1')).attr("disabled", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Payment_Plan_Sum_2')).attr("disabled", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Payment_Plan_Sum_3')).attr("disabled", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Payment_Plan_Sum_4')).attr("disabled", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Payment_Plan_Sum_5')).attr("disabled", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Payment_Plan_Sum_6')).attr("disabled", true); |
| | | |
| | | |
| | | j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Payment_Plan_Sum_6')).attr("disabled", true); |
| | | |
| | | j$(escapeVfId('allPage:allForm:allBlock:Small_Repair_Time__c')).attr("disabled", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:Live_Technical_Support_Time__c')).attr("disabled", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:Tour_Check__c')).attr("disabled", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:Engineer_Name__c')).attr("disabled", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:Phone_Number__c')).attr("disabled", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:Inspection_Time__c')).attr("disabled", true); |
| | | // 新增点检总次数(只在页面中显示)fxk 2021/9/2 Star |
| | | j$(escapeVfId('allPage:allForm:allBlock:Contract_Limit_Times__c')).attr("disabled", true); |
| | | // 新增点检总次数(只在页面中显示)fxk 2021/9/2 End |
| | | j$(escapeVfId('allPage:allForm:allBlock:Dedust__c')).attr("disabled", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:First_Party_Contract_Number__c')).attr("disabled", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:Second_Party_Contract_Number__c')).attr("disabled", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:Negotiate_Mean__c')).attr("disabled", true); |
| | | } |
| | | //XLIU-CEP8WW LY 20220905 start |
| | | var saveBT = '{!PageMCEElement.old_Is_RecognitionModel__c}'; |
| | | var payment = j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Term_Of_Payment__c')).val(); |
| | | if (saveBT =='true' && payment=='多次付款'){ |
| | | j$(escapeVfId('allPage:allForm:allBlock:allButtons:bottom:PrintButton')).attr("disabled", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:allButtons:bottom:PrintButton')).attr("class", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:allButtons:PrintButton')).attr("disabled", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:allButtons:PrintButton')).attr("class", true); |
| | | } |
| | | //XLIU-CEP8WW LY 20220905 end |
| | | |
| | | } |
| | | |
| | | function Convert_Contract_Amount() { |
| | | var Total_Contract_Amount = j$(escapeVfId('allPage:allForm:Contract_Amount_Hidden')).val(); |
| | | var Total_Contract_Amount_In_Words = smalltoBIG(Total_Contract_Amount); |
| | | j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Total_Contract_Amount_In_Words')).text(Total_Contract_Amount_In_Words); |
| | | j$(escapeVfId('allPage:allForm:Total_Contract_Amount_In_Words_Hidden')).val(Total_Contract_Amount_In_Words); |
| | | } |
| | | //HWAG-BHT7XX 2019/11/26 START |
| | | // function paytime(status){ |
| | | // console.log('1'+status); |
| | | // switch(status){ |
| | | // case '1': |
| | | // document.getElementById('paytime1').style.display= "inline"; |
| | | // document.getElementById('paytime2').style.display= "none"; |
| | | // document.getElementById('paytime3').style.display= "none"; |
| | | // document.getElementById('paytime4').style.display= "none"; |
| | | // document.getElementById('paytime5').style.display= "none"; |
| | | // document.getElementById('paytime6').style.display= "none"; |
| | | // break; |
| | | // case '2': |
| | | // document.getElementById('paytime2').style.display= "inline"; |
| | | // document.getElementById('paytime1').style.display= "inline"; |
| | | // document.getElementById('paytime3').style.display= "none"; |
| | | // document.getElementById('paytime4').style.display= "none"; |
| | | // document.getElementById('paytime5').style.display= "none"; |
| | | // document.getElementById('paytime6').style.display= "none"; |
| | | // break; |
| | | // case '3': |
| | | // document.getElementById('paytime3').style.display= "inline"; |
| | | // document.getElementById('paytime2').style.display= "inline"; |
| | | // document.getElementById('paytime1').style.display= "inline"; |
| | | // document.getElementById('paytime4').style.display= "none"; |
| | | // document.getElementById('paytime5').style.display= "none"; |
| | | // document.getElementById('paytime6').style.display= "none"; |
| | | // break; |
| | | // case '4': |
| | | // document.getElementById('paytime4').style.display= "inline"; |
| | | // document.getElementById('paytime2').style.display= "inline"; |
| | | // document.getElementById('paytime3').style.display= "inline"; |
| | | // document.getElementById('paytime1').style.display= "inline"; |
| | | // document.getElementById('paytime5').style.display= "none"; |
| | | // document.getElementById('paytime6').style.display= "none"; |
| | | // break; |
| | | // case '5': |
| | | // document.getElementById('paytime5').style.display= "inline"; |
| | | // document.getElementById('paytime2').style.display= "inline"; |
| | | // document.getElementById('paytime3').style.display= "inline"; |
| | | // document.getElementById('paytime4').style.display= "inline"; |
| | | // document.getElementById('paytime1').style.display= "inline"; |
| | | // document.getElementById('paytime6').style.display= "none"; |
| | | // break; |
| | | // case '6': |
| | | // document.getElementById('paytime6').style.display= "inline"; |
| | | // document.getElementById('paytime2').style.display= "inline"; |
| | | // document.getElementById('paytime3').style.display= "inline"; |
| | | // document.getElementById('paytime4').style.display= "inline"; |
| | | // document.getElementById('paytime5').style.display= "inline"; |
| | | // document.getElementById('paytime1').style.display= "inline"; |
| | | // break; |
| | | // default: |
| | | // break; |
| | | // } |
| | | // } |
| | | function Amount_Warranty_Coverage(){ |
| | | var Total_Contract_Amount = j$(escapeVfId('allPage:allForm:Contract_Amount_Hidden')).val(); |
| | | var Amount_Warranty_Coverage = (Total_Contract_Amount*1.3).toString(); |
| | | console.log(Amount_Warranty_Coverage+'======'); |
| | | var Amount_Warranty_Coverage_In_Words = smalltoBIG(Amount_Warranty_Coverage); |
| | | console.log(Amount_Warranty_Coverage_In_Words+'======'); |
| | | // j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Total_Contract_Amount_In_Words')).text(Amount_Warranty_Coverage_In_Words); |
| | | j$(escapeVfId('allPage:allForm:Amount_Warranty_Coverage_In_Word_Hidden')).val(Amount_Warranty_Coverage_In_Words); |
| | | j$(escapeVfId('allPage:allForm:Amount_Warranty_Coverage_Hidden')).val(Amount_Warranty_Coverage); |
| | | } |
| | | //HWAG-BHT7XX 2019/11/26 END |
| | | function Convert_Amount(number) { |
| | | var Amount = j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Payment_Plan_Sum_'+number)).val(); |
| | | if(Amount == null || Amount== undefined || Amount.length == 0) |
| | | return; |
| | | var Amount_In_Words = smalltoBIG(Amount); |
| | | j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Payment_Plan_Sum_' + number + '_in_Word')).text(Amount_In_Words); |
| | | j$(escapeVfId('allPage:allForm:Payment_Plan_Sum_' + number + '_in_Word_Hidden')).val(Amount_In_Words); |
| | | j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Payment_Plan_Sum_'+number)).val(toNumComma(Amount)); |
| | | } |
| | | |
| | | /** 数字金额大写转换(可以处理整数,小数,负数) */ |
| | | function smalltoBIG(n) |
| | | { |
| | | var fraction = ['角', '分']; |
| | | var digit = ['零', '壹', '贰', '叁', '肆', '伍', '陆', '柒', '捌', '玖']; |
| | | var unit = [ ['元', '万', '亿'], ['', '拾', '佰', '仟'] ]; |
| | | var head = n < 0? '欠': ''; |
| | | n = n.replace(/\,/g,""); |
| | | n = Math.abs(n); |
| | | var s = ''; |
| | | for (var i = 0; i < fraction.length; i++){ |
| | | s += (digit[Math.floor(n * 10 * Math.pow(10, i)) % 10] + fraction[i]).replace(/零./, ''); |
| | | } |
| | | s = s || '整'; |
| | | n = Math.floor(n); |
| | | for (var i = 0; i < unit[0].length && n > 0; i++) { |
| | | var p = ''; |
| | | for (var j = 0; j < unit[1].length && n > 0; j++) { |
| | | p = digit[n % 10] + unit[1][j] + p; |
| | | n = Math.floor(n / 10); |
| | | } |
| | | s = p.replace(/(零.)*零$/, '').replace(/^$/, '零') + unit[0][i] + s; |
| | | } |
| | | return head + s.replace(/(零.)*零元/, '元').replace(/(零.)+/g, '零').replace(/^整$/, '零元整'); |
| | | } |
| | | |
| | | function CloseJs() { |
| | | // body... |
| | | var Rs = j$(escapeVfId('allPage:allForm:statusSave')).value(); |
| | | // alert(Rs); |
| | | // fxk 2021/8/31 点检次数必须填 end |
| | | // var saveErrorflag = j$(escapeVfId('saveErrorflag')).value(); |
| | | if(Rs == 'Fin'){ |
| | | // fxk 2021/8/31 点检次数必须填 end |
| | | // window.opener.top.location.href = '/{!PageMCEElement.id}'; |
| | | // top.window.close(); |
| | | window.close(); |
| | | unblockUI(); |
| | | }else{ |
| | | unblockUI(); |
| | | } |
| | | } |
| | | |
| | | |
| | | function ChangeTermofPaymentPlanJS(){ |
| | | //XLIU-CEP8WW LY 20220905 start |
| | | var saveBT = '{!PageMCEElement.old_Is_RecognitionModel__c}'; |
| | | var payment = j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Term_Of_Payment__c')).val(); |
| | | if (saveBT =='true' && payment=='多次付款'){ |
| | | j$(escapeVfId('allPage:allForm:allBlock:allButtons:bottom:PrintButton')).attr("disabled", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:allButtons:bottom:PrintButton')).attr("class", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:allButtons:PrintButton')).attr("disabled", true); |
| | | j$(escapeVfId('allPage:allForm:allBlock:allButtons:PrintButton')).attr("class", true); |
| | | } |
| | | if (saveBT =='true' && payment=='一次性付款') { |
| | | j$(escapeVfId('allPage:allForm:allBlock:allButtons:bottom:PrintButton')).attr("disabled", false); |
| | | j$(escapeVfId('allPage:allForm:allBlock:allButtons:bottom:PrintButton')).attr("class", false); |
| | | j$(escapeVfId('allPage:allForm:allBlock:allButtons:PrintButton')).attr("disabled", false); |
| | | j$(escapeVfId('allPage:allForm:allBlock:allButtons:PrintButton')).attr("class", false); |
| | | } |
| | | //XLIU-CEP8WW LY 20220905 end |
| | | ChangeTermofPaymentPlan(); |
| | | |
| | | } |
| | | // 新增点检总次数(只在页面中显示)fxk 2021/9/2 Star |
| | | function AllChecktime(){ |
| | | var Allchecks; |
| | | // gzw fix 20210929 追加非标准合同判断 |
| | | |
| | | var ContractAllMonth = '{!Contract_validMonth}';//j$(escapeVfId('allPage:allForm:Contract_validMonth')).value(); |
| | | // alert(ContractAllMonth); |
| | | var contractType = j$(escapeVfId('allPage:allForm:allBlock:Is_Standard_Contract')).val(); |
| | | var checks; |
| | | if(contractType == '是'){ |
| | | checks= j$(escapeVfId('allPage:allForm:allBlock:TextInformation:Inspection_Time__c')).val(); |
| | | }else{ |
| | | checks= j$(escapeVfId('allPage:allForm:allBlock:TextInformation:Inspection_Time__cno')).val(); |
| | | } |
| | | // = j$(escapeVfId('allPage:allForm:allBlock:TextInformation:Inspection_Time__c')).val(); |
| | | // alert(checks); |
| | | // add 一年内点检区间不够生成一次点检计划,默认生成一个点检计划,计划区间为合同开始日-结束日 2021/10/25 fxk Star |
| | | if((checks == 1 && ContractAllMonth < 9) |
| | | || (checks == 2 && ContractAllMonth < 6) |
| | | || (checks == 3 && ContractAllMonth < 4) |
| | | || (checks == 4 && ContractAllMonth < 3)){ |
| | | Allchecks = 1; |
| | | }else{ |
| | | // add 一年内点检区间不够生成一次点检计划,默认生成一个点检计划,计划区间为合同开始日-结束日 2021/10/25 fxk End |
| | | if (ContractAllMonth - parseInt(ContractAllMonth / 12) * 12 >= 6 && checks == 1){ |
| | | Allchecks = parseInt((ContractAllMonth * checks)/12+1); |
| | | }else{ |
| | | Allchecks = parseInt((ContractAllMonth * checks)/12); |
| | | // alert(Allchecks); |
| | | } |
| | | } |
| | | // alert(Allchecks); |
| | | if(contractType == '是'){ |
| | | j$(escapeVfId('allPage:allForm:allBlock:TextInformation:Contract_Limit_Times__c')).text(Allchecks); |
| | | }else{ |
| | | j$(escapeVfId('allPage:allForm:allBlock:TextInformation:Contract_Limit_Times__cno')).text(Allchecks); |
| | | } |
| | | |
| | | } |
| | | // 新增点检总次数(只在页面中显示)fxk 2021/9/2 End |
| | | |
| | | </script> |
| | | <apex:form styleClass="BlockSytle" id="allForm"> |
| | | <body onload="init()"> |
| | | <apex:actionFunction name="ChangeTermofPaymentPlan" action="{!Dummy}" rerender="paymentPlan"></apex:actionFunction> |
| | | <apex:actionFunction name="RerenderallpageBlockJS" action="{!Dummy}" rerender="TextInformation" oncomplete="AllChecktime();"></apex:actionFunction> |
| | | <!-- <apex:actionFunction name="RerenderallpageBlockJS" rerender="TextInformation"></apex:actionFunction> --> |
| | | |
| | | <apex:outputPanel id="hiddenInput"> |
| | | |
| | | <apex:inputHidden value="{!statusSave}" id="statusSave"/> |
| | | <!-- // fxk 2021/8/31 点检次数必须填 end --> |
| | | <!-- <input type="hidden" value="{!saveErrorflag}" id="saveErrorflag"/> --> |
| | | <!-- // fxk 2021/8/31 点检次数必须填 end --> |
| | | <apex:inputHidden value="{!PageMCEElement.Contract_Amount__c}" id="Contract_Amount_Hidden"/> |
| | | <!-- HWAG-BHT7XX 2019/11/26 START --> |
| | | <apex:inputHidden value="{!PageMCEElement.Amount_Warranty_Coverage__c}" id="Amount_Warranty_Coverage_Hidden" /> |
| | | <apex:inputHidden value="{!PageMCEElement.Amount_Warranty_Coverage_In_Word__c}" id="Amount_Warranty_Coverage_In_Word_Hidden"/> |
| | | <!-- HWAG-BHT7XX 2019/11/26 END --> |
| | | <apex:inputHidden value="{!PageMCEElement.Total_Contract_Amount_In_Words__c}" id="Total_Contract_Amount_In_Words_Hidden"/> |
| | | <apex:inputHidden value="{!PageMCEElement.Payment_Plan_Sum_First_in_Word__c}" id="Payment_Plan_Sum_1_in_Word_Hidden"/> |
| | | <apex:inputHidden value="{!PageMCEElement.Payment_Plan_Sum_Second_in_Word__c}" id="Payment_Plan_Sum_2_in_Word_Hidden"/> |
| | | <apex:inputHidden value="{!PageMCEElement.Payment_Plan_Sum_Third_in_Word__c}" id="Payment_Plan_Sum_3_in_Word_Hidden"/> |
| | | <apex:inputHidden value="{!PageMCEElement.Payment_Plan_Sum_Forth_in_Word__c}" id="Payment_Plan_Sum_4_in_Word_Hidden"/> |
| | | <apex:inputHidden value="{!PageMCEElement.Payment_Plan_Sum_Fifth_in_Word__c}" id="Payment_Plan_Sum_5_in_Word_Hidden"/> |
| | | <apex:inputHidden value="{!PageMCEElement.Payment_Plan_Sum_Sixth_in_Word__c}" id="Payment_Plan_Sum_6_in_Word_Hidden"/> |
| | | </apex:outputPanel> |
| | | |
| | | <apex:pageBlock id="allBlock" > |
| | | <apex:outputPanel id="Messages" style="color:red"> |
| | | <apex:messages /> |
| | | </apex:outputPanel> |
| | | <table border="0" > |
| | | <colgroup> |
| | | <col width="25%"/> |
| | | <col width="25%"/> |
| | | <col width="25%"/> |
| | | <col width="25%"/> |
| | | </colgroup> |
| | | <tr> |
| | | <td style ="text-align: right;"> |
| | | <apex:outputText value="是否为标准合同:" /> |
| | | </td> |
| | | <td style ="text-align: left;"> |
| | | <div class="requiredInput"><div class="requiredBlock"></div> |
| | | <apex:inputField id="Is_Standard_Contract" value="{!PageMCEElement.Is_Standard_Contract__c}" onchange="RerenderallpageBlockJS(); "/> |
| | | (必填项,所有合同均必须勾选) |
| | | </div> |
| | | </td> |
| | | <td/> |
| | | <td/> |
| | | </tr> |
| | | </table> |
| | | <br/> |
| | | <apex:pageBlockSection id="paymentPlan" title="付款计划(必填内容):" columns="1"> |
| | | <apex:selectList label="付款方式:" style="margin-right:3px" size="1" id="Term_Of_Payment__c" value="{!PageMCEElement.Term_Of_Payment__c}" onchange="ChangeTermofPaymentPlanJS();"> |
| | | <apex:selectOptions value="{!Term_Of_Payment}"/> |
| | | </apex:selectList> |
| | | <apex:outputPanel style="display: {!IF(Check_Of_Payment, '', 'none')}" > |
| | | <h2 style="margin-left:4%;">一次性付款:</h2> |
| | | <p style="margin-left:4%;"> |
| | | 本合同正式签订之日起 |
| | | <apex:selectList style="margin-right:3px;margin-left:3px" size="1" id="one_off_payment_agreed_period__c" value="{!PageMCEElement.one_off_payment_agreed_period__c}"> |
| | | <apex:selectOptions value="{!one_off_payment_agreed_period}"/> |
| | | </apex:selectList> |
| | | 日内,甲方向乙方支付全部合同款人民币 |
| | | <apex:outputText style="margin-right:3px;margin-left:3px" value="{!PageMCEElement.Contract_Amount__c}"/>元,大写<apex:outputText id="Total_Contract_Amount_In_Words" style="margin-right:1px;margin-left:1px" value="{!PageMCEElement.Total_Contract_Amount_In_Words__c}"/>。 |
| | | </p> |
| | | </apex:outputPanel> |
| | | <apex:outputPanel style="display: {!IF(Not(Check_Of_Payment), '', 'none')}"> |
| | | <h2 style="margin-left:4%;" >多次付款:</h2> |
| | | <div style="margin-left:4%;line-height:22px"> |
| | | 本合同款项分 |
| | | <apex:selectList style="margin-right:3px" size="1" id="Total_Payment_Time__c" value="{!PageMCEElement.Total_Payment_Time__c}" onchange="paytime(this.value)"> |
| | | <apex:selectOptions value="{!Total_Payment_Time}"/> |
| | | </apex:selectList> 期付出,详细如下: |
| | | <br/> |
| | | <!-- <div id="paytime1" style="display:{!IF((PageMCEElement.Total_Payment_Time__c='6' || PageMCEElement.Total_Payment_Time__c='5' || PageMCEElement.Total_Payment_Time__c='4' || PageMCEElement.Total_Payment_Time__c='3' || PageMCEElement.Total_Payment_Time__c='2' || PageMCEElement.Total_Payment_Time__c='1'),'block','none')};"> --> |
| | | 第一期款项付款时间为 |
| | | <apex:inputField id="Payment_Plan_Date_First" value="{!PageMCEElement.Payment_Plan_Date_First__c}" /> |
| | | 前,甲方向乙方支付人民币 |
| | | <apex:inputField id="Payment_Plan_Sum_1" value="{!PageMCEElement.Payment_Plan_Sum_First__c}" onchange="Convert_Amount('1');" /> |
| | | 元,大写 |
| | | <apex:outputText id="Payment_Plan_Sum_1_in_Word" style="margin-right:1px;margin-left:1px" value="{!PageMCEElement.Payment_Plan_Sum_First_in_Word__c}"/>; |
| | | <br/> |
| | | <!-- </div> |
| | | <div id="paytime2" style="display:{!IF((PageMCEElement.Total_Payment_Time__c='6' || PageMCEElement.Total_Payment_Time__c='5' || PageMCEElement.Total_Payment_Time__c='4' || PageMCEElement.Total_Payment_Time__c='3' || PageMCEElement.Total_Payment_Time__c='2'),'block','none')};"> --> |
| | | 第二期款项付款时间为 |
| | | <apex:inputField id="Payment_Plan_Date_Second" value="{!PageMCEElement.Payment_Plan_Date_Second__c}" /> |
| | | 前,甲方向乙方支付人民币 |
| | | <apex:inputField id="Payment_Plan_Sum_2" value="{!PageMCEElement.Payment_Plan_Sum_Second__c}" onchange="Convert_Amount('2');"/> |
| | | 元,大写 |
| | | <apex:outputText id="Payment_Plan_Sum_2_in_Word" style="margin-right:1px;margin-left:1px" value="{!PageMCEElement.Payment_Plan_Sum_Second_in_Word__c}"/>; |
| | | <br/> |
| | | <!-- </div> |
| | | <div id="paytime3" style="display:{!IF((PageMCEElement.Total_Payment_Time__c='6' || PageMCEElement.Total_Payment_Time__c='5' || PageMCEElement.Total_Payment_Time__c='4' || PageMCEElement.Total_Payment_Time__c='3'),'block','none')};"> --> |
| | | 第三期款项付款时间为 |
| | | <apex:inputField id="Payment_Plan_Date_Third" value="{!PageMCEElement.Payment_Plan_Date_Third__c}" /> |
| | | 前,甲方向乙方支付人民币 |
| | | <apex:inputField id="Payment_Plan_Sum_3" value="{!PageMCEElement.Payment_Plan_Sum_Third__c}" onchange="Convert_Amount('3');"/> |
| | | 元,大写 |
| | | <apex:outputText id="Payment_Plan_Sum_3_in_Word" style="margin-right:1px;margin-left:1px" value="{!PageMCEElement.Payment_Plan_Sum_Third_in_Word__c}"/>; |
| | | <br/> |
| | | <!-- </div> |
| | | <div id="paytime4" style="display:{!IF((PageMCEElement.Total_Payment_Time__c='6' || PageMCEElement.Total_Payment_Time__c='5' || PageMCEElement.Total_Payment_Time__c='4'),'block','none')};"> --> |
| | | 第四期款项付款时间为 |
| | | <apex:inputField id="Payment_Plan_Date_Forth" value="{!PageMCEElement.Payment_Plan_Date_Forth__c}" /> |
| | | 前,甲方向乙方支付人民币 |
| | | <apex:inputField id="Payment_Plan_Sum_4" value="{!PageMCEElement.Payment_Plan_Sum_Forth__c} " onchange="Convert_Amount('4');"/> |
| | | 元,大写 |
| | | <apex:outputText id="Payment_Plan_Sum_4_in_Word" style="margin-right:1px;margin-left:1px" value="{!PageMCEElement.Payment_Plan_Sum_Forth_in_Word__c}"/>; |
| | | <br/> |
| | | <!-- </div> |
| | | <div id="paytime5" style="display:{!IF((PageMCEElement.Total_Payment_Time__c='6' || PageMCEElement.Total_Payment_Time__c='5'),'block','none')};"> --> |
| | | 第五期款项付款时间为 |
| | | <apex:inputField id="Payment_Plan_Date_Fifth" value="{!PageMCEElement.Payment_Plan_Date_Fifth__c}" /> |
| | | 前,甲方向乙方支付人民币 |
| | | <apex:inputField id="Payment_Plan_Sum_5" value="{!PageMCEElement.Payment_Plan_Sum_Fifth__c}" onchange="Convert_Amount('5');"/> |
| | | 元,大写 |
| | | <apex:outputText id="Payment_Plan_Sum_5_in_Word" style="margin-right:1px;margin-left:1px" value="{!PageMCEElement.Payment_Plan_Sum_Fifth_in_Word__c}"/>; |
| | | <br/> |
| | | <!-- </div> |
| | | <div id="paytime6" style="display:{!IF(PageMCEElement.Total_Payment_Time__c='6','block','none')};"> --> |
| | | 第六期款项付款时间为 |
| | | <apex:inputField id="Payment_Plan_Date_Sixth" value="{!PageMCEElement.Payment_Plan_Date_Sixth__c}" /> |
| | | 前,甲方向乙方支付人民币 |
| | | <apex:inputField id="Payment_Plan_Sum_6" value="{!PageMCEElement.Payment_Plan_Sum_Sixth__c}" onchange="Convert_Amount('6');" /> |
| | | 元,大写 |
| | | <apex:outputText id="Payment_Plan_Sum_6_in_Word" style="margin-right:1px;margin-left:1px" value="{!PageMCEElement.Payment_Plan_Sum_Sixth_in_Word__c}"/>。 |
| | | <!-- </div> --> |
| | | </div> |
| | | </apex:outputPanel> |
| | | </apex:pageBlockSection> |
| | | <br/> |
| | | |
| | | <h2> |
| | | <div style="margin-left:5%; color:Blue"> |
| | | <apex:outputText >提示信息:标准合同下述内容需要全部填写。</apex:outputText> |
| | | </div> |
| | | </h2> |
| | | <br/> |
| | | <apex:pageBlockSection id="TextInformation" title="文本信息:" columns="1"> |
| | | |
| | | <apex:outputPanel id="StandardContractContextno" rendered="{!IF(PageMCEElement.Is_Standard_Contract__c == '否', 'true', 'false')}"> |
| | | <table border="" style="width:90%" > |
| | | <colgroup> |
| | | <col width="25%"/> |
| | | <col width="25%"/> |
| | | <col width="25%"/> |
| | | <col width="25%"/> |
| | | </colgroup> |
| | | <tr> |
| | | <td style =" text-align:left;"> |
| | | </td> |
| | | <td style ="text-align: left;"> |
| | | </td> |
| | | <td style ="text-align: left;"> |
| | | </td> |
| | | <td style ="text-align: left;"> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td style ="text-align: left;"> |
| | | <apex:outputText style="margin-left:20%;" value="点检:" /> |
| | | </td> |
| | | <td style ="text-align: left;"> |
| | | <div class="requiredInput"><div class="requiredBlock"></div> |
| | | 每年 |
| | | <apex:selectList style="margin-left:3px;margin-right:3px" size="1" id="Inspection_Time__cno" value="{!PageMCEElement.Inspection_Time__c}" onchange="AllChecktime();"> |
| | | <apex:selectOptions value="{!Tour_Check}"/> |
| | | </apex:selectList>次 |
| | | (必填项) |
| | | </div> |
| | | </td> |
| | | <td style ="text-align: left;"> |
| | | </td> |
| | | <td style ="text-align: left;"> |
| | | </td> |
| | | </tr> |
| | | <!-- fxk 2021、9、2 新加点检总次数 star--> |
| | | <tr> |
| | | <td style ="text-align: left;"> |
| | | <apex:outputText style="margin-left:20%;" value="点检总次数:" /> |
| | | </td> |
| | | <td style ="text-align: left;"> |
| | | 共 |
| | | <apex:outputText style="margin-left:3px;margin-right:3px;width:25px" id="Contract_Limit_Times__cno" value="{!PageMCEElement.Contract_Limit_Times__c}"> |
| | | </apex:outputText>次 |
| | | </td> |
| | | <td style ="text-align: left;"> |
| | | </td> |
| | | <td style ="text-align: left;"> |
| | | </td> |
| | | </tr> |
| | | <!-- fxk 2021、9、2 新加点检总次数 end--> |
| | | </table> |
| | | </apex:outputPanel> |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | <apex:outputPanel id="StandardContractContext" rendered="{!IF(PageMCEElement.Is_Standard_Contract__c == '是', 'true', 'false')}"> |
| | | <table border="0" style="width:90%" > |
| | | <colgroup> |
| | | <col width="25%"/> |
| | | <col width="25%"/> |
| | | <col width="25%"/> |
| | | <col width="25%"/> |
| | | </colgroup> |
| | | <tr> |
| | | <td style ="text-align: left;"> |
| | | <apex:outputText style="margin-left:20%;" value="小修理时限:" /> |
| | | </td> |
| | | <td style ="text-align: left;"> |
| | | <apex:selectList style="margin-right:3px" size="1" id="Small_Repair_Time__c" value="{!PageMCEElement.Small_Repair_Time__c}"> |
| | | <apex:selectOptions value="{!Small_Repair_Time}"/> |
| | | </apex:selectList> |
| | | <!-- XLIU-CEP8WW 【委托】合同文本更新/新增 LY 20220524 start--> |
| | | 工作日 |
| | | <!-- XLIU-CEP8WW 【委托】合同文本更新/新增 LY 20220524 end--> |
| | | </td> |
| | | |
| | | <td style ="text-align: left;"> |
| | | <apex:outputText style="margin-left:20%;" value="大修理时限:" /> |
| | | </td> |
| | | <td style ="text-align: left;"> |
| | | <apex:selectList style="margin-right:3px" size="1" id="Big_Repair_Time__c" value="{!PageMCEElement.Big_Repair_Time__c}"> |
| | | <apex:selectOptions value="{!Big_Repair_Time}"/> |
| | | </apex:selectList> |
| | | 工作日 |
| | | </td> |
| | | |
| | | </tr> |
| | | <tr> |
| | | <td style ="text-align: left;"> |
| | | <apex:outputText style="margin-left:20%;" value="现场技术支持时限:" /> |
| | | </td> |
| | | <td style ="text-align: left;"> |
| | | <apex:selectList style="margin-right:3px" size="1" id="Live_Technical_Support_Time__c" value="{!PageMCEElement.Live_Technical_Support_Time__c}"> |
| | | <!-- XLIU-CEP8WW 【委托】合同文本更新/新增 LY 20220524 start--> |
| | | <!--<apex:selectOptions value="{!Small_Repair_Time}"/>--> |
| | | <apex:selectOptions value="{!Live_Technical_Support_Time}"/> |
| | | <!-- XLIU-CEP8WW 【委托】合同文本更新/新增 LY 20220524 end--> |
| | | </apex:selectList> |
| | | 小时 |
| | | </td> |
| | | <td style ="text-align: left;"> |
| | | <apex:outputText style="margin-left:20%;" value="巡回:" /> |
| | | </td> |
| | | <td style ="text-align: left;"> |
| | | 每年 |
| | | <apex:selectList style="margin-left:3px;margin-right:3px" size="1" id="Tour_Check__c" value="{!PageMCEElement.Tour_Check__c}"> |
| | | <apex:selectOptions value="{!Tour_Check}"/> |
| | | </apex:selectList>次 |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td style =" text-align:left;"> |
| | | <apex:outputText style="margin-left:20%;" value="工程师姓名:" /> |
| | | </td> |
| | | <td style ="text-align: left;"> |
| | | <apex:inputTextarea id="Engineer_Name__c" value="{!PageMCEElement.Engineer_Name__c}"/> |
| | | </td> |
| | | <td style ="text-align: left;"> |
| | | <apex:outputText style="margin-left:20%;" value="手机号码:" /> |
| | | </td> |
| | | <td style ="text-align: left;"> |
| | | <apex:inputTextarea id="Phone_Number__c" value="{!PageMCEElement.Phone_Number__c}"/> |
| | | </td> |
| | | </tr> |
| | | <tr> |
| | | <td style ="text-align: left;"> |
| | | <apex:outputText style="margin-left:20%;" value="点检:" /> |
| | | </td> |
| | | <td style ="text-align: left;"> |
| | | <div class="requiredInput"><div class="requiredBlock"></div> |
| | | 每年 |
| | | <apex:selectList style="margin-left:3px;margin-right:3px" size="1" id="Inspection_Time__c" value="{!PageMCEElement.Inspection_Time__c}" onchange="AllChecktime();"> |
| | | <apex:selectOptions value="{!Tour_Check}"/> |
| | | </apex:selectList>次 |
| | | (必填项) |
| | | </div> |
| | | </td> |
| | | <td style ="text-align: left;"> |
| | | <apex:outputText style="margin-left:20%;" value="除尘:" /> |
| | | </td> |
| | | <td style ="text-align: left;"> |
| | | 每年 |
| | | <apex:selectList style="margin-left:3px;margin-right:3px" size="1" id="Dedust__c" value="{!PageMCEElement.Dedust__c}"> |
| | | <apex:selectOptions value="{!Dedust}"/> |
| | | </apex:selectList>次 |
| | | </td> |
| | | </tr> |
| | | <!-- fxk 2021、9、2 新加点检总次数 star--> |
| | | <tr> |
| | | <td style ="text-align: left;"> |
| | | <apex:outputText style="margin-left:20%;" value="点检总次数:" /> |
| | | </td> |
| | | <td style ="text-align: left;"> |
| | | 共 |
| | | <apex:outputText style="margin-left:3px;margin-right:3px;width:25px" id="Contract_Limit_Times__c" value="{!PageMCEElement.Contract_Limit_Times__c}"> |
| | | </apex:outputText>次 |
| | | </td> |
| | | </tr> |
| | | <!-- fxk 2021、9、2 新加点检总次数 end--> |
| | | <tr> |
| | | <td style ="text-align: left;"> |
| | | <apex:outputText value="合同份数:甲方:" style="margin-left:20%" /> |
| | | </td> |
| | | <td style ="text-align: left;"> |
| | | <apex:selectList style="margin-left:3px;margin-right:3px" size="1" id="First_Party_Contract_Number__c" value="{!PageMCEElement.First_Party_Contract_Number__c}"> |
| | | <apex:selectOptions value="{!First_Party_Contract_Number}"/> |
| | | </apex:selectList>份 |
| | | |
| | | </td> |
| | | <td style ="text-align: left;"> |
| | | <apex:outputText value="乙方:" style="margin-left:20%" /> |
| | | </td> |
| | | |
| | | <td> |
| | | <apex:selectList style="margin-left:3px;margin-right:3px" size="1" id="Second_Party_Contract_Number__c" value="{!PageMCEElement.Second_Party_Contract_Number__c}"> |
| | | <apex:selectOptions value="{!First_Party_Contract_Number}"/> |
| | | </apex:selectList> |
| | | 份 |
| | | </td> |
| | | </tr> |
| | | </table> |
| | | |
| | | <div style="margin-left:5%;"> |
| | | <apex:outputText > |
| | | 协商方式:<apex:selectList style="margin-left:1px;margin-right:10px" size="1" id="Negotiate_Mean__c" value="{!PageMCEElement.Negotiate_Mean__c}"> |
| | | <apex:selectOptions value="{!Negotiate_Mean}"/> |
| | | </apex:selectList>提示信息:(1)任何一方有权向设在北京的中国国际经济贸易仲裁委员会申请仲裁,仲裁的裁决是终局性的,对双方均有约束力。(2)向甲方所在地有管辖权的人民法院提起诉讼。(3)向乙方所在地有管辖权的人民法院提起诉讼。 |
| | | </apex:outputText> |
| | | </div> |
| | | </apex:outputPanel> |
| | | </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 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="CancelButton" value="取消" onclick="CloseJs(); return false;"/> |
| | | <apex:commandButton id="PrintButton" value="打印" action="{!print}" onclick="blockme();" rerender="hiddenInput,Messages,pdfPrint" oncomplete="PrintJs();" /> |
| | | </apex:outputPanel> |
| | | </apex:pageBlockButtons> |
| | | </apex:pageBlock> |
| | | |
| | | </body> |
| | | </apex:form> |
| | | |
| | | <apex:outputPanel id="pdfPrint"> |
| | | <script type="text/javascript"> |
| | | function PrintJs() { |
| | | var Rs = j$(escapeVfId('allPage:allForm:statusSave')).value(); |
| | | if(Rs == 'Fin'){ |
| | | unblockUI(); |
| | | if ('{!printContract}' == 'true') { |
| | | //HWAG-BHT7XX 2019/11/26 START |
| | | if('{!agreeUpperLimit}' == 'true'){ |
| | | // 打印医院限次合同配置 |
| | | window.open('/apex/NewMCHPDFLimit?id={!PageMCEElement.id}', 'MCHLimitPDF'); |
| | | window.close(); |
| | | }else{ |
| | | // 打印医院合同配置 |
| | | window.open('/apex/NewMCHPDF?id={!PageMCEElement.id}', 'MCHPDF'); |
| | | 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() |
| | | }else{ |
| | | //打印经销商合同 |
| | | window.open('/apex/NewMCAgentPDF?id={!PageMCEElement.id}', 'MCHPDF'); |
| | | window.close(); |
| | | } |
| | | }else { |
| | | alert('1'); |
| | | } |
| | | }else{ |
| | | unblockUI(); |
| | | } |
| | | } |
| | | </script> |
| | | </apex:outputPanel> |
| | | |
| | | </apex:page> |