123
chenjingwu
2024-04-19 450f9922c8b9435e219e9ee44ccc90df581dcd60
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>