liuyn
2024-03-11 a87f1c3df03078814ee97ad0c8ac200a232419e9
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
<apex:page action="{!hospitalCount}" controller="IDInformationAnalyseHospitalController" id="allPage" showHeader="false" sidebar="false" title="修理明细" lightningStylesheets="true" >
     <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"></apex:stylesheet>
    <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"></apex:includeScript>
    <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"></apex:includeScript>
    <apex:includeScript value="{!URLFOR($Resource.connection20)}"/>
    <apex:includeScript value="{!URLFOR($Resource.apex20)}"/>
    <style type="text/css"></style>
    <script>
        function searchProductJs() {
            //searchAsset();
            hospitalCount();
        }
 
        function ClearJs(){
            blockme();
            // document.getElementById("allPage:allForm:allBlock:searchBlock:AssetModel").value = "";
            //searchAsset();
            init();
        }
        function exportJs() {
            //blockme();  
            exportcsv();
        }
    </script>
    <apex:form id="allForm">
    <apex:actionFunction name="exportcsv" action="{!exportBycsv}"/>
    <apex:actionFunction name="hospitalCount" action="{!hospitalCount}" rerender="ConsumableorderdetailsSection,ConsumableorderdetailsHPSection,message,messageHP" onComplete="unblockUI();CheckStatusAfter();SumCompute()">
    </apex:actionFunction>
    <apex:actionFunction name="init" action="{!init}" rerender="ConsumableorderdetailsSection,ConsumableorderdetailsHPSection, message,messageHP" onComplete="unblockUI();CheckStatusAfter();SumCompute()">
    </apex:actionFunction>
    
    <apex:outputPanel id="allPanel">
        <apex:pageBlock id="allBlock">
            <apex:outputPanel id="messageHP">
                <apex:pageMessages />
            </apex:outputPanel>
            <apex:pageBlock title="修理查找" id="ConsumableorderdetailsHPSection">
                <table class="list" style='border: 1px solid rgb(229, 229, 229);' cellpadding="0" cellspacing="0">
                    <tr>
                        <td align="Left" width="10%">
                        <apex:commandbutton onclick="exportJs();return false;" id="export" value="导出数据"></apex:commandbutton>
                        </td>
                    </tr>
                    <tr class="headerRow">
                        <th>SAP修理单号</th>
                        <th>机身编码</th>
                        <th>状态2</th>
                        <th>科室</th>
                        <th>修理原价</th>
                        <th>11.RC修理品返送日</th>
                        <th>修理单完成日</th>
                        <th>检测日期</th>
                        <th>修理等级</th>
                        <th>通电时间</th>
                        <th>通电次数</th>
                        <th>CBF</th>
                        <th>例均维修价格</th>
                        <th>例均使用时间</th>
                        <!-- WYL ID信息逻辑 add start -->
                        <th>两次修理间隔</th>
                        <th>年均使用列数</th>
                          <!-- WYL ID信息逻辑 add end -->
                    </tr>
                    <apex:repeat value="{!choiceAssetDetailedview}" var="hpRecords" id="HostitaldetailsTable">
                        <tr class="dataRow" style="{!hpRecords.StyleColor}">  
                            <td class="dataCell">
                                 <!-- WYL ID信息逻辑 update start -->
                                <!-- <apex:outputLink value="/{!hpRecords.Repair.Id}">{!hpRecords.Repair.SAP_Service_Repair_No__c}</apex:outputLink> -->
                                <!-- WYL 2024/1/10 update start -->
                                <apex:outputLink value="/{!hpRecords.Repair.Id}">{!hpRecords.Repair.SAP_Service_Repair_No__c}</apex:outputLink>
                                 <!-- WYL 2024/1/10 update end -->
                                 <!-- WYL ID信息逻辑 update end -->
                            </td>   
                            <td class="dataCell">
                                <apex:outputText value="{!hpRecords.Repair.SerialNumber__c}"/>
                            </td>
                            <td class="dataCell">
                                <apex:outputText value="{!hpRecords.Repair.Status2__c}"/>
                            </td>
                            <td class="dataCell">
                                <apex:outputText value="{!hpRecords.Repair.Account__r.name}"/>
                            </td>
                            <td class="dataCell">
                                <apex:outputText value="{!hpRecords.Repair.Repair_List_Price_formula__c}"/>
                            </td>
                            <td class="dataCell">
                                <apex:outputField value="{!hpRecords.Repair.Repair_Shipped_Date__c}"/>
                            </td>
                            <td class="dataCell">
                                <apex:outputField value="{!hpRecords.Repair.RepairOrder_Complete_Day__c}"/>
                            </td>
                            <td class="dataCell">
                                <apex:outputField value="{!hpRecords.Repair.Repair_Inspection_Date__c}"/>
                            </td>
                            <td class="dataCell">
                                <apex:outputField value="{!hpRecords.Repair.Repair_Rank__c}"/>
                            </td>
                            <td class="dataCell">
                                <apex:outputText value="{!hpRecords.Repair.Cumulative_Times__c}"/>
                            </td>
                            <td class="dataCell">
                                <apex:outputText value="{!hpRecords.Repair.Cumulative_Uses__c}"/>
                            </td>
                            <td class="dataCell">
                                <apex:outputText value="{!hpRecords.Repair.Cycle_between_failure__c}"/>
                            </td>
                            <td class="dataCell">
                                <apex:outputField value="{!hpRecords.Repair.Average_Maintenance_Cost__c}"/>
                            </td>
                            <td class="dataCell">
                                <apex:outputField value="{!hpRecords.Repair.Average_Usage_Time__c}"/>
                            </td>
                              <!-- WYL ID逻辑分析 update start -->
                            <td>
                                <apex:outputField value="{!hpRecords.Repair.Difference_in_repair_intervals__c}"></apex:outputField>
                            </td>
                            <td>
                                <apex:outputText value="{!CEILING(IF(hpRecords.Repair.Difference_in_repair_intervals__c ==0,0,hpRecords.Repair.Cycle_between_failure__c/hpRecords.Repair.Difference_in_repair_intervals__c * 365))}" />
                            </td>
                              <!-- WYL ID逻辑分析 update end -->
                        </tr>
                    </apex:repeat>
                </table>
            </apex:pageBlock>
        </apex:pageBlock>
    </apex:outputPanel>
    </apex:form>
</apex:page>