From df6be3290c2b2b74260a3f87019a1167213a36dc Mon Sep 17 00:00:00 2001
From: zhangzhengmei <zhangzhengmei@prec-tech.com>
Date: 星期日, 06 八月 2023 11:16:06 +0800
Subject: [PATCH] lightning页面更新
---
force-app/main/default/pages/IDInformationAnalyseAsset.page | 141 ++++++++++++++++++++++++++++
force-app/main/default/pages/IDInformationAnalyseHospital.page | 104 ++++++++++++++++++++
force-app/main/default/pages/StraightBackAddress.page | 10 +
3 files changed, 253 insertions(+), 2 deletions(-)
diff --git a/force-app/main/default/pages/IDInformationAnalyseAsset.page b/force-app/main/default/pages/IDInformationAnalyseAsset.page
new file mode 100644
index 0000000..3565b4e
--- /dev/null
+++ b/force-app/main/default/pages/IDInformationAnalyseAsset.page
@@ -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"> 鎼滅储骞撮檺锛�
+ <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"> 璁惧鍨嬪彿锛�
+ <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"> 鏈鸿韩鍙风爜锛�
+ <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>
\ No newline at end of file
diff --git a/force-app/main/default/pages/IDInformationAnalyseHospital.page b/force-app/main/default/pages/IDInformationAnalyseHospital.page
new file mode 100644
index 0000000..9b5bcd1
--- /dev/null
+++ b/force-app/main/default/pages/IDInformationAnalyseHospital.page
@@ -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>
\ No newline at end of file
diff --git a/force-app/main/default/pages/StraightBackAddress.page b/force-app/main/default/pages/StraightBackAddress.page
index 1b8ecdf..64314b8 100644
--- a/force-app/main/default/pages/StraightBackAddress.page
+++ b/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>瀹� 鎴� 鍚� </font>
<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>
--
Gitblit v1.9.1