| | |
| | | <apex:page action="{!init}" extensions="PAEDecisionRecordController" id="allPage" showheader="false" sidebar="false" standardcontroller="PAE_DecisionRecord__c" title="PAE判定记录" lightningStylesheets="true"> |
| | | <apex:page action="{!init}" extensions="PAEDecisionRecordController" id="allPage" showheader="false" sidebar="false" standardcontroller="PAE_DecisionRecord__c" title="PAE判定记录" lightningStylesheets="true" > |
| | | <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"> |
| | | </apex:stylesheet> |
| | | <apex:includescript value="{!URLFOR($Resource.jquery183minjs)}"> |
| | |
| | | return; |
| | | } |
| | | |
| | | if ('{!today() - Datevalue(repa.CreatedDate)}' > 30) { |
| | | alert("创建后超过30天,不能发送SAP了"); |
| | | return; |
| | | } |
| | | // if ('{!today() - Datevalue(repa.CreatedDate)}' > 30) { |
| | | // alert("创建后超过30天,不能发送SAP了"); |
| | | // return; |
| | | // } |
| | | var repairAllowed = j$(escapeVfId('allPage:allForm:allBlock:unEditable:repairDetermineResult')).value(); |
| | | |
| | | if (repairAllowed == '不可维修') { |
| | |
| | | blockme(); |
| | | InsertRow(); |
| | | |
| | | } |
| | | 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); |
| | | } |
| | | // 保存并关闭 |
| | | function SaveAndCloses(onlySave) { |
| | |
| | | <!-- 20200810 Gzw 修改保存并关闭按钮,Final时显示 |
| | | <apex:commandButton value="保存并关闭" disabled="{!editFlag}" rendered="{!IF(((repa != null && !((repa.Repair_Determine__c = '要' && isOSH)||repa.Repair_Determine__c != '要')) || (RecordTypeName = 'ASACDecision')),true,false)}" style="margin-left:30px;width:80px;float:left" onclick="SaveAndCloses(2);return false;" rerender="unEditable,message" oncomplete="unblockUI();" /> --> |
| | | <td> |
| | | <apex:commandbutton disabled="{!editFlag}" onclick="SaveAndCloses(2);return false;" oncomplete="unblockUI();" rendered="{!IF(repa != null && RecordTypeName = 'ASACDecision',true,false)}" rerender="unEditable,message" style="margin-left:30px;width:80px;float:left" value="保存并关闭"> |
| | | <apex:commandbutton disabled="{!editFlag}" onclick="SaveAndCloses(2);return false;" oncomplete="unblockUI();" rendered="{!IF(repa != null && RecordTypeName = 'ASACDecision',true,false)}" rerender="unEditable,message" style="margin-left:30px;width:100px;float:left" value="保存并关闭"> |
| | | </apex:commandbutton> |
| | | </td> |
| | | <!-- When 要不要进行修理的判定=要 --> |