binxie
2023-07-11 be102ae06e8f986bd9d1a544cd2752e5fa94231a
force-app/main/default/pages/RepPAEDecisionRecord.page
@@ -1,4 +1,4 @@
<apex:page standardController="PAE_DecisionRecord__c" extensions="RepPAEDecisionRecordController" showHeader="false" sidebar="false" id="allPage" action="{!init}" title="PAE判定记录">
<apex:page standardController="PAE_DecisionRecord__c" extensions="RepPAEDecisionRecordController" showHeader="false" sidebar="false" id="allPage" action="{!init}" title="PAE判定记录" lightningStylesheets="true">
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
@@ -53,6 +53,23 @@
    blockme();
    InsertMoreRows(productIdx);
}
var selectedSize = 0;
var pageLimit = {!pageLimit};
function CheckSize(j){
    var a = j.id;
    var productCount = j$(escapeVfId(a)).attr('checked');
    if (productCount == 'checked') {
        if(selectedSize >= pageLimit){
            window.alert("页面所选数据不能超过500条");
            j$(escapeVfId(a)).attr('checked',false);
            return;
        }
        selectedSize ++;
    } else {
        selectedSize --;
    }
    //alert(selectedSize);
}
// 2021-12-08  zxk   精琢科技  手动赋值逻辑  start
        function checkBoxTf() {
@@ -137,20 +154,20 @@
                <apex:pageBlock title="{!IF(RecordTypeName = 'ASRCDecision' , 'Intake universal code 编辑画面', 'Final universal code 编辑画面')}" id="unEditable" rendered="{!editAble}">
                     <table cellspacing="10">
                        <colgroup>  
                            <col width="7%"/>
                            <col width="10%"/>
                            <col width="7%"/>
                            <col width="7%"/>
                            <col width="7%"/>
                            <col width="7%"/>
                            <col width="7%"/>
                            <col width="7%"/>
                            <col width="7%"/>
                            <col width="7%"/>
                            <col width="7%"/>
                            <col width="15%"/>
                            <col width="15%"/>
                            <col width="15%"/>
                            <col width="15%"/>
                            <col width="15%"/>
                            <col width="5%"/>
                            <col width="15%"/>
                            <col width="15%"/>
                            <col width="15%"/>
                            <col width="15%"/>
                            <col width="15%"/>
                            <apex:outputPanel layout="none" rendered="{!IF(RecordTypeName = 'ASACDecision' , true, false)}">
                            <col width="15%"/>
                            <col width="10%"/>
                            <col width="15%"/>
                            </apex:outputPanel>
                        </colgroup>
                        <tr>
@@ -161,10 +178,10 @@
                            <!-- 2020/07/28 taoqz end -->
                            <apex:outputPanel layout="none" rendered="{!IF(RecordTypeName = 'ASRCDecision' , true, false)}">
                                <!-- <th>AS-RC</th> -->
                                <td align="right" > {!$ObjectType.Report__c.fields.Repair_ConfirmationDate__c.label}:</td>
                                <td ><span> {!$ObjectType.Report__c.fields.Repair_ConfirmationDate__c.label}:</span></td>
                            </apex:outputPanel>
                            <apex:outputPanel layout="none" rendered="{!IF(RecordTypeName = 'ASACDecision' , true, false)}">
                                <td align="right" > {!$ObjectType.Report__c.fields.OCSM_RC_CordingDate__c.label}:</td>
                                <td align="right"> {!$ObjectType.Report__c.fields.OCSM_RC_CordingDate__c.label}:</td>
                            </apex:outputPanel>
                            <td align="left" ><apex:outputField value="{!rdRecord.PAE_ConfirmationDate__c}"/></td>
                            <apex:outputPanel layout="none" rendered="{!IF(RecordTypeName = 'ASRCDecision' , true, false)}">
@@ -204,8 +221,8 @@
                            <apex:commandButton rendered="{!IF((OCSM_QARA == '1' && RecordTypeName = 'ASRCDecision' && repa != null) || (RecordTypeName = 'ASRCDecision' && ReportId != null),true,false)}" value="确定并关闭"  disabled="{!editFlag}" style="margin-left:30px;width:100px;float:right"  onclick="SaveAndCloses(2);return false;"  rerender="unEditable,message" oncomplete="unblockUI();" />
                            <!-- update by rentx 2020-10-26 start -->
                            <apex:commandButton value="插入行" disabled="{!IF((RecordTypeName = 'ASRCDecision' && OCSM_QARA = '0') && ((RecordTypeName='ASACDecision'&&OCSM_Cording='0')||(editFlag)),true,false)}" style="margin-left:30px;width:60px;float:right" onclick="InsertRows();return false;" rerender="unEditable,message" oncomplete="unblockUI();"/>
                            <apex:commandButton value="取消行" disabled="{!IF((RecordTypeName = 'ASRCDecision' && OCSM_QARA = '0') && ((RecordTypeName='ASACDecision'&&OCSM_Cording='0')||(editFlag)),true,false)}" style="margin-left:30px;width:60px;float:right" onclick="SaveAndCloses(3);return false;"  rerender="unEditable,message" oncomplete="unblockUI();"/>
                            <apex:commandButton value="插入行" disabled="{!IF((RecordTypeName = 'ASRCDecision' && OCSM_QARA = '0') && ((RecordTypeName='ASACDecision'&&OCSM_Cording='0')||(editFlag)),true,false)}" style="margin-left:30px;width:100px;float:right" onclick="InsertRows();return false;" rerender="unEditable,message" oncomplete="unblockUI();"/>
                            <apex:commandButton value="取消行" disabled="{!IF((RecordTypeName = 'ASRCDecision' && OCSM_QARA = '0') && ((RecordTypeName='ASACDecision'&&OCSM_Cording='0')||(editFlag)),true,false)}" style="margin-left:30px;width:100px;float:right" onclick="SaveAndCloses(3);return false;"  rerender="unEditable,message" oncomplete="unblockUI();"/>
                            <!-- update by rentx 2020-10-26 end -->
                            </td>
@@ -213,7 +230,7 @@
                    </table>
                    </apex:outputPanel>
                    <apex:outputPanel layout="none" rendered="{!IF(RecordTypeName = 'ASACDecision'&& rdRecord.PAE_reappear_confirm__c = '未确认',true , false)}">
                    <p style="text-align: right;padding-bottom: 10px;width:100%;font-weight: 800;">再现结果未确认,请点击Intake universal code 编辑 按钮前去确认</p>
                    <p style="text-align: center;padding-bottom: 10px;width:100%;font-weight: 800;">再现结果未确认,请点击Intake universal code 编辑 按钮前去确认</p>
                    </apex:outputPanel>
                        <apex:outputPanel id="message">