buli
2022-05-09 0953b3b5fcf19c627c6479a6b86648df653c40db
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<apex:page standardController="Account" showHeader="false" sidebar="false">
    <apex:includeScript value="{!URLFOR($Resource.connection20)}"/>
    <apex:includeScript value="{!URLFOR($Resource.apex20)}"/>
    <script type="text/javascript">
        var is_new = '{!Account.IsNew__c}' == 'true';
        var approval_status = '{!Account.stautesD__c}';
 
        if ('{!Account.DealerSelectOwner__c}' != '' && '{!Account.DealerSelectOwner__c}' != '{!Account.OwnerId}') {
            var aid = "{!Account.Id}";
            var oldo = "{!Account.OwnerId}";
            var newo = "{!Account.DealerSelectOwner__c}";
 
            var rs = sforce.apex.execute("AccountWebService", "UpdateShare", {accountId: aid, ownerOld: oldo, ownerNew: newo});
            if (rs == '1') {
                window.top.location.reload();
            } else {
                alert(rs);
            }
        } else {
            var now_status = '{!Account.AccountStatus_IsChanged__c}' == 'true' || 
                '{!Account.Address1_IsChanged__c}' == 'true' || 
                '{!Account.AssetANI4_IsChanged__c}' == 'true' || 
                '{!Account.CancelReason_IsChanged__c}' == 'true' || 
                '{!Account.AssetIE7_IsChanged__c}' == 'true' || 
                '{!Account.AssetNDT7_IsChanged__c}' == 'true' || 
                '{!Account.City_IsChanged__c}' == 'true' || 
                '{!Account.AssetRVI5_IsChanged__c}' == 'true' || 
                '{!Account.English_Name_IsChanged__c}' == 'true' || 
                '{!Account.Fax_IsChanged__c}' == 'true' || 
                '{!Account.AssetRVI2_IsChanged__c}' == 'true' || 
                '{!Account.AssetNDT4_IsChanged__c}' == 'true' || 
                '{!Account.IndustryC_IsChanged__c}' == 'true' || 
                '{!Account.AssetRVI4_IsChanged__c}' == 'true' || 
                '{!Account.AssetRVI3_IsChanged__c}' == 'true' || 
                '{!Account.AssetIE5_IsChanged__c}' == 'true' || 
                '{!Account.AssetBS3_IsChanged__c}' == 'true' || 
                '{!Account.AssetIE3_IsChanged__c}' == 'true' || 
                '{!Account.AssetANI7_IsChanged__c}' == 'true' || 
                '{!Account.AssetNDT6_IsChanged__c}' == 'true' || 
                '{!Account.Market_Verticals_IsChanged__c}' == 'true' || 
                '{!Account.AssetIE6_IsChanged__c}' == 'true' || 
                '{!Account.AssetIE2_IsChanged__c}' == 'true' || 
                '{!Account.AssetBS2_IsChanged__c}' == 'true' || 
                '{!Account.AssetANI3_IsChanged__c}' == 'true' || 
                '{!Account.AssetIE1_IsChanged__c}' == 'true' || 
                '{!Account.AssetBS1_IsChanged__c}' == 'true' || 
                '{!Account.AssetRVI1_IsChanged__c}' == 'true' || 
                '{!Account.AssetNDT1_IsChanged__c}' == 'true' || 
                '{!Account.AssetANI1_IsChanged__c}' == 'true' || 
                '{!Account.AssetBS5_IsChanged__c}' == 'true' || 
                '{!Account.AssetIE8_IsChanged__c}' == 'true' || 
                '{!Account.AssetRVI8_IsChanged__c}' == 'true' || 
                '{!Account.AssetNDT8_IsChanged__c}' == 'true' || 
                '{!Account.AssetANI8_IsChanged__c}' == 'true' || 
                '{!Account.AssetANI5_IsChanged__c}' == 'true' || 
                '{!Account.Phone_IsChanged__c}' == 'true' || 
                '{!Account.Postcode_IsChanged__c}' == 'true' || 
                '{!Account.AssetRVI6_IsChanged__c}' == 'true' || 
                '{!Account.AssetANI2_IsChanged__c}' == 'true' || 
                '{!Account.AssetNDT3_IsChanged__c}' == 'true' || 
                '{!Account.AssetNDT2_IsChanged__c}' == 'true' || 
                '{!Account.AssetANI6_IsChanged__c}' == 'true' || 
                '{!Account.Sub_Use_IsChanged__c}' == 'true' || 
                '{!Account.Use_IsChanged__c}' == 'true' || 
                '{!Account.AssetRVI7_IsChanged__c}' == 'true' || 
                '{!Account.Website_IsChanged__c}' == 'true' || 
                '{!Account.AssetBS4_IsChanged__c}' == 'true' || 
                '{!Account.AssetIE4_IsChanged__c}' == 'true' || 
                '{!Account.AssetNDT5_IsChanged__c}' == 'true' ||
                '{!Account.FacilityName_IsChanged__c}' == 'true' || 
                '{!Account.DivisionName_IsChanged__c}' == 'true' || 
                '{!Account.DepartmentName_IsChanged__c}' == 'true' ;
            if ((is_new || now_status) && approval_status != 'Submit') {
                alert("新建或修改客户信息后,请及时提交审批。");
            }
        }
    </script>
</apex:page>