From fbd4bea7bd57b4d4a33cb9ed0ebc15d9bf6551c0 Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期三, 12 七月 2023 17:54:54 +0800
Subject: [PATCH] 近日更新按钮,页面以及apex类

---
 force-app/main/default/pages/AssetModifyBelongs.page |   35 ++++++++++++++++++++---------------
 1 files changed, 20 insertions(+), 15 deletions(-)

diff --git a/force-app/main/default/pages/AssetModifyBelongs.page b/force-app/main/default/pages/AssetModifyBelongs.page
index e6f577c..439cb07 100644
--- a/force-app/main/default/pages/AssetModifyBelongs.page
+++ b/force-app/main/default/pages/AssetModifyBelongs.page
@@ -1,14 +1,16 @@
 <apex:page standardController="AssetModifyBelongsChange__c" extensions="AssetModifyBelongsController" showHeader="false" sidebar="false" id="allPage" action="{!init}" title="鏈�缁堢敤鎴峰彉鏇寸敵璇�" lightningStylesheets="true">
 <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
+<apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/>
+
 <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
 <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
 <apex:includeScript value="{!URLFOR($Resource.CommonUtilJs)}"/>
 <script>
+
 function ClearJs(){
     blockme();
     document.getElementById("allPage:allForm:allBlock:searchBlock:text1").value = "";
     document.getElementById("allPage:allForm:allBlock:searchBlock:val1").value = "";
-    
     searchConsumableorderdetails();
 }
 var selectedSize = 0;
@@ -136,7 +138,7 @@
         </apex:actionFunction>
          <apex:actionFunction name="DelConsumable" action="{!DelConsumable}" rerender="ConsumableorderdetailsSection, message" onComplete="unblockUI();CheckStatusAfter()">
         </apex:actionFunction>
-        <apex:actionFunction name="uploadingAttachmentJs" action="{!uploadingAttachment}" rerender="ConsumableorderdetailsSection, message" onComplete="unblockUI();CheckStatusAfter()">
+        <apex:actionFunction name="uploadingAttachmentJs" action="{!uploadingAttachmentLightning}" rerender="ConsumableorderdetailsSection, message" onComplete="unblockUI();CheckStatusAfter()">
         </apex:actionFunction>
         <apex:actionFunction name="returnChangePage" action="{!returnChangePage}" rerender="ConsumableorderdetailsSection, message" onComplete="unblockUI();CheckStatusAfter()">
         </apex:actionFunction>
@@ -145,12 +147,11 @@
         </apex:actionFunction>
         <!-- <apex:actionFunction name="UnabletoEdit" action="{!UnabletoEdit}" rerender="ConsumableorderdetailsSection, message" onComplete="unblockUI()">
         </apex:actionFunction> -->
-
         <apex:outputPanel id="allPanel">
             <apex:pageBlock id="allBlock" >
                 <apex:pageBlock id="EDCline_1" >
+                    <apex:commandButton style="display:none"/>
                     <apex:commandButton onclick="EditConsumable();"   value="缂栬緫" style="margin-left:30px;width:180px" rerender="dummy" rendered="{!!(editAble)}"  disabled="{!IF(ambc.Change_status__c='宸叉彁浜�'||ambc.Change_status__c='鎵瑰噯'||ambc.Change_status__c='椹冲洖',true,false)}"/>
-                   
                     <apex:commandButton onclick="SorderJs();"         value="鎻愪氦璁㈠崟" style="margin-left:30px;width:180px" rerender="dummy" rendered="{!!(editAble )}" disabled="{!IF(ambc.Change_status__c='宸叉彁浜�'||ambc.Change_status__c='鎵瑰噯',true,false)}"/>
                     <apex:commandButton onclick="saveJs();"           value="淇濆瓨鍙樻洿鐢宠鍗�" style="margin-left:30px;width:180px" rerender="dummy" rendered="{!IF((editAble) && ambc.Change_status__c !='椹冲洖',true,false)}" />
                     <apex:commandButton onclick="saveJs();"           value="淇濆瓨鍙樻洿鐢宠鍗�" style="margin-left:30px;width:180px" rerender="dummy" rendered="{!IF(ambc.Change_status__c='椹冲洖' && editAble,true,false)}" />
@@ -170,7 +171,7 @@
                             <col width="300px"/>
                         </colgroup>
 
-                        <tr>
+                        <tr style='line-height: 25px;'>
                             <td align="right" >鐢宠鍗曠紪鐮侊細</td>
                             <td align="left" ><apex:outputField id="OrderCode_out"  value="{!ambc.Name}" style="width:300px"/></td>
                             <td/>
@@ -178,7 +179,7 @@
                             <td align="left" ><apex:outputField id="OrderStatus_out" value="{!ambc.Change_status__c}" style="width:100px"/></td>
                             <td/>
                         </tr>
