From be102ae06e8f986bd9d1a544cd2752e5fa94231a Mon Sep 17 00:00:00 2001
From: binxie <137736985@qq.com>
Date: 星期二, 11 七月 2023 14:23:51 +0800
Subject: [PATCH] LEX Community Deploy0711

---
 force-app/main/default/pages/RepPAEDecisionRecord.page |   53 +++++++++++++++++++++++++++++++++++------------------
 1 files changed, 35 insertions(+), 18 deletions(-)

diff --git a/force-app/main/default/pages/RepPAEDecisionRecord.page b/force-app/main/default/pages/RepPAEDecisionRecord.page
index c0a50f5..724f7b0 100644
--- a/force-app/main/default/pages/RepPAEDecisionRecord.page
+++ b/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;">鍐嶇幇缁撴灉鏈‘璁�,璇风偣鍑籌ntake universal code 缂栬緫 鎸夐挳鍓嶅幓纭</p>
+                    <p style="text-align: center;padding-bottom: 10px;width:100%;font-weight: 800;">鍐嶇幇缁撴灉鏈‘璁�,璇风偣鍑籌ntake universal code 缂栬緫 鎸夐挳鍓嶅幓纭</p>
                     </apex:outputPanel>
 
                         <apex:outputPanel id="message">

--
Gitblit v1.9.1