zhangzhengmei
2023-08-06 df6be3290c2b2b74260a3f87019a1167213a36dc
lightning页面更新
1个文件已修改
2个文件已添加
255 ■■■■■ 已修改文件
force-app/main/default/pages/IDInformationAnalyseAsset.page 141 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/pages/IDInformationAnalyseHospital.page 104 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/pages/StraightBackAddress.page 10 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
force-app/main/default/pages/IDInformationAnalyseAsset.page
New file
@@ -0,0 +1,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>
force-app/main/default/pages/IDInformationAnalyseHospital.page
New file
@@ -0,0 +1,104 @@
<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>CBF</th>
                        <th>例均维修价格</th>
                        <th>例均使用时间</th>
                    </tr>
                    <apex:repeat value="{!choiceAssetDetailedview}" var="hpRecords" id="HostitaldetailsTable">
                        <tr class="dataRow" style="{!hpRecords.StyleColor}">
                            <td class="dataCell">
                                <apex:outputLink value="/{!hpRecords.Repair.Id}">{!hpRecords.Repair.SAP_Service_Repair_No__c}</apex:outputLink>
                            </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: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>
                        </tr>
                    </apex:repeat>
                </table>
            </apex:pageBlock>
        </apex:pageBlock>
    </apex:outputPanel>
    </apex:form>
</apex:page>
force-app/main/default/pages/StraightBackAddress.page
@@ -14,6 +14,12 @@
    <apex:includeScript value="{!URLFOR($Resource.connection20)}"/>
    <apex:includeScript value="{!URLFOR($Resource.apex20)}"/>
    <apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/>
    <style>
        body .bPageBlock .detailList .dataCol {
            width: 20%;
        }
    </style>
    <script type="text/javascript">
        var checkedTrue;
        var tableDataStr = '';
@@ -960,7 +966,7 @@
                        <td style="width: 20%">
                            <font>客&nbsp;户&nbsp;名&nbsp;</font>&nbsp;
                            <apex:inputText id="txtNameId" value="{!txtName}"/>
                            <a class="inlineEditUndoLink" title="清空" href="#" onclick="document.getElementById('allPage:allForm:searchBlock:txtNameId').value = '';document.getElementById('allPage:allForm:searchBlock:txtNameId').focus();" style="display: inline;">
                            <a  class="inlineEditUndoLink" title="清空" href="#" onclick="document.getElementById('allPage:allForm:searchBlock:txtNameId').value = '';document.getElementById('allPage:allForm:searchBlock:txtNameId').focus();" style="display: inline;">
                                <img width="16px" height="16px" src="/img/s.gif" alt="清空" class="inlineEditUndo"/>
                            </a>
                        </td>
@@ -1101,7 +1107,7 @@
                    <apex:inputfield value="{!insUpdData.ZipCode__c}" id="ZipCode__c" />
                    <!-- <apex:pageblockSectionItem /> -->
                    <!-- <apex:inputTextarea value="{!insUpdData.Detailed_Address__c}" id="Detailed_Address__c" style="resize:vertical;width: 90%" rows="3" cols="3"/> -->
                    <apex:inputfield value="{!insUpdData.Detailed_Address__c}" id="Detailed_Address__c" style="resize:vertical;width: 98%"/>
                    <apex:inputfield value="{!insUpdData.Detailed_Address__c}" id="Detailed_Address__c" style="resize:vertical;"/>
                    <div id="errorMsg" class="errorMsg"></div>
                </apex:pageblocksection>