<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>
|