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
<!-- <apex:page controller="InventoryTemperatureHumidityController" action="{!init}" showHeader="false" sidebar="false" title="温湿度点检" > -->
<apex:page controller="InventoryTemperatureHumidityController" action="{!init}" showHeader="false" sidebar="false" title="温湿度点检"  lightningStylesheets="true">
<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
<apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/><!-- 20230619 ljh lightning  -->    
 
<script type="text/javascript">
    function changeZone() {
        changeZone();
    }
</script>
 
    <apex:form id="allForm">
        <apex:actionFunction action="{!changeZone}" name="changeZone" rerender="allForm" oncomplete="unblockUI();"/>
 
        <apex:outputPanel id="pageallPanel">
            <apex:outputPanel id="message">
                <apex:pageMessages />
            </apex:outputPanel>
 
            <apex:pageBlock tabStyle="Report" id="allBlock">
                <apex:pageBlockSection title="温湿度盘点">
                    <apex:outputField value="{!tahcObj.Internal_asset_location__c}"/>
                    <apex:outputField value="{!tahcObj.Inventory_Time__c}"/>
 
                    <apex:pageBlockSectionItem >
                        <apex:outputLabel style="font-weight: bold; font-family: Arial,Helvetica,sans-serif; font-size: 91%;color: #4a4a56;" value="温湿度区" />
                        <apex:selectList value="{!temperatureHumidityZone}" onchange="blockme(); changeZone(); return false" size="1" style="margin-left: 0px; width:110px" id="temperatureHumidityZone">
                            <apex:selectOptions value="{!temperatureHumidityZoneOps}"/>
                        </apex:selectList>
                    </apex:pageBlockSectionItem>
                    <apex:outputField value="{!tahcObj.Asset_Count__c}" /> 
                    <apex:outputField value="{!tahcObj.Temperature_Storage_Information__c}" />
                    <apex:outputField value="{!tahcObj.Humidity_Storage_Information__c}" />                  
                </apex:pageBlockSection>
                <apex:pageBlockSection rendered="{!IF(tahcObj.Id = null, TRUE, FALSE)}">
                    <apex:inputField value="{!tahcObj.Temperature_Check_Result__c}" />
                    <apex:inputField value="{!tahcObj.Temperature_Note__c}" />
                    <apex:inputField value="{!tahcObj.Humidity_Check_Result__c}" />
                    <apex:inputField value="{!tahcObj.Humidity_Note__c}" />
                </apex:pageBlockSection>
 
                <apex:pageBlockSection rendered="{!IF(tahcObj.Id = null, FALSE, TRUE)}">
                    <apex:outputField value="{!tahcObj.Temperature_Check_Result__c}" />
                    <apex:outputField value="{!tahcObj.Temperature_Note__c}" />
                    <apex:outputField value="{!tahcObj.Humidity_Check_Result__c}" />
                    <apex:outputField value="{!tahcObj.Humidity_Note__c}" />
                </apex:pageBlockSection>
            </apex:pageBlock>
        </apex:outputPanel>
 
        <div style="text-align: center;">
            <apex:outputPanel rendered="{!IF(tahcObj.Id = null, TRUE, FALSE)}">
                <apex:commandButton action="{!save}" value="保存" onclick="blockme();" rerender="allForm" oncomplete="unblockUI();" />
            </apex:outputPanel>
            <!-- 20230912 ljh 注释 -->
            <!-- <apex:commandButton style="margin-left:20px;" value="返回" onclick="window.top.close()" /> -->
        </div>
    </apex:form>
</apex:page>