-                        <tr>
+                        <tr  style='line-height: 25px;'>
                             <td align="right" >鍘熷鎴凤細</td>
                             <td align="left" ><apex:outputField value="{!ambc.rawAccount__r.Name}"/></td>
                             <td/>
@@ -187,7 +188,7 @@
                             <td/>
                         </tr> 
                         
-                        <tr>
+                        <tr  style='line-height: 25px;'>
                             <apex:outputPanel rendered="{!checkUser}">
                                 <td align="right" >SPO琛ㄥ崟鍙凤細</td>
                                 <td align="left" ><apex:outputField value="{!ambc.SPOLink__c}"/></td>
@@ -200,7 +201,7 @@
                             </td>
                             <!-- CHAN-B9B68N Stop -->
                         </tr>
-                        <tr>
+                        <tr  style='line-height: 25px;'>
                             <td align="right">澶囨敞锛�</td>
                              <td align="left"><apex:outputField value="{!ambc.remark__c}" style="width:200px"/></td>
                             <!-- LZHU-BPJ8DF 20200513  Start -->
@@ -212,7 +213,7 @@
                             <!--  LZHU-BPJ8DF 20200513 End -->
                         </tr>
                         <!-- WLIG-BS7B4T ---20200806---update By rentongxiao---Start -->
-                        <tr>
+                        <tr  style='line-height: 25px;'>
                             <td align="right">鍏变韩锛�</td>
                              <td align="left"><apex:outputField value="{!ambc.share__c}" style="width:50px"/></td>
                             <td/>
@@ -251,7 +252,7 @@
                             id="val1" style="width:100px"/>
                             </td>
                             <td align="left"><div id="seachdiv">鍚堝悓缂栫爜绮剧‘鏌ヨ<apex:inputCheckbox value="{!checkexact}" id="RowCheckbox"/></div></td>
-                            <td><apex:commandButton value="淇濇湁璁惧鎼滅储" style="width: 100px;" onclick="searchProductJs('0');return false;" /></td>
+                            <td><apex:commandButton value="淇濇湁璁惧鎼滅储" style="width: 120px;" onclick="searchProductJs('0');return false;" /></td>
                             <td><input type="button" value="娓呯┖" style="width: 100px;" onclick="ClearJs();return false;" class="btn"/></td>
                             <td/>
                         </tr>
@@ -301,6 +302,7 @@
                  </apex:outputPanel>
                 <apex:pageBlock title="淇濇湁璁惧鎵�灞炲彉鏇存槑缁�" id="ConsumableorderdetailsSection">
                 <input type="hidden" id="allPage:allForm:allBlock:ConsumableorderdetailsSection:ConsumableorderdetailsCount" value="{!ConsumableorderdetailsviewCount}" />
+                <input type="hidden" id="allPage:allForm:allBlock:ConsumableorderdetailsSection:Id" value="{!Id}" />
                     <table class="list" border="0" cellpadding="0" cellspacing="0">
                         <tr class="headerRow">
                             <apex:variable var="v" value="" rendered="{!editAble}">
@@ -339,20 +341,22 @@
                     </table>
 
                 </apex:pageBlock>
+                
                 <!-- CHAN-BC6BV2 XHL AddStart 20190522 -->
-                <apex:pageBlock title="闄勪欢" id="accessory" rendered="{!isShow}">
+                <apex:pageBlock title="鏂囦欢" id="accessory" rendered="{!isShow}">
                 
                     <apex:pageBlockButtons location="top">
-                        <apex:commandButton value="闄勪欢涓婁紶"  onclick="uploadingAttachmentJs();" disabled="{!IF(ambc.Change_status__c='宸叉彁浜�'||ambc.Change_status__c='鎵瑰噯',true,false)}"/>
+                        <apex:commandButton value="鏂囦欢涓婁紶"  onclick="uploadingAttachmentJs();" disabled="{!IF(ambc.Change_status__c='宸叉彁浜�'||ambc.Change_status__c='鎵瑰噯',true,false)}"/>
                     </apex:pageBlockButtons>
-                    <apex:pageBlockTable value="{!attachments}" var="attachment" >
+                    
+                    <apex:pageBlockTable value="{!contents}" var="attachment" >
                         
                         
                         <apex:column headerValue="鏍囬" style="width: 33%">
-                            <apex:outputField value="{!attachment.Name}"/>
+                            <apex:outputField value="{!attachment.Title}"/>
                         </apex:column>
                         <apex:column headerValue="涓婃淇敼鏃堕棿" style="width: 33%">
-                            <apex:outputField value="{!attachment.CreatedDate}"/>
+                            <apex:outputField value="{!attachment.ContentModifiedDate}"/>
                         </apex:column>
                         <apex:column headerValue="鍒涘缓浜�" style="width: 33%">
                             <apex:outputField value="{!attachment.OwnerId}"/>
@@ -365,5 +369,6 @@
         </apex:outputPanel>
     </apex:form>
 <script>
+
 </script>
 </apex:page>
\ No newline at end of file

--
Gitblit v1.9.1