<apex:page Controller="NewDBPaymentPlanLoadController" 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: 1500px;
|
}
|
.PageStyleCss{
|
width: 980px;
|
height: 340px;
|
}
|
.align-save-button {
|
vertical-align: top;
|
margin-top: 0.0rem;
|
margin-bottom: 0.125rem;
|
}
|
body .pbButton .btn,body .pbButtonb .btn {
|
margin-top: -0.1rem;
|
margin-bottom: .125rem;
|
}
|
body .bPageBlock .pbSubheader, .slds-vf-scope .bPageBlock .pbSubheader {
|
background-color: #08107b;
|
/*background-color: #00a1e0;*/
|
color: white;
|
border-bottom: 1px solid white;
|
}
|
body .bPageBlock .detailList .labelCol, .slds-vf-scope .bPageBlock .detailList .labelCol{
|
vertical-align: middle;
|
width: 3.5%;
|
}
|
input{
|
disabled: false;
|
}
|
.readonly {
|
background-color: #f2f2f2;
|
pointer-events: none;
|
}
|
.checkbox-table {
|
display: table;
|
width: 100%;
|
}
|
|
.checkbox-row {
|
display: table-row;
|
}
|
|
.checkbox-cell {
|
display: table-cell;
|
padding: 5px;
|
}
|
|
/* 处理 table 左右滑动 */
|
.wrap {
|
/* 这个只是用来居中内容 */
|
align-items: center;
|
display: flex;
|
height: 100%;
|
justify-content: center;
|
padding: 8px;
|
}
|
|
table thead th{
|
font-size: 400;
|
}
|
|
.table_wrap {
|
border: 1px solid rgba(0, 0, 0, 0.3);
|
height: 400px;
|
overflow: auto;
|
width: 100%;
|
}
|
|
.table {
|
border-collapse: collapse;
|
width: 100%;
|
}
|
|
.table_title {
|
padding: 10px;
|
background-color: rgb(221, 221, 221);
|
left: 0px;
|
position: sticky;
|
font-weight: bold;
|
text-align: center;
|
}
|
|
.table_title p, .table_content p{
|
width: 200px;
|
font-size: 12px;
|
}
|
|
.table_content {
|
padding: 10px;
|
width: 15%;
|
}
|
|
.table_tr{
|
border-top: 1px solid rgba(0, 0, 0, 0.3);
|
}
|
body .pbHeader .pbTitle, .slds-vf-scope .pbHeader .pbTitle{
|
display: none;
|
}
|
body .detailList td{
|
white-space: nowrap;
|
}
|
</style>
|
<script type="text/javascript">
|
j$(escapeVfId('allPage:allForm:allBlock:TextInformation:Contract_Limit_Times__c')).attr('disabled',true);
|
function PrintJs() {
|
console.log('---------------1-----------------');
|
var Rs = j$(escapeVfId('allPage:allForm:statusSave')).value();
|
console.log('---------------2-----------------');
|
console.log(Rs);
|
if(Rs == 'Fin'){
|
console.log('---------------3-----------------');
|
unblockUI();
|
console.log('---------------4-----------------');
|
if ('{!printContract}' == 'true') {
|
console.log('---------------5-----------------');
|
if ('{!limitPrice}' == 'false') {
|
console.log('/apex/NewDBMCHPNLPPDF?id={!PageMCEElement.id}');
|
window.open('/apex/NewDBMCHPNLPPDF?id={!PageMCEElement.id}', 'DBMCHPNLPPDF');//测试打包合同文本
|
window.close();
|
}else{
|
alert("暂无PDF模板");
|
window.close();
|
}
|
}else if ('{!printAgent}' == 'true') {
|
if ('{!limitPrice}' == 'true') {
|
window.open('/apex/NewDBMCAgentPDF?id={!PageMCEElement.id}', 'DBMCAgentPDF');//测试上限经销商
|
window.close();
|
}else{
|
window.open('/apex/NewDBMCAgentNLPPDF?id={!PageMCEElement.id}', 'DBMCAgentNLPPDF');//测试非上限经销商
|
window.close();
|
}
|
}else {
|
alert('1');
|
}
|
}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();
|
console.info(payment);
|
console.info(saveBT);
|
// if (saveBT =='false' && 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);
|
// }
|
// if (saveBT =='false' && 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();
|
|
}
|
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);
|
}
|
|
}
|
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 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 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 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);
|
|
// <!-- 上限合同 20230110 start -->
|
var Limit_Price_Amount = j$(escapeVfId('allPage:allForm:Limit_Price_Amount_Hidden')).val();
|
var Limit_Price_Amount_in_Word = smalltoBIG(Limit_Price_Amount);
|
j$(escapeVfId('allPage:allForm:Limit_Price_Amount_in_Word_Hidden')).val(Limit_Price_Amount_in_Word);
|
// <!-- 上限合同 20230110 end -->
|
//Limit_Price_Amount_In_Words__c
|
}
|
|
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);
|
}
|
function Initdisabled() {
|
if ('{!printContract}' == 'true') {
|
if ('{!limitPrice}' == 'false') {
|
// j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Term_Of_Payment__c')).attr("disabled", true);
|
}
|
}else if ('{!printAgent}' == 'true') {
|
if ('{!limitPrice}' == 'false') {
|
// j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Term_Of_Payment__c')).attr("disabled", true);
|
}
|
}
|
//XLIU-CEP8WW LY 20220905 startp
|
var saveBT = '{!PageMCEElement.old_Is_RecognitionModel__c}';
|
var payment = j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Term_Of_Payment__c')).val();
|
// var Uplimit = j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Upperlimit')).val();
|
// var Uplimit = '{!UpperLimitPrice}';
|
// console.log('Uplimit='+Uplimit);
|
// 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 (Uplimit =='true'){
|
// 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_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 paytime(val){
|
ChangeTermofPaymentPlan();
|
}
|
function init() {
|
|
Convert_All_Amount();
|
calculate();
|
// 新增点检总次数(只在页面中显示)fxk 2021/9/2 Star
|
AllChecktime();
|
// 新增点检总次数(只在页面中显示)fxk 2021/9/2 ENd
|
Initdisabled();
|
}
|
// 多次付款,每期金额计算 WYL start
|
function calculate(n) {
|
var inputs = document.querySelectorAll('input[id$="Payment_Plan_Sum2_'+n+'"]');
|
var sum = 0;
|
for (var i = 0; i < inputs.length; i++) {
|
var value = localParseFloat(inputs[i].value);
|
if (!isNaN(value)) {
|
sum += value;
|
}
|
}
|
console.log("计算结果:" + sum);
|
j$(escapeVfId('allPage:allForm:allBlock:paymentPlan:Payment_Plan_Sum_'+n)).val(sum);
|
}
|
// 多次付款,每期金额计算 WYL end
|
//当选择报价单(详细版)的时候隐藏报价单(简化版)
|
// 4个选项只可以选一个
|
function hideSimplify(cb){
|
for (j = 0; j < 4; j++) {
|
if (j$(escapeVfId('allPage:allForm:allBlock:check' + j)).attr('checked')) {
|
j$(escapeVfId('allPage:allForm:allBlock:check' + j)).attr('checked',false);
|
if (j == cb) {
|
j$(escapeVfId('allPage:allForm:allBlock:check' + j)).attr('checked',true);
|
}
|
}
|
}
|
|
}
|
</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="{!Dummy2}" rerender="TextInformation" oncomplete="AllChecktime();"></apex:actionFunction>
|
<!-- <apex:actionFunction name="RerenderallpageBlockJS" rerender="TextInformation"></apex:actionFunction> -->
|
|
<apex:outputPanel id="hiddenInput">
|
<apex:inputHidden value="{!PageMCEElement.Limit_Price_Amount_In_Words__c}" id="Limit_Price_Amount_In_Words__c"></apex:inputHidden>
|
<apex:inputHidden value="{!statusSave}" id="statusSave"/>
|
<!-- 2023-11-17 WYL 修改 申请报价金额改为最终用户合同金额 FieldRequest_quotation_Amount__c =》Contract_Amount__c -->
|
<apex:inputHidden value="{!PageMCEElement.Contract_Amount__c}" id="Contract_Amount_Hidden"/>
|
<!-- 上限合同 start -->
|
<apex:inputHidden value="{!PageMCEElement.Limit_Price_Amount__c}" id="Limit_Price_Amount_Hidden"/>
|
<apex:inputHidden value="{!PageMCEElement.Limit_Price_Amount_In_Words__c}" id="Limit_Price_Amount_in_Word_Hidden"/>
|
<!-- 上限合同 end -->
|
<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"/>
|
<apex:inputHidden value="{!PageMCEElement.Total_FieldRequest_quotation_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:pageMessages id="Messages" />
|
<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')}" >
|
<h3 style="margin-left:4%;margin-top: 0px; color:#6b6bf1;" >一次性付款:</h3>
|
<p style="margin-left:4%;margin-bottom:0px;">
|
本合同正式签订之日起
|
<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>
|
日内,甲方向乙方支付全部合同款人民币
|
<!-- 2023-11-17 WYL 修改 申请报价金额改为最终用户合同金额 FieldRequest_quotation_Amount__c =》 Contract_Amount__c Total_FieldRequest_quotation_In_Words__c-->
|
<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_FieldRequest_quotation_In_Words__c}"/>。
|
</p>
|
</apex:outputPanel>
|
<!-- 多次付款 -->
|
<apex:outputPanel style="display: {!IF(Not(Check_Of_Payment), '', 'none')}">
|
<!-- <h2 style="margin-left:4%;" >多次付款:</h2> -->
|
<h3 style="margin-left:4.7%; margin-top: -1px; color:#6b6bf1;" >多次付款:</h3>
|
<!-- <div style="margin-left:4%;line-height:22px;overflow-x: scroll;"> -->
|
|
<div style="overflow: auto; white-space: nowrap;">
|
<table style="display: inline-table;">
|
<thead>
|
<tr>
|
<td style="width:20%">
|
本合同款项分
|
<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/>
|
</td>
|
<td></td>
|
<apex:repeat value="{!MC}" var="m">
|
<td style="vertical-align: bottom;">
|
<span style="font-size: 10pt">{!m.Management_Code__c}</span>
|
</td>
|
</apex:repeat>
|
</tr>
|
<tr>
|
<td style="width:22%;border-left-width: 20px;"></td>
|
<td style="padding-left: 35px;">
|
<!-- 2023-11-17 WYL 修改 申请报价金额改为最终用户合同金额 FieldRequest_quotation_Amount__c =》Contract_Amount__c -->
|
合同总金额 <apex:inputField value="{!PageMCEElement.Contract_Amount__c}" style="width:100px" styleClass="readonly"/> 元,
|
</td>
|
<apex:repeat value="{!MC}" var="m">
|
<td style="width: 120px;">
|
<apex:inputField value="{!m.Contract_Amount__c}" style="width:100px" styleClass="readonly"></apex:inputField>
|
</td>
|
</apex:repeat>
|
</tr>
|
</thead>
|
<tbody style=" /* white-space: normal;">
|
<tr 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'),'','none')};">
|
<td>
|
第一期付款计划日
|
<apex:inputField id="Payment_Plan_Date_First" value="{!PageMCEElement.Payment_Plan_Date_First__c}" />
|
前,
|
</td>
|
<td style="width:20%">
|
第一期付款金额
|
<apex:inputField id="Payment_Plan_Sum_1" value="{!PageMCEElement.Payment_Plan_Sum_First__c}" style="width:100px" onchange="Convert_Amount('1');" styleClass="readonly"/>
|
元,
|
</td>
|
<td style="display: none;">
|
大写<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}"/>
|
</td>
|
<apex:repeat value="{!MC}" var="m">
|
<td style="width: 100px;">
|
<apex:inputField id="Payment_Plan_Sum2_1" value="{!m.Payment_Plan_Sum_First__c}" style="width:100px" onchange="calculate(1)"/>
|
<apex:inputHidden id="Payment_Plan_Sum_1_in_Word" value="{!m.Payment_Plan_Sum_First_in_Word__c}"/>
|
</td>
|
</apex:repeat>
|
</tr>
|
<tr 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'),'','none')};">
|
<td>
|
第二期付款计划日
|
<apex:inputField id="Payment_Plan_Date_Second" value="{!PageMCEElement.Payment_Plan_Date_Second__c}" />
|
前,
|
</td>
|
<td style="width:20%">
|
第二期付款金额
|
<apex:inputField id="Payment_Plan_Sum_2" style="width:100px" value="{!PageMCEElement.Payment_Plan_Sum_Second__c}" onchange="Convert_Amount('2');" styleClass="readonly"/>
|
元,
|
</td>
|
<td style="display: none;">
|
大写
|
<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}"/>
|
</td>
|
<apex:repeat value="{!MC}" var="m">
|
<td style="width: 100px;">
|
<apex:inputField id="Payment_Plan_Sum2_2" value="{!m.Payment_Plan_Sum_Second__c}" style="width:100px" onchange="calculate(2)"/>
|
<apex:inputHidden id="Payment_Plan_Sum_2_in_Word" value="{!m.Payment_Plan_Sum_Second_in_Word__c}"/>
|
</td>
|
</apex:repeat>
|
</tr>
|
<tr 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'),'','none')};">
|
<td>
|
第三期付款计划日
|
<apex:inputField id="Payment_Plan_Date_Third" value="{!PageMCEElement.Payment_Plan_Date_Third__c}" />
|
前,
|
</td>
|
<td style="width:20%">
|
第三期付款金额
|
<apex:inputField id="Payment_Plan_Sum_3" style="width:100px" value="{!PageMCEElement.Payment_Plan_Sum_Third__c}" onchange="Convert_Amount('3');" styleClass="readonly"/>
|
元,
|
</td>
|
<td style="display: none;">
|
大写
|
<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}"/>
|
</td>
|
<apex:repeat value="{!MC}" var="m">
|
<td style="width: 100px;">
|
<apex:inputField id="Payment_Plan_Sum2_3" value="{!m.Payment_Plan_Sum_Third__c}" style="width:100px" onchange="calculate(3)"/>
|
<apex:inputHidden id="Payment_Plan_Sum_3_in_Word" value="{!m.Payment_Plan_Sum_Third_in_Word__c}"/>
|
</td>
|
</apex:repeat>
|
</tr>
|
<tr id="paytime4" style="display:{!IF((PageMCEElement.Total_Payment_Time__c='6' || PageMCEElement.Total_Payment_Time__c='5' || PageMCEElement.Total_Payment_Time__c='4'),'','none')};">
|
<td>
|
第四期付款计划日
|
<apex:inputField id="Payment_Plan_Date_Forth" value="{!PageMCEElement.Payment_Plan_Date_Forth__c}" />
|
前,
|
</td>
|
<td style="width:20%">
|
第四期付款金额
|
<apex:inputField id="Payment_Plan_Sum_4" value="{!PageMCEElement.Payment_Plan_Sum_Forth__c} " style="width:100px" onchange="Convert_Amount('4');" styleClass="readonly"/>
|
元,
|
</td>
|
<td style="display: none;">
|
大写
|
<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}"/>
|
</td>
|
<apex:repeat value="{!MC}" var="m">
|
<td style="width: 100px;">
|
<apex:inputField id="Payment_Plan_Sum2_4" value="{!m.Payment_Plan_Sum_Forth__c}" style="width:100px" onchange="calculate(4)"/>
|
<apex:inputHidden id="Payment_Plan_Sum_4_in_Word" value="{!m.Payment_Plan_Sum_Forth_in_Word__c}"/>
|
</td>
|
</apex:repeat>
|
</tr>
|
<tr id="paytime5" style="display:{!IF((PageMCEElement.Total_Payment_Time__c='6' || PageMCEElement.Total_Payment_Time__c='5'),'','none')};">
|
<td>
|
第五期付款计划日
|
<apex:inputField id="Payment_Plan_Date_Fifth" value="{!PageMCEElement.Payment_Plan_Date_Fifth__c}" />
|
前,
|
</td>
|
<td style="width:20%">
|
第五期付款金额
|
<apex:inputField id="Payment_Plan_Sum_5" value="{!PageMCEElement.Payment_Plan_Sum_Fifth__c}" style="width:100px" onchange="Convert_Amount('5');" styleClass="readonly"/>
|
元,
|
</td>
|
<td style="display: none;">
|
大写
|
<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}"/>
|
</td>
|
<apex:repeat value="{!MC}" var="m">
|
<td style="width: 100px;">
|
<apex:inputField id="Payment_Plan_Sum2_5" value="{!m.Payment_Plan_Sum_Fifth__c}" style="width:100px" onchange="calculate(5)"/>
|
<apex:inputHidden id="Payment_Plan_Sum_5_in_Word" value="{!m.Payment_Plan_Sum_Fifth_in_Word__c}"/>
|
</td>
|
</apex:repeat>
|
</tr>
|
<tr id="paytime6" style="display:{!IF(PageMCEElement.Total_Payment_Time__c='6','','none')};">
|
<td>
|
第六期付款计划日
|
<apex:inputField id="Payment_Plan_Date_Sixth" value="{!PageMCEElement.Payment_Plan_Date_Sixth__c}" />
|
前,
|
</td>
|
<td style="width:20%">
|
第六期付款金额
|
<apex:inputField id="Payment_Plan_Sum_6" style="width:100px" value="{!PageMCEElement.Payment_Plan_Sum_Sixth__c}" onchange="Convert_Amount('6');" styleClass="readonly"/>
|
元,
|
</td>
|
<td style="display: none;">
|
大写
|
<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}"/>。
|
</td>
|
<apex:repeat value="{!MC}" var="m">
|
<td style="width: 100px;">
|
<apex:inputField id="Payment_Plan_Sum2_6" value="{!m.Payment_Plan_Sum_Sixth__c}" style="width:100px" onchange="calculate(6)"/>
|
<apex:inputHidden id="Payment_Plan_Sum_6_in_Word" value="{!m.Payment_Plan_Sum_Sixth_in_Word__c}"/>
|
</td>
|
</apex:repeat>
|
</tr>
|
</tbody>
|
</table>
|
<table style="display: inline-table;">
|
</table>
|
</div>
|
|
<!-- </div> -->
|
</apex:outputPanel>
|
</apex:pageBlockSection>
|
<!-- <br/>
|
|
<h2>
|
<div style="margin-left:5%; color:Blue">
|
<apex:outputText >提示信息:标准合同下述内容需要全部填写。</apex:outputText>
|
</div>
|
</h2>
|
<br/> -->
|
<h3 style="margin-top: 5px;margin-bottom: 5px;margin-left:-8px;">
|
<div style="margin-left:5%; color:#6b6bf1;">
|
<apex:outputText >提示信息:标准合同下述内容需要全部填写。</apex:outputText>
|
</div>
|
</h3>
|
|
<apex:pageBlockSection id="TextInformation" title="文本信息" columns="1">
|
<apex:outputPanel id="StandardContractContextno" rendered="{!IF(PageMCEElement.Is_Standard_Contract__c == '否', 'true', 'false')}" style="margin-bottom:5px;">
|
<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>
|
<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.Service_contract_target_number__c}">
|
</apex:outputText>次
|
</td>
|
<td style ="text-align: left;">
|
</td>
|
<td style ="text-align: left;">
|
</td>
|
</tr>
|
</table>
|
</apex:outputPanel>
|
<apex:outputPanel id="StandardContractContext" rendered="{!IF(PageMCEElement.Is_Standard_Contract__c == '是', 'true', 'false')}">
|
<apex:outputPanel id="StandardContractContext2" rendered="true">
|
<table border="0" style="width:42%" >
|
<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}" >
|
<apex:selectOptions value="{!Live_Technical_Support_Time}"/>
|
</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>
|
<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:outputPanel>
|
|
|
</apex:pageBlockSection>
|
<apex:pageBlockSection id="newsCoverage" title="封皮和设备清单" columns="1">
|
<apex:outputPanel >
|
<table border="0" style="background-color:#ffd6c1;" width="100%">
|
<!-- <tr>
|
<th width="50px">打印报价</th>
|
<td width="90px"><apex:inputCheckbox id="check0" onchange="hideSimplify(0);"/>完整版+折扣前</td>
|
<td width="90px"><apex:inputCheckbox id="check1" onchange="hideSimplify(1);"/>完整版+折扣后</td>
|
<td width="80px"><apex:inputCheckbox id="check2" onchange="hideSimplify(2);"/>简化版+折扣前</td>
|
<td width="80px"><apex:inputCheckbox id="check3" onchange="hideSimplify(3);"/>简化版+折扣后</td>
|
</tr> -->
|
<tr>
|
<th width="70px">打印合同配置</th>
|
<td width="60px">
|
医院合同
|
</td>
|
<!-- <td width="60px">
|
三方协议</td> -->
|
<td width="85px">
|
代理商合同</td>
|
</tr>
|
</table>
|
</apex:outputPanel>
|
<!-- <div class="checkbox-table">
|
<div class="checkbox-row">
|
<div class="checkbox-cell">
|
<apex:inputCheckbox />
|
<label>完整版+折扣前</label>
|
</div>
|
|
<div class="checkbox-cell">
|
<apex:inputCheckbox />
|
<label>完整版+折扣后</label>
|
</div>
|
</div>
|
|
<div class="checkbox-row">
|
<div class="checkbox-cell">
|
<apex:inputCheckbox />
|
<label>简化版+折扣前</label>
|
</div>
|
|
<div class="checkbox-cell">
|
<apex:inputCheckbox />
|
<label>简化版+折扣后</label>
|
</div>
|
</div>
|
</div> -->
|
|
</apex:pageBlockSection>
|
|
|
<apex:pageBlockButtons id="allButtons" style="text-align:center;">
|
<apex:outputPanel id="bottom" rendered="true">
|
<apex:commandButton styleClass="align-save-button" 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>
|
<br/>
|
<hr/>
|
|
</body>
|
</apex:form>
|
|
|
</apex:page>
|