buli
2022-05-13 08a21f49f2eaf9cfc19ceb67b196cc36ba689305
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
<apex:page standardController="Order" extensions="OrderSplitRatioController" sidebar="false" id="allPage" action="{!init}">
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
<script type="text/javascript">
    var UsId = '{!UsId}';
    var AppSta = '{!AppSta}';
    var BsAgm = '{!BsAgm}';
    var new_profileId = '{!new_profileId}';
    function leavemessage() {
    //blockme();
    window.open('/apex/OrderSplitRatioPopUp?raid=' + '{!URLENCODE(Order.Id)}',
                'OrderNotes',
                'height=180,width=400,top=0,left=0,toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,status=no');
    }
    function reloadjs() {
    //blockme();
    init();
    }
</script>
<apex:form id="allForm">
    <apex:actionFunction name="init" action="{!init}" reRender="allPanel,message"></apex:actionFunction>
    <apex:outputPanel id="allPanel">
    <table style="width: 90%">
        <tr>
            <th style="width: 17.3%;text-align: right;"><apex:outputLabel value="拆分比例" for="hehe"></apex:outputLabel></th>
            <td style="width: 1.8%;"></td>
 
            <apex:outputPanel layout="none" rendered="{!IF((BsAgm == UsId && AppSta == '1') || new_profileId == '00e28000000eN67' || new_profileId == '00e28000000wAuN', true, false)}">
            <td onclick="leavemessage();" style="border: 1px; border-style: solid; float: left;width: 56%"><apex:inputField value="{!ord.SplitRatioFormule__c}" id="hehe"></apex:inputField>&nbsp;</td>
            </apex:outputPanel>
 
            <apex:outputPanel layout="none" rendered="{!IF(((BsAgm == UsId && AppSta != '1') || BsAgm != UsId) && new_profileId != '00e28000000eN67' && new_profileId != '00e28000000wAuN', true, false)}">
            <td><apex:inputField value="{!ord.SplitRatioFormule__c}" style="width: 50%;"></apex:inputField></td>
            </apex:outputPanel>
        </tr>
        
        
        
    </table>
    </apex:outputPanel>
</apex:form>
 
</apex:page>