高章伟
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
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
79
80
81
82
83
84
85
86
<apex:page controller="FixtureRemindController" action="{!init}" id="allPage">
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
 
    <style type="text/css">
        th{
            text-align: center;
        }
        td.number{
            text-align: center;
            width: 50px;
        }
        td.firstCol{
            text-align: left;
            width: 120px;
        }
    </style>
 
 
    <apex:form id="allForm">
        <table style="margin-bottom: 20px;">
            <tr>
                <td>日期</td>
                <td>
                    <apex:actionRegion >
                        <apex:inputField id="chosenDate" value="{!snap.Date__c}">
                            <apex:actionSupport event="onchange" action="{!refreshTable}" onsubmit="blockme();" reRender="allForm" oncomplete="unblockUI();" />
                        </apex:inputField>
                    </apex:actionRegion>
                </td>
                <td style="padding-left: 30px;">时间</td>
                <td>
                    <apex:actionRegion >
                        <apex:inputField value="{!snap.Time__c}" >
                            <apex:actionSupport event="onchange" action="{!refreshTable}" onsubmit="blockme();" reRender="allForm"  oncomplete="unblockUI();"/>
                        </apex:inputField>
                    </apex:actionRegion>
                    <dfn>选择【无】时显示当前时间的数量</dfn>
                </td>
 
            </tr>
        </table>
        <apex:pageMessages />
        <apex:outputPanel id="tables" rendered="{!hasAuthority}">
            <table border="1" cellspacing="0" style="float:left;margin-right:80px;text-align: right;">
                <tr>
                    <th>备品</th>
                    <th style="{!IF(hasEastMap,'','display: none;')}">华东</th> 
                    <th style="{!IF(hasSouthMap,'','display: none;')}">南方</th> 
                    <th style="{!IF(hasNorthMap,'','display: none;')}">北方</th> 
                    <th style="background-color: #bdd7ee;{!IF(hasTotalMap,'','display: none;')}">合计</th>
                </tr>
                <apex:repeat value="{!frUtil.STATUS_LIST}" var="show_status">
                    <tr>
                        <td class="firstCol">{!show_status}</td>
                        <td class="number" style="{!IF(hasEastMap,'','display: none;')}">{!eastMap[show_status]}</td> 
                        <td class="number" style="{!IF(hasSouthMap,'','display: none;')}">{!southMap[show_status]}</td> 
                        <td class="number" style="{!IF(hasNorthMap,'','display: none;')}">{!northMap[show_status]}</td> 
                        <td class="number" style="background-color: #bdd7ee;{!IF(hasTotalMap,'','display: none;')}">{!totalMap[show_status]}</td>
                    </tr>
                </apex:repeat>
            </table>
 
            <apex:outputPanel rendered="{!hasEastConsumMap}" >
                <table border="1" cellspacing="0" style="text-align: right;">
                    <tr>
                        <th>耗材</th>
                        <th>全部区域</th>
                    </tr>
                    <apex:repeat value="{!frUtil.CONSUM_STATUS_LIST}" var="show_status">
                        <tr>
                            <td class="firstCol">{!show_status}</td>
                            <td class="number" >{!eastConsumMap[show_status]}</td>
                        </tr>
                    </apex:repeat>
                </table>
            </apex:outputPanel>
        </apex:outputPanel>
    </apex:form>
    <script type="text/javascript">
        window.onload = function() {
            document.getElementById("allPage:allForm:chosenDate").blur();
        }
    </script>
</apex:page>