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
129
130
131
132
133
134
135
136
137
138
139
140
141
<apex:page action="{!init}" controller="IDInformationAnalyseAssetController" id="allPage" showHeader="false" sidebar="false" title="保有设备ID信息分析" 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() {
            // init();
            blockme();
            hospitalCount();
 
        }
 
        function ClearJs(Val){
            blockme();
            if (Val=='0') {
                document.getElementById("allPage:allForm:allBlock:searchBlock:AssetModel").value = "";
            }else if (Val=='1') {
                document.getElementById("allPage:allForm:allBlock:searchBlock:HospitalName").value = "";
            }else if (Val=='2') {
                document.getElementById("allPage:allForm:allBlock:searchBlock:HospitalName").value = "";
            }else{
                document.getElementById("allPage:allForm:allBlock:searchBlock:YearRange").value = "";
            }
            init();
        }
    </script>
    <apex:form id="allForm">
    <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:pageBlock id="searchBlock" >
                <table>
                    <tr>
                        <!-- <td colspan="2"/> -->
                        <td colspan="3">医院名称:
                            <!-- <apex:inputTextarea value="{!HospitalName}" id="HospitalName" style="width:400px"/>必填 -->
                            <span style="color: red;">*</span>
                            <apex:inputText value="{!HospitalName}" id="HospitalName" required="true"/>
                        </td>                           
                        <td align="right"></td>
                        <!-- <td><input type="button" value="清空医院名称"  onclick="ClearJs(1);return false;" class="btn"/></td> -->
                    <!-- </tr>
                    <tr> -->
                        <!-- <td colspan="2"/> -->
                        <td colspan="3">&nbsp;&nbsp;&nbsp;搜索年限:
                            <span style="color: red;">*</span>
                            <apex:inputText value="{!YearRange}" id="YearRange" required="true"/>
                        </td>                           
                        <td align="right"></td>
                        <!-- <td><input type="button" value="清空搜索年限"  onclick="ClearJs(3);return false;" class="btn"/></td> -->
                    
                        <!-- <td colspan="2"/> -->
                        <td colspan="3">&nbsp;&nbsp;&nbsp;设备型号:
                            <apex:inputText value="{!AssetModel}" id="AssetModel"/>
                        </td>                           
                        <td align="right"></td>
                        <!-- <td><input type="button" value="清空设备型号"  onclick="ClearJs(0);return false;" class="btn"/></td> -->
                    <!-- </tr>
                    <tr> -->
                        <!-- <td colspan="2"/> -->
                        <td colspan="3">&nbsp;&nbsp;&nbsp;机身号码:
                            <apex:inputText value="{!SerialNumber}" id="SerialNumber"/>
                        </td>                           
                        <td align="right"></td>
                        <!-- <td><input type="button" value="清空机身号码"  onclick="ClearJs(2);return false;" class="btn"/></td> -->
                        <td align="right"></td>
                        <td><apex:commandButton value="搜索"  style="margin-left: 20px;" onclick="searchProductJs('0');return false;" /></td>
                    </tr>
                </table>
            </apex:pageBlock>
            <apex:outputPanel id="messageHP">
                <apex:pageMessages />
            </apex:outputPanel>
            <apex:pageBlock title="医院查找" id="ConsumableorderdetailsHPSection">
                <table class="list" border="0" cellpadding="0" cellspacing="0">
                    <tr class="headerRow">
                        <th>医院</th>
                        <th>设备型号</th>
                        <th>内镜件数</th>
                        <th>大修件数</th>
                        <th>大修报价</th>
                        <th>大修均价</th>
                        <th>总例数</th>
                        <th>MCBF</th>
                        <th>年均使用例数</th>
                        <th>例均分钟数</th>
                        <th>例均维修价格</th>
                    </tr>
                        <apex:repeat value="{!choiceAssetDetailedview}" var="hpRecords" id="HostitaldetailsTable">
                            <tr class="dataRow">
                                <td class="dataCell">
                                    <apex:outputLink value="/apex/IDInformationAnalyseHospital?id={!hpRecords.HPid}&Type={!hpRecords.AstModel}&Year={!YearRange}">{!hpRecords.HPName}</apex:outputLink>
                                </td>
                                <td class="dataCell">
                                    <apex:outputText value="{!hpRecords.AstModel}"/>
                                </td>
                                <td class="dataCell">
                                    <apex:outputText value="{!hpRecords.Endoscope}"/>
                                </td>
                                <td class="dataCell">
                                    <apex:outputText value="{!hpRecords.Overhaul}"/>
                                </td>
                                <td class="dataCell">
                                    <apex:outputText value="{!hpRecords.OverhaulPrice}"/>
                                </td>
                                <td class="dataCell">
                                    <apex:outputText value="{!hpRecords.OverhaulvagPrice}"/>
                                </td>
                                <td class="dataCell">
                                    <apex:outputText value="{!hpRecords.Users}"/>
                                </td>
                                <td class="dataCell">
                                    <apex:outputText value="{!hpRecords.CBF}"/>
                                </td>
                                <td class="dataCell">
                                    <apex:outputText value="{!hpRecords.YearVagCBF}"/>
                                </td>
                                <td class="dataCell">
                                    <apex:outputText value="{!hpRecords.MinuteVagCBF}"/>
                                </td>
                                <td class="dataCell">
                                    <apex:outputText value="{!hpRecords.UsersVagPrice}"/>
                                </td>
                                
                            </tr>
                        </apex:repeat>
                </table>
            </apex:pageBlock>
        </apex:pageBlock>
    </apex:outputPanel>
    </apex:form>
</apex:page>