高章伟
2022-03-18 4bfe21c4b5ddc089ae5a95f4b10f6cff148b690d
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<apex:page standardcontroller="Maintenance_Contract_Estimate__c" sidebar="false">
    <!-- <apex:includeScript value="{!URLFOR($Resource.connection20)}"/>
    <apex:includeScript value="{!URLFOR($Resource.apex20)}"/> -->
    <script type="text/javascript">
        var rdn = '{!Maintenance_Contract_Estimate__c.RecordType_DeveloperName__c}';
        // 追加限次跳转
        var urf = '{!Maintenance_Contract_Estimate__c.URF_Contract__c}';
        if(rdn == 'NewMaintenance_Quote'){
 
            if (urf == 'true') {
                window.open("/apex/SelectAssetEstimateURF?id={!URLENCODE(Maintenance_Contract_Estimate__c.Id)}", "_self")
            }else{
                window.open("/apex/SelectAssetEstimateVM?id={!URLENCODE(Maintenance_Contract_Estimate__c.Id)}", "_self");
            }
            
        }else{
            window.open("/apex/SelectAssetEstimate?id={!URLENCODE(Maintenance_Contract_Estimate__c.Id)}", "_self");
        }
    </script>
    <body>
    </body>
</apex:page>