From e14d6d0619330cad423f06493e3aa2371faa2a8f Mon Sep 17 00:00:00 2001
From: 19626 <1962676589@qq.com>
Date: 星期六, 09 九月 2023 14:02:23 +0800
Subject: [PATCH] Sit期间修改

---
 force-app/main/default/pages/AssetModifyBelongs.page                                                   |  129 
 force-app/main/default/lwc/lexLastbuyProductNew/lexLastbuyProductNew.js                                |   26 
 force-app/main/default/classes/NFM401Controller.cls                                                    |   30 
 force-app/main/default/classes/lexSolutionProgrammaController.cls-meta.xml                             |    2 
 force-app/main/default/classes/MaintenanceProductDataController.cls                                    |    2 
 force-app/main/default/classes/OpportunityLightingButtonController.cls                                 |   87 
 force-app/main/default/lwc/lexCreateOPDFromRentalApply/lexCreateOPDFromRentalApply.js                  |    5 
 force-app/main/default/lwc/lexNewSolutonProLwc/lexNewSolutonProLwc.js                                  |    9 
 force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAura.cmp          |   12 
 force-app/main/default/pages/MaintenanceProductData.page                                               |   88 
 force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAura.auradoc                  |    6 
 force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAura.design                   |    3 
 force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAura.design       |    3 
 force-app/main/default/classes/eSignAgencyConfirmPageController.cls                                    |   67 
 force-app/main/default/lwc/lexVOCAnswer/lexVOCAnswer.js                                                |   13 
 force-app/main/default/pages/InventoryIframe.page                                                      |   79 
 force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAura.app                      |    3 
 force-app/main/default/lwc/lexVOCSubmit/lexVOCSubmit.js                                                |   12 
 force-app/main/default/classes/GuaranteePeriodAlterationController.cls                                 |   32 
 force-app/main/default/classes/OpportunityWebService.cls                                               |   24 
 force-app/main/default/lwc/lexOCSMNoToReportForReport/lexOCSMNoToReportForReport.js                    |    4 
 force-app/main/default/lwc/lexBeforeOPDPDFBtnSIS/lexBeforeOPDPDFBtnSIS.js                              |   95 
 force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAuraRenderer.js             |    5 
 force-app/main/default/pages/SolApproval.page                                                          |   66 
 force-app/main/default/lwc/lexNewSolutionClosingAttachment/lexNewSolutionClosingAttachment.js          |   10 
 force-app/main/default/lwc/lexCopyPI/lexCopyPI.js                                                      |    2 
 force-app/main/default/lwc/lexSubmitSolutionSchemeForApproval/lexSubmitSolutionSchemeForApproval.js    |   59 
 force-app/main/default/lwc/lexVOCConfirm/lexVOCConfirm.js                                              |    5 
 force-app/main/default/lwc/lexDepartmentCreateOTH/lexDepartmentCreateOTH.js                            |    8 
 force-app/main/default/lwc/lexInitCreateSolution/lexInitCreateSolution.js                              |   34 
 force-app/main/default/aura/lexCBLBPNewLwcAura/lexCBLBPNewLwcAura.css                                  |    2 
 force-app/main/default/pages/TenderAttachment.page                                                     |    8 
 force-app/main/default/classes/lexCaseController.cls                                                   |    9 
 force-app/main/default/lwc/lexSubmitSolutionForApproval/lexSubmitSolutionForApproval.html              |    9 
 force-app/main/default/pages/QLMAttachmentPreview1.page                                                |    2 
 force-app/main/default/lwc/lexSpecilaApplyCreateLwc/lexSpecilaApplyCreateLwc.js                        |   10 
 force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAura.css                      |    2 
 force-app/main/default/lwc/lexCBLBPNewLwc/lexCBLBPNewLwc.js                                            |    9 
 force-app/main/default/pages/AssetModifyBelongs.page-meta.xml                                          |    2 
 force-app/main/default/classes/Xin_SearchVisitorPlace.cls                                              |   21 
 force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAura.css                    |    2 
 force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.js                                                |    7 
 force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAuraController.js             |    5 
 force-app/main/default/lwc/lexLastbuyProductNew/lexLastbuyProductNew.html                              |    5 
 force-app/main/default/classes/eSignHospitalConfirmController.cls                                      |   65 
 force-app/main/default/classes/AttachmentReQisHandler.cls                                              |  117 
 force-app/main/default/pages/CheckAllOlympusAssetNew.page-meta.xml                                     |    7 
 force-app/main/default/classes/Add_Report.cls                                                          |  924 +++---
 force-app/main/default/lwc/lexAssignTaskButton/lexAssignTaskButton.js                                  |   12 
 force-app/main/default/classes/lexRentalApplyController.cls-meta.xml                                   |    2 
 force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.js                                |  178 +
 force-app/main/default/pages/AssetMaintainIframe.page                                                  |   69 
 force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAura.auradoc                |    6 
 force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAura.auradoc                  |    6 
 force-app/main/default/lwc/lexLoseReport/lexLoseReport.js                                              |    9 
 force-app/main/default/lwc/lexSubmitSolutionForApproval/lexSubmitSolutionForApproval.js                |   32 
 force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAura.auradoc      |    6 
 force-app/main/default/classes/lexSolutionProjectRequirementsController.cls-meta.xml                   |    2 
 force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAuraHelper.js               |    5 
 force-app/main/default/classes/lexLightingButtonConstant.cls                                           |    2 
 force-app/main/default/pages/InventoryResultRecordNew.page-meta.xml                                    |    7 
 force-app/main/default/lwc/lexBeforeOPDPDFBtnSIS/lexBeforeOPDPDFBtnSIS.html                            |    3 
 force-app/main/default/lwc/lexApplyAgainLwc/lexApplyAgainLwc.js                                        |    8 
 force-app/main/default/classes/AssetModifyBelongsController.cls                                        |   41 
 force-app/main/default/classes/eSignAgencyPageController.cls                                           |   66 
 force-app/main/default/lwc/lexInitCreateSolution/lexInitCreateSolution.js-meta.xml                     |   11 
 force-app/main/default/lwc/lexVOCCheck/lexVOCCheck.html                                                |    2 
 force-app/main/default/lwc/lexASACEditor/lexASACEditor.js                                              |   37 
 force-app/main/default/pages/CheckAllOlympusAsset.page                                                 |  232 
 force-app/main/default/lwc/lexDepartmentCreateGYN/lexDepartmentCreateGYN.js                            |    8 
 force-app/main/default/lwc/lexCreateEvent/lexCreateEvent.js                                            |    3 
 force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAura.svg          |    7 
 force-app/main/default/pages/PCLLostReportPageLwc.page                                                 |   36 
 force-app/main/default/lwc/lexCreateVOCFromCIC/lexCreateVOCFromCIC.js                                  |    6 
 force-app/main/default/classes/InventoryResultRecordController.cls                                     |  154 
 force-app/main/default/pages/PCLLostReportPageLwc.page-meta.xml                                        |    7 
 force-app/main/default/lwc/lexBeforeOPDPDFBtn/lexBeforeOPDPDFBtn.js                                    |    7 
 force-app/main/default/lwc/lexVOCCheck/lexVOCCheck.js                                                  |    8 
 force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAura.cmp                    |    4 
 force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAura.cmp-meta.xml           |    5 
 force-app/main/default/classes/lexSolutionProgrammeController.cls                                      |   22 
 force-app/main/default/classes/eSignHospitalPageController.cls                                         |   66 
 force-app/main/default/classes/lexLookupController.cls-meta.xml                                        |    2 
 force-app/main/default/classes/lexPCLLostReportLwcController.cls                                       |   54 
 force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAuraRenderer.js               |    5 
 force-app/main/default/classes/OPDNoReportApplicationController.cls                                    |    4 
 force-app/main/default/pages/SubAuthorizedCreate.page                                                  |    2 
 force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAuraRenderer.js               |    5 
 force-app/main/default/aura/lexCBLBPNewLwcAura/lexCBLBPNewLwcAura.cmp-meta.xml                         |    4 
 force-app/main/default/classes/lexSolutionProgrammeController.cls-meta.xml                             |    2 
 force-app/main/default/classes/InsReportPDFOuterController.cls                                         |    2 
 force-app/main/default/pages/CheckAllOlympusAssetNew.page                                              | 1088 ++++++++
 force-app/main/default/lwc/lexLastbuyProductNew/lexLastbuyProductNew.js-meta.xml                       |   11 
 force-app/main/default/lwc/lexOCSMToReport/lexOCSMToReport.js                                          |    8 
 force-app/main/default/classes/NFM609FiledDownloadBatch.cls                                            |    2 
 force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAura.cmp                      |   12 
 force-app/main/default/classes/lexSolutionProjectRequirementsController.cls                            |   18 
 force-app/main/default/pages/AccountCaseTab.page                                                       |   41 
 force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAura.design                 |    3 
 force-app/main/default/aura/lexCBLBPNewLwcAura/lexCBLBPNewLwcAuraController.js                         |    2 
 force-app/main/default/aura/lexCBLBPNewLwcAura/lexCBLBPNewLwcAuraHelper.js                             |    2 
 force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAura.svg                    |    7 
 force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAuraHelper.js                 |    5 
 force-app/main/default/pages/AssetMaintain.page                                                        |  233 
 force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.css                               |    7 
 force-app/main/default/lwc/lexDepartmentCreateGI/lexDepartmentCreateGI.js                              |    9 
 force-app/main/default/pages/InventoryResultRecordNew.page                                             | 1879 +++++++++++++
 force-app/main/default/lwc/lexOPDReportConsum/lexOPDReportConsum.js                                    |   29 
 force-app/main/default/classes/CheckAllOlympusAssetController.cls                                      |   47 
 force-app/main/default/lwc/lexASRCEditor/lexASRCEditor.js                                              |   37 
 force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAura.cmp-meta.xml             |    5 
 force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAuraHelper.js     |    5 
 force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAuraController.js |    5 
 force-app/main/default/lwc/lexOpporSplite/lexOpporSplite.js                                            |   43 
 force-app/main/default/lwc/lexSpecSubmit/lexSpecSubmit.html                                            |   12 
 force-app/main/default/classes/NotetoPdfHandler.cls                                                    |   21 
 force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAura.cmp-meta.xml |    5 
 force-app/main/default/lwc/lexInitCreateSolution/lexInitCreateSolution.html                            |    5 
 force-app/main/default/pages/MaintenanceProductData.page-meta.xml                                      |    2 
 force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAura.svg                      |    7 
 force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAuraHelper.js                 |    5 
 force-app/main/default/classes/ReportController.cls                                                    |  248 +
 force-app/main/default/classes/lexCaseController.cls-meta.xml                                          |    2 
 force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAuraController.js             |    5 
 force-app/main/default/pages/SpecialPrice.page                                                         |   39 
 force-app/main/default/lwc/lexSubmitCompetitorReport/lexSubmitCompetitorReport.js                      |    7 
 force-app/main/default/lwc/lexCancel/lexCancel.js                                                      |    7 
 force-app/main/default/lwc/lexSpecSubmit/lexSpecSubmit.js                                              |   25 
 force-app/main/default/classes/AssetMaintainController.cls                                             |    2 
 force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAuraRenderer.js   |    5 
 force-app/main/default/lwc/lexDepartmentCreateGS/lexDepartmentCreateGS.js                              |    8 
 force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAura.css          |    2 
 force-app/main/default/classes/ConsumTrialPDFController.cls                                            |    2 
 force-app/main/default/classes/MaintenanceProductDataController.cls-meta.xml                           |    2 
 force-app/main/default/classes/MonthlyReportController.cls                                             |   16 
 force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAura.css                      |    2 
 force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAura.svg                      |    7 
 force-app/main/default/lwc/lexNewAgencyHospital/lexNewAgencyHospital.js                                |   10 
 force-app/main/default/lwc/lexQuotationProductNew/lexQuotationProductNew.js                            |    6 
 force-app/main/default/lwc/lexAgencyAuthorize/lexAgencyAuthorize.js                                    |  126 
 force-app/main/default/pages/InventoryReport.page                                                      |   79 
 force-app/main/default/lwc/lexOPDReport/lexOPDReport.js                                                |    6 
 force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.html                                              |    2 
 force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAuraController.js           |    5 
 force-app/main/default/lwc/lexSubmitSolutionForApproval/lexSubmitSolutionForApproval.js-meta.xml       |    2 
 force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAura.app-meta.xml             |    5 
 force-app/main/default/pages/AssetGuaranteePeriodAlteration.page                                       |    2 
 force-app/main/default/lwc/lexVOCFinish/lexVOCFinish.html                                              |   10 
 force-app/main/default/aura/lexCBLBPNewLwcAura/lexCBLBPNewLwcAura.cmp                                  |    2 
 force-app/main/default/pages/DiscountProductApplication.page                                           |   39 
 force-app/main/default/classes/lexOpportunitySpecialApplyController.cls                                |   13 
 force-app/main/default/lwc/lexAgencyAuthorize/lexAgencyAuthorize.html                                  |    9 
 force-app/main/default/triggers/ContentDocumentTrigger.trigger                                         |  330 -
 force-app/main/default/triggers/ContentDocumentLink.trigger                                            |   57 
 force-app/main/default/lwc/lexVOCSubmit/lexVOCSubmit.html                                              |    8 
 force-app/main/default/classes/lexOpportunitySpecialApplyController.cls-meta.xml                       |    2 
 force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.html                              |  195 
 157 files changed, 6,231 insertions(+), 1,886 deletions(-)

diff --git a/force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAura.app b/force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAura.app
new file mode 100644
index 0000000..5726c47
--- /dev/null
+++ b/force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAura.app
@@ -0,0 +1,3 @@
+<aura:application access="public" extends="ltng:outApp">
+    <aura:dependency resource="c:PCLLostReportPageLwcAura"/>
+</aura:application>
\ No newline at end of file
diff --git a/force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAura.app-meta.xml b/force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAura.app-meta.xml
new file mode 100644
index 0000000..b497bd6
--- /dev/null
+++ b/force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAura.app-meta.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<AuraDefinitionBundle xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>55.0</apiVersion>
+    <description>A Lightning Application Bundle</description>
+</AuraDefinitionBundle>
diff --git a/force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAura.auradoc b/force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAura.auradoc
new file mode 100644
index 0000000..d0d6eb5
--- /dev/null
+++ b/force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAura.auradoc
@@ -0,0 +1,6 @@
+<aura:documentation>
+	<aura:description>Documentation</aura:description>
+	<aura:example name="ExampleName" ref="exampleComponentName" label="Label">
+		Example Description
+	</aura:example>
+</aura:documentation>
\ No newline at end of file
diff --git a/force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAura.css b/force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAura.css
new file mode 100644
index 0000000..a5839d4
--- /dev/null
+++ b/force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAura.css
@@ -0,0 +1,2 @@
+.THIS {
+}
\ No newline at end of file
diff --git a/force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAura.svg b/force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAura.svg
new file mode 100644
index 0000000..e201ae9
--- /dev/null
+++ b/force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAura.svg
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<svg width="120px" height="120px" viewBox="0 0 120 120" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+	<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+		<path d="M120,108 C120,114.6 114.6,120 108,120 L12,120 C5.4,120 0,114.6 0,108 L0,12 C0,5.4 5.4,0 12,0 L108,0 C114.6,0 120,5.4 120,12 L120,108 L120,108 Z" id="Shape" fill="#2A739E" />
+		<path d="M77.7383308,20 L61.1640113,20 L44.7300055,63.2000173 L56.0543288,63.2000173 L40,99.623291 L72.7458388,54.5871812 L60.907727,54.5871812 L77.7383308,20 Z" id="Path-1" fill="#FFFFFF" />
+	</g>
+</svg>
\ No newline at end of file
diff --git a/force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAuraController.js b/force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAuraController.js
new file mode 100644
index 0000000..77e406b
--- /dev/null
+++ b/force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAuraController.js
@@ -0,0 +1,5 @@
+({
+    myAction : function(component, event, helper) {
+
+    }
+})
\ No newline at end of file
diff --git a/force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAuraHelper.js b/force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAuraHelper.js
new file mode 100644
index 0000000..ba7f386
--- /dev/null
+++ b/force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAuraHelper.js
@@ -0,0 +1,5 @@
+({
+    helperMethod : function() {
+
+    }
+})
\ No newline at end of file
diff --git a/force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAuraRenderer.js b/force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAuraRenderer.js
new file mode 100644
index 0000000..f1f0c75
--- /dev/null
+++ b/force-app/main/default/aura/PCLLostReportPageLwcAura/PCLLostReportPageLwcAuraRenderer.js
@@ -0,0 +1,5 @@
+({
+
+// Your renderer method overrides go here
+
+})
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexCBLBPNewLwcAura/lexCBLBPNewLwcAura.cmp b/force-app/main/default/aura/lexCBLBPNewLwcAura/lexCBLBPNewLwcAura.cmp
index 56bd5d0..6c21334 100644
--- a/force-app/main/default/aura/lexCBLBPNewLwcAura/lexCBLBPNewLwcAura.cmp
+++ b/force-app/main/default/aura/lexCBLBPNewLwcAura/lexCBLBPNewLwcAura.cmp
@@ -5,4 +5,4 @@
         <!-- <c:lexCustomDeleteLWC recordId="{!v.recordId}" /> -->
         <c:lexCBLBPNewLwc recordId="{!v.recordId}"/>
     </div>
-</aura:component>	
+</aura:component>
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexCBLBPNewLwcAura/lexCBLBPNewLwcAura.cmp-meta.xml b/force-app/main/default/aura/lexCBLBPNewLwcAura/lexCBLBPNewLwcAura.cmp-meta.xml
index 91ab158..5a95bf7 100644
--- a/force-app/main/default/aura/lexCBLBPNewLwcAura/lexCBLBPNewLwcAura.cmp-meta.xml
+++ b/force-app/main/default/aura/lexCBLBPNewLwcAura/lexCBLBPNewLwcAura.cmp-meta.xml
@@ -1,5 +1,5 @@
-<?xml version="1.0" encoding="UTF-8" ?>
+<?xml version="1.0" encoding="UTF-8"?>
 <AuraDefinitionBundle xmlns="http://soap.sforce.com/2006/04/metadata">
     <apiVersion>57.0</apiVersion>
     <description>A Lightning Component Bundle</description>
-</AuraDefinitionBundle>
\ No newline at end of file
+</AuraDefinitionBundle>
diff --git a/force-app/main/default/aura/lexCBLBPNewLwcAura/lexCBLBPNewLwcAura.css b/force-app/main/default/aura/lexCBLBPNewLwcAura/lexCBLBPNewLwcAura.css
index f407185..a5839d4 100644
--- a/force-app/main/default/aura/lexCBLBPNewLwcAura/lexCBLBPNewLwcAura.css
+++ b/force-app/main/default/aura/lexCBLBPNewLwcAura/lexCBLBPNewLwcAura.css
@@ -1,2 +1,2 @@
 .THIS {
-}
+}
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexCBLBPNewLwcAura/lexCBLBPNewLwcAuraController.js b/force-app/main/default/aura/lexCBLBPNewLwcAura/lexCBLBPNewLwcAuraController.js
index 623133f..cfafc7a 100644
--- a/force-app/main/default/aura/lexCBLBPNewLwcAura/lexCBLBPNewLwcAuraController.js
+++ b/force-app/main/default/aura/lexCBLBPNewLwcAura/lexCBLBPNewLwcAuraController.js
@@ -4,4 +4,4 @@
         $A.get("e.force:closeQuickAction").fire();
         console.log('val',val);
     }
-})
+})
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexCBLBPNewLwcAura/lexCBLBPNewLwcAuraHelper.js b/force-app/main/default/aura/lexCBLBPNewLwcAura/lexCBLBPNewLwcAuraHelper.js
index f8a77e3..ba7f386 100644
--- a/force-app/main/default/aura/lexCBLBPNewLwcAura/lexCBLBPNewLwcAuraHelper.js
+++ b/force-app/main/default/aura/lexCBLBPNewLwcAura/lexCBLBPNewLwcAuraHelper.js
@@ -2,4 +2,4 @@
     helperMethod : function() {
 
     }
-})
+})
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAura.auradoc b/force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAura.auradoc
new file mode 100644
index 0000000..d0d6eb5
--- /dev/null
+++ b/force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAura.auradoc
@@ -0,0 +1,6 @@
+<aura:documentation>
+	<aura:description>Documentation</aura:description>
+	<aura:example name="ExampleName" ref="exampleComponentName" label="Label">
+		Example Description
+	</aura:example>
+</aura:documentation>
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAura.cmp b/force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAura.cmp
new file mode 100644
index 0000000..ed095e4
--- /dev/null
+++ b/force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAura.cmp
@@ -0,0 +1,4 @@
+<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickActionWithoutHeader,lightning:actionOverride,lightning:isUrlAddressable"
+access="global">
+        <c:lexInitCreateSolution/>
+</aura:component>
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAura.cmp-meta.xml b/force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAura.cmp-meta.xml
new file mode 100644
index 0000000..5a95bf7
--- /dev/null
+++ b/force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAura.cmp-meta.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<AuraDefinitionBundle xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>57.0</apiVersion>
+    <description>A Lightning Component Bundle</description>
+</AuraDefinitionBundle>
diff --git a/force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAura.css b/force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAura.css
new file mode 100644
index 0000000..a5839d4
--- /dev/null
+++ b/force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAura.css
@@ -0,0 +1,2 @@
+.THIS {
+}
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAura.design b/force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAura.design
new file mode 100644
index 0000000..d247163
--- /dev/null
+++ b/force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAura.design
@@ -0,0 +1,3 @@
+<design:component >
+
+</design:component>
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAura.svg b/force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAura.svg
new file mode 100644
index 0000000..e201ae9
--- /dev/null
+++ b/force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAura.svg
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<svg width="120px" height="120px" viewBox="0 0 120 120" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+	<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+		<path d="M120,108 C120,114.6 114.6,120 108,120 L12,120 C5.4,120 0,114.6 0,108 L0,12 C0,5.4 5.4,0 12,0 L108,0 C114.6,0 120,5.4 120,12 L120,108 L120,108 Z" id="Shape" fill="#2A739E" />
+		<path d="M77.7383308,20 L61.1640113,20 L44.7300055,63.2000173 L56.0543288,63.2000173 L40,99.623291 L72.7458388,54.5871812 L60.907727,54.5871812 L77.7383308,20 Z" id="Path-1" fill="#FFFFFF" />
+	</g>
+</svg>
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAuraController.js b/force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAuraController.js
new file mode 100644
index 0000000..77e406b
--- /dev/null
+++ b/force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAuraController.js
@@ -0,0 +1,5 @@
+({
+    myAction : function(component, event, helper) {
+
+    }
+})
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAuraHelper.js b/force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAuraHelper.js
new file mode 100644
index 0000000..ba7f386
--- /dev/null
+++ b/force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAuraHelper.js
@@ -0,0 +1,5 @@
+({
+    helperMethod : function() {
+
+    }
+})
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAuraRenderer.js b/force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAuraRenderer.js
new file mode 100644
index 0000000..f1f0c75
--- /dev/null
+++ b/force-app/main/default/aura/lexInitCreateSolutionAura/lexInitCreateSolutionAuraRenderer.js
@@ -0,0 +1,5 @@
+({
+
+// Your renderer method overrides go here
+
+})
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAura.auradoc b/force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAura.auradoc
new file mode 100644
index 0000000..d0d6eb5
--- /dev/null
+++ b/force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAura.auradoc
@@ -0,0 +1,6 @@
+<aura:documentation>
+	<aura:description>Documentation</aura:description>
+	<aura:example name="ExampleName" ref="exampleComponentName" label="Label">
+		Example Description
+	</aura:example>
+</aura:documentation>
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAura.cmp b/force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAura.cmp
new file mode 100644
index 0000000..8827a50
--- /dev/null
+++ b/force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAura.cmp
@@ -0,0 +1,12 @@
+<!--
+ * @Description: 
+ * @version: 
+ * @Author: chen jing wu
+ * @Date: 2023-09-07 15:58:56
+ * @LastEditors: chen jing wu
+ * @LastEditTime: 2023-09-07 15:59:58
+-->
+<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickActionWithoutHeader,lightning:actionOverride,lightning:isUrlAddressable"
+access="global">
+<c:lexLastbuyProductNew/>
+</aura:component>
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAura.cmp-meta.xml b/force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAura.cmp-meta.xml
new file mode 100644
index 0000000..2d81986
--- /dev/null
+++ b/force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAura.cmp-meta.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<AuraDefinitionBundle xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>58.0</apiVersion>
+    <description>A Lightning Component Bundle</description>
+</AuraDefinitionBundle>
diff --git a/force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAura.css b/force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAura.css
new file mode 100644
index 0000000..a5839d4
--- /dev/null
+++ b/force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAura.css
@@ -0,0 +1,2 @@
+.THIS {
+}
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAura.design b/force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAura.design
new file mode 100644
index 0000000..d247163
--- /dev/null
+++ b/force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAura.design
@@ -0,0 +1,3 @@
+<design:component >
+
+</design:component>
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAura.svg b/force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAura.svg
new file mode 100644
index 0000000..e201ae9
--- /dev/null
+++ b/force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAura.svg
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<svg width="120px" height="120px" viewBox="0 0 120 120" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+	<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+		<path d="M120,108 C120,114.6 114.6,120 108,120 L12,120 C5.4,120 0,114.6 0,108 L0,12 C0,5.4 5.4,0 12,0 L108,0 C114.6,0 120,5.4 120,12 L120,108 L120,108 Z" id="Shape" fill="#2A739E" />
+		<path d="M77.7383308,20 L61.1640113,20 L44.7300055,63.2000173 L56.0543288,63.2000173 L40,99.623291 L72.7458388,54.5871812 L60.907727,54.5871812 L77.7383308,20 Z" id="Path-1" fill="#FFFFFF" />
+	</g>
+</svg>
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAuraController.js b/force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAuraController.js
new file mode 100644
index 0000000..77e406b
--- /dev/null
+++ b/force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAuraController.js
@@ -0,0 +1,5 @@
+({
+    myAction : function(component, event, helper) {
+
+    }
+})
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAuraHelper.js b/force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAuraHelper.js
new file mode 100644
index 0000000..ba7f386
--- /dev/null
+++ b/force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAuraHelper.js
@@ -0,0 +1,5 @@
+({
+    helperMethod : function() {
+
+    }
+})
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAuraRenderer.js b/force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAuraRenderer.js
new file mode 100644
index 0000000..f1f0c75
--- /dev/null
+++ b/force-app/main/default/aura/lexLastbuyProductNewAura/lexLastbuyProductNewAuraRenderer.js
@@ -0,0 +1,5 @@
+({
+
+// Your renderer method overrides go here
+
+})
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAura.auradoc b/force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAura.auradoc
new file mode 100644
index 0000000..d0d6eb5
--- /dev/null
+++ b/force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAura.auradoc
@@ -0,0 +1,6 @@
+<aura:documentation>
+	<aura:description>Documentation</aura:description>
+	<aura:example name="ExampleName" ref="exampleComponentName" label="Label">
+		Example Description
+	</aura:example>
+</aura:documentation>
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAura.cmp b/force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAura.cmp
new file mode 100644
index 0000000..a58b530
--- /dev/null
+++ b/force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAura.cmp
@@ -0,0 +1,12 @@
+<!--
+ * @Description: 
+ * @version: 
+ * @Author: chen jing wu
+ * @Date: 2023-09-07 16:24:59
+ * @LastEditors: chen jing wu
+ * @LastEditTime: 2023-09-07 16:26:56
+-->
+<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickActionWithoutHeader,lightning:actionOverride,lightning:isUrlAddressable"
+access="global">
+    <iframe src="{!$Page.Solution_ProgrammeDelete}" width="100%" height="500px"/>
+</aura:component>
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAura.cmp-meta.xml b/force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAura.cmp-meta.xml
new file mode 100644
index 0000000..2d81986
--- /dev/null
+++ b/force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAura.cmp-meta.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<AuraDefinitionBundle xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>58.0</apiVersion>
+    <description>A Lightning Component Bundle</description>
+</AuraDefinitionBundle>
diff --git a/force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAura.css b/force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAura.css
new file mode 100644
index 0000000..a5839d4
--- /dev/null
+++ b/force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAura.css
@@ -0,0 +1,2 @@
+.THIS {
+}
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAura.design b/force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAura.design
new file mode 100644
index 0000000..d247163
--- /dev/null
+++ b/force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAura.design
@@ -0,0 +1,3 @@
+<design:component >
+
+</design:component>
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAura.svg b/force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAura.svg
new file mode 100644
index 0000000..e201ae9
--- /dev/null
+++ b/force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAura.svg
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
+<svg width="120px" height="120px" viewBox="0 0 120 120" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
+	<g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
+		<path d="M120,108 C120,114.6 114.6,120 108,120 L12,120 C5.4,120 0,114.6 0,108 L0,12 C0,5.4 5.4,0 12,0 L108,0 C114.6,0 120,5.4 120,12 L120,108 L120,108 Z" id="Shape" fill="#2A739E" />
+		<path d="M77.7383308,20 L61.1640113,20 L44.7300055,63.2000173 L56.0543288,63.2000173 L40,99.623291 L72.7458388,54.5871812 L60.907727,54.5871812 L77.7383308,20 Z" id="Path-1" fill="#FFFFFF" />
+	</g>
+</svg>
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAuraController.js b/force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAuraController.js
new file mode 100644
index 0000000..77e406b
--- /dev/null
+++ b/force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAuraController.js
@@ -0,0 +1,5 @@
+({
+    myAction : function(component, event, helper) {
+
+    }
+})
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAuraHelper.js b/force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAuraHelper.js
new file mode 100644
index 0000000..ba7f386
--- /dev/null
+++ b/force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAuraHelper.js
@@ -0,0 +1,5 @@
+({
+    helperMethod : function() {
+
+    }
+})
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAuraRenderer.js b/force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAuraRenderer.js
new file mode 100644
index 0000000..f1f0c75
--- /dev/null
+++ b/force-app/main/default/aura/lexSolutionProgrammeDeleteAura/lexSolutionProgrammeDeleteAuraRenderer.js
@@ -0,0 +1,5 @@
+({
+
+// Your renderer method overrides go here
+
+})
\ No newline at end of file
diff --git a/force-app/main/default/classes/Add_Report.cls b/force-app/main/default/classes/Add_Report.cls
index b1ea2b3..d82c888 100644
--- a/force-app/main/default/classes/Add_Report.cls
+++ b/force-app/main/default/classes/Add_Report.cls
@@ -1,409 +1,411 @@
 global class Add_Report {
-	// TODO report銇甶d銇ф绱€仒銈冦仾銇忋�乪vent_id__c銇ф绱�
-	WebService static String addReportPr(String repOwnerId, String reportId, String dailyReportId, String eventId, String recordType, String aId, String visitor1, String visitor2, String visitor3, String visitor4,String visitor5, String description, String reportDate){
-		String rt = selectRecordType(recordType);
-		List<Account> aList = selectAccount(aId);
+  // TODO report銇甶d銇ф绱€仒銈冦仾銇忋�乪vent_id__c銇ф绱�
+  WebService static String addReportPr(String repOwnerId, String reportId, String dailyReportId, String eventId, String recordType, String aId, String visitor1, String visitor2, String visitor3, String visitor4,String visitor5, String description, String reportDate){
+    String rt = selectRecordType(recordType);
+    List<Account> aList = selectAccount(aId);
 
-		if(reportId != null && reportId != ''){
-			List<Report__c> rList = [select id, Daily_Report__c, RecordTypeId, Event_Id__c, Hospital_Department__c, Department_Class_Ref__c, Hospital_Reference__c, Date__c, Practitioner1__c, Practitioner2__c, Practitioner3__c, Practitioner4__c, Practitioner5__c, Comment__c from Report__c where id =:reportId];
-			if (rList.size() > 0) {
-				return rList.get(0).id;
-			}
-		}
+    if(reportId != null && reportId != ''){
+      List<Report__c> rList = [select id, Daily_Report__c, RecordTypeId, Event_Id__c, Hospital_Department__c, Department_Class_Ref__c, Hospital_Reference__c, Date__c, Practitioner1__c, Practitioner2__c, Practitioner3__c, Practitioner4__c, Practitioner5__c, Comment__c from Report__c where id =:reportId];
+      if (rList.size() > 0) {
+        return rList.get(0).id;
+      }
+    }
 
-		Report__c r = new Report__c();
+    Report__c r = new Report__c();
 
-		if(aList.size() != 0){
-			Account a = aList.get(0);
-			r.Hospital_Department__c = a.Id;
-			r.Department_Class_Ref__c = a.Department_Class__r.Id;
-			r.Hospital_Reference__c = a.Hospital__r.Id;
-		} else {
-			r.Manual_Name__c = aId;
-		}
+    if(aList.size() != 0){
+      Account a = aList.get(0);
+      r.Hospital_Department__c = a.Id;
+      r.Department_Class_Ref__c = a.Department_Class__r.Id;
+      r.Hospital_Reference__c = a.Hospital__r.Id;
+    } else {
+      r.Manual_Name__c = aId;
+    }
 
-		r.Daily_Report__c = dailyReportId;
-		r.OwnerId = repOwnerId;
-		r.RecordTypeId = rt;
-		r.Event_Id__c = eventId;
-		if(reportDate != null && reportDate != ''){
-			r.Date__c = date.parse(reportDate);
-		}
-		if(visitor1 != null && visitor1 != ''){
-			r.Practitioner1__c = visitor1;
-		}
-		if(visitor2 != null && visitor2 != ''){
-			r.Practitioner2__c = visitor2;
-		}
-		if(visitor3 != null && visitor3 != ''){
-			r.Practitioner3__c = visitor3;
-		}
-		if(visitor4 != null && visitor4 != ''){
-			r.Practitioner4__c = visitor4;
-		}
-		if(visitor5 != null && visitor5 != ''){
-			r.Practitioner5__c = visitor5;
-		}
-		r.Comment__c = description;
-		upsert r;
+    r.Daily_Report__c = dailyReportId;
+    r.OwnerId = repOwnerId;
+    r.RecordTypeId = rt;
+    r.Event_Id__c = eventId;
+    if(reportDate != null && reportDate != ''){
+      r.Date__c = date.parse(reportDate);
+    }
+    if(visitor1 != null && visitor1 != ''){
+      r.Practitioner1__c = visitor1;
+    }
+    if(visitor2 != null && visitor2 != ''){
+      r.Practitioner2__c = visitor2;
+    }
+    if(visitor3 != null && visitor3 != ''){
+      r.Practitioner3__c = visitor3;
+    }
+    if(visitor4 != null && visitor4 != ''){
+      r.Practitioner4__c = visitor4;
+    }
+    if(visitor5 != null && visitor5 != ''){
+      r.Practitioner5__c = visitor5;
+    }
+    r.Comment__c = description;
+    upsert r;
 
-		updateEvent(r.id,eventId,recordType);
+    updateEvent(r.id,eventId,recordType);
 
-		return r.id;
-	}
+    return r.id;
+  }
 
-	WebService static String addReportOP(String repOwnerId, String reportId, String dailyReportId, String eventId, String recordType, String aId, String visitor1, String visitor2, String visitor3, String visitor4, String visitor5, String opp1, String opp2, String opp3, String opp4, String opp5, String reportDate){
-		return addReportOPWithEvaluationPDF(repOwnerId, reportId, dailyReportId, eventId, recordType, aId, visitor1, visitor2, visitor3, visitor4, visitor5, opp1, opp2, opp3, opp4, opp5, reportDate, '', '', '', '');
-	}
-	WebService static String addReportOP2(String repOwnerId, String reportId, String dailyReportId, String eventId, String recordType, String aId, String visitor1, String visitor2, String visitor3, String visitor4, String visitor5, String opp1, String opp2, String opp3, String opp4, String opp5, String reportDate, String sTime, String eTime){
-		return addReportOPWithEvaluationPDF(repOwnerId, reportId, dailyReportId, eventId, recordType, aId, visitor1, visitor2, visitor3, visitor4, visitor5, opp1, opp2, opp3, opp4, opp5, reportDate, '', '', sTime, eTime);
-	}
-	@AuraEnabled
-	WebService static String addReportOPWithEvaluationPDF(String repOwnerId, String reportId, String dailyReportId, String eventId, String recordType, String aId, String visitor1, String visitor2, String visitor3, String visitor4, String visitor5, String opp1, String opp2, String opp3, String opp4, String opp5, String reportDate, String evaluationPDFNumber, String pro1, String sTime, String eTime) {
-		String rt = selectRecordType(recordType);
-		List<Account> aList = selectAccount(aId);
+  WebService static String addReportOP(String repOwnerId, String reportId, String dailyReportId, String eventId, String recordType, String aId, String visitor1, String visitor2, String visitor3, String visitor4, String visitor5, String opp1, String opp2, String opp3, String opp4, String opp5, String reportDate){
+    return addReportOPWithEvaluationPDF(repOwnerId, reportId, dailyReportId, eventId, recordType, aId, visitor1, visitor2, visitor3, visitor4, visitor5, opp1, opp2, opp3, opp4, opp5, reportDate, '', '', '', '');
+  }
+  WebService static String addReportOP2(String repOwnerId, String reportId, String dailyReportId, String eventId, String recordType, String aId, String visitor1, String visitor2, String visitor3, String visitor4, String visitor5, String opp1, String opp2, String opp3, String opp4, String opp5, String reportDate, String sTime, String eTime){
+    return addReportOPWithEvaluationPDF(repOwnerId, reportId, dailyReportId, eventId, recordType, aId, visitor1, visitor2, visitor3, visitor4, visitor5, opp1, opp2, opp3, opp4, opp5, reportDate, '', '', sTime, eTime);
+  }
+  @AuraEnabled
+  WebService static String addReportOPWithEvaluationPDF(String repOwnerId, String reportId, String dailyReportId, String eventId, String recordType, String aId, String visitor1, String visitor2, String visitor3, String visitor4, String visitor5, String opp1, String opp2, String opp3, String opp4, String opp5, String reportDate, String evaluationPDFNumber, String pro1, String sTime, String eTime) {
+    String rt = selectRecordType(recordType);
+    List<Account> aList = selectAccount(aId);
 
-		if(reportId != null && reportId != ''){
-			List<Report__c> rList = [select id, Daily_Report__c, RecordTypeId, Event_Id__c, Hospital_Department__c, Department_Class_Ref__c, Hospital_Reference__c, Date__c, Practitioner1__c, Practitioner2__c, Practitioner3__c, Practitioner4__c, Practitioner5__c, Opportunity1__c, Opportunity2__c, Opportunity3__c, Opportunity4__c, Opportunity5__c from Report__c where id =:reportId];
-			if(rList.size() > 0){
-				return rList.get(0).id;
-			}
-		}
+    if(reportId != null && reportId != ''){
+      //搴峰悍p璇鹃闇�瑕佷慨鏀瑰瓧娈电被鍨� 鍚庣画璺熻繘锛圤pportunity5__c鍙樹负鏂囨湰绫诲瀷瀛楁锛�
+    //   List<Report__c> rList = [select id, Daily_Report__c, RecordTypeId, Event_Id__c, Hospital_Department__c, Department_Class_Ref__c, Hospital_Reference__c, Date__c, Practitioner1__c, Practitioner2__c, Practitioner3__c, Practitioner4__c, Practitioner5__c, Opportunity1__c, Opportunity2__c, Opportunity3__c, Opportunity4__c, Opportunity5__c from Report__c where id =:reportId];
+    //   if(rList.size() > 0){
+    //     return rList.get(0).id;
+    //   }
+    }
 
-		Report__c r = new Report__c();
-		
-		if(aList.size() != 0){
-			Account a = aList.get(0);
-			r.Hospital_Department__c = a.Id;
-			r.Department_Class_Ref__c = a.Department_Class__r.Id;
-			r.Hospital_Reference__c = a.Hospital__r.Id;
-		} else {
-			r.Manual_Name__c = aId;
-		}
+    Report__c r = new Report__c();
+    
+    if(aList.size() != 0){
+      Account a = aList.get(0);
+      r.Hospital_Department__c = a.Id;
+      r.Department_Class_Ref__c = a.Department_Class__r.Id;
+      r.Hospital_Reference__c = a.Hospital__r.Id;
+    } else {
+      r.Manual_Name__c = aId;
+    }
 
-		if (String.isBlank(dailyReportId) == false) r.Daily_Report__c = dailyReportId;
-		r.OwnerId = repOwnerId;
-		r.RecordTypeId = rt;
-		if (String.isBlank(eventId) == false) r.Event_Id__c = eventId;
-		r.Evaluation_PDF_number__c = evaluationPDFNumber;
-		if(reportDate != null && reportDate != ''){
-			r.Date__c = date.parse(reportDate);
-		}
-		if(visitor1 != null && visitor1 != ''){
-			r.Practitioner1__c = visitor1;
-		}
-		if(visitor2 != null && visitor2 != ''){
-			r.Practitioner2__c = visitor2;
-		}
-		if(visitor3 != null && visitor3 != ''){
-			r.Practitioner3__c = visitor3;
-		}
-		if(visitor4 != null && visitor4 != ''){
-			r.Practitioner4__c = visitor4;
-		}
-		if(visitor5 != null && visitor5 != ''){
-			r.Practitioner5__c = visitor5;
-		}
+    if (String.isBlank(dailyReportId) == false) r.Daily_Report__c = dailyReportId;
+    r.OwnerId = repOwnerId;
+    r.RecordTypeId = rt;
+    if (String.isBlank(eventId) == false) r.Event_Id__c = eventId;
+    r.Evaluation_PDF_number__c = evaluationPDFNumber;
+    if(reportDate != null && reportDate != ''){
+      r.Date__c = date.parse(reportDate);
+    }
+    if(visitor1 != null && visitor1 != ''){
+      r.Practitioner1__c = visitor1;
+    }
+    if(visitor2 != null && visitor2 != ''){
+      r.Practitioner2__c = visitor2;
+    }
+    if(visitor3 != null && visitor3 != ''){
+      r.Practitioner3__c = visitor3;
+    }
+    if(visitor4 != null && visitor4 != ''){
+      r.Practitioner4__c = visitor4;
+    }
+    if(visitor5 != null && visitor5 != ''){
+      r.Practitioner5__c = visitor5;
+    }
 
-		List<String> oppIdList = new List<String>();
-		if(opp1 != null && opp1 != ''){
-			oppIdList.add(opp1);
-		}
-		if(opp2 != null && opp2 != ''){
-			oppIdList.add(opp2);
-		}
-		if(opp3 != null && opp3 != ''){
-			oppIdList.add(opp3);
-		}
-		if(opp4 != null && opp4 != ''){
-			oppIdList.add(opp4);
-		}
-		if(opp5 != null && opp5 != ''){
-			oppIdList.add(opp5);
-		}
+    List<String> oppIdList = new List<String>();
+    if(opp1 != null && opp1 != ''){
+      oppIdList.add(opp1);
+    }
+    if(opp2 != null && opp2 != ''){
+      oppIdList.add(opp2);
+    }
+    if(opp3 != null && opp3 != ''){
+      oppIdList.add(opp3);
+    }
+    if(opp4 != null && opp4 != ''){
+      oppIdList.add(opp4);
+    }
+    if(opp5 != null && opp5 != ''){
+      oppIdList.add(opp5);
+    }
 
-		if(oppIdList.size() > 0){
-			if(opp1 != null && opp1 != ''){
-				r.Opportunity1__c = opp1;
-			}
-			if(opp2 != null && opp2 != ''){
-				r.Opportunity2__c = opp2;
-			}
-			if(opp3 != null && opp3 != ''){
-				r.Opportunity3__c = opp3;
-			}
-			if(opp4 != null && opp4 != ''){
-				r.Opportunity4__c = opp4;
-			}
-			if(opp5 != null && opp5 != ''){
-				r.Opportunity5__c = opp5;
-			}
-			r.Opportunity_Situation__c = '寮曞悎鐧虹敓';
-		}
-		else{
-			r.Opportunity_Situation__c = '寮曞悎鐒�';
-		}
-		
-		if (String.isBlank(pro1) == false) {
-			r.Product1__c = pro1;
-		}
+    if(oppIdList.size() > 0){
+      if(opp1 != null && opp1 != ''){
+        r.Opportunity1__c = opp1;
+      }
+      if(opp2 != null && opp2 != ''){
+        r.Opportunity2__c = opp2;
+      }
+      if(opp3 != null && opp3 != ''){
+        r.Opportunity3__c = opp3;
+      }
+    //搴峰悍p璇鹃闇�瑕佷慨鏀瑰瓧娈电被鍨� 鍚庣画璺熻繘
+      if(opp4 != null && opp4 != ''){
+        r.Opportunity4__c = opp4;
+      }
+    //   if(opp5 != null && opp5 != ''){
+    //     r.Opportunity5__c = opp5;
+    //   }
+      r.Opportunity_Situation__c = '寮曞悎鐧虹敓';
+    }
+    else{
+      r.Opportunity_Situation__c = '寮曞悎鐒�';
+    }
+    
+    if (String.isBlank(pro1) == false) {
+      r.Product1__c = pro1;
+    }
 
-		if (sTime != null && sTime != '') {
-			r.Operation_From__c = datetime.parse(sTime);
-		}
-		if (eTime != null && eTime != '') {
-			r.Operation_To__c = datetime.parse(eTime);
-		}
-		upsert r;
+    if (sTime != null && sTime != '') {
+      r.Operation_From__c = datetime.parse(sTime);
+    }
+    if (eTime != null && eTime != '') {
+      r.Operation_To__c = datetime.parse(eTime);
+    }
+    upsert r;
 
-		if (String.isBlank(eventId) == false) updateEvent(r.id,eventId,recordType);
+    if (String.isBlank(eventId) == false) updateEvent(r.id,eventId,recordType);
 
-		return r.id;
-	}
+    return r.id;
+  }
 
-	WebService static String addReportNT(String repOwnerId, String reportId, String dailyReportId, String eventId, String recordType, String aId, String visitor1, String visitor2, String visitor3, String visitor4, String visitor5, String sTime, String eTime, String mainPlace){
-		String rt = selectRecordType(recordType);
-		List<Account> aList = selectAccount(aId);
+  WebService static String addReportNT(String repOwnerId, String reportId, String dailyReportId, String eventId, String recordType, String aId, String visitor1, String visitor2, String visitor3, String visitor4, String visitor5, String sTime, String eTime, String mainPlace){
+    String rt = selectRecordType(recordType);
+    List<Account> aList = selectAccount(aId);
 
-		if(reportId != null && reportId != ''){
-			List<Report__c> rList = [select id, Daily_Report__c, RecordTypeId, Event_Id__c, Hospital_Department__c, Department_Class_Ref__c, Hospital_Reference__c, Date__c, Practitioner1__c, Practitioner2__c, Practitioner3__c, Practitioner4__c, Practitioner5__c, From__c, To__c, Location__c from Report__c where id =:reportId];
-			if(rList.size() > 0){
-				return rList.get(0).id;
-			}
-		}
+    if(reportId != null && reportId != ''){
+      List<Report__c> rList = [select id, Daily_Report__c, RecordTypeId, Event_Id__c, Hospital_Department__c, Department_Class_Ref__c, Hospital_Reference__c, Date__c, Practitioner1__c, Practitioner2__c, Practitioner3__c, Practitioner4__c, Practitioner5__c, From__c, To__c, Location__c from Report__c where id =:reportId];
+      if(rList.size() > 0){
+        return rList.get(0).id;
+      }
+    }
 
-		Report__c r = new Report__c();
+    Report__c r = new Report__c();
 
-		if(aList.size() != 0){
-			Account a = aList.get(0);
-			r.Hospital_Department__c = a.Id;
-			r.Department_Class_Ref__c = a.Department_Class__r.Id;
-			r.Hospital_Reference__c = a.Hospital__r.Id;
-		} else {
-			r.Manual_Name__c = aId;
-		}
+    if(aList.size() != 0){
+      Account a = aList.get(0);
+      r.Hospital_Department__c = a.Id;
+      r.Department_Class_Ref__c = a.Department_Class__r.Id;
+      r.Hospital_Reference__c = a.Hospital__r.Id;
+    } else {
+      r.Manual_Name__c = aId;
+    }
 
-		r.Daily_Report__c = dailyReportId;
-		r.OwnerId = repOwnerId;
-		r.RecordTypeId = rt;
-		r.Event_Id__c = eventId;
-		if(visitor1 != null && visitor1 != ''){
-			r.Practitioner1__c = visitor1;
-		}
-		if(visitor2 != null && visitor2 != ''){
-			r.Practitioner2__c = visitor2;
-		}
-		if(visitor3 != null && visitor3 != ''){
-			r.Practitioner3__c = visitor3;
-		}
-		if(visitor4 != null && visitor4 != ''){
-			r.Practitioner4__c = visitor4;
-		}
-		if(visitor5 != null && visitor5 != ''){
-			r.Practitioner5__c = visitor5;
-		}
-		if(sTime != null && sTime != ''){
-			//sTime = sTime.substring(0,16);
-			r.From__c = datetime.parse(sTime);
-		}
-		if(eTime != null && eTime != ''){
-			//eTime = eTime.substring(0,16);
-			r.To__c = datetime.parse(eTime);
-		}
-		r.Location__c = mainPlace;
-		upsert r;
+    r.Daily_Report__c = dailyReportId;
+    r.OwnerId = repOwnerId;
+    r.RecordTypeId = rt;
+    r.Event_Id__c = eventId;
+    if(visitor1 != null && visitor1 != ''){
+      r.Practitioner1__c = visitor1;
+    }
+    if(visitor2 != null && visitor2 != ''){
+      r.Practitioner2__c = visitor2;
+    }
+    if(visitor3 != null && visitor3 != ''){
+      r.Practitioner3__c = visitor3;
+    }
+    if(visitor4 != null && visitor4 != ''){
+      r.Practitioner4__c = visitor4;
+    }
+    if(visitor5 != null && visitor5 != ''){
+      r.Practitioner5__c = visitor5;
+    }
+    if(sTime != null && sTime != ''){
+      //sTime = sTime.substring(0,16);
+      r.From__c = datetime.parse(sTime);
+    }
+    if(eTime != null && eTime != ''){
+      //eTime = eTime.substring(0,16);
+      r.To__c = datetime.parse(eTime);
+    }
+    r.Location__c = mainPlace;
+    upsert r;
 
-		updateEvent(r.id,eventId,recordType);
+    updateEvent(r.id,eventId,recordType);
 
-		return r.id;
-	}
+    return r.id;
+  }
 
-	WebService static String addReportOn(String repOwnerId, String reportId, String dailyReportId, String eventId, String recordType, String aId, String reportDate, String v1Str, String startHour, String startMin, String endHour, String endMin, String description){
-		List<Account> aList = selectAccount(aId);
+  WebService static String addReportOn(String repOwnerId, String reportId, String dailyReportId, String eventId, String recordType, String aId, String reportDate, String v1Str, String startHour, String startMin, String endHour, String endMin, String description){
+    List<Account> aList = selectAccount(aId);
 
-		if(reportId != null && reportId != ''){
-			List<On_Call__c> oList = [select id, Daily_Report__c, Event_Id__c, segment__c from On_Call__c where id =:reportId];
-			if(oList.size() > 0){
-				return oList.get(0).id;
-			}
-		}
-		
-		On_Call__c o = new On_Call__c();
-		
-		if(aList.size() != 0){
-			Account a = aList.get(0);
-			o.segment__c = a.Id;
-			// 鐥呴櫌ID(18妗�)宸炯銇�
-			o.Hospital__c = a.Hospital__r.Id;
-		}
+    if(reportId != null && reportId != ''){
+      List<On_Call__c> oList = [select id, Daily_Report__c, Event_Id__c, segment__c from On_Call__c where id =:reportId];
+      if(oList.size() > 0){
+        return oList.get(0).id;
+      }
+    }
+    
+    On_Call__c o = new On_Call__c();
+    
+    if(aList.size() != 0){
+      Account a = aList.get(0);
+      o.segment__c = a.Id;
+      // 鐥呴櫌ID(18妗�)宸炯銇�
+      o.Hospital__c = a.Hospital__r.Id;
+    }
 
-		o.Daily_Report__c = dailyReportId;
-		o.OwnerId = repOwnerId;
-		o.Event_Id__c = eventId;
-		o.Responsible_Person_HP__c = v1Str;
-		if(String.isBlank(description) == false){
-			if(description.length() > 255){
-				o.Customer_Problem_c__c = description.substring(0, 255);
-			} else {
-				o.Customer_Problem_c__c = description;
-			}
+    o.Daily_Report__c = dailyReportId;
+    o.OwnerId = repOwnerId;
+    o.Event_Id__c = eventId;
+    o.Responsible_Person_HP__c = v1Str;
+    if(String.isBlank(description) == false){
+      if(description.length() > 255){
+        o.Customer_Problem_c__c = description.substring(0, 255);
+      } else {
+        o.Customer_Problem_c__c = description;
+      }
 
-		}
-		Date rDate = date.parse(reportDate);
-		o.From_c__c = Datetime.newInstance(rDate.year(), rDate.month(), rDate.day(), Integer.valueOf(startHour), Integer.valueOf(StartMin), 0);
-		o.To_c__c = Datetime.newInstance(rDate.year(), rDate.month(), rDate.day(), Integer.valueOf(endHour), Integer.valueOf(endMin), 0);
+    }
+    Date rDate = date.parse(reportDate);
+    o.From_c__c = Datetime.newInstance(rDate.year(), rDate.month(), rDate.day(), Integer.valueOf(startHour), Integer.valueOf(StartMin), 0);
+    o.To_c__c = Datetime.newInstance(rDate.year(), rDate.month(), rDate.day(), Integer.valueOf(endHour), Integer.valueOf(endMin), 0);
 
-		upsert o;
-		
-		updateEvent(o.id,eventId,recordType);
-		
-		return o.id;
-	}
-	
-	WebService static String addReportAc(String repOwnerId, String reportId, String dailyReportId, String eventId, String recordType, String aId, String reportDate, String description){
-		List<Account> aList = selectAccount(aId);
+    upsert o;
+    
+    updateEvent(o.id,eventId,recordType);
+    
+    return o.id;
+  }
+  
+  WebService static String addReportAc(String repOwnerId, String reportId, String dailyReportId, String eventId, String recordType, String aId, String reportDate, String description){
+    List<Account> aList = selectAccount(aId);
 
-		if(reportId != null && reportId != ''){
-			List<Visit_Report__c> rList = [select id, Daily_Report__c, Event_Id__c, Hospital_Reference__c, Department_Class__c, Department__c, Date__c from Visit_Report__c where id =:reportId];
-			if(rList.size() > 0){
-				return rList.get(0).id;
-			}
-		}
+    if(reportId != null && reportId != ''){
+      List<Visit_Report__c> rList = [select id, Daily_Report__c, Event_Id__c, Hospital_Reference__c, Department_Class__c, Department__c, Date__c from Visit_Report__c where id =:reportId];
+      if(rList.size() > 0){
+        return rList.get(0).id;
+      }
+    }
 
-		Visit_Report__c r = new Visit_Report__c();
+    Visit_Report__c r = new Visit_Report__c();
 
-		if(aList.size() != 0){
-			Account a = aList.get(0);
-			r.Hospital_Reference__c = a.Hospital__r.Id;
-			r.Department_Class__c = a.Department_Class__r.Id;
-			r.Department__c = a.Id;
+    if(aList.size() != 0){
+      Account a = aList.get(0);
+      r.Hospital_Reference__c = a.Hospital__r.Id;
+      r.Department_Class__c = a.Department_Class__r.Id;
+      r.Department__c = a.Id;
 //        } else {
 //            r.Manual_Name__c = aId;
-		}
-		
-		r.Daily_Report__c = dailyReportId;
-		r.OwnerId = repOwnerId;
-		r.Event_Id__c = eventId;
-		r.Evaluate_And_Problem__c = description;
-		if(reportDate != null && reportDate != ''){
-			r.Date__c = date.parse(reportDate);
-		}
+    }
+    
+    r.Daily_Report__c = dailyReportId;
+    r.OwnerId = repOwnerId;
+    r.Event_Id__c = eventId;
+    r.Evaluate_And_Problem__c = description;
+    if(reportDate != null && reportDate != ''){
+      r.Date__c = date.parse(reportDate);
+    }
 
-		upsert r;
+    upsert r;
 
-		updateEvent(r.id,eventId,recordType);
+    updateEvent(r.id,eventId,recordType);
 
-		return r.id;
-	}
-	
-	WebService static String addClaim(String repOwnerId, String reportId, String dailyReportId, String eventId, String recordType, String aId, String reportDate, String description){
-		List<Account> aList = selectAccount(aId);
+    return r.id;
+  }
+  
+  WebService static String addClaim(String repOwnerId, String reportId, String dailyReportId, String eventId, String recordType, String aId, String reportDate, String description){
+    List<Account> aList = selectAccount(aId);
 
-		if(reportId != null && reportId != ''){
-			List<QIS_Report__c> rList = [select id, Daily_Report__c, Event_Id__c, Hospital_Department__c, Date__c from QIS_Report__c where id =:reportId];
-			if(rList.size() > 0){
-				return rList.get(0).id;
-			}
-		}
+    if(reportId != null && reportId != ''){
+      List<QIS_Report__c> rList = [select id, Daily_Report__c, Event_Id__c, Hospital_Department__c, Date__c from QIS_Report__c where id =:reportId];
+      if(rList.size() > 0){
+        return rList.get(0).id;
+      }
+    }
 
-		QIS_Report__c r = new QIS_Report__c();
+    QIS_Report__c r = new QIS_Report__c();
 
-		if(aList.size() != 0){
-			Account a = aList.get(0);
-			r.Hospital_Department__c = a.Id;
-			r.Department_Class__c = a.Department_Class__r.Id;
-			r.Hospital__c = a.Hospital__r.Id;
-		}
-		r.Daily_Report__c = dailyReportId;
-		r.OwnerId = repOwnerId;
-		r.Event_Id__c = eventId;
-		//r.Department_Class_Ref__c = a.Department_Class__r.Id;
-		//r.Hospital_Reference__c = a.Hospital__r.Id;
-		r.problem_detail__c = description;
-		if(reportDate != null && reportDate != ''){
-			r.Date__c = date.parse(reportDate);
-		}
-		r.Generation_Source__c = '鏃ユ姤';
-		r.Name = '*';
+    if(aList.size() != 0){
+      Account a = aList.get(0);
+      r.Hospital_Department__c = a.Id;
+      r.Department_Class__c = a.Department_Class__r.Id;
+      r.Hospital__c = a.Hospital__r.Id;
+    }
+    r.Daily_Report__c = dailyReportId;
+    r.OwnerId = repOwnerId;
+    r.Event_Id__c = eventId;
+    //r.Department_Class_Ref__c = a.Department_Class__r.Id;
+    //r.Hospital_Reference__c = a.Hospital__r.Id;
+    r.problem_detail__c = description;
+    if(reportDate != null && reportDate != ''){
+      r.Date__c = date.parse(reportDate);
+    }
+    r.Generation_Source__c = '鏃ユ姤';
+    r.Name = '*';
 
-		upsert r;
+    upsert r;
 
-		updateEvent(r.id,eventId,recordType);
+    updateEvent(r.id,eventId,recordType);
 
-		return r.id;
-	}
+    return r.id;
+  }
 
-	// MarketCondition or Competitor
-	WebService static String addReportEx(String repOwnerId, String reportId, String dailyReportId, String eventId, String recordType, String aId, String visitor1, String reportDate, String description){
-		String rt = selectRecordType(recordType);
-		List<Account> aList = selectAccount(aId);
+  // MarketCondition or Competitor
+  WebService static String addReportEx(String repOwnerId, String reportId, String dailyReportId, String eventId, String recordType, String aId, String visitor1, String reportDate, String description){
+    String rt = selectRecordType(recordType);
+    List<Account> aList = selectAccount(aId);
 
-		if(reportId != null && reportId != ''){
-			List<Report__c> rList = [select id, Daily_Report__c, RecordTypeId, Event_Id__c, Hospital_Department__c, Department_Class_Ref__c, Hospital_Reference__c, Date__c, Practitioner1__c, Practitioner2__c, Practitioner3__c, Practitioner4__c, Practitioner5__c, Comment__c from Report__c where id =:reportId];
-			if(rList.size() > 0){
-				return rList.get(0).id;
-			}
-		}
-		Report__c r = new Report__c();
-		if(aList.size() != 0){
-			Account a = aList.get(0);
-			r.Hospital_Department__c = a.Id;
-			r.Department_Class_Ref__c = a.Department_Class__r.Id;
-			r.Hospital_Reference__c = a.Hospital__r.Id;
-		}
-		r.Daily_Report__c = dailyReportId;
-		r.OwnerId = repOwnerId;
-		r.RecordTypeId = rt;
-		r.Event_Id__c = eventId;
-		if (String.isBlank(visitor1) == false) {
-			r.Person_In_Charge__c = visitor1;
-		}
-		if(reportDate != null && reportDate != ''){
-			r.Date__c = date.parse(reportDate);
-		}
-		r.Comment__c = description;
+    if(reportId != null && reportId != ''){
+      List<Report__c> rList = [select id, Daily_Report__c, RecordTypeId, Event_Id__c, Hospital_Department__c, Department_Class_Ref__c, Hospital_Reference__c, Date__c, Practitioner1__c, Practitioner2__c, Practitioner3__c, Practitioner4__c, Practitioner5__c, Comment__c from Report__c where id =:reportId];
+      if(rList.size() > 0){
+        return rList.get(0).id;
+      }
+    }
+    Report__c r = new Report__c();
+    if(aList.size() != 0){
+      Account a = aList.get(0);
+      r.Hospital_Department__c = a.Id;
+      r.Department_Class_Ref__c = a.Department_Class__r.Id;
+      r.Hospital_Reference__c = a.Hospital__r.Id;
+    }
+    r.Daily_Report__c = dailyReportId;
+    r.OwnerId = repOwnerId;
+    r.RecordTypeId = rt;
+    r.Event_Id__c = eventId;
+    if (String.isBlank(visitor1) == false) {
+      r.Person_In_Charge__c = visitor1;
+    }
+    if(reportDate != null && reportDate != ''){
+      r.Date__c = date.parse(reportDate);
+    }
+    r.Comment__c = description;
 
-		upsert r;
+    upsert r;
 
-		updateEvent(r.id,eventId,recordType);
+    updateEvent(r.id,eventId,recordType);
 
-		return r.id;
-	}
+    return r.id;
+  }
 
 
-	WebService static String addReportIm(String repOwnerId, String reportId, String dailyReportId, String eventId, String recordType, String aId, String reportDate, String description){
-		String rt = selectRecordType(recordType);
-		List<Account> aList = selectAccount(aId);
+  WebService static String addReportIm(String repOwnerId, String reportId, String dailyReportId, String eventId, String recordType, String aId, String reportDate, String description){
+    String rt = selectRecordType(recordType);
+    List<Account> aList = selectAccount(aId);
 
-		if(reportId != null && reportId != ''){
-			List<Report__c> rList = [select id, Daily_Report__c, RecordTypeId, Event_Id__c, Hospital_Department__c, Department_Class_Ref__c, Hospital_Reference__c, Date__c, Practitioner1__c, Practitioner2__c, Practitioner3__c, Practitioner4__c, Practitioner5__c, Comment__c from Report__c where id =:reportId];
-			if(rList.size() > 0){
-				return rList.get(0).id;
-			}
-		}
+    if(reportId != null && reportId != ''){
+      List<Report__c> rList = [select id, Daily_Report__c, RecordTypeId, Event_Id__c, Hospital_Department__c, Department_Class_Ref__c, Hospital_Reference__c, Date__c, Practitioner1__c, Practitioner2__c, Practitioner3__c, Practitioner4__c, Practitioner5__c, Comment__c from Report__c where id =:reportId];
+      if(rList.size() > 0){
+        return rList.get(0).id;
+      }
+    }
 
-		Report__c r = new Report__c();
+    Report__c r = new Report__c();
 
-		if(aList.size() != 0){
-			Account a = aList.get(0);
-			r.Hospital_Reference__c = a.Hospital__r.Id;
-		}
+    if(aList.size() != 0){
+      Account a = aList.get(0);
+      r.Hospital_Reference__c = a.Hospital__r.Id;
+    }
 
-		r.Daily_Report__c = dailyReportId;
-		r.OwnerId = repOwnerId;
-		r.RecordTypeId = rt;
-		r.Event_Id__c = eventId;
-		if(reportDate != null && reportDate != ''){
-			r.Date__c = date.parse(reportDate);
-		}
-		r.Comment__c = description;
+    r.Daily_Report__c = dailyReportId;
+    r.OwnerId = repOwnerId;
+    r.RecordTypeId = rt;
+    r.Event_Id__c = eventId;
+    if(reportDate != null && reportDate != ''){
+      r.Date__c = date.parse(reportDate);
+    }
+    r.Comment__c = description;
 
-		upsert r;
+    upsert r;
 
-		updateEvent(r.id,eventId,recordType);
+    updateEvent(r.id,eventId,recordType);
 
-		return r.id;
-	}
+    return r.id;
+  }
 
 //    // Maintenance_Contract
 //    WebService static String addMC(String repOwnerId, String reportId, String dailyReportId, String eventId, String recordType, String aId, String reportDate, String description){
@@ -439,127 +441,127 @@
 //        return r.id;
 //    }
 
-	// Rental_Apply
-	WebService static String addRA(String repOwnerId, String reportId, String dailyReportId, String eventId, String recordType, String aId, String reportDate, String description,String followOpps){
-		List<Account> aList = selectAccount(aId);
+  // Rental_Apply
+  WebService static String addRA(String repOwnerId, String reportId, String dailyReportId, String eventId, String recordType, String aId, String reportDate, String description,String followOpps){
+    List<Account> aList = selectAccount(aId);
 
-		if(reportId != null && reportId != ''){
-			List<Rental_Apply__c> rList = [select id, Daily_Report__c, Event_Id__c from Rental_Apply__c where id =:reportId];
-			if(rList.size() > 0){
-				return rList.get(0).id;
-			}
-		}
+    if(reportId != null && reportId != ''){
+      List<Rental_Apply__c> rList = [select id, Daily_Report__c, Event_Id__c from Rental_Apply__c where id =:reportId];
+      if(rList.size() > 0){
+        return rList.get(0).id;
+      }
+    }
 
-		Rental_Apply__c r = new Rental_Apply__c();
+    Rental_Apply__c r = new Rental_Apply__c();
 
-		if(aList.size() != 0){
-			Account a = aList.get(0);
-			r.Hospital__c = a.Hospital__r.Id;
-			r.Strategic_dept__c = a.Department_Class__r.Id;
-			r.Account__c = a.Id;
-		}
-		
-		r.Daily_Report__c = dailyReportId;
-		r.Event_Id__c = eventId;
-		r.Demo_purpose_text__c = description;
-		r.Request_return_day__c = Date.today();
-		r.Person_In_Charge__c = repOwnerId;
-		r.applyUser__c = repOwnerId;
-		if(followOpps!=null&&followOpps!=''){
-			r.Follow_UP_Opp__c = followOpps;
-		}
-		upsert r;
+    if(aList.size() != 0){
+      Account a = aList.get(0);
+      r.Hospital__c = a.Hospital__r.Id;
+      r.Strategic_dept__c = a.Department_Class__r.Id;
+      r.Account__c = a.Id;
+    }
+    
+    r.Daily_Report__c = dailyReportId;
+    r.Event_Id__c = eventId;
+    r.Demo_purpose_text__c = description;
+    r.Request_return_day__c = Date.today();
+    r.Person_In_Charge__c = repOwnerId;
+    r.applyUser__c = repOwnerId;
+    if(followOpps!=null&&followOpps!=''){
+      r.Follow_UP_Opp__c = followOpps;
+    }
+    upsert r;
 
-		updateEvent(r.id,eventId,recordType);
+    updateEvent(r.id,eventId,recordType);
 
-		return r.id;
-	}
-	
-	WebService static String selectRecordType(String recordTypeName){
-		List<RecordType> rtList = [select id from RecordType where IsActive = true and DeveloperName =:recordTypeName];
-		return rtList.get(0).id;
-	}
+    return r.id;
+  }
+  
+  WebService static String selectRecordType(String recordTypeName){
+    List<RecordType> rtList = [select id from RecordType where IsActive = true and DeveloperName =:recordTypeName];
+    return rtList.get(0).id;
+  }
 
-	WebService static List<Account> selectAccount(String aId){
-		List<Account> aList = new List<Account>();
-		if (aId != null && aId.startsWith('001')) {
-			aList = [select Id, Department_Class__r.Id, Hospital__r.Id from Account where Id =:aId];
-		}
-		return aList;
-	}
+  WebService static List<Account> selectAccount(String aId){
+    List<Account> aList = new List<Account>();
+    if (aId != null && aId.startsWith('001')) {
+      aList = [select Id, Department_Class__r.Id, Hospital__r.Id from Account where Id =:aId];
+    }
+    return aList;
+  }
 
-	WebService static void updateEvent(String rId, String eventId, String recordType){
-		Event__c e = [
-			select id,Maintenance_Contract_ID__c, Asset_Manual_ID__c, Rental_Apply_ID__c,
-				   Product_Description_Id__c, OPD_ID__c, NTC_ID__c, ReportAccompanied_ID__c, CityStatus_ID__c, Improvement_ID__c, Conflict_ID__c, Claim_ID__c
-			  from Event__c where id =:eventId
-		];
+  WebService static void updateEvent(String rId, String eventId, String recordType){
+    Event__c e = [
+      select id,Maintenance_Contract_ID__c, Asset_Manual_ID__c, Rental_Apply_ID__c,
+           Product_Description_Id__c, OPD_ID__c, NTC_ID__c, ReportAccompanied_ID__c, CityStatus_ID__c, Improvement_ID__c, Conflict_ID__c, Claim_ID__c
+        from Event__c where id =:eventId
+    ];
 //        if(recordType == 'Maintenance_Contract'){
 //            e.Maintenance_Contract_ID__c = rId;
 //        }
-		if(recordType == 'Rental_Apply'){
-			e.Rental_Apply_ID__c = rId;
-		}
-		if(recordType == 'Asset_Manual'){
-			e.Asset_Manual_ID__c = rId;
-		}
-		if(recordType == 'Product_Explanation'){
-			e.Product_Description_Id__c = rId;
-		}
-		else if(recordType == 'OPD' || recordType == 'SIS'){
-			e.OPD_ID__c = rId;
-		}
-		else if(recordType == 'NTC'){
-			e.NTC_ID__c = rId;
-		}
-		else if(recordType == 'On_Call'){
-			e.OnCall_ID__c = rId;
-		}
-		else if(recordType == 'Visit_With'){
-			e.ReportAccompanied_ID__c = rId;
-		}
-		else if(recordType == 'MarketCondition'){
-			e.CityStatus_ID__c = rId;
-		}
-		else if(recordType == 'Improvement'){
-			e.Improvement_ID__c = rId;
-		}
-		else if(recordType == 'Competitor'){
-			e.Conflict_ID__c = rId;
-		}
-		else if(recordType == 'Complaint'){
-			e.Claim_ID__c = rId;
-		}
+    if(recordType == 'Rental_Apply'){
+      e.Rental_Apply_ID__c = rId;
+    }
+    if(recordType == 'Asset_Manual'){
+      e.Asset_Manual_ID__c = rId;
+    }
+    if(recordType == 'Product_Explanation'){
+      e.Product_Description_Id__c = rId;
+    }
+    else if(recordType == 'OPD' || recordType == 'SIS'){
+      e.OPD_ID__c = rId;
+    }
+    else if(recordType == 'NTC'){
+      e.NTC_ID__c = rId;
+    }
+    else if(recordType == 'On_Call'){
+      e.OnCall_ID__c = rId;
+    }
+    else if(recordType == 'Visit_With'){
+      e.ReportAccompanied_ID__c = rId;
+    }
+    else if(recordType == 'MarketCondition'){
+      e.CityStatus_ID__c = rId;
+    }
+    else if(recordType == 'Improvement'){
+      e.Improvement_ID__c = rId;
+    }
+    else if(recordType == 'Competitor'){
+      e.Conflict_ID__c = rId;
+    }
+    else if(recordType == 'Complaint'){
+      e.Claim_ID__c = rId;
+    }
 
-		update e;
-	}
-	
-	WebService static Product2 getProduct2(String a){
-		Product2 p2 = [select Id, Name, Intra_Trade_Cost_RMB__c, Intra_Trade_List_RMB__c FROM Product2 Where Id =:a];
-		return p2;
-	}
+    update e;
+  }
+  
+  WebService static Product2 getProduct2(String a){
+    Product2 p2 = [select Id, Name, Intra_Trade_Cost_RMB__c, Intra_Trade_List_RMB__c FROM Product2 Where Id =:a];
+    return p2;
+  }
 
-	WebService static Product2 getProduct2US(String a){
-		Product2 p2 = [select Id, Name, Foreign_Trade_Cost_US__c, Foreign_Trade_List_US__c FROM Product2 Where Id =:a];
-		return p2;
-	}
-	
-	WebService static String getReportId(String oId, String rDate){
-		List<Daily_Report__c> rtList = [select Id from Daily_Report__c where OwnerId =:oId and Reported_Date__c =:date.parse(rDate)];
-		return rtList.get(0).id;
-	}
-	
-	WebService static String checkAccountMatch(String name, String id){
-		List<Account> accList = [select Id from Account where Name = :name and Id = :id];
-		if (accList.size() > 0) {
-			return 'OK';
-		}
-		return 'NG';
-	}
-	
-	WebService static Account getAccountForJs(String id){
-		return [select Id, Name, Department_Class__r.Name, Department_Class__r.Id,
-				Hospital__r.Name, Hospital__r.Id, Hospital__r.OCM_Category__c
-				from Account where Id = :id];
-	}
+  WebService static Product2 getProduct2US(String a){
+    Product2 p2 = [select Id, Name, Foreign_Trade_Cost_US__c, Foreign_Trade_List_US__c FROM Product2 Where Id =:a];
+    return p2;
+  }
+  
+  WebService static String getReportId(String oId, String rDate){
+    List<Daily_Report__c> rtList = [select Id from Daily_Report__c where OwnerId =:oId and Reported_Date__c =:date.parse(rDate)];
+    return rtList.get(0).id;
+  }
+  
+  WebService static String checkAccountMatch(String name, String id){
+    List<Account> accList = [select Id from Account where Name = :name and Id = :id];
+    if (accList.size() > 0) {
+      return 'OK';
+    }
+    return 'NG';
+  }
+  
+  WebService static Account getAccountForJs(String id){
+    return [select Id, Name, Department_Class__r.Name, Department_Class__r.Id,
+        Hospital__r.Name, Hospital__r.Id, Hospital__r.OCM_Category__c
+        from Account where Id = :id];
+  }
 }
\ No newline at end of file
diff --git a/force-app/main/default/classes/AssetMaintainController.cls b/force-app/main/default/classes/AssetMaintainController.cls
index 532f034..4dd1201 100644
--- a/force-app/main/default/classes/AssetMaintainController.cls
+++ b/force-app/main/default/classes/AssetMaintainController.cls
@@ -1,7 +1,7 @@
 public with sharing class AssetMaintainController {
     public static Asset StaticAssetQuertResult;
     // 鎸夐挳鍖哄煙
-    public String assertQueryCondition {get; private set;}
+    public String assertQueryCondition {get;set;}
     public Boolean allBlueFlag {get; private set;}  // 鏌ョ湅鍏ㄩ儴淇濇湁璁惧钃濊壊鎸夐挳Flag
     public Boolean consumableBlueFlag {get; private set;}  // 鏌ョ湅鍦ㄥ簱鐨勪繚鏈夎澶囪摑鑹叉寜閽瓼lag
     public Boolean lendingBlueFlag {get; private set;}  // 鏌ョ湅鍑哄�熶腑淇濇湁璁惧钃濊壊鎸夐挳Flag
diff --git a/force-app/main/default/classes/AssetModifyBelongsController.cls b/force-app/main/default/classes/AssetModifyBelongsController.cls
index 8e105d0..2302efd 100644
--- a/force-app/main/default/classes/AssetModifyBelongsController.cls
+++ b/force-app/main/default/classes/AssetModifyBelongsController.cls
@@ -7,6 +7,7 @@
     public Boolean checkexact { get; set; }  // 20230110 gzw 璁㈠崟鍙风簿纭煡璇㈢敤
     public AssetModifyBelongsChange__c ambc { get; set; }
     public static List<SelectOption> textOpts { get; private set; }
+    public static Account ir { get; set; }
     //public static List<SelectOption> changeReasonOpts { get; private set; }
     static {
         textOpts = new List<SelectOption>();
@@ -61,6 +62,7 @@
         Id = ApexPages.currentPage().getParameters().get('Id');
 
         statusEdit = ApexPages.currentPage().getParameters().get('KeyWords');
+        System.debug('Id:'+Id+'   accountId:'+RawAccountId+'  KeyWords:'+statusEdit);
         assetModifyBelongsChangeDetailRecords = new List<AssetModifyBelongsChangeDetailInfo>();
         assetModifyBelongsChangeDetailRecordsview = new List<AssetModifyBelongsChangeDetailInfo>();
         editAble = false;
@@ -68,14 +70,18 @@
         pageLimit = Integer.valueOf(System.Label.orderdetPageLimitsize);
 
         attachments = new List<Attachment>();
-        List<ContentDocumentLink> cdlList = [SELECT ContentDocumentId
-                                                   FROM ContentDocumentLink
-                                                   WHERE LinkedEntityId = :Id];
-        List<ID> fileIDs = new List<ID>();
-        for (ContentDocumentLink docLink : cdlList) {
-            fileIDs.add(docLink.ContentDocumentId);
+        //update 鏉庢枃娑� 2023/07/13 鏇存柊lightning闄勪欢涓婁紶 start
+        if(String.isNotBlank(Id)){
+            List<ContentDocumentLink> cdlList = [SELECT ContentDocumentId
+                                                       FROM ContentDocumentLink
+                                                       WHERE LinkedEntityId = :Id];
+            List<ID> fileIDs = new List<ID>();
+            for (ContentDocumentLink docLink : cdlList) {
+                fileIDs.add(docLink.ContentDocumentId);
+            }
+            contents=[SELECT Title,OwnerId,ContentModifiedDate from ContentDocument WHERE id IN :fileIDs];
         }
-        contents=[SELECT Title,OwnerId,ContentModifiedDate from ContentDocument WHERE id IN :fileIDs];
+        //update 鏉庢枃娑� 2023/07/13 鏇存柊lightning闄勪欢涓婁紶 end
     }
 
     public boolean getcheckUser() {
@@ -269,17 +275,7 @@
         if (String.isNotBlank(val1)) {
             val1 = val1.trim();
         }
-        String soql='';
-        System.debug(RawAccountId);
-        RawAccountId='';
-        if(String.isBlank(RawAccountId)){
-            soql = 'select Id,name,SerialNumber,Asset_situation__c,Order_No__c,Account.Name,Status,Installation_Site__c,CurrentContract__c from Asset where AccountId = \'\'';
-            System.debug('id is null');
-        }
-        else {
-            soql = 'select Id,name,SerialNumber,Asset_situation__c,Order_No__c,Account.Name,Status,Installation_Site__c,CurrentContract__c from Asset where AccountId = \'' + RawAccountId + '\'';
-            System.debug('id is not null');
-        }
+        String soql = 'select Id,name,SerialNumber,Asset_situation__c,Order_No__c,Account.Name,Status,Installation_Site__c,CurrentContract__c from Asset where AccountId = \'' + RawAccountId + '\'';
         if (!String.isBlank(text1)) {
             if (text1 == 'Order_No__c' && checkexact) {
                 soql += ' AND (' + text1 + ' = \'' + String.escapeSingleQuotes(val1) + '\' )';
@@ -344,21 +340,20 @@
     //璺宠浆鍒颁笂浼犻檮浠堕〉闈�
     public PageReference uploadingAttachment() {
         PageReference ref = new Pagereference('/p/attach/NoteAttach?pid=' + Id + '&retURL=%2Fapex/AssetModifyBelongs?Id=' + Id);
-        
-        
-        //PageReference ref = new Pagereference('/lightning/n/Excel?objectApiName&context=RECORD_DETAIL&backgroundContext=%2Flightning%2Fr%2FAssetModifyBelongsChange__c%2F'+Id+'%2Fedit%3F0.source%3DalohaHeader&0.source='+Id+'&0.recordId='+Id+'');
-        
+
         ref.setRedirect(true);
         return ref;
     }
+    //update 鏉庢枃娑� 2023/07/13 鏇存柊lightning闄勪欢涓婁紶 start
     //璺宠浆鍒颁笂浼犻檮浠堕〉闈紙lightning锛�
     public PageReference uploadingAttachmentLightning() {
         //PageReference ref = new Pagereference('/p/attach/NoteAttach?pid=' + Id + '&retURL=%2Fapex/AssetModifyBelongs?Id=' + Id);
-        PageReference ref = new Pagereference('/lightning/n/lightning?backgroundContext=%2Flightning%2Fr%2FAssetModifyBelongsChange__c%2F'+Id+'%2Fedit%3Fcount%3D1&0.recordId='+Id+'');
+        PageReference ref = new Pagereference('/lightning/n/LexUploadPage?0.recordId='+Id+'');
         
         ref.setRedirect(true);
         return ref;
     }
+    //update 鏉庢枃娑� 2023/07/13 鏇存柊lightning闄勪欢涓婁紶 end
     // CHAN-BC6BV2 XHL AddEnd 20190522
     //  閲嶆柊鍒锋柊
     public PageReference returnChangePage() {
diff --git a/force-app/main/default/classes/AttachmentReQisHandler.cls b/force-app/main/default/classes/AttachmentReQisHandler.cls
index cf04b27..69a2020 100644
--- a/force-app/main/default/classes/AttachmentReQisHandler.cls
+++ b/force-app/main/default/classes/AttachmentReQisHandler.cls
@@ -5,18 +5,18 @@
  */
 public without sharing class AttachmentReQisHandler extends Oly_TriggerHandler{
     @TestVisible
-    private Map<Id, ContentDocumentLink> newMap;
+    private Map<Id, Attachment> newMap;
     @TestVisible
-    private Map<Id, ContentDocumentLink> oldMap;
+    private Map<Id, Attachment> oldMap;
     @TestVisible
-    private List<ContentDocumentLink> newList;
+    private List<Attachment> newList;
     @TestVisible
-    private List<ContentDocumentLink> oldList;
+    private List<Attachment> oldList;
     public AttachmentReQisHandler() {
-        this.newMap = (Map<Id, ContentDocumentLink>) Trigger.newMap;
-        this.oldMap = (Map<Id, ContentDocumentLink>) Trigger.oldMap;
-        this.newList = (List<ContentDocumentLink>) Trigger.new;
-        this.oldList = (List<ContentDocumentLink>) Trigger.old;
+        this.newMap = (Map<Id, Attachment>) Trigger.newMap;
+        this.oldMap = (Map<Id, Attachment>) Trigger.oldMap;
+        this.newList = (List<Attachment>) Trigger.new;
+        this.oldList = (List<Attachment>) Trigger.old;
     }
     @TestVisible
     protected override void afterInsert() {
@@ -24,41 +24,40 @@
         NoteMail();
     }
     private void NoteMail() {
-        List<Id> linkIdList = new List<Id>();
-        for (ContentDocumentLink link : newList) {
-            linkIdList.add(link.Id);
-        }
-        newList = [select Id,LinkedEntityId,ContentDocumentId from ContentDocumentLink where Id in: linkIdList];
         String baseUrl = URL.getSalesforceBaseUrl().toExternalForm();
         List<Messaging.SingleEmailMessage> sendMails = new List<Messaging.SingleEmailMessage>();
         List<String> Rlist = new List<String>();
         List<String> ParentIdList = new List<String>();
         // QisID
-        for (ContentDocumentLink link : newList) {
-            if(String.valueOf(link.LinkedEntityId).startsWith('a0J') 
-                || String.valueOf(link.LinkedEntityId).startsWith('a0f')){
-                Rlist.add(link.ContentDocumentId);
-                ParentIdList.add(link.LinkedEntityId);
+        for (Attachment att : newList) {
+            if(String.valueOf(att.ParentId).startsWith('a0J') 
+                || String.valueOf(att.ParentId).startsWith('a0f')){
+                Rlist.add(att.Id);
+                ParentIdList.add(att.ParentId);
             }
         }
-        // for (Attachment att : newList) {
-        //     if(String.valueOf(att.ParentId).startsWith('a0J') 
-        //         || String.valueOf(att.ParentId).startsWith('a0f')){
-        //         Rlist.add(att.Id);
-        //         ParentIdList.add(att.ParentId);
-        //     }
-        // }
-        // List<Attachment> NtList = [Select id,ParentId,Name,Body FROM Attachment where Id in : Rlist];
-        List<ContentVersion> verList = [select Id,Title,VersionData,ContentDocumentId from ContentVersion where ContentDocumentId in: Rlist];
+        List<Attachment> NtList = [Select id,ParentId,Name,Body FROM Attachment where Id in : Rlist];
         Map<Id,Repair__c> updateRprMap = new Map<Id,Repair__c>();
         Map<Id,QIS_Report__c> updateQisMap = new Map<Id,QIS_Report__c>();
-        for (Repair__c re :[select id,Name,SerialNumber__c,Delivered_Product__r.Name,HP_Name__c
-                                        from Repair__c where id in : ParentIdList] ) {
+        //DB202308180733 P-鏂版姇璇夌郴缁烥CHS椤圭洰--SQL涓姞鍏ユ柊瀛楁-鍒樺窛-Latest_upload_time_attachments__c
+        for (Repair__c re :[select id,Name,SerialNumber__c,Delivered_Product__r.Name,HP_Name__c,Latest_upload_time_attachments__c
+                                        from Repair__c where id in : ParentIdList]) {
+            //DB202308180733 P-鏂版姇璇夌郴缁烥CHS椤圭洰-鍒樺窛-鏂板瓧娈佃祴鍊� 
+            re.Latest_upload_time_attachments__c = DateTime.now();
             updateRprMap.put(re.id, re);
         }
-        for (QIS_Report__c qi :[select id,Name,lot_or_serial__c,nonyushohin__r.Name,Hospital__r.Name 
+        // 	DB202308180733 P-鏂版姇璇夌郴缁烥CHS椤圭洰-鍒樺窛-鏇存柊瀛楁
+        if (updateRprMap != null && updateRprMap.size() > 0) {
+            update updateRprMap.values();
+        }
+        for (QIS_Report__c qi :[select id,Name,lot_or_serial__c,nonyushohin__r.Name,Hospital__r.Name,Latest_upload_time_attachments__c
                                         from QIS_Report__c where id in : ParentIdList] ) {
+            qi.Latest_upload_time_attachments__c = DateTime.now();
             updateQisMap.put(qi.id, qi);
+        }
+        //DB202308180733 P-鏂版姇璇夌郴缁烥CHS椤圭洰-鍒樺窛-鏇存柊瀛楁
+        if (updateQisMap != null && updateQisMap.size() > 0) {
+            update updateQisMap.values();
         }
         // Map<Id,Repair__c> updateRprMap = [select id,Name,SerialNumber__c,Delivered_Product__r.Name
         //                              from Repair__c where id in : ParentIdList];
@@ -74,12 +73,11 @@
             }
         }
         List<User> userList = [select Id, Name, Email, Manager.Email from User where id IN :IdList];
-        for (ContentVersion version : verList) {
-            ContentDocumentLink link = [select LinkedEntityId from ContentDocumentLink where ContentDocumentId =: version.ContentDocumentId limit 1];
-            String titName = updateRprMap.containsKey(link.LinkedEntityId)? updateRprMap.get(link.LinkedEntityId).Name : updateQisMap.get(link.LinkedEntityId).Name;
-            String prname = updateRprMap.containsKey(link.LinkedEntityId)? updateRprMap.get(link.LinkedEntityId).Delivered_Product__r.Name : updateQisMap.get(link.LinkedEntityId).nonyushohin__r.Name;
-            String Serial = updateRprMap.containsKey(link.LinkedEntityId)? updateRprMap.get(link.LinkedEntityId).SerialNumber__c : updateQisMap.get(link.LinkedEntityId).lot_or_serial__c;
-            String accountname = updateRprMap.containsKey(link.LinkedEntityId)? updateRprMap.get(link.LinkedEntityId).HP_Name__c : updateQisMap.get(link.LinkedEntityId).Hospital__r.Name;
+        for (Attachment nt : NtList) {
+            String titName = updateRprMap.containsKey(nt.ParentId)? updateRprMap.get(nt.ParentId).Name : updateQisMap.get(nt.ParentId).Name;
+            String prname = updateRprMap.containsKey(nt.ParentId)? updateRprMap.get(nt.ParentId).Delivered_Product__r.Name : updateQisMap.get(nt.ParentId).nonyushohin__r.Name;
+            String Serial = updateRprMap.containsKey(nt.ParentId)? updateRprMap.get(nt.ParentId).SerialNumber__c : updateQisMap.get(nt.ParentId).lot_or_serial__c;
+            String accountname = updateRprMap.containsKey(nt.ParentId)? updateRprMap.get(nt.ParentId).HP_Name__c : updateQisMap.get(nt.ParentId).Hospital__r.Name;
             String title = '';
             String body = '';
             title = '銆愪慨鐞�/QIS銆戯細' + titName + '宸叉柊澧為檮浠讹紝璇锋煡鐪�';
@@ -89,12 +87,12 @@
             body += '<br/>';
             body += '鏈鸿韩鍙�/鎵瑰彿 锛�' + Serial;
             body += '<br/>';
-            body += '闄勪欢鍚嶇О/澶囨敞鍚嶇О锛�' + version.Title;
+            body += '闄勪欢鍚嶇О/澶囨敞鍚嶇О锛�' + nt.Name;
             body += '<br/>';
             body += '鎿嶄綔鎷呭綋锛�' + UserInfo.getName();
             body += '<br/>';
             body += '<br/>';
-            body += '閾炬帴锛�' + baseUrl + '/' + link.LinkedEntityId +' ';
+            body += '閾炬帴锛�' + baseUrl + '/' + nt.ParentId +' ';
             //鏀朵欢閭
             List<String> toMailList = new List<String>();
             String uId = UserInfo.getUserId();
@@ -107,7 +105,6 @@
             List<String> ccMailList = new List<String>();
             ccMailList.add('gaozhangwei@prec-tech.com');
             ccMailList.add('wei_liang@olympus.com.cn');
-            // ccMailList.add('chenjingwu@prec-tech.com');
             Messaging.SingleEmailMessage messageNEW = new Messaging.SingleEmailMessage();
             messageNEW.subject = title;
             messageNEW.htmlBody = body;
@@ -118,48 +115,6 @@
             }
             sendMails.add(messageNEW);
         }
-        // for (Attachment nt : NtList) {
-        //     String titName = updateRprMap.containsKey(nt.ParentId)? updateRprMap.get(nt.ParentId).Name : updateQisMap.get(nt.ParentId).Name;
-        //     String prname = updateRprMap.containsKey(nt.ParentId)? updateRprMap.get(nt.ParentId).Delivered_Product__r.Name : updateQisMap.get(nt.ParentId).nonyushohin__r.Name;
-        //     String Serial = updateRprMap.containsKey(nt.ParentId)? updateRprMap.get(nt.ParentId).SerialNumber__c : updateQisMap.get(nt.ParentId).lot_or_serial__c;
-        //     String accountname = updateRprMap.containsKey(nt.ParentId)? updateRprMap.get(nt.ParentId).HP_Name__c : updateQisMap.get(nt.ParentId).Hospital__r.Name;
-        //     String title = '';
-        //     String body = '';
-        //     title = '銆愪慨鐞�/QIS銆戯細' + titName + '宸叉柊澧為檮浠讹紝璇锋煡鐪�';
-        //     body += '鐢ㄦ埛鍚嶏細' + accountname;
-        //     body += '<br/>';
-        //     body += '浜у搧鍚嶇О/鍨嬪彿 锛�' + prname;
-        //     body += '<br/>';
-        //     body += '鏈鸿韩鍙�/鎵瑰彿 锛�' + Serial;
-        //     body += '<br/>';
-        //     body += '闄勪欢鍚嶇О/澶囨敞鍚嶇О锛�' + nt.Name;
-        //     body += '<br/>';
-        //     body += '鎿嶄綔鎷呭綋锛�' + UserInfo.getName();
-        //     body += '<br/>';
-        //     body += '<br/>';
-        //     body += '閾炬帴锛�' + baseUrl + '/' + nt.ParentId +' ';
-        //     //鏀朵欢閭
-        //     List<String> toMailList = new List<String>();
-        //     String uId = UserInfo.getUserId();
-        //     for (User u : userList) {
-        //         if (u.Id != uId) {
-        //             toMailList.add(u.Email);
-        //         }
-        //     }
-        //     //鎶勯�佺殑閭
-        //     List<String> ccMailList = new List<String>();
-        //     ccMailList.add('gaozhangwei@prec-tech.com');
-        //     ccMailList.add('wei_liang@olympus.com.cn');
-        //     Messaging.SingleEmailMessage messageNEW = new Messaging.SingleEmailMessage();
-        //     messageNEW.subject = title;
-        //     messageNEW.htmlBody = body;
-        //     messageNEW.setCharset('UTF-8');
-        //     messageNEW.toAddresses = toMailList;
-        //     if(ccMailList.size() > 0){
-        //         messageNEW.ccAddresses = ccMailList;
-        //     }
-        //     sendMails.add(messageNEW);
-        // }
         //鍦ㄥ崟涓簨鍔′腑锛屽彧鑳借皟鐢╯end鏂规硶 10 娆°��
         Messaging.SendEmailResult[] results = messaging.sendEmail(sendMails);
     }
diff --git a/force-app/main/default/classes/CheckAllOlympusAssetController.cls b/force-app/main/default/classes/CheckAllOlympusAssetController.cls
index 673ae29..3a70581 100644
--- a/force-app/main/default/classes/CheckAllOlympusAssetController.cls
+++ b/force-app/main/default/classes/CheckAllOlympusAssetController.cls
@@ -1,7 +1,7 @@
 public with sharing class CheckAllOlympusAssetController {
     public static Asset StaticAssetQuertResult;
     // 鎸夐挳鍖哄煙
-    public String assertQueryCondition {get; set;}
+    public String assertQueryCondition {get; private set;}
     public Boolean allBlueFlag {get; private set;}  // 鏌ョ湅鍏ㄩ儴淇濇湁璁惧钃濊壊鎸夐挳Flag
     public Boolean consumableBlueFlag {get; private set;}  // 鏌ョ湅鍦ㄥ簱鐨勪繚鏈夎澶囪摑鑹叉寜閽瓼lag
     public Boolean lendingBlueFlag {get; private set;}  // 鏌ョ湅鍑哄�熶腑淇濇湁璁惧钃濊壊鎸夐挳Flag
@@ -214,27 +214,6 @@
                 daysToExpiredOpts.add(new SelectOption('14', '涓ゅ懆鍐呭埌鏈�'));
             }
             return daysToExpiredOpts;
-        }
-        set;
-    }
-
-     //chenjingwu 2023.8.2
-    //璁惧鐘舵��
-    public List<SelectOption> assertQueryConditionOpts {
-        get {
-            if(assertQueryConditionOpts == null){
-                assertQueryConditionOpts = new List<SelectOption>();
-                assertQueryConditionOpts.add(new SelectOption('all', '--鏃�--'));
-                assertQueryConditionOpts.add(new SelectOption('consumable', '鏈夋晥搴撳瓨'));
-                assertQueryConditionOpts.add(new SelectOption('lending', '鍊熷嚭鍒嗛厤鏁�'));
-                assertQueryConditionOpts.add(new SelectOption('repairing', '淇悊涓�'));
-                assertQueryConditionOpts.add(new SelectOption('scrapping', '寰呮姤搴�'));
-                assertQueryConditionOpts.add(new SelectOption('scrapped', '宸叉姤搴�'));
-                assertQueryConditionOpts.add(new SelectOption('consumed', '宸叉秷鑰�'));
-                assertQueryConditionOpts.add(new SelectOption('soonExpired', '鍗冲皢鍒版湡'));
-                assertQueryConditionOpts.add(new SelectOption('expired', '宸茶繃鏈�'));
-            }
-            return assertQueryConditionOpts;
         }
         set;
     }
@@ -1229,7 +1208,9 @@
 
     public Date stringToDate(String dateStr) {  // Fri Jan 18 00:00:00 GMT 2019
         //System.debug('dateStr=====' + dateStr);
-        return Date.valueOf(dateStr);
+        dateStr = dateStr.split(' ')[0];
+        return Date.valueOf(dateStr.replaceAll('/','-'));
+
         //String monthStr = dateStr.substring(4,7);
         //Integer dayStr = Integer.ValueOf(dateStr.substring(8,10));
         //Integer yearStr = Integer.ValueOf(dateStr.substring(24,28));
@@ -1290,11 +1271,11 @@
         }
         System.debug('333333');
         // 妫�绱SV涓殑ID妫�绱sset鑾峰緱List<Asset>
-        try {
+        // try {
             if (allApiList.contains('Id')) {
                 allApiList.remove(0);
             }
-            if (importApiList.contains('Id锛堜笉鍙慨鏀癸級')) {
+            if (importApiList.contains('Id')) {
                 importApiList.remove(0);
             }
             List<String> notIncludeApiList = new List<String>();
@@ -1328,7 +1309,11 @@
                     if (!queryAssetFieldResult.isCalculated()) {
                         if (queryAssetFieldResult.getType() == Schema.DisplayType.Date) {
                             if (tempCsvBody[i][j+1] != '') {
-                                tempAsset.put(importApiList[j], stringToDate(tempCsvBody[i][j+1]));
+                                String s = tempCsvBody[i][j+1].substring(0,1);
+                                if(s == '2'){
+                                    tempAsset.put(importApiList[j], stringToDate(tempCsvBody[i][j+1]));
+                                }
+                                
                             }
                         } else if (queryAssetFieldResult.getType() == Schema.DisplayType.Boolean) {
                             if (tempCsvBody[i][j+1] != '') {
@@ -1391,11 +1376,11 @@
                 ApexPages.Message errorMessage = new ApexPages.Message(ApexPages.severity.INFO, importSuccessfulMsg);
                 ApexPages.addMessage(errorMessage);
             }
-        } catch (Exception e) {
-            System.debug('1234 ' + e);
-            ApexPages.Message errorMessage = new ApexPages.Message(ApexPages.severity.ERROR, '瀵煎叆杩囩▼鍑虹幇閿欒锛屽鍏ユ枃浠朵腑鍙兘瀛樺湪Fieldset涓笉瀛樺湪鐨勫垪鍚嶏紝璇锋鏌SV鏂囦欢銆�');
-            ApexPages.addMessage(errorMessage);
-        }
+        // } catch (Exception e) {
+        //     System.debug('1234 ' + e);
+        //     ApexPages.Message errorMessage = new ApexPages.Message(ApexPages.severity.ERROR, '瀵煎叆杩囩▼鍑虹幇閿欒锛屽鍏ユ枃浠朵腑鍙兘瀛樺湪Fieldset涓笉瀛樺湪鐨勫垪鍚嶏紝璇锋鏌SV鏂囦欢銆�');
+        //     ApexPages.addMessage(errorMessage);
+        // }
 
     }
 
diff --git a/force-app/main/default/classes/ConsumTrialPDFController.cls b/force-app/main/default/classes/ConsumTrialPDFController.cls
index d605b5e..ef43365 100644
--- a/force-app/main/default/classes/ConsumTrialPDFController.cls
+++ b/force-app/main/default/classes/ConsumTrialPDFController.cls
@@ -224,7 +224,7 @@
     }
 
     public static string GetImageBase64(string id){
-        List<ContentVersion> version = [select VersionData from ContentVersion where ContentDocumentId =: id];
+        List<ContentVersion> version = [select VersionData from ContentVersion where Id =: id];
         // List<Attachment> atts = [SELECT Id, IsDeleted, ParentId, Name, IsPrivate, ContentType, BodyLength, Body, OwnerId, CreatedDate, CreatedById, LastModifiedDate, LastModifiedById, SystemModstamp, Description FROM Attachment where id=:id];
         if (version.size()==0) {
             return null;
diff --git a/force-app/main/default/classes/GuaranteePeriodAlterationController.cls b/force-app/main/default/classes/GuaranteePeriodAlterationController.cls
index 6b3029d..0ccf576 100644
--- a/force-app/main/default/classes/GuaranteePeriodAlterationController.cls
+++ b/force-app/main/default/classes/GuaranteePeriodAlterationController.cls
@@ -48,7 +48,7 @@
     public String Id  { get; set; }
     public Boolean isShow { get; set; }
     public List<Attachment> attachments { get; set; }
-	public List<ContentDocument> contents { get; set; }
+	public List<ContentDocument> contents { get; set; }//update by liwentao 鏇存柊lightning闄勪欢涓婁紶
     //鍒嗛〉鍔熻兘
     public Integer pageLimit{get;set;}
     public String soql {get;set;}
@@ -66,14 +66,18 @@
         pageLimit = Integer.valueOf(System.Label.orderdetPageLimitsize);
 
         attachments = new List<Attachment>();
-        List<ContentDocumentLink> cdlList = [SELECT ContentDocumentId
-                                                   FROM ContentDocumentLink
-                                                   WHERE LinkedEntityId = :Id];
-        List<ID> fileIDs = new List<ID>();
-        for (ContentDocumentLink docLink : cdlList) {
-            fileIDs.add(docLink.ContentDocumentId);
+        //update 鏉庢枃娑� 2023/07/13 鏇存柊lightning闄勪欢涓婁紶 start
+        if(String.isNotBlank(Id)){
+            List<ContentDocumentLink> cdlList = [SELECT ContentDocumentId
+                                                       FROM ContentDocumentLink
+                                                       WHERE LinkedEntityId = :Id];
+            List<ID> fileIDs = new List<ID>();
+            for (ContentDocumentLink docLink : cdlList) {
+                fileIDs.add(docLink.ContentDocumentId);
+            }
+            contents=[SELECT Title,OwnerId,ContentModifiedDate from ContentDocument WHERE id IN :fileIDs];
         }
-        contents=[SELECT Title,OwnerId,ContentModifiedDate from ContentDocument WHERE id IN :fileIDs];
+        //update 鏉庢枃娑� 2023/07/13 鏇存柊lightning闄勪欢涓婁紶 end
     }
 
     // 鐢婚潰鍒濆鍖�
@@ -189,14 +193,14 @@
         }
         if (String.isNotBlank(Statu_AchievementsId)) {
             statu_AchievementId = Statu_AchievementsId;
-        }  else {
+        }  else if(String.isNotBlank(ambc.GpaaStatu_Achievements__c)) {
             statu_AchievementId = ambc.GpaaStatu_Achievements__c;
+        } else{
+            statu_AchievementId='';
         }
-        statu_AchievementId='';
         String soql = 'select Id,name,SerialNumber,Asset_situation__c,Order_No__c,Account.Name,Status,Installation_Site__c,CurrentContract__c,guarantee_period__c,RepairQuantity__c from Asset where Backorder__c = \'' + statu_AchievementId +'\'';
         soql += ' AND AssetMark__c != \'鑰楁潗\'';
         if(!String.isBlank(text1)){
-
                 soql += ' AND ('+ text1 +' like \'%' + String.escapeSingleQuotes(val1.replaceAll('%', '\\%')) + '%\' )';
         }
         soql += ' limit 200';
@@ -260,13 +264,15 @@
         ref.setRedirect(true);
         return ref;
     }
+    //update 鏉庢枃娑� 2023/07/13 鏇存柊lightning闄勪欢涓婁紶 start
     //璺宠浆鍒颁笂浼犻檮浠堕〉闈ightning
     public PageReference uploadingAttachmentLightning(){
         //PageReference ref = new Pagereference('/p/attach/NoteAttach?pid=' + Id +'&retURL=%2Fapex/AssetGuaranteePeriodAlteration?Id='+Id);
-        PageReference ref = new Pagereference('/lightning/n/lightning?objectApiName&context=RECORD_DETAIL&backgroundContext=%2Flightning%2Fr%2FAssetGuaranteePeriodAlteration__c%2F'+Id+'%2Fedit%3F0.source%3DalohaHeader&0.recordId='+Id+'');
+        PageReference ref = new Pagereference('/lightning/n/LexUploadPage?0.recordId='+Id+'');
         ref.setRedirect(true);
         return ref;
     }
+    //update 鏉庢枃娑� 2023/07/13 鏇存柊lightning闄勪欢涓婁紶 start
     //鏌ユ壘"淇濇湁璁惧"鏄惁鍚湁"QIS"鍜�"淇悊"鍜�"淇濇湁璁惧鐨勪繚淇湡闄愬彉鏇磋繃"
     public Boolean find_QIS_Repair(List<String> assetIdList) {
 
@@ -311,7 +317,7 @@
         GuaranteePeriodAlterationApplication__c  agAlteration = new GuaranteePeriodAlterationApplication__c();
         agAlteration.Id = Id;
         attachments = seekAttachment();
-        if (ambc.ChangeReason__c == '闆嗕腑閲囪喘,鏈垎閰嶅埌鍖婚櫌' && attachments.size() == 0) {
+        if (ambc.ChangeReason__c == '闆嗕腑閲囪喘,鏈垎閰嶅埌鍖婚櫌' && contents.size() == 0) {
             ApexPages.addmessage(new ApexPages.message(ApexPages.severity.Error, '璇蜂笂浼犳爣涔�')); 
             return null;
         }  
diff --git a/force-app/main/default/classes/InsReportPDFOuterController.cls b/force-app/main/default/classes/InsReportPDFOuterController.cls
index 6cd918f..36c1fb9 100644
--- a/force-app/main/default/classes/InsReportPDFOuterController.cls
+++ b/force-app/main/default/classes/InsReportPDFOuterController.cls
@@ -96,7 +96,7 @@
         PageReference pageRef = new PageReference(pdfPageURL);
         ContentVersion version = new ContentVersion();
         if (!Test.isRunningTest()) {
-            version.VersionData = pageRef.getContent();
+            version.VersionData = pageRef.getContentAsPDF();
         } else {
             version.VersionData = EncodingUtil.base64Decode('test');
         }
diff --git a/force-app/main/default/classes/InventoryResultRecordController.cls b/force-app/main/default/classes/InventoryResultRecordController.cls
index 71c2103..78797f3 100644
--- a/force-app/main/default/classes/InventoryResultRecordController.cls
+++ b/force-app/main/default/classes/InventoryResultRecordController.cls
@@ -1,16 +1,4 @@
-/*
- * @Description: 
- * @version: 
- * @Author: chen jing wu
- * @Date: 2023-07-12 11:08:28
- * @LastEditors: chen jing wu
- * @LastEditTime: 2023-08-08 18:43:40
- */
 public with sharing class InventoryResultRecordController {
-    // 鎸夐挳鍖哄煙
-    public Boolean inventoryBlueFlag {get; private set;}  // 鏌ョ湅鐩樼偣钃濊壊鎸夐挳Flag
-    public Boolean rentBlueFlag {get; private set;}  // 鏌ョ湅澶囧搧钃濊壊鎸夐挳Flag
-    public Boolean consumBlueFlag {get; private set;}  // 鏌ョ湅鑰楁潗鐩樼偣钃濊壊鎸夐挳Flag
     // 妫�绱㈠尯鍩�
     public String fixtureModelNo {get; set;}  // 澶囧搧閰嶅鏄庣粏鍨嬪彿 Fixture_Model_No__c
     public String assetStatus {get; set;}  // 澶囧搧鐘舵�� Asset_Status__c
@@ -45,6 +33,8 @@
     private String mainAstQR = '';
     public boolean doneFlg {get; set;}
     public boolean canDoFlg {get; set;}
+    public List<AggregateResult> idListBean = new List<AggregateResult>();
+    public List<AggregateResult> cidListBean = new List<AggregateResult>();
 
     public List<SelectOption> assetStatusOptionList {
         get {
@@ -63,13 +53,6 @@
             selectOptions.add(new SelectOption('鑰楁潗', '鑰楁潗'));
             return selectOptions;
         }
-    }
-
-    // 鍒濆鍖栨寜閽鑹�
-    public void initSearchButtonColor() {
-        inventoryBlueFlag = true;
-        rentBlueFlag = false;
-        consumBlueFlag = false;
     }
 
     // 鎵�鍦ㄥ湴鍖�(鏈儴)PlickList
@@ -168,7 +151,6 @@
 
     // 鐢婚潰鍒濆鍖�
     public void init() {
-        initSearchButtonColor();
         angecylookrole = false;
         bpPankuiYing = NONE;
         ifInternalAsset = NONE;
@@ -255,13 +237,15 @@
                         inventoryHeader = ih;
                         canDoFlg = canDoFlg || !System.Approval.isLocked(inventoryHeader.Id);
 
-                        List<AggregateResult> fixAssetList = [
+                        idListBean = [
                                 Select Internal_Asset_Flg__c fix, Asset_Status__c status, sum(toAbandon_amount__c) abAmount, sum(Amount__c) amount, sum(Inventory_Count__c) acAmount
                                 From Inventory_Detail__c//20210525 you 1650
                                 Where Inventory_Header__c = :inventoryHeader.Id AND Asset_Status__c <> '涓㈠け鍊熷嚭鏄庣粏' AND Asset_Status__c <> '涓㈠け璋冩嫧鏄庣粏'
                                 group by Internal_Asset_Flg__c, Asset_Status__c];
-                        unfixAssetMap = getInitData(fixAssetList, 'unfix');
-                        fixAssetMap = getInitData(fixAssetList, 'fix');
+                        //20230506  sx DB202303526794銆愮郴缁熻皟鏌ャ�戝鍝佷腑蹇冪洏鐐圭郴缁熻皟鏌� start
+                        // unfixAssetMap = getInitData(aBean, 'unfix');
+                        // fixAssetMap = getInitData(aBean, 'fix');
+                        //20230506  sx DB202303526794銆愮郴缁熻皟鏌ャ�戝鍝佷腑蹇冪洏鐐圭郴缁熻皟鏌� end
                     }
                 }
                 else{
@@ -278,13 +262,15 @@
                     else{
                         consumInventoryHeader = ih;
                         canDoFlg = canDoFlg || !System.Approval.isLocked(consumInventoryHeader.Id);
-                        List<AggregateResult> consumAssetList = [
+                        cidListBean = [
                                 Select Internal_Asset_Flg__c fix, Asset_Status__c status, sum(toAbandon_amount__c) abAmount, sum(Amount__c) amount, sum(Inventory_Count__c) acAmount
                                 From Consum_Inventory_Detail__c
                                 Where Inventory_Header__c = :consumInventoryHeader.Id
                                 AND Asset_Status__c != '宸叉秷鑰楁槑缁�'
                                 group by Internal_Asset_Flg__c, Asset_Status__c];
-                        consumAssetMap = getInitData(consumAssetList, 'consum');
+                        //20230506  sx DB202303526794銆愮郴缁熻皟鏌ャ�戝鍝佷腑蹇冪洏鐐圭郴缁熻皟鏌� start
+                        //consumAssetMap = getInitData(aBean, 'consum');
+                        //20230506  sx DB202303526794銆愮郴缁熻皟鏌ャ�戝鍝佷腑蹇冪洏鐐圭郴缁熻皟鏌� end
                     }
                 }
                 else{
@@ -292,13 +278,60 @@
                 }
             }
         }
-        //System.assertEquals('qyj','unfixAssetMap'+unfixAssetMap);
-        //System.assertEquals('qyj','fixAssetMap'+fixAssetMap);
-        //System.assertEquals('qyj','consumAssetMap'+consumAssetMap);
-        sumRateMap = getRateMap(unfixAssetMap.get('allsum')+fixAssetMap.get('allsum')+consumAssetMap.get('allsum')
-                                , unfixAssetMap.get('dsum')+fixAssetMap.get('dsum')+consumAssetMap.get('dsum')
-                                , unfixAssetMap.get('acsum')+fixAssetMap.get('acsum')+consumAssetMap.get('acsum'));
+
+        //sumRateMap = getRateMap(unfixAssetMap.get('allsum')+fixAssetMap.get('allsum')+consumAssetMap.get('allsum')
+        //                        , unfixAssetMap.get('dsum')+fixAssetMap.get('dsum')+consumAssetMap.get('dsum')
+        //                        , unfixAssetMap.get('acsum')+fixAssetMap.get('acsum')+consumAssetMap.get('acsum'));
     }
+
+    //20230506  sx DB202303526794銆愮郴缁熻皟鏌ャ�戝鍝佷腑蹇冪洏鐐圭郴缁熻皟鏌� start
+    public void showResult() {
+        unfixAssetMap = getInitData(new List<AggregateResult>(), 'unfix');
+        fixAssetMap = getInitData(new List<AggregateResult>(), 'fix');
+        consumAssetMap = getInitData(new List<AggregateResult>(), 'consum');
+        List<Inventory_Header__c> ihList = [
+            select Id, Inventory_Status__c, Name, Internal_asset_location__c, Inventory_Start_Date__c, Fixture_Header__c
+              from Inventory_Header__c
+             where Inventory_Status__c <> '宸叉壒鍑�' and Internal_asset_location__c =:bieCunFangDi
+                and Inventory_Start_Date__c = LAST_N_DAYS:30
+                ORDER BY Fixture_Header__c NULLS FIRST];
+        System.debug('20230710 00:28--ihList--' + ihList);
+        for(Inventory_Header__c ih:ihList){
+            if(String.isBlank(ih.Fixture_Header__c)) {
+                if( String.isNotBlank(ih.Inventory_Status__c)){
+                    if (ih.Inventory_Status__c == '澶勭悊涓�') {
+                        ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO, '鐩樼偣澶勭悊涓紝璇风瓑寰匓atch澶勭悊瀹屾瘯銆侭atch澶勭悊瀹屾瘯鍚庝細鍙戦�佸鐞嗙粨鏋滈偖浠躲��'));
+                    }
+                    else{
+                         unfixAssetMap = getInitData(idListBean, 'unfix');
+                         fixAssetMap = getInitData(idListBean, 'fix');
+                    }
+                }
+                else{
+                    unfixAssetMap = getInitData(new List<AggregateResult>(), 'unfix');
+                    fixAssetMap = getInitData(new List<AggregateResult>(), 'fix');
+                }
+            }
+            else {
+                if (String.isNotBlank(ih.Inventory_Status__c)) {
+                    if (ih.Inventory_Status__c == '澶勭悊涓�') {
+                        ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO, '鑰楁潗鐩樼偣澶勭悊涓紝璇风瓑寰匓atch澶勭悊瀹屾瘯銆侭atch澶勭悊瀹屾瘯鍚庝細鍙戦�佸鐞嗙粨鏋滈偖浠躲��'));
+                    }
+                    else{
+                        consumAssetMap = getInitData(cidListBean, 'consum');
+                    }
+                }
+                else{
+                    consumAssetMap = getInitData(new List<AggregateResult>(), 'consum');
+                }
+            }
+        }
+
+        sumRateMap = getRateMap(unfixAssetMap.get('allsum')+fixAssetMap.get('allsum')+consumAssetMap.get('allsum')
+                                 , unfixAssetMap.get('dsum')+fixAssetMap.get('dsum')+consumAssetMap.get('dsum')
+                                 , unfixAssetMap.get('acsum')+fixAssetMap.get('acsum')+consumAssetMap.get('acsum'));
+    }
+    //20230506  sx DB202303526794銆愮郴缁熻皟鏌ャ�戝鍝佷腑蹇冪洏鐐圭郴缁熻皟鏌� end
 
     //public void checkQRCode() {
     //    String soqlWhere = '';
@@ -617,6 +650,12 @@
                 Decimal newCount_int = newCount == null ? 0 : newCount;
                 if (oldCount_int == newCount_int && !((oldCount == null && newCount == 0) || (oldCount == 0 && newCount == null))) continue;
 
+                // 銆怓Y24澶у強宸ㄥぇ璇鹃銆戝寳浜柊娉曡椤圭洰瀵瑰簲 DB202307428742 20230804 by lc Start
+                if (String.isBlank(idc.Appearance_Check_Result__c) || String.isBlank(idc.Package_Check_Result__c)) {
+                    ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR, '澶栬鍜屽寘瑁呭繀椤绘湁鍊硷紝璇烽噸鏂扮‘璁ゃ��'));
+                    return;
+                }
+                // 銆怓Y24澶у強宸ㄥぇ璇鹃銆戝寳浜柊娉曡椤圭洰瀵瑰簲 DB202307428742 20230804 by lc End
                 if (idc.Inventory_Count__c != null) {
                     idc.InventoryPerson1__c = inventoryUser1 == NONE ? null : inventoryUser1;
                     idc.InventoryPerson2__c = inventoryUser2 == NONE ? null : inventoryUser2;
@@ -640,6 +679,12 @@
                 Decimal newCount_int = newCount == null ? 0 : newCount;
                 if (oldCount_int == newCount_int && !((oldCount == null && newCount == 0) || (oldCount == 0 && newCount == null))) continue;
 
+                // 銆怓Y24澶у強宸ㄥぇ璇鹃銆戝寳浜柊娉曡椤圭洰瀵瑰簲 DB202307428742 20230804 by lc Start
+                if (String.isBlank(idc.Expiration_Check_Result__c) || String.isBlank(idc.Appearance_Check_Result__c) || String.isBlank(idc.Package_Check_Result__c)) {
+                    ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR, '鏁堟湡銆佸瑙傚拰鍖呰蹇呴』鏈夊�硷紝璇烽噸鏂扮‘璁ゃ��'));
+                    return;
+                }
+                // 銆怓Y24澶у強宸ㄥぇ璇鹃銆戝寳浜柊娉曡椤圭洰瀵瑰簲 DB202307428742 20230804 by lc End
                 if (idc.Inventory_Count__c != null) {
                     idc.InventoryPerson1__c = inventoryUser1 == NONE ? null : inventoryUser1;
                     idc.InventoryPerson2__c = inventoryUser2 == NONE ? null : inventoryUser2;
@@ -677,9 +722,8 @@
         } catch (exception e) {
             doneFlg = false;
             System.debug(e.getStackTraceString());
-            ApexPages.addmessage(new ApexPages.message(ApexPages.severity.Error,e.getMessage()));
+            ApexPages.addmessage(new ApexPages.message(ApexPages.severity.Error,e.getDmlMessage(0)));
         }
-
     }
 
     public void searchBtn() {
@@ -734,12 +778,18 @@
             }
             String soqlAsset = 'select '
                                 + 'Id, Asset__r.SerialNumber, Inventory_Count__c, Asset__c, Asset__r.Manage_type__c, '
-                                + ' Fixture_Model_No__c, Fixture_QRCode__c, Asset_Status__c, WH_location__c, Amount__c, Salesdepartment__c,Asset__r.Product2.Packing_list_Fixture_F__c';
+                                + ' Fixture_Model_No__c, Fixture_QRCode__c, Asset_Status__c, WH_location__c, Amount__c, Salesdepartment__c,Asset__r.Product2.Packing_list_Fixture_F__c'
+                                // 銆怓Y24澶у強宸ㄥぇ璇鹃銆戝寳浜柊娉曡椤圭洰瀵瑰簲 DB202307428742 20230801 by lc Start
+                                + ', Appearance_Check_Result__c, Package_Check_Result__c';
+                                // 銆怓Y24澶у強宸ㄥぇ璇鹃銆戝寳浜柊娉曡椤圭洰瀵瑰簲 DB202307428742 20230801 by lc End
             if(isConsum){
                 soqlAsset += ', Barcode__c, Asset__r.Product_Serial_No__c ';
                 //add by rentx 20210823 start 鑰楁潗鐩樼偣鏃惰褰昪ode ---- 
                 soqlAsset += ', HCCodes__c ';
                 //add by rentx 20210823 end 鑰楁潗鐩樼偣鏃惰褰昪ode 
+                // 銆怓Y24澶у強宸ㄥぇ璇鹃銆戝寳浜柊娉曡椤圭洰瀵瑰簲 DB202307428742 20230801 by lc Start
+                soqlAsset += ', Expiration_Check_Result__c, Consumable_Guaranteen_end__c ';
+                // 銆怓Y24澶у強宸ㄥぇ璇鹃銆戝寳浜柊娉曡椤圭洰瀵瑰簲 DB202307428742 20230801 by lc End
                 soqlAsset += 'from Consum_Inventory_Detail__c ';
             }
             else{
@@ -844,13 +894,15 @@
                     allHCCodelist.add(idl.HCCodes__c);
                     //add by rentx 20210901 end
                 }
-                List<AggregateResult> consumAssetList = [
-                        Select Internal_Asset_Flg__c fix, Asset_Status__c status, sum(toAbandon_amount__c) abAmount, sum(Amount__c) amount, sum(Inventory_Count__c) acAmount
-                        From Consum_Inventory_Detail__c
-                        Where Inventory_Header__c = : ih.Id
-                        and Asset_Status__c != '宸叉秷鑰楁槑缁�'
-                        group by Internal_Asset_Flg__c, Asset_Status__c];
-                consumAssetMap = getInitData(consumAssetList, 'consum');
+                //20230506  sx DB202303526794銆愮郴缁熻皟鏌ャ�戝鍝佷腑蹇冪洏鐐圭郴缁熻皟鏌� start
+                // List<AggregateResult> consumAssetList = [
+                //         Select Internal_Asset_Flg__c fix, Asset_Status__c status, sum(toAbandon_amount__c) abAmount, sum(Amount__c) amount, sum(Inventory_Count__c) acAmount
+                //         From Consum_Inventory_Detail__c
+                //         Where Inventory_Header__c = : ih.Id
+                //         and Asset_Status__c != '宸叉秷鑰楁槑缁�'
+                //         group by Internal_Asset_Flg__c, Asset_Status__c];
+                // consumAssetMap = getInitData(consumAssetList, 'consum');
+                //20230506  sx DB202303526794銆愮郴缁熻皟鏌ャ�戝鍝佷腑蹇冪洏鐐圭郴缁熻皟鏌� end
             }
             else{
                 inventoryDetailList = Database.query(soqlAsset);
@@ -865,21 +917,23 @@
                     oldCountMap.put(idl.Id, idl.Inventory_Count__c);
                 }
 
-                List<AggregateResult> fixAssetList = [
+                //20230506  sx DB202303526794銆愮郴缁熻皟鏌ャ�戝鍝佷腑蹇冪洏鐐圭郴缁熻皟鏌� start
+                /*List<AggregateResult> fixAssetList = [
                         Select Internal_Asset_Flg__c fix, Asset_Status__c status, sum(toAbandon_amount__c) abAmount, sum(Amount__c) amount, sum(Inventory_Count__c) acAmount
                         From Inventory_Detail__c //20210525 you 1650
                         Where Inventory_Header__c = :ih.Id AND Asset_Status__c <> '涓㈠け鍊熷嚭鏄庣粏' AND Asset_Status__c <> '涓㈠け璋冩嫧鏄庣粏'
                         group by Internal_Asset_Flg__c, Asset_Status__c];
                 unfixAssetMap = getInitData(fixAssetList, 'unfix');
-                fixAssetMap = getInitData(fixAssetList, 'fix');
+                fixAssetMap = getInitData(fixAssetList, 'fix');*/
+                //20230506  sx DB202303526794銆愮郴缁熻皟鏌ャ�戝鍝佷腑蹇冪洏鐐圭郴缁熻皟鏌� end
             }
         }
-        sumRateMap = getRateMap(unfixAssetMap.get('allsum')+fixAssetMap.get('allsum')+consumAssetMap.get('allsum')
+
+        //20230506  sx DB202303526794銆愮郴缁熻皟鏌ャ�戝鍝佷腑蹇冪洏鐐圭郴缁熻皟鏌� start
+        /*sumRateMap = getRateMap(unfixAssetMap.get('allsum')+fixAssetMap.get('allsum')+consumAssetMap.get('allsum')
         , unfixAssetMap.get('dsum')+fixAssetMap.get('dsum')+consumAssetMap.get('dsum')
-        , unfixAssetMap.get('acsum')+fixAssetMap.get('acsum')+consumAssetMap.get('acsum'));
-        //System.assertEquals('qyj',''+sumRateMap);
-
-
+        , unfixAssetMap.get('acsum')+fixAssetMap.get('acsum')+consumAssetMap.get('acsum'));*/
+        //20230506  sx DB202303526794銆愮郴缁熻皟鏌ャ�戝鍝佷腑蹇冪洏鐐圭郴缁熻皟鏌� end
 
         List<Inventory_User_Permission__mdt> usrList = [select InventoryUser__c from Inventory_User_Permission__mdt where Label = :bieCunFangDi];
         Id[] usrArray = usrList[0].InventoryUser__c.split(',');
@@ -1077,8 +1131,4 @@
         }
         return rateMap;
     }
-    @TestVisible private static void test() {
-        Integer i = 0;
-        
-      }
 }
\ No newline at end of file
diff --git a/force-app/main/default/classes/MaintenanceProductDataController.cls b/force-app/main/default/classes/MaintenanceProductDataController.cls
index f75b185..bec2b53 100644
--- a/force-app/main/default/classes/MaintenanceProductDataController.cls
+++ b/force-app/main/default/classes/MaintenanceProductDataController.cls
@@ -1104,7 +1104,7 @@
         // PageReference ref = new Pagereference('/p/attach/NoteAttach?pid='+id+'&retURL=%2F' + '/apex/MaintenanceProductData?id=' +id);
         // ref.setRedirect(true);
         // return ref;
-        PageReference ref = new Pagereference('/lightning/n/lightning?backgroundContext=%2Flightning%2Fr%2FMaintenance_Product_Data__c%2F'+id+'%2Fedit%3Fcount%3D1&0.recordId='+id+'');
+        PageReference ref = new Pagereference('/lightning/n/LexUploadPage?0.recordId='+id+'');
         ref.setRedirect(true);
         return ref;
     }
diff --git a/force-app/main/default/classes/MaintenanceProductDataController.cls-meta.xml b/force-app/main/default/classes/MaintenanceProductDataController.cls-meta.xml
index db9bf8c..f928c8e 100644
--- a/force-app/main/default/classes/MaintenanceProductDataController.cls-meta.xml
+++ b/force-app/main/default/classes/MaintenanceProductDataController.cls-meta.xml
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
-    <apiVersion>48.0</apiVersion>
+    <apiVersion>53.0</apiVersion>
     <status>Active</status>
 </ApexClass>
diff --git a/force-app/main/default/classes/MonthlyReportController.cls b/force-app/main/default/classes/MonthlyReportController.cls
index 9b43a8e..3cee8e6 100644
--- a/force-app/main/default/classes/MonthlyReportController.cls
+++ b/force-app/main/default/classes/MonthlyReportController.cls
@@ -59,10 +59,18 @@
         update report;
         return null;
        } catch (Exception e) {
-        String eMessage = e.getMessage();
-        Integer left = eMessage.indexOf(',') + 1;
-        Integer right = eMessage.length();
-        return eMessage.substring(left,right);
+        if (e.getMessage().contains(',')) {
+            System.debug(LoggingLevel.INFO, '*** e: ' + e);
+            String exc = '' + e.getMessage();
+            Integer left = exc.indexOf(':') + 1;
+            Integer right = exc.lastIndexOf(':');
+            String str = exc.substring(left,right);
+            left = str.indexOf(',') +  1;
+            String newStr = str.substring(left);
+            return newStr;
+        }else {
+            return e.getMessage();   
+        }
        }
     }
 
diff --git a/force-app/main/default/classes/NFM401Controller.cls b/force-app/main/default/classes/NFM401Controller.cls
index e4e7d33..d8f2760 100644
--- a/force-app/main/default/classes/NFM401Controller.cls
+++ b/force-app/main/default/classes/NFM401Controller.cls
@@ -583,27 +583,35 @@
                 //     }
                 // }
                 List<ContentDocumentLink> attList = rAMap.get(rr.id);
+                
+
                 if (attList != null && attList.size() > 0) {
+                    List<Id> idList = new List<Id>();
                     for(ContentDocumentLink rpd : attList){
-                        ContentVersion version = [
-                            select
-                            Title,
-                            VersionData,
-                            ContentSize
-                            from ContentVersion where ContentDocumentId =: rpd.ContentDocumentId
-                        ];
+                        idList.add(rpd.ContentDocumentId);
+                    }
+                    List<ContentVersion> version = [
+                        select
+                        Title,
+                        VersionData,
+                        ContentSize
+                        from ContentVersion where ContentDocumentId in: idList
+                    ];
+                    Integer i = 0;
+                    for(ContentDocumentLink rpd : attList){
                         //2020-11-05  濡傛灉闄勪欢澶у皬瓒呰繃1.5mb 鍙戦�侀偖浠舵彁绀�
-                        if (version.ContentSize > 1048576) {
-                            sendemail(version,'淇悊'+rr.Name);
+                        if (version[i].ContentSize > 1048576) {
+                            sendemail(version[i],'淇悊'+rr.Name);
                         }else{
                             Attachment_element Attachmentdet = new Attachment_element();
                             RepairRequest.ATTACHMENT.add(Attachmentdet);
-                            Attachmentdet.FILE_DATA = EncodingUtil.base64Encode(version.VersionData);
+                            Attachmentdet.FILE_DATA = EncodingUtil.base64Encode(version[i].VersionData);
                             Attachmentdet.ATTACHMENT_FIELD_NAME = 'COMPLAINTS_DOCUMENT_ATTACHMENT';
-                            Attachmentdet.FILE_NAME = version.Title;
+                            Attachmentdet.FILE_NAME = version[i].Title;
                             Attachmentdet.GLOBAL_ATTRIBUTE1 = 'COMPLAINT';
                             Attachmentdet.RECORD_INSERTED_DATE = NFMUtil.formatDate2Str(Date.today());
                         }
+                        i++;
                     }
                 }
             }
diff --git a/force-app/main/default/classes/NFM609FiledDownloadBatch.cls b/force-app/main/default/classes/NFM609FiledDownloadBatch.cls
index 0a9062b..b9e50a8 100644
--- a/force-app/main/default/classes/NFM609FiledDownloadBatch.cls
+++ b/force-app/main/default/classes/NFM609FiledDownloadBatch.cls
@@ -110,12 +110,14 @@
             if (ContentLength < 12582912) {
                 Blob bodyAsBlob = response.getBodyAsBlob();
                 version.VersionData = bodyAsBlob;
+                version.PathOnClient = attachmentName + '.txt';
                 // atta.Body = bodyAsBlob;
                 result.add(version);
             } else {
                 // atta.Name = '鏂囦欢澶у皬瓒呰繃12M,璇峰湪鏂版湇鍔$郴缁熸煡鐪�';
                 // atta.Body = Blob.valueOf('鏂囦欢澶у皬瓒呰繃12M');
                 version.Title = '鏂囦欢澶у皬瓒呰繃12M,璇峰湪鏂版湇鍔$郴缁熸煡鐪�';
+                version.PathOnClient = '鏂囦欢澶у皬瓒呰繃12M,璇峰湪鏂版湇鍔$郴缁熸煡鐪�.txt';
                 version.VersionData = Blob.valueOf('鏂囦欢澶у皬瓒呰繃12M');
                 result.add(version);
             }
diff --git a/force-app/main/default/classes/NotetoPdfHandler.cls b/force-app/main/default/classes/NotetoPdfHandler.cls
index 2c54f00..909df59 100644
--- a/force-app/main/default/classes/NotetoPdfHandler.cls
+++ b/force-app/main/default/classes/NotetoPdfHandler.cls
@@ -16,13 +16,19 @@
     }
     @TestVisible
     protected override void afterInsert() {
+        Set<Id> ids = new Set<Id>();
+        for (ContentDocumentLink link : newList) {
+            ids.add(link.ContentDocumentId);
+        }
+        List<ContentVersion> version = [select Id from ContentVersion where ContentDocumentId in: ids and FileType = 'SNOTE'];
+        if(version != null){
+            NotetoPdf();
+        }
         // 淇悊ID
-	    NotetoPdf();
-	    // NoteMail();
+	    NoteMail();
     }
 	// 淇悊鍜孮IS鏂板缓澶囨敞鏃讹紝鐢熸垚瀵瑰簲鐨凱DF
     private void NotetoPdf() {
-    	StaticParameter.AttachmentTrigger = false;
 	    List<String> Rlist = new List<String>();
 	    // QisID
 	    for (ContentDocumentLink link : newList) {
@@ -63,7 +69,7 @@
         //     }
         // }
         // List<Attachment> NtList = [Select id,ParentId,Name,Body FROM Attachment where Id in : Rlist];
-        List<ContentVersion> verList = [select Id,Title,VersionData,ContentDocumentId from ContentVersion where ContentDocumentId in: Rlist];
+        List<ContentVersion> verList = [select Id,TextPreview,Title,VersionData,ContentDocumentId from ContentVersion where ContentDocumentId in: Rlist];
         Map<Id,Repair__c> updateRprMap = new Map<Id,Repair__c>();
         Map<Id,QIS_Report__c> updateQisMap = new Map<Id,QIS_Report__c>();
         for (Repair__c re :[select id,Name,SerialNumber__c,Delivered_Product__r.Name,HP_Name__c
@@ -96,7 +102,12 @@
             String accountname = updateRprMap.containsKey(link.LinkedEntityId)? updateRprMap.get(link.LinkedEntityId).HP_Name__c : updateQisMap.get(link.LinkedEntityId).Hospital__r.Name;
             String title = '';
             String body = '';
-            title = '銆愪慨鐞�/QIS銆戯細' + titName + '宸叉柊澧炴枃浠讹紝璇锋煡鐪�';
+            if(version.TextPreview != null){
+                title = '銆愪慨鐞�/QIS銆戯細' + titName + '宸叉柊澧炲娉紝璇锋煡鐪�';
+            }else{
+                title = '銆愪慨鐞�/QIS銆戯細' + titName + '宸叉柊澧炴枃浠讹紝璇锋煡鐪�';
+            }
+            
             body += '鐢ㄦ埛鍚嶏細' + accountname;
             body += '<br/>';
             body += '浜у搧鍚嶇О/鍨嬪彿 锛�' + prname;
diff --git a/force-app/main/default/classes/OPDNoReportApplicationController.cls b/force-app/main/default/classes/OPDNoReportApplicationController.cls
index 52fd00d..3ad8e23 100644
--- a/force-app/main/default/classes/OPDNoReportApplicationController.cls
+++ b/force-app/main/default/classes/OPDNoReportApplicationController.cls
@@ -53,7 +53,7 @@
         for (ContentDocumentLink docLink : cdlList) {
         fileIDs.add(docLink.ContentDocumentId);
         }
-        attachmentinfo=[SELECT Title,OwnerId,ContentModifiedDate from ContentDocument WHERE id IN :fileIDs];
+        attachmentinfo=[SELECT Id,Title,OwnerId from ContentDocument WHERE Id IN :fileIDs];
 
 
         // attachmentinfo = [SELECT Id, Name,OwnerId FROM Attachment WHERE  parentid = :paramId];
@@ -127,7 +127,7 @@
             opdPlan.noReportStatus__c = '宸蹭繚瀛�';
             System.debug('opdPlan2:'+opdPlan);
             update opdPlan;
-            ApexPages.addmessage(new ApexPages.message(ApexPages.severity.CONFIRM, '淇濆瓨瀹屾瘯锛�'));
+            // ApexPages.addmessage(new ApexPages.message(ApexPages.severity.CONFIRM, '淇濆瓨瀹屾瘯锛�'));
             saveFlag = true;
         }catch(exception e){
             ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR, e.getMessage()));
diff --git a/force-app/main/default/classes/OpportunityLightingButtonController.cls b/force-app/main/default/classes/OpportunityLightingButtonController.cls
index c6848a8..aef53cc 100644
--- a/force-app/main/default/classes/OpportunityLightingButtonController.cls
+++ b/force-app/main/default/classes/OpportunityLightingButtonController.cls
@@ -4,9 +4,24 @@
  * @Author: chen jing wu
  * @Date: 2023-04-12 11:16:07
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-06-29 16:53:17
+ * @LastEditTime: 2023-09-08 16:57:51
  */
 public with sharing class OpportunityLightingButtonController {
+    @AuraEnabled
+    public static List<Lost_cancel_report__c> queryForEditLostButton(String recordId){
+        List<Lost_cancel_report__c> res = new List<Lost_cancel_report__c>();
+        try {
+            List<Lost_cancel_report__c> re = [
+                select id,
+                Report_Status__c,
+                RecordTypeId 
+                from Lost_cancel_report__c where RecordTypeId != '01210000000R4hHAAS' and Opportunity__c =: recordId];
+            res = re;
+        } catch (Exception e) {
+            throw new AuraHandledException(e.getMessage());
+        }
+        return res;
+    }
     @AuraEnabled
     public static InitData initForPredictedDateChangeButton(String recordId){
         InitData res = new InitData();
@@ -45,9 +60,21 @@
                 IF_Submit__c ,
                 Trade__c,
                 Is_Corrosion__c,
-                If_Authorizing_Lock__c 
+                If_Authorizing_Lock__c,
+                AccDealerBlacklist__c,
+                Agency1__c,
+                Agency2__c,
+                Hospital__c,
+                OwnerId,
+                Sales_assistant_name_text__c
                 from Opportunity where Id =: recordId 
             ];
+            res.AccDealerBlacklist = opportunity.AccDealerBlacklist__c;
+            res.angency1 = opportunity.Agency1__c;
+            res.angency2 = opportunity.Agency2__c;
+            res.accname = opportunity.Hospital__c;
+            res.ownerids = opportunity.OwnerId;
+            res.ddid = opportunity.Sales_assistant_name_text__c;
             res.agency1Id = opportunity.Agency1_ID_18__c;
             res.stageName = opportunity.StageName;
             res.sapSendOK = opportunity.SAP_Send_OK__c;
@@ -264,6 +291,36 @@
         return res;
     }
     @AuraEnabled
+    public static InitData initForLexQuoteEntryNewbotton(String recordId){
+        InitData res = new InitData();
+        try {
+            Opportunity opportunity = [
+                select
+                Agency_Is_Delete__c,
+                Account_Is_Active__c,
+                Hospital_Is_Active__c,
+                RecordTypeId,
+                Estimation_Decision__c
+                from Opportunity where Id =: recordId
+            ];
+            res.agencyIsDeletec = opportunity.Agency_Is_Delete__c;
+            res.accountIsActivec = opportunity.Account_Is_Active__c;
+            res.hospitalIsActivec = opportunity.Hospital_Is_Active__c;
+            res.recordTypeId = opportunity.RecordTypeId;
+            res.estimationDecisionc = opportunity.Estimation_Decision__c;
+        } catch (Exception e) {
+            throw new AuraHandledException(e.getMessage());
+        }
+        return res;
+    }
+    @AuraEnabled
+    public static Boolean describeSObjectCommon (String objname)
+    {
+        Schema.DescribeSobjectResult schemaMap = Schema.describeSObjects(new String[]{objname})[0];
+        return schemaMap.isCreateable();
+    }
+	
+    @AuraEnabled
     public static InitData initForQuotationRequestButton(String recordId){
         InitData res = new InitData();
         try {
@@ -431,7 +488,7 @@
             res.accountId = opp.AccountId;
             res.accountName = acc.Name;
             res.name = opp.Name;
-            res.recordTypeId = Schema.SObjectType.Task.getRecordTypeInfosByName().get(lexLightingButtonConstant.RECORD_TYPE_NAME_BY_INQUIRY_FOLLOW_UP).getRecordTypeId();
+            // res.recordTypeId = Schema.SObjectType.Task.getRecordTypeInfosByName().get(lexLightingButtonConstant.RECORD_TYPE_NAME_BY_INQUIRY_FOLLOW_UP).getRecordTypeId();
         } catch (Exception e) {
             throw new AuraHandledException(e.getMessage());
         }
@@ -901,5 +958,29 @@
         public String oppForecastStatus;
         @AuraEnabled
         public String oppId;
+        @AuraEnabled
+        public String AccDealerBlacklist;
+        @AuraEnabled
+        public String angency1;
+        @AuraEnabled
+        public String angency2;
+        @AuraEnabled
+        public String accname;
+        @AuraEnabled
+        public String ownerids;
+        @AuraEnabled
+        public String ddid;
+        @AuraEnabled
+        public String agencyIsDeletec;
+        @AuraEnabled
+        public String accountIsActivec;
+        @AuraEnabled
+        public String hospitalIsActivec;
+        @AuraEnabled
+        public Boolean estimationDecisionc;
+        @AuraEnabled
+        public String reportStatus;
+        @AuraEnabled
+        public String reportId;
     }
 }
\ No newline at end of file
diff --git a/force-app/main/default/classes/OpportunityWebService.cls b/force-app/main/default/classes/OpportunityWebService.cls
index 7eb86b8..d4ae939 100644
--- a/force-app/main/default/classes/OpportunityWebService.cls
+++ b/force-app/main/default/classes/OpportunityWebService.cls
@@ -43,6 +43,7 @@
         this.parameter = 'value';
     }
 
+    @AuraEnabled
     WebService static String oppCheck(String oppid, String saveFlg) {
 
         Map<Id, String> proMap= new Map<Id, String>();
@@ -69,6 +70,7 @@
     }
 
     // LHJ 闃胯タ璧涘妫�鏌� Start
+    @AuraEnabled
     WebService  static String checkDangerItem(String agency1) {
         //娌℃湁鍗卞寲鍝佽瘉鐓х殑鎻愮ず淇℃伅
         String licenseStr = '绗竴缁忛攢鍟嗘病鏈夋湁鏁堢殑鍗遍櫓鍖栧鍝佺粡钀ヨ鍙瘉銆�';
@@ -391,6 +393,7 @@
         }
 
     }
+    @AuraEnabled
     WebService static String updReg(String  oppid) {
 
         List<OpportunityLineItem> updList = new List<OpportunityLineItem>();
@@ -419,6 +422,7 @@
 
     //璐告槗鍚堣 20230307 you start
     //钀ヤ笟鎷︽埅鎻愰啋
+    @AuraEnabled
     WebService static Boolean accSendEmail(String  AccDealerBlacklist,String accname,String angency1,String angency2,String ownerids,String ddid,String oppid) {
       //鍙戦�侀偖浠�
         List<Messaging.SingleEmailMessage> sendMails = new List<Messaging.SingleEmailMessage>();
@@ -502,6 +506,7 @@
     //鏈嶅姟鎷︽埅鎻愰啋 
     //銆愭柊寤鸿浠枫�戞鏌ョ偣浠呴�氱煡鍚堝悓缁� sendalert=Main_Con 
     //銆愭姤浠稤ecide銆戞鏌ョ偣閭欢閫氱煡浜哄憳锛氬悎鍚岀粍銆丗SE棰嗗銆佹湇鍔″姪鐞�(鏍囩) sendalert=decide_con
+    @AuraEnabled
     WebService static Boolean accSendEmailFW(String  AccDealerBlacklist,String accname,String angency,String mcid,String sendalert,String[] FSEStr) {
       //鍙戦�侀偖浠�
         List<Messaging.SingleEmailMessage> sendMails = new List<Messaging.SingleEmailMessage>();
@@ -532,20 +537,33 @@
         //    }
         //}
 
-        //MailsList.add('youchang@prec-tech.com');
+        MailsList.add('youchang@prec-tech.com');
+        //MailsList.add('Xingyu_Liu@olympus.com.cn');
+
 
         system.debug('111===:'+MailsList);
         if (MailsList!=null&&MailsList.size()>0){
             String title = '';
             String body = '';
-            title = '鍖婚櫌/缁忛攢鍟嗘秹鍙婇粦鍚嶅崟';
+            //title = '鍖婚櫌/缁忛攢鍟嗘秹鍙婇粦鍚嶅崟';
             String accname1 = accname==null ? '' :accname;
             String angency1 = angency==null ? '' :angency;
+            //if(AccDealerBlacklist=='1' || AccDealerBlacklist=='intercept'){
+            //    body += '榛戝悕鍗曠殑瀹㈡埛涓猴細' + accname1 + '<br/>';
+            //    body += '榛戝悕鍗曠殑缁忛攢鍟嗕负锛�' + angency1 + '<br/>';
+            //}
             if(AccDealerBlacklist=='1' || AccDealerBlacklist=='intercept'){
+                title = accname1+'娑夊強榛戝悕鍗�';
+                body += '榛戝悕鍗曠殑瀹㈡埛涓猴細' + accname1 + '<br/>';
+            }else if(AccDealerBlacklist=='2'){
+                title = angency1+'娑夊強榛戝悕鍗�';
+                body += '榛戝悕鍗曠殑缁忛攢鍟嗕负锛�' + angency1 + '<br/>';
+            }else if(AccDealerBlacklist=='12'){
+                title = accname1+'鍜�'+angency1+'娑夊強榛戝悕鍗�';
                 body += '榛戝悕鍗曠殑瀹㈡埛涓猴細' + accname1 + '<br/>';
                 body += '榛戝悕鍗曠殑缁忛攢鍟嗕负锛�' + angency1 + '<br/>';
             }
-           
+            
             body += '<a href="' + System.Label.Environment_Url + mcid + '">'
                     + System.Label.Environment_Url+ mcid +'</a><br/>'; 
             body += '璋㈣阿锛�';
diff --git a/force-app/main/default/classes/ReportController.cls b/force-app/main/default/classes/ReportController.cls
index 518ec43..8535a6b 100644
--- a/force-app/main/default/classes/ReportController.cls
+++ b/force-app/main/default/classes/ReportController.cls
@@ -70,7 +70,7 @@
             res.profileId = UserInfo.getProfileId();
             res.userId = UserInfo.getUserId();
             res.luShengId = getUserIdByName(LightingButtonConstant.LU_SHENG_NAME);
-            res.huDiAnId = getUserIdByName(LightingButtonConstant.HU_DI_AN_NAME);
+            // res.huDiAnId = getUserIdByName(LightingButtonConstant.HU_DI_AN_NAME);
             res.systemProfileId = getProfileIdByName(LightingButtonConstant.SYSTEM_PROFILE_NAME);
             System.debug(LoggingLevel.INFO, '*** res: ' + res);
         } catch (Exception e) {
@@ -294,13 +294,17 @@
             return null;
         } catch (Exception e) {
             if (e.getMessage().contains(',')) {
-                String eMessage = e.getMessage();
-                Integer left = eMessage.indexOf(',');
-                Integer right = eMessage.length();
-                return eMessage.substring(left,right);
+                System.debug(LoggingLevel.INFO, '*** e: ' + e);
+                String exc = '' + e.getMessage();
+                Integer left = exc.indexOf(':') + 1;
+                Integer right = exc.lastIndexOf(':');
+                String str = exc.substring(left,right);
+                left = str.indexOf(',') +  1;
+                String newStr = str.substring(left);
+                return newStr;
             }else {
                 return e.getMessage();   
-            }  
+            }
         }
     }
     //OPDtoSIS鎿嶄綔鏇存柊鐩稿簲鏁版嵁
@@ -314,13 +318,17 @@
             return null;
         } catch (Exception e) {
             if (e.getMessage().contains(',')) {
-                String eMessage = e.getMessage();
-                Integer left = eMessage.indexOf(',');
-                Integer right = eMessage.length();
-                return eMessage.substring(left,right);
+                System.debug(LoggingLevel.INFO, '*** e: ' + e);
+                String exc = '' + e.getMessage();
+                Integer left = exc.indexOf(':') + 1;
+                Integer right = exc.lastIndexOf(':');
+                String str = exc.substring(left,right);
+                left = str.indexOf(',') +  1;
+                String newStr = str.substring(left);
+                return newStr;
             }else {
                 return e.getMessage();   
-            }  
+            }
         }
     }
 
@@ -337,13 +345,17 @@
             return null;
         } catch (Exception e) {
             if (e.getMessage().contains(',')) {
-                String eMessage = e.getMessage();
-                Integer left = eMessage.indexOf(',');
-                Integer right = eMessage.length();
-                return eMessage.substring(left,right);
+                System.debug(LoggingLevel.INFO, '*** e: ' + e);
+                String exc = '' + e.getMessage();
+                Integer left = exc.indexOf(':') + 1;
+                Integer right = exc.lastIndexOf(':');
+                String str = exc.substring(left,right);
+                left = str.indexOf(',') +  1;
+                String newStr = str.substring(left);
+                return newStr;
             }else {
                 return e.getMessage();   
-            }  
+            }
         }
     }
     //瀹屾瘯鎿嶄綔鏇存柊鐩稿簲鏁版嵁
@@ -358,13 +370,17 @@
             return null;
         } catch (Exception e) {
             if (e.getMessage().contains(',')) {
-                String eMessage = e.getMessage();
-                Integer left = eMessage.indexOf(',');
-                Integer right = eMessage.length();
-                return eMessage.substring(left,right);
+                System.debug(LoggingLevel.INFO, '*** e: ' + e);
+                String exc = '' + e.getMessage();
+                Integer left = exc.indexOf(':') + 1;
+                Integer right = exc.lastIndexOf(':');
+                String str = exc.substring(left,right);
+                left = str.indexOf(',') +  1;
+                String newStr = str.substring(left);
+                return newStr;
             }else {
                 return e.getMessage();   
-            }  
+            }
         }
     }
     //OCSM瑕佹姤鍛婃搷浣滄洿鏂扮浉搴旀暟鎹�
@@ -378,13 +394,17 @@
             return null;
         } catch (Exception e) {
             if (e.getMessage().contains(',')) {
-                String eMessage = e.getMessage();
-                Integer left = eMessage.indexOf(',');
-                Integer right = eMessage.length();
-                return eMessage.substring(left,right);
+                System.debug(LoggingLevel.INFO, '*** e: ' + e);
+                String exc = '' + e.getMessage();
+                Integer left = exc.indexOf(':') + 1;
+                Integer right = exc.lastIndexOf(':');
+                String str = exc.substring(left,right);
+                left = str.indexOf(',') +  1;
+                String newStr = str.substring(left);
+                return newStr;
             }else {
                 return e.getMessage();   
-            }  
+            }
         }
     }
 
@@ -399,13 +419,17 @@
             return null;
         } catch (Exception e) {
             if (e.getMessage().contains(',')) {
-                String eMessage = e.getMessage();
-                Integer left = eMessage.indexOf(',');
-                Integer right = eMessage.length();
-                return eMessage.substring(left,right);
+                System.debug(LoggingLevel.INFO, '*** e: ' + e);
+                String exc = '' + e.getMessage();
+                Integer left = exc.indexOf(':') + 1;
+                Integer right = exc.lastIndexOf(':');
+                String str = exc.substring(left,right);
+                left = str.indexOf(',') +  1;
+                String newStr = str.substring(left);
+                return newStr;
             }else {
                 return e.getMessage();   
-            }  
+            }
         }
     }
     //DispatchOCSMQARA鎿嶄綔鏇存柊鐩稿簲鏁版嵁
@@ -419,13 +443,17 @@
             return null;
         } catch (Exception e) {
             if (e.getMessage().contains(',')) {
-                String eMessage = e.getMessage();
-                Integer left = eMessage.indexOf(',');
-                Integer right = eMessage.length();
-                return eMessage.substring(left,right);
+                System.debug(LoggingLevel.INFO, '*** e: ' + e);
+                String exc = '' + e.getMessage();
+                Integer left = exc.indexOf(':') + 1;
+                Integer right = exc.lastIndexOf(':');
+                String str = exc.substring(left,right);
+                left = str.indexOf(',') +  1;
+                String newStr = str.substring(left);
+                return newStr;
             }else {
                 return e.getMessage();   
-            }  
+            }
         }
     }
     //OCSM涓嶈鎶ュ憡鎿嶄綔鏇存柊鐩稿簲鏁版嵁
@@ -439,13 +467,17 @@
             return null;
         } catch (Exception e) {
             if (e.getMessage().contains(',')) {
-                String eMessage = e.getMessage();
-                Integer left = eMessage.indexOf(',');
-                Integer right = eMessage.length();
-                return eMessage.substring(left,right);
+                System.debug(LoggingLevel.INFO, '*** e: ' + e);
+                String exc = '' + e.getMessage();
+                Integer left = exc.indexOf(':') + 1;
+                Integer right = exc.lastIndexOf(':');
+                String str = exc.substring(left,right);
+                left = str.indexOf(',') +  1;
+                String newStr = str.substring(left);
+                return newStr;
             }else {
                 return e.getMessage();   
-            }  
+            }
         }
     }
 
@@ -460,13 +492,17 @@
             return null;
         } catch (Exception e) {
             if (e.getMessage().contains(',')) {
-                String eMessage = e.getMessage();
-                Integer left = eMessage.indexOf(',');
-                Integer right = eMessage.length();
-                return eMessage.substring(left,right);
+                System.debug(LoggingLevel.INFO, '*** e: ' + e);
+                String exc = '' + e.getMessage();
+                Integer left = exc.indexOf(':') + 1;
+                Integer right = exc.lastIndexOf(':');
+                String str = exc.substring(left,right);
+                left = str.indexOf(',') +  1;
+                String newStr = str.substring(left);
+                return newStr;
             }else {
                 return e.getMessage();   
-            }  
+            }
         }
     }
     
@@ -501,13 +537,17 @@
             return null;
         } catch (Exception e) {
             if (e.getMessage().contains(',')) {
-                String eMessage = e.getMessage();
-                Integer left = eMessage.indexOf(',');
-                Integer right = eMessage.length();
-                return eMessage.substring(left,right);
+                System.debug(LoggingLevel.INFO, '*** e: ' + e);
+                String exc = '' + e.getMessage();
+                Integer left = exc.indexOf(':') + 1;
+                Integer right = exc.lastIndexOf(':');
+                String str = exc.substring(left,right);
+                left = str.indexOf(',') +  1;
+                String newStr = str.substring(left);
+                return newStr;
             }else {
                 return e.getMessage();   
-            }  
+            }
         }
     }
 
@@ -550,13 +590,17 @@
             return null;
         } catch (Exception e) {
             if (e.getMessage().contains(',')) {
-                String eMessage = e.getMessage();
-                Integer left = eMessage.indexOf(',');
-                Integer right = eMessage.length();
-                return eMessage.substring(left,right);
+                System.debug(LoggingLevel.INFO, '*** e: ' + e);
+                String exc = '' + e.getMessage();
+                Integer left = exc.indexOf(':') + 1;
+                Integer right = exc.lastIndexOf(':');
+                String str = exc.substring(left,right);
+                left = str.indexOf(',') +  1;
+                String newStr = str.substring(left);
+                return newStr;
             }else {
                 return e.getMessage();   
-            }  
+            }
         }
     }
     //VOC鍥炵瓟鏇存柊鐩稿簲鏁版嵁
@@ -568,17 +612,33 @@
             User[] records = [SELECT  Job_Category__c FROM User WHERE Id = :createdById];
             List<String> userAccess = new List<String>();
             if (records[0].Job_Category__c == LightingButtonConstant.TYPE_OF_SALES_SERVICES) {
-            userAccess.add(rac.JingliApprovalManager__c + LightingButtonConstant.USER_ACCESS_READ);
-            userAccess.add(rac.BuchangApprovalManager__c + LightingButtonConstant.USER_ACCESS_READ);
-            rac.VOC_CreatedBy_jingli__c = rac.JingliApprovalManager__c;
-            rac.VOC_CreatedBy_buzhang__c = rac.BuchangApprovalManager__c;
-            } else {
-            userAccess.add(rac.SalesManager__c + LightingButtonConstant.USER_ACCESS_READ);
-            userAccess.add(rac.BuchangApprovalManagerSales__c + LightingButtonConstant.USER_ACCESS_READ);
-            rac.VOC_CreatedBy_jingli__c = rac.SalesManager__c;
-            rac.VOC_CreatedBy_buzhang__c = rac.BuchangApprovalManagerSales__c;
+            if(rac.JingliApprovalManager__c != null){
+                userAccess.add(rac.JingliApprovalManager__c + LightingButtonConstant.USER_ACCESS_READ);
+                rac.VOC_CreatedBy_jingli__c = rac.JingliApprovalManager__c;
             }
-            userAccess.add(rac.ZongjianApprovalManager__c + LightingButtonConstant.USER_ACCESS_READ);
+            if(rac.BuchangApprovalManager__c != null){
+                userAccess.add(rac.BuchangApprovalManager__c + LightingButtonConstant.USER_ACCESS_READ);
+                rac.VOC_CreatedBy_buzhang__c = rac.BuchangApprovalManager__c;
+            }
+            
+            
+            } else {
+                if(rac.SalesManager__c != null){
+                    userAccess.add(rac.SalesManager__c + LightingButtonConstant.USER_ACCESS_READ);
+                    rac.VOC_CreatedBy_jingli__c = rac.SalesManager__c;
+                }
+                if(rac.BuchangApprovalManagerSales__c != null){
+                    userAccess.add(rac.BuchangApprovalManagerSales__c + LightingButtonConstant.USER_ACCESS_READ);
+                    rac.VOC_CreatedBy_buzhang__c = rac.BuchangApprovalManagerSales__c;
+                }
+           
+            
+            
+            
+            }
+            if(rac.ZongjianApprovalManager__c != null){
+                userAccess.add(rac.ZongjianApprovalManager__c + LightingButtonConstant.USER_ACCESS_READ);
+            }
             String rtn = ControllerUtil.setSObjectShare(LightingButtonConstant.SOBJECT_NAME_OF_REPORT_SHARE,LightingButtonConstant.SOBJECT_NAME_OF_VOC_SHARE,recordId,userAccess,rac.Owner.Id);
             if (rtn != LightingButtonConstant.OK) {
             return rtn;
@@ -590,13 +650,17 @@
             return null;
         } catch (Exception e) {
             if (e.getMessage().contains(',')) {
-                String eMessage = e.getMessage();
-                Integer left = eMessage.indexOf(',');
-                Integer right = eMessage.length();
-                return eMessage.substring(left,right);
+                System.debug(LoggingLevel.INFO, '*** e: ' + e);
+                String exc = '' + e.getMessage();
+                Integer left = exc.indexOf(':') + 1;
+                Integer right = exc.lastIndexOf(':');
+                String str = exc.substring(left,right);
+                left = str.indexOf(',') +  1;
+                String newStr = str.substring(left);
+                return newStr;
             }else {
                 return e.getMessage();   
-            }  
+            }
         }
     }
     //VOC鍒ゅ畾鏇存柊鐩稿簲鏁版嵁
@@ -608,26 +672,34 @@
                 // VOC瀵惧繙鑰呫伄绲岀悊閮ㄩ暦绶忕洠銈掕ō瀹�
                 User[] records = [SELECT Id, Job_Category__c, JingliApprovalManager__c, SalesManager__c, BuchangApprovalManager__c, BuchangApprovalManagerSales__c, ZongjianApprovalManager__c FROM User WHERE Id = :personId];
                 if (records[0].job_Category__c == LightingButtonConstant.TYPE_OF_SALES_SERVICES) {
-                    rac.VOC_jingli__c = records[0].JingliApprovalManager__c == null ? '' : records[0].JingliApprovalManager__c;
-                    rac.VOC_buzhang__c = records[0].BuchangApprovalManager__c == null ? '' : records[0].BuchangApprovalManager__c;
+                    rac.VOC_jingli__c = records[0].JingliApprovalManager__c == null ? null : records[0].JingliApprovalManager__c;
+                    rac.VOC_buzhang__c = records[0].BuchangApprovalManager__c == null ? null : records[0].BuchangApprovalManager__c;
                 } else {
-                    rac.VOC_jingli__c = records[0].SalesManager__c == null ? '' : records[0].SalesManager__c;
-                    rac.VOC_buzhang__c = records[0].BuchangApprovalManagerSales__c == null ? '' : records[0].BuchangApprovalManagerSales__c;
+                    rac.VOC_jingli__c = records[0].SalesManager__c == null ? null : records[0].SalesManager__c;
+                    rac.VOC_buzhang__c = records[0].BuchangApprovalManagerSales__c == null ? null : records[0].BuchangApprovalManagerSales__c;
                 }
-                rac.VOC_zongjian__c = records[0].ZongjianApprovalManager__c == null ? '' : records[0].ZongjianApprovalManager__c;
+                rac.VOC_zongjian__c = records[0].ZongjianApprovalManager__c == null ? null : records[0].ZongjianApprovalManager__c;
                 rac.Status__c = LightingButtonConstant.STATUS_VOC_CHECK_OVER;
                 rac.VOC_Finish__c = false;
                 Date serverTimestamp = Date.today();
                 rac.VOC_share_date__c = serverTimestamp;
                 // share
                 List<String> userAccess = new List<String>();
-                userAccess.add(rac.Responsible_Person__c + LightingButtonConstant.USER_ACCESS_EDIT);
-                userAccess.add(rac.VOC_jingli__c + LightingButtonConstant.USER_ACCESS_READ);
-                userAccess.add(rac.VOC_buzhang__c + LightingButtonConstant.USER_ACCESS_READ);
-                userAccess.add(rac.VOC_zongjian__c + LightingButtonConstant.USER_ACCESS_READ);
+                if(rac.Responsible_Person__c != null){
+                    userAccess.add(rac.Responsible_Person__c + LightingButtonConstant.USER_ACCESS_EDIT);
+                }
+                if(rac.VOC_jingli__c != null){
+                    userAccess.add(rac.VOC_jingli__c + LightingButtonConstant.USER_ACCESS_READ);
+                }
+                if(rac.VOC_buzhang__c != null){
+                    userAccess.add(rac.VOC_buzhang__c + LightingButtonConstant.USER_ACCESS_READ);
+                }
+                if(rac.VOC_zongjian__c != null){
+                    userAccess.add(rac.VOC_zongjian__c + LightingButtonConstant.USER_ACCESS_READ);
+                }
                 String rtn = ControllerUtil.setSObjectShare(LightingButtonConstant.SOBJECT_NAME_OF_REPORT_SHARE,LightingButtonConstant.SOBJECT_NAME_OF_VOC_SHARE,recordId,userAccess,rac.Owner.Id);
                 if (rtn != LightingButtonConstant.OK) {
-                    return null;
+                    return rtn;
                 }
                 update rac;
                 } else {
@@ -652,13 +724,17 @@
             return null;
         } catch (Exception e) {
             if (e.getMessage().contains(',')) {
-                String eMessage = e.getMessage();
-                Integer left = eMessage.indexOf(',');
-                Integer right = eMessage.length();
-                return eMessage.substring(left,right);
+                System.debug(LoggingLevel.INFO, '*** e: ' + e);
+                String exc = '' + e.getMessage();
+                Integer left = exc.indexOf(':') + 1;
+                Integer right = exc.lastIndexOf(':');
+                String str = exc.substring(left,right);
+                left = str.indexOf(',') +  1;
+                String newStr = str.substring(left);
+                return newStr;
             }else {
                 return e.getMessage();   
-            }  
+            }
         }
     }
     @AuraEnabled
diff --git a/force-app/main/default/classes/Xin_SearchVisitorPlace.cls b/force-app/main/default/classes/Xin_SearchVisitorPlace.cls
index 70e366c..6af633e 100644
--- a/force-app/main/default/classes/Xin_SearchVisitorPlace.cls
+++ b/force-app/main/default/classes/Xin_SearchVisitorPlace.cls
@@ -47,7 +47,7 @@
         Map<Id, Account> accMap = new Map<Id, Account>((List<Account>) Database.query(queryString));
 	    if (accMap.size() <= 50) {
 	        // 銇曘倝銇渷鍗樹綅銇儑銉笺偪銈掓绱�
-	        Map<Id, Account> stateDepartmentMap = ControllerUtil.selectDepartByHospitalState(nameCondition, reporterState, 51 - accMap.size());
+	        Map<Id, Account> stateDepartmentMap = selectDepartByHospitalState(nameCondition, reporterState, 51 - accMap.size());
 	        if (stateDepartmentMap.size() > 0) {
 	            for (Id accId : stateDepartmentMap.keySet()) {
 	                if (!accMap.containsKey(accId)) {
@@ -60,4 +60,23 @@
 	    this.results.sort();                                    // order by Name
 	    //this.results = Database.Query('select id, Name from Account where Name like ' + nameCondition + ' AND Id NOT IN (select AccountId From AccountShare where UserOrGroupId = \'00510000000gaBh\' and RowCause = \'ImplicitParent\' ) order by Name limit 30');
 	}
+	// 鐪佸崢浣� or 鍏ㄥ浗銇ê鐧傜銈掓绱紝鏈�鍒濄伄50浠�
+    public Map<Id, Account> selectDepartByHospitalState(String nameCondition, String reporterState, Integer limitCnt) {
+        User loginUser = [Select Id, State_Hospital__c, Job_Category__c from User where Id =: UserInfo.getUserId()];
+        String queryString = 'select Id, Name, Department_Class__c, Department_Class__r.Name, Hospital__c, Hospital__r.Name from Account where' + nameCondition + ' Hospital__r.RecordType.DeveloperName = \'HP\' and Is_Active__c <> \'鐒″姽\'';
+        if (loginUser.Job_Category__c == 'GI甯傚満'
+                || loginUser.Job_Category__c == 'SP甯傚満'
+                || loginUser.Job_Category__c == '鏈嶅姟鏈儴'
+                || loginUser.Job_Category__c == '鍩硅'
+        ) {
+            // 鍏ㄥ浗绡勫洸銆併仾銇倐銇椼仾銇�
+        } else {
+            // 鐪佸崢浣嶃伄鏉′欢杩藉姞
+            system.debug('selectDepartByHospitalState reporterState=' + reporterState);
+            queryString += ' and Parent.Parent.State_Master__r.Name = :reporterState';
+        }
+        queryString += ' order by Name limit :limitCnt';
+        system.debug('selectDepartByHospitalState queryString=' + queryString);
+        return new Map<Id, Account>((List<Account>) Database.query(queryString));
+    }
 }
\ No newline at end of file
diff --git a/force-app/main/default/classes/eSignAgencyConfirmPageController.cls b/force-app/main/default/classes/eSignAgencyConfirmPageController.cls
index 4d43060..26b60a4 100644
--- a/force-app/main/default/classes/eSignAgencyConfirmPageController.cls
+++ b/force-app/main/default/classes/eSignAgencyConfirmPageController.cls
@@ -313,4 +313,71 @@
         delete con;
     }
     //鏂囦欢鍒犻櫎鍔熻兘  绮剧悽鎶�鏈� thh 2021-09-26 end
+    //鑾峰彇AWS淇℃伅 zhj 2023-01-03 start
+    @AuraEnabled
+    public static ControllerResponse getAWS(String objectName){
+        ControllerResponse res = new ControllerResponse();
+        try{
+            res.Data = JSON.serialize(PIHelper.getPIIntegrationInfo(objectName));
+            res.IsSuccess = true;
+        }catch(Exception e){
+            res.IsSuccess = false;
+            res.Message = e.getMessage();
+        }
+        return res;
+    }
+    //鑾峰彇AWS淇℃伅 zhj 2023-01-03 end
+
+    //AWS鏀归�犳枃浠朵笂浼� deloitte zhj 2023-01-03 start
+    @AuraEnabled
+    public static Id saveFile(String fileName,String key,String transId,String parentId){
+        FileAddress__c file = new FileAddress__c();
+        PIHelper.PIIntegration pI=PIHelper.getPIIntegrationInfo('Document');
+        // 鍘婚櫎filename閲屽緱鈥�&鈥� bysushanhu 20220414
+        fileName = fileName.remove('&');
+        file.DownloadLink__c =pI.undeleteUrl+key+'&fileName='+fileName;
+        file.FileName__c =fileName;
+        file.ViewLink__c =pI.queryUrl+key;
+        file.ParentRecordId__c =parentId;
+        file.AWS_File_Key__c = key;
+        insert file;
+        return file.Id;
+    }
+    //AWS鏀归�犳枃浠朵笂浼� deloitte zhj 2023-01-03 end
+
+    //鑾峰彇涓婁紶鏂囦欢 deloitte zhj 2023-01-03 start
+    public static List<FileAddress__c> getFileds(String parentId){
+        // SWAG-C9S9P6 2022-05-25 ssm start
+        // 鏂囦欢鍦板潃閲屽鍔犳嫑鏍囬」鐩笓鐢ㄥ瓧娈碉紙淇℃伅Id銆侀」鐩樁娈点�佹洿鏂版棩鏈燂級
+        if(String.isNotBlank(parentId)){
+            return [SELECT Id,ParentRecordId__c, FileName__c,DownloadLink__c,FileAddress__c.ViewLink__c,AWS_File_Key__c  //deloitte zhj 棰勮/涓嬭浇 鍔爐oken 2022/12/01
+                    // SWAG-C9S9P6 鏂板瀛楁 start
+                    , InfoId__c, InfoType__c, subInfoType__c, UpdateDate__c 
+                    // SWAG-C9S9P6 鏂板瀛楁 end
+                    FROM FileAddress__c where ParentRecordId__c=:parentId order by createddate desc];
+        }
+        return [SELECT Id, ParentRecordId__c,FileName__c,DownloadLink__c,FileAddress__c.ViewLink__c,AWS_File_Key__c  //deloitte zhj 棰勮/涓嬭浇 鍔爐oken 2022/12/01
+                // SWAG-C9S9P6 鏂板瀛楁 start
+                , InfoId__c, InfoType__c, subInfoType__c, UpdateDate__c 
+                // SWAG-C9S9P6 鏂板瀛楁 end
+                FROM FileAddress__c order by createddate desc limit 100];
+        // SWAG-C9S9P6 2022-05-25 ssm end
+    }
+    //鑾峰彇涓婁紶鏂囦欢 deloitte zhj 2023-01-03 end
+
+    //AWS鏂囦欢鍒犻櫎鍔熻兘  deloitte zhj 2022-01-03 start
+    @AuraEnabled
+    public static String deleteFile(String fileId){
+        System.debug('fileId = ' + fileId);
+        List<FileAddress__c> fList = [select id,AWS_File_Key__c from FileAddress__c where id =:fileId];
+        String awsKey = '';
+        if(fList != null && fList.size() > 0){
+            awsKey = fList[0].AWS_File_Key__c;
+            delete fList;
+        }
+        return awsKey;
+    }
+    //AWS鏂囦欢鍒犻櫎鍔熻兘  deloitte zhj 2022-01-03 end
+
+    
 }
\ No newline at end of file
diff --git a/force-app/main/default/classes/eSignAgencyPageController.cls b/force-app/main/default/classes/eSignAgencyPageController.cls
index 1e143d1..0074daa 100644
--- a/force-app/main/default/classes/eSignAgencyPageController.cls
+++ b/force-app/main/default/classes/eSignAgencyPageController.cls
@@ -409,4 +409,70 @@
         // delete attachment;
     }
     //鏂囦欢鍒犻櫎鍔熻兘  绮剧悽鎶�鏈� thh 2021-09-26 end
+
+    //鑾峰彇AWS淇℃伅 zhj 2023-01-03 start
+    @AuraEnabled
+    public static ControllerResponse getAWS(String objectName){
+        ControllerResponse res = new ControllerResponse();
+        try{
+            res.Data = JSON.serialize(PIHelper.getPIIntegrationInfo(objectName));
+            res.IsSuccess = true;
+        }catch(Exception e){
+            res.IsSuccess = false;
+            res.Message = e.getMessage();
+        }
+        return res;
+    }
+    //鑾峰彇AWS淇℃伅 zhj 2023-01-03 end
+
+    //AWS鏀归�犳枃浠朵笂浼� deloitte zhj 2023-01-03 start
+    @AuraEnabled
+    public static Id saveFile(String fileName,String key,String transId,String parentId){
+        FileAddress__c file = new FileAddress__c();
+        PIHelper.PIIntegration pI=PIHelper.getPIIntegrationInfo('Document');
+        // 鍘婚櫎filename閲屽緱鈥�&鈥� bysushanhu 20220414
+        fileName = fileName.remove('&');
+        file.DownloadLink__c =pI.undeleteUrl+key+'&fileName='+fileName;
+        file.FileName__c =fileName;
+        file.ViewLink__c =pI.queryUrl+key;
+        file.ParentRecordId__c =parentId;
+        file.AWS_File_Key__c = key;
+        insert file;
+        return file.Id;
+    }
+    //AWS鏀归�犳枃浠朵笂浼� deloitte zhj 2023-01-03 end
+
+    //鑾峰彇涓婁紶鏂囦欢 deloitte zhj 2023-01-03 start
+    public static List<FileAddress__c> getFileds(String parentId){
+        // SWAG-C9S9P6 2022-05-25 ssm start
+        // 鏂囦欢鍦板潃閲屽鍔犳嫑鏍囬」鐩笓鐢ㄥ瓧娈碉紙淇℃伅Id銆侀」鐩樁娈点�佹洿鏂版棩鏈燂級
+        if(String.isNotBlank(parentId)){
+            return [SELECT Id,ParentRecordId__c, FileName__c,DownloadLink__c,FileAddress__c.ViewLink__c,AWS_File_Key__c  //deloitte zhj 棰勮/涓嬭浇 鍔爐oken 2022/12/01
+                    // SWAG-C9S9P6 鏂板瀛楁 start
+                    , InfoId__c, InfoType__c, subInfoType__c, UpdateDate__c 
+                    // SWAG-C9S9P6 鏂板瀛楁 end
+                    FROM FileAddress__c where ParentRecordId__c=:parentId order by createddate desc];
+        }
+        return [SELECT Id, ParentRecordId__c,FileName__c,DownloadLink__c,FileAddress__c.ViewLink__c,AWS_File_Key__c  //deloitte zhj 棰勮/涓嬭浇 鍔爐oken 2022/12/01
+                // SWAG-C9S9P6 鏂板瀛楁 start
+                , InfoId__c, InfoType__c, subInfoType__c, UpdateDate__c 
+                // SWAG-C9S9P6 鏂板瀛楁 end
+                FROM FileAddress__c order by createddate desc limit 100];
+        // SWAG-C9S9P6 2022-05-25 ssm end
+    }
+    //鑾峰彇涓婁紶鏂囦欢 deloitte zhj 2023-01-03 end
+
+    //AWS鏂囦欢鍒犻櫎鍔熻兘  deloitte zhj 2022-01-03 start
+    @AuraEnabled
+    public static String deleteFile(String fileId){
+        System.debug('fileId = ' + fileId);
+        List<FileAddress__c> fList = [select id,AWS_File_Key__c from FileAddress__c where id =:fileId];
+        String awsKey = '';
+        if(fList != null && fList.size() > 0){
+            awsKey = fList[0].AWS_File_Key__c;
+            delete fList;
+        }
+        return awsKey;
+    }
+    //AWS鏂囦欢鍒犻櫎鍔熻兘  deloitte zhj 2022-01-03 end
 }
\ No newline at end of file
diff --git a/force-app/main/default/classes/eSignHospitalConfirmController.cls b/force-app/main/default/classes/eSignHospitalConfirmController.cls
index 1693f12..ca3358a 100644
--- a/force-app/main/default/classes/eSignHospitalConfirmController.cls
+++ b/force-app/main/default/classes/eSignHospitalConfirmController.cls
@@ -263,4 +263,69 @@
         delete con;
     }
     //鏂囦欢鍒犻櫎鍔熻兘  绮剧悽鎶�鏈� thh 2021-09-26 end
+     //鑾峰彇AWS淇℃伅 zhj 2023-01-03 start
+     @AuraEnabled
+     public static ControllerResponse getAWS(String objectName){
+         ControllerResponse res = new ControllerResponse();
+         try{
+             res.Data = JSON.serialize(PIHelper.getPIIntegrationInfo(objectName));
+             res.IsSuccess = true;
+         }catch(Exception e){
+             res.IsSuccess = false;
+             res.Message = e.getMessage();
+         }
+         return res;
+     }
+     //鑾峰彇AWS淇℃伅 zhj 2023-01-03 end
+ 
+     //AWS鏀归�犳枃浠朵笂浼� deloitte zhj 2023-01-03 start
+     @AuraEnabled
+     public static Id saveFile(String fileName,String key,String transId,String parentId){
+         FileAddress__c file = new FileAddress__c();
+         PIHelper.PIIntegration pI=PIHelper.getPIIntegrationInfo('Document');
+         // 鍘婚櫎filename閲屽緱鈥�&鈥� bysushanhu 20220414
+         fileName = fileName.remove('&');
+         file.DownloadLink__c =pI.undeleteUrl+key+'&fileName='+fileName;
+         file.FileName__c =fileName;
+         file.ViewLink__c =pI.queryUrl+key;
+         file.ParentRecordId__c =parentId;
+         file.AWS_File_Key__c = key;
+         insert file;
+         return file.Id;
+     }
+     //AWS鏀归�犳枃浠朵笂浼� deloitte zhj 2023-01-03 end
+ 
+     //鑾峰彇涓婁紶鏂囦欢 deloitte zhj 2023-01-03 start
+     public static List<FileAddress__c> getFileds(String parentId){
+         // SWAG-C9S9P6 2022-05-25 ssm start
+         // 鏂囦欢鍦板潃閲屽鍔犳嫑鏍囬」鐩笓鐢ㄥ瓧娈碉紙淇℃伅Id銆侀」鐩樁娈点�佹洿鏂版棩鏈燂級
+         if(String.isNotBlank(parentId)){
+             return [SELECT Id,ParentRecordId__c, FileName__c,DownloadLink__c,FileAddress__c.ViewLink__c,AWS_File_Key__c  //deloitte zhj 棰勮/涓嬭浇 鍔爐oken 2022/12/01
+                     // SWAG-C9S9P6 鏂板瀛楁 start
+                     , InfoId__c, InfoType__c, subInfoType__c, UpdateDate__c 
+                     // SWAG-C9S9P6 鏂板瀛楁 end
+                     FROM FileAddress__c where ParentRecordId__c=:parentId order by createddate desc];
+         }
+         return [SELECT Id, ParentRecordId__c,FileName__c,DownloadLink__c,FileAddress__c.ViewLink__c,AWS_File_Key__c  //deloitte zhj 棰勮/涓嬭浇 鍔爐oken 2022/12/01
+                 // SWAG-C9S9P6 鏂板瀛楁 start
+                 , InfoId__c, InfoType__c, subInfoType__c, UpdateDate__c 
+                 // SWAG-C9S9P6 鏂板瀛楁 end
+                 FROM FileAddress__c order by createddate desc limit 100];
+         // SWAG-C9S9P6 2022-05-25 ssm end
+     }
+     //鑾峰彇涓婁紶鏂囦欢 deloitte zhj 2023-01-03 end
+ 
+     //AWS鏂囦欢鍒犻櫎鍔熻兘  deloitte zhj 2022-01-03 start
+     @AuraEnabled
+     public static String deleteFile(String fileId){
+         System.debug('fileId = ' + fileId);
+         List<FileAddress__c> fList = [select id,AWS_File_Key__c from FileAddress__c where id =:fileId];
+         String awsKey = '';
+         if(fList != null && fList.size() > 0){
+             awsKey = fList[0].AWS_File_Key__c;
+             delete fList;
+         }
+         return awsKey;
+     }
+     //AWS鏂囦欢鍒犻櫎鍔熻兘  deloitte zhj 2022-01-03 end
 }
\ No newline at end of file
diff --git a/force-app/main/default/classes/eSignHospitalPageController.cls b/force-app/main/default/classes/eSignHospitalPageController.cls
index 073e9c0..77d0e0d 100644
--- a/force-app/main/default/classes/eSignHospitalPageController.cls
+++ b/force-app/main/default/classes/eSignHospitalPageController.cls
@@ -317,4 +317,70 @@
         delete con;
     }
     //鏂囦欢鍒犻櫎鍔熻兘  绮剧悽鎶�鏈� thh 2021-09-26 end
+
+    //鑾峰彇AWS淇℃伅 zhj 2023-01-03 start
+    @AuraEnabled
+    public static ControllerResponse getAWS(String objectName){
+        ControllerResponse res = new ControllerResponse();
+        try{
+            res.Data = JSON.serialize(PIHelper.getPIIntegrationInfo(objectName));
+            res.IsSuccess = true;
+        }catch(Exception e){
+            res.IsSuccess = false;
+            res.Message = e.getMessage();
+        }
+        return res;
+    }
+    //鑾峰彇AWS淇℃伅 zhj 2023-01-03 end
+
+    //AWS鏀归�犳枃浠朵笂浼� deloitte zhj 2023-01-03 start
+    @AuraEnabled
+    public static Id saveFile(String fileName,String key,String transId,String parentId){
+        FileAddress__c file = new FileAddress__c();
+        PIHelper.PIIntegration pI=PIHelper.getPIIntegrationInfo('Document');
+        // 鍘婚櫎filename閲屽緱鈥�&鈥� bysushanhu 20220414
+        fileName = fileName.remove('&');
+        file.DownloadLink__c =pI.undeleteUrl+key+'&fileName='+fileName;
+        file.FileName__c =fileName;
+        file.ViewLink__c =pI.queryUrl+key;
+        file.ParentRecordId__c =parentId;
+        file.AWS_File_Key__c = key;
+        insert file;
+        return file.Id;
+    }
+    //AWS鏀归�犳枃浠朵笂浼� deloitte zhj 2023-01-03 end
+
+    //鑾峰彇涓婁紶鏂囦欢 deloitte zhj 2023-01-03 start
+    public static List<FileAddress__c> getFileds(String parentId){
+        // SWAG-C9S9P6 2022-05-25 ssm start
+        // 鏂囦欢鍦板潃閲屽鍔犳嫑鏍囬」鐩笓鐢ㄥ瓧娈碉紙淇℃伅Id銆侀」鐩樁娈点�佹洿鏂版棩鏈燂級
+        if(String.isNotBlank(parentId)){
+            return [SELECT Id,ParentRecordId__c, FileName__c,DownloadLink__c,FileAddress__c.ViewLink__c,AWS_File_Key__c  //deloitte zhj 棰勮/涓嬭浇 鍔爐oken 2022/12/01
+                    // SWAG-C9S9P6 鏂板瀛楁 start
+                    , InfoId__c, InfoType__c, subInfoType__c, UpdateDate__c 
+                    // SWAG-C9S9P6 鏂板瀛楁 end
+                    FROM FileAddress__c where ParentRecordId__c=:parentId order by createddate desc];
+        }
+        return [SELECT Id, ParentRecordId__c,FileName__c,DownloadLink__c,FileAddress__c.ViewLink__c,AWS_File_Key__c  //deloitte zhj 棰勮/涓嬭浇 鍔爐oken 2022/12/01
+                // SWAG-C9S9P6 鏂板瀛楁 start
+                , InfoId__c, InfoType__c, subInfoType__c, UpdateDate__c 
+                // SWAG-C9S9P6 鏂板瀛楁 end
+                FROM FileAddress__c order by createddate desc limit 100];
+        // SWAG-C9S9P6 2022-05-25 ssm end
+    }
+    //鑾峰彇涓婁紶鏂囦欢 deloitte zhj 2023-01-03 end
+
+    //AWS鏂囦欢鍒犻櫎鍔熻兘  deloitte zhj 2022-01-03 start
+    @AuraEnabled
+    public static String deleteFile(String fileId){
+        System.debug('fileId = ' + fileId);
+        List<FileAddress__c> fList = [select id,AWS_File_Key__c from FileAddress__c where id =:fileId];
+        String awsKey = '';
+        if(fList != null && fList.size() > 0){
+            awsKey = fList[0].AWS_File_Key__c;
+            delete fList;
+        }
+        return awsKey;
+    }
+    //AWS鏂囦欢鍒犻櫎鍔熻兘  deloitte zhj 2022-01-03 end
 }
\ No newline at end of file
diff --git a/force-app/main/default/classes/lexCaseController.cls b/force-app/main/default/classes/lexCaseController.cls
index 3a5e0ac..a3a7c50 100644
--- a/force-app/main/default/classes/lexCaseController.cls
+++ b/force-app/main/default/classes/lexCaseController.cls
@@ -6,12 +6,15 @@
             Case ca = [
                 select
                 Department__c,
-                Account__c
+                Account__c,
+                CICName__c
                 from Case where Id =: recordId
             ];
             res.department = ca.Department__c;
             res.accountId = ca.Account__c;
-            res.recordTypeId = Schema.SObjectType.Case.getRecordTypeInfosByName().get(lexLightingButtonConstant.RECORD_TYPE_NAME_BY_VOC).getRecordTypeId();
+            res.caseNumber = ca.CICName__c;
+            res.recordTypeId = Schema.SObjectType.Report__c.getRecordTypeInfosByName().get(lexLightingButtonConstant.RECORD_TYPE_NAME_BY_VOC).getRecordTypeId();
+            // res.recordTypeId = Schema.SObjectType.Report__c.getRecordTypeInfosByName().toString();
         } catch (Exception e) {
             throw new AuraHandledException(e.getMessage());
         }
@@ -24,5 +27,7 @@
         public String accountId;
         @AuraEnabled
         public String recordTypeId;
+        @AuraEnabled
+        public String caseNumber;
     }
 }
\ No newline at end of file
diff --git a/force-app/main/default/classes/lexCaseController.cls-meta.xml b/force-app/main/default/classes/lexCaseController.cls-meta.xml
index 45cccbd..754ecb1 100644
--- a/force-app/main/default/classes/lexCaseController.cls-meta.xml
+++ b/force-app/main/default/classes/lexCaseController.cls-meta.xml
@@ -2,4 +2,4 @@
 <ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
     <apiVersion>57.0</apiVersion>
     <status>Active</status>
-</ApexClass>
\ No newline at end of file
+</ApexClass>
diff --git a/force-app/main/default/classes/lexLightingButtonConstant.cls b/force-app/main/default/classes/lexLightingButtonConstant.cls
index 70ef7ea..8629d74 100644
--- a/force-app/main/default/classes/lexLightingButtonConstant.cls
+++ b/force-app/main/default/classes/lexLightingButtonConstant.cls
@@ -68,7 +68,7 @@
     //鎶ュ憡涔︾殑璁板綍绫诲瀷鈥樻彁浜も��
     public static final String RECORD_TYPE_NAME_BY_SUBMIT = '鎻愪氦';
      //鎶ュ憡涔︾殑璁板綍绫诲瀷鈥樿窡鍙扳��
-     public static final String RECORD_TYPE_NAME_BY_FOLLOW_THE_STAGE = '璺熷彴';
+     public static final String RECORD_TYPE_NAME_BY_FOLLOW_THE_STAGE = '鍞悗鏈嶅姟璺熷彴';
       //鎶ュ憡涔︾殑璁板綍绫诲瀷鈥極PD鈥�
       public static final String RECORD_TYPE_NAME_BY_OPD= 'OPD';
       //鎶ュ憡涔︾殑璁板綍绫诲瀷鈥楽IS-ENG鈥�
diff --git a/force-app/main/default/classes/lexLookupController.cls-meta.xml b/force-app/main/default/classes/lexLookupController.cls-meta.xml
index 9bbf7b4..fbbad0a 100644
--- a/force-app/main/default/classes/lexLookupController.cls-meta.xml
+++ b/force-app/main/default/classes/lexLookupController.cls-meta.xml
@@ -2,4 +2,4 @@
 <ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
     <apiVersion>56.0</apiVersion>
     <status>Active</status>
-</ApexClass>
\ No newline at end of file
+</ApexClass>
diff --git a/force-app/main/default/classes/lexOpportunitySpecialApplyController.cls b/force-app/main/default/classes/lexOpportunitySpecialApplyController.cls
index 492a60f..07bf24d 100644
--- a/force-app/main/default/classes/lexOpportunitySpecialApplyController.cls
+++ b/force-app/main/default/classes/lexOpportunitySpecialApplyController.cls
@@ -27,7 +27,18 @@
         update opp;
         return '';
     } catch (Exception e) {
-        return e.getMessage();
+        if (e.getMessage().contains(',')) {
+            System.debug(LoggingLevel.INFO, '*** e: ' + e);
+            String exc = '' + e.getMessage();
+            Integer left = exc.indexOf(':') + 1;
+            Integer right = exc.lastIndexOf(':');
+            String str = exc.substring(left,right);
+            left = str.indexOf(',') +  1;
+            String newStr = str.substring(left);
+            return newStr;
+        }else {
+            return e.getMessage();   
+        } 
     }
    } 
     public class InitData{
diff --git a/force-app/main/default/classes/lexOpportunitySpecialApplyController.cls-meta.xml b/force-app/main/default/classes/lexOpportunitySpecialApplyController.cls-meta.xml
index 45cccbd..754ecb1 100644
--- a/force-app/main/default/classes/lexOpportunitySpecialApplyController.cls-meta.xml
+++ b/force-app/main/default/classes/lexOpportunitySpecialApplyController.cls-meta.xml
@@ -2,4 +2,4 @@
 <ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
     <apiVersion>57.0</apiVersion>
     <status>Active</status>
-</ApexClass>
\ No newline at end of file
+</ApexClass>
diff --git a/force-app/main/default/classes/lexPCLLostReportLwcController.cls b/force-app/main/default/classes/lexPCLLostReportLwcController.cls
index aa1edac..4225066 100644
--- a/force-app/main/default/classes/lexPCLLostReportLwcController.cls
+++ b/force-app/main/default/classes/lexPCLLostReportLwcController.cls
@@ -172,7 +172,18 @@
 				lostReportList[0].LostType__c ='閮ㄥ垎澶卞崟';
 			}
 			// 鏉冮檺锛屽鏋滃綋鍓嶇姸鎬佷笉鏄崏妗堜腑锛岄偅涔堥渶瑕佽烦杞埌鍙椤甸潰
-			if(!'鑽夋'.equals(lostReportList[0].Report_Status__c) && userinfo.getProfileId() != (ID) '00e10000000Y3o5AAC') {
+		//鍘燂細!'鑽夋'.equals(lostReportList[0].Report_Status__c) && userinfo.getProfileId() != (ID) '00e10000000Y3o5AAC'
+
+		// 20230814 lt DB202308068183 澶卞崟鎶ュ憡瀹℃壒鑺傜偣澧炲姞鍔╃悊瀹℃壒鑺傜偣 end 鏀筰f鏉′欢
+		if(
+			!('鑽夋'.equals(lostReportList[0].Report_Status__c) 
+			|| userinfo.getProfileId() == (ID) '00e10000000Y3o5AAC'
+			||('鎵瑰噯'.equals(lostReportList[0].Report_Status__c) && 
+				(userinfo.getProfileId() == (ID) '00e10000000xnp2AAA' ||
+				userinfo.getProfileId() == (ID) '00e10000000xnpRAAQ' ||
+				userinfo.getProfileId() == (ID) '00e10000000xnpHAAQ'))
+			)
+		  ){
 				pageStatus = 'View';
 			}
 			oppId = lostReportList[0].Opportunity__c;
@@ -232,6 +243,28 @@
 		brandNo = 0;
 		// 璇诲彇绔炰簤瀵规墜鍝佺墝
 		// BrandmapSet();
+		
+		if (LostReport.lostReport.Report_Status__c != '鑽夋' && lostReportId != null) {
+			ProcessInstance pro = [
+			SELECT 
+			ProcessDefinition.Name,
+				(
+				SELECT 
+				Id,
+				StepStatus, 
+				IsPending,
+				Comments,
+				CreatedDate,
+				Actor.Name,  
+				OriginalActor.Name,
+				ProcessNode.Name FROM StepsAndWorkitems order by IsPending DESC, CreatedDate DESC 
+			)
+			FROM ProcessInstance where TargetObjectId =:LostReport.lostReport.id order by CreatedDate DESC
+			];
+			List<ProcessInstanceHistory> items = new List<ProcessInstanceHistory>();
+			items.addall(pro.StepsAndWorkitems);
+			LostReport.approvalHistorys = items;
+		}
 		if(string.isNotEmpty(submitFlag)) {
 			maps.put('message', '鎻愪氦鎴愬姛锛�');
 			maps.put('LostReport', LostReport);
@@ -266,6 +299,19 @@
         }
 		String jsonStr = JSON.serialize(lstPickvals);
         return jsonStr;
+	}
+	@AuraEnabled
+	public static string searchBatchIfForProduct(String productName){
+		try {
+			List<BatchIF_Transfer__c> transfer = [select
+                                  Internal_value__c
+                                  from BatchIF_Transfer__c
+                                  where Dropped_Flag__c = false
+                                          and Table__c = 'PCLLostBrand__c' and Column__c = 'Lost_By_Company__c' and External_value__c =: productName];
+			return transfer[0].Internal_value__c;
+		} catch (Exception e) {
+			throw new AuraHandledException(e.getMessage());
+		}
 	}
 	// 鏁版嵁褰曞叆
 	@AuraEnabled
@@ -448,9 +494,9 @@
 			report.lostReport.Id = reportId;
 			report.lostReport.Report_Status__c = '鎻愪氦';
 			update report.lostReport;
-			Approval.ProcessSubmitRequest psr = new Approval.ProcessSubmitRequest();
-			psr.setObjectId(reportId);
-			Approval.ProcessResult submitResult = Approval.process(psr);
+			// Approval.ProcessSubmitRequest psr = new Approval.ProcessSubmitRequest();
+			// psr.setObjectId(reportId);
+			// Approval.ProcessResult submitResult = Approval.process(psr);
 			objs.put('uri', '/apex/PCLLostReportPage');
 			objs.put('Id', reportId);
 			objs.put('pageStatus', 'View');
diff --git a/force-app/main/default/classes/lexRentalApplyController.cls-meta.xml b/force-app/main/default/classes/lexRentalApplyController.cls-meta.xml
index 45cccbd..754ecb1 100644
--- a/force-app/main/default/classes/lexRentalApplyController.cls-meta.xml
+++ b/force-app/main/default/classes/lexRentalApplyController.cls-meta.xml
@@ -2,4 +2,4 @@
 <ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
     <apiVersion>57.0</apiVersion>
     <status>Active</status>
-</ApexClass>
\ No newline at end of file
+</ApexClass>
diff --git a/force-app/main/default/classes/lexSolutionProgrammaController.cls-meta.xml b/force-app/main/default/classes/lexSolutionProgrammaController.cls-meta.xml
index 45cccbd..754ecb1 100644
--- a/force-app/main/default/classes/lexSolutionProgrammaController.cls-meta.xml
+++ b/force-app/main/default/classes/lexSolutionProgrammaController.cls-meta.xml
@@ -2,4 +2,4 @@
 <ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
     <apiVersion>57.0</apiVersion>
     <status>Active</status>
-</ApexClass>
\ No newline at end of file
+</ApexClass>
diff --git a/force-app/main/default/classes/lexSolutionProgrammeController.cls b/force-app/main/default/classes/lexSolutionProgrammeController.cls
index e663a8e..f07b46f 100644
--- a/force-app/main/default/classes/lexSolutionProgrammeController.cls
+++ b/force-app/main/default/classes/lexSolutionProgrammeController.cls
@@ -39,6 +39,28 @@
             return e.getMessage();
         }
     }
+    //鎻愪氦瀹℃壒
+    @AuraEnabled
+    public static String submitApproval(String recordId){
+        Savepoint sp = Database.setSavepoint();
+        try {
+            Approval.ProcessSubmitRequest req1 = new Approval.ProcessSubmitRequest();
+            req1.setObjectId(recordId);
+            Approval.ProcessResult submitResult = Approval.process(req1);
+            return 'OK';
+        }
+        catch (Exception e) {
+            Database.rollback(sp);
+            if(e.getMessage().contains(':')){
+                String eMsg = e.getMessage();
+                Integer left = eMsg.indexOf(',')+1;
+                Integer right = eMsg.lastindexOf('銆�')+1;
+                return eMsg.substring(left,right);
+            }else{
+                return e.getMessage();
+            }
+        }
+    }
     class InitData{
         @AuraEnabled
         public String schemeType;
diff --git a/force-app/main/default/classes/lexSolutionProgrammeController.cls-meta.xml b/force-app/main/default/classes/lexSolutionProgrammeController.cls-meta.xml
index 45cccbd..754ecb1 100644
--- a/force-app/main/default/classes/lexSolutionProgrammeController.cls-meta.xml
+++ b/force-app/main/default/classes/lexSolutionProgrammeController.cls-meta.xml
@@ -2,4 +2,4 @@
 <ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
     <apiVersion>57.0</apiVersion>
     <status>Active</status>
-</ApexClass>
\ No newline at end of file
+</ApexClass>
diff --git a/force-app/main/default/classes/lexSolutionProjectRequirementsController.cls b/force-app/main/default/classes/lexSolutionProjectRequirementsController.cls
index 1190457..5372786 100644
--- a/force-app/main/default/classes/lexSolutionProjectRequirementsController.cls
+++ b/force-app/main/default/classes/lexSolutionProjectRequirementsController.cls
@@ -76,7 +76,14 @@
             update so;
             return '';
         } catch (Exception e) {
-            return e.getMessage();
+            if (e.getMessage().contains(':')) {
+                String eMessage = e.getMessage();
+                Integer left = eMessage.indexOf(',') + 1;
+                Integer right = eMessage.lastIndexOf('銆�') + 1;
+                return eMessage.substring(left,right);
+            }else {
+                return e.getMessage();   
+            }
         }
     }
     @AuraEnabled
@@ -88,7 +95,14 @@
             update so;
             return '';
         } catch (Exception e) {
-            return e.getMessage();
+            if (e.getMessage().contains(',')) {
+                String eMessage = e.getMessage();
+                Integer left = eMessage.indexOf(',');
+                Integer right = eMessage.length();
+                return eMessage.substring(left + 1,right);
+            }else {
+                return e.getMessage();   
+            }  
         }
     }
 
diff --git a/force-app/main/default/classes/lexSolutionProjectRequirementsController.cls-meta.xml b/force-app/main/default/classes/lexSolutionProjectRequirementsController.cls-meta.xml
index 45cccbd..754ecb1 100644
--- a/force-app/main/default/classes/lexSolutionProjectRequirementsController.cls-meta.xml
+++ b/force-app/main/default/classes/lexSolutionProjectRequirementsController.cls-meta.xml
@@ -2,4 +2,4 @@
 <ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
     <apiVersion>57.0</apiVersion>
     <status>Active</status>
-</ApexClass>
\ No newline at end of file
+</ApexClass>
diff --git a/force-app/main/default/lwc/lexASACEditor/lexASACEditor.js b/force-app/main/default/lwc/lexASACEditor/lexASACEditor.js
index 5b3b34f..dfaa5bb 100644
--- a/force-app/main/default/lwc/lexASACEditor/lexASACEditor.js
+++ b/force-app/main/default/lwc/lexASACEditor/lexASACEditor.js
@@ -4,7 +4,7 @@
  * @Author: chen jing wu
  * @Date: 2023-05-08 14:36:32
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-06-01 10:37:01
+ * @LastEditTime: 2023-08-28 10:42:47
  */
 import { LightningElement,wire,track,api} from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
@@ -70,35 +70,16 @@
 
     editor(){
         if (this.id != undefined){
-            const defaultValues = encodeDefaultFieldValues({
-                nooverride: '1',
-                Id: this.id, 
-                ReportId: this.recordId,
-                RecordTypeIds: 'ASACDecision'
-            });
-            this[NavigationMixin.Navigate]({
-                type: 'standard__webPage',
-                attributes: {
-                    url: '/apex/RepPAEDecisionRecord'
-                },
-                state: defaultValues
-            });
-            // this.url = "/apex/RepPAEDecisionRecord?Id="+this.id+"&ReportId="+this.recordId+"&RecordTypeIds="+"ASACDecision"; 
+            this.url = "/apex/RepPAEDecisionRecord?Id="+this.id+"&ReportId="+this.recordId+"&RecordTypeIds="+"ASACDecision"; 
         } else {
-            const defaultValues = encodeDefaultFieldValues({
-                nooverride: '1',
-                ReportId: this.recordId,
-                RecordTypeIds: 'ASACDecision'
-            });
-            this[NavigationMixin.Navigate]({
-                type: 'standard__webPage',
-                attributes: {
-                    url: '/apex/RepPAEDecisionRecord'
-                },
-                state: defaultValues
-            });
-            // this.url = "/apex/RepPAEDecisionRecord?ReportId="+this.recordId+"&RecordTypeIds="+"ASACDecision";
+            this.url = "/apex/RepPAEDecisionRecord?ReportId="+this.recordId+"&RecordTypeIds="+"ASACDecision";
         }
+        this[NavigationMixin.Navigate]({
+            type: 'standard__webPage',
+            attributes: {
+                url: this.url
+            }
+        });
         // window.open(this.url,"_self");
     }
 }
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexASRCEditor/lexASRCEditor.js b/force-app/main/default/lwc/lexASRCEditor/lexASRCEditor.js
index e875fd5..4614e00 100644
--- a/force-app/main/default/lwc/lexASRCEditor/lexASRCEditor.js
+++ b/force-app/main/default/lwc/lexASRCEditor/lexASRCEditor.js
@@ -4,7 +4,7 @@
  * @Author: chen jing wu
  * @Date: 2023-05-08 14:36:32
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-06-01 10:37:17
+ * @LastEditTime: 2023-08-28 09:11:47
  */
 import { LightningElement,wire,track,api} from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
@@ -68,35 +68,16 @@
 
     editor(){
         if (this.id != undefined){
-            const defaultValues = encodeDefaultFieldValues({
-                nooverride: '1',
-                Id: this.id, 
-                ReportId: this.recordId,
-                RecordTypeIds: 'ASRCDecision'
-            });
-            this[NavigationMixin.Navigate]({
-                type: 'standard__webPage',
-                attributes: {
-                    url: '/apex/RepPAEDecisionRecord'
-                },
-                state: defaultValues
-            });
-            // this.url = "/apex/RepPAEDecisionRecord?Id="+this.id+"&ReportId="+this.recordId+"&RecordTypeIds="+"ASRCDecision";
+            this.url = "/apex/RepPAEDecisionRecord?Id="+this.id+"&ReportId="+this.recordId+"&RecordTypeIds="+"ASRCDecision";
         } else {
-            const defaultValues = encodeDefaultFieldValues({
-                ReportId: this.recordId,
-                RecordTypeIds: 'ASRCDecision'
-            });
-            this[NavigationMixin.Navigate]({
-                nooverride: '1',
-                type: 'standard__webPage',
-                attributes: {
-                    url: '/apex/RepPAEDecisionRecord'
-                },
-                state: defaultValues
-            });
-            // this.url = "/apex/RepPAEDecisionRecord?ReportId="+this.recordId+"&RecordTypeIds="+"ASRCDecision";
+            this.url = "/apex/RepPAEDecisionRecord?ReportId="+this.recordId+"&RecordTypeIds="+"ASRCDecision";
         }
+        this[NavigationMixin.Navigate]({
+            type: 'standard__webPage',
+            attributes: {
+                url: this.url
+            }
+        });
         // window.open(this.url,"_self");
     }
 }
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexAgencyAuthorize/lexAgencyAuthorize.html b/force-app/main/default/lwc/lexAgencyAuthorize/lexAgencyAuthorize.html
index e6785e4..425fb96 100644
--- a/force-app/main/default/lwc/lexAgencyAuthorize/lexAgencyAuthorize.html
+++ b/force-app/main/default/lwc/lexAgencyAuthorize/lexAgencyAuthorize.html
@@ -1,6 +1,15 @@
+<!--
+ * @Description: 
+ * @version: 
+ * @Author: chen jing wu
+ * @Date: 2023-07-12 11:08:29
+ * @LastEditors: chen jing wu
+ * @LastEditTime: 2023-08-21 14:08:11
+-->
 <template>
     <div class="inASACEditorHolder" if:true={IsLoading}>
         <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
         <lightning-button label="Show Toast" onclick={showSuccess}></lightning-button>
+        <lightning-button onclick={handleConfirmClick} label="Open Confirm Modal"></lightning-button>
     </div>
 </template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexAgencyAuthorize/lexAgencyAuthorize.js b/force-app/main/default/lwc/lexAgencyAuthorize/lexAgencyAuthorize.js
index 8f2dd4a..0ab2880 100644
--- a/force-app/main/default/lwc/lexAgencyAuthorize/lexAgencyAuthorize.js
+++ b/force-app/main/default/lwc/lexAgencyAuthorize/lexAgencyAuthorize.js
@@ -4,7 +4,7 @@
  * @Author: chen jing wu
  * @Date: 2023-04-12 14:51:44
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-05-11 13:46:32
+ * @LastEditTime: 2023-09-05 15:47:38
  */
 import { api, wire,LightningElement } from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
@@ -14,9 +14,12 @@
 import { updateRecord } from 'lightning/uiRecordApi';
 import { ShowToastEvent } from 'lightning/platformShowToastEvent';
 import checkDangerItem from '@salesforce/apex/OpportunityWebService.checkDangerItem';
+import accSendEmail from '@salesforce/apex/OpportunityWebService.accSendEmail';
 import oppCheck from '@salesforce/apex/OpportunityWebService.oppCheck';
 import updReg from '@salesforce/apex/OpportunityWebService.updReg';
-
+import TradeComplianceStatusFlag from '@salesforce/label/c.TradeComplianceStatusFlag';
+import IFTradeComplianceAlert from '@salesforce/label/c.IFTradeComplianceAlert';
+import LightningConfirm from 'lightning/confirm';
 export default class LexAgencyAuthorize extends LightningElement {
     @api recordId;
     agency1Id;
@@ -42,6 +45,12 @@
     s61ProfileId;
     s62ProfileId;
     m4ProfileId;
+    AccDealerBlacklist;
+    angency1;
+    angency2;
+    accname;
+    ownerids;
+    ddid;
     IsLoading = true;
     @wire(CurrentPageReference)
     getStateParameters(currentPageReference) {
@@ -86,8 +95,18 @@
             this.s61ProfileId = result.s61ProfileId;
             this.s62ProfileId = result.s62ProfileId;
             this.m4ProfileId = result.m4ProfileId;
+            this.AccDealerBlacklist = result.AccDealerBlacklist;
+            this.angency1 = result.angency1;
+            this.angency2 = result.angency2;
+            this.accname = result.accname;
+            this.ownerids = result.ownerids;
+            this.ddid = result.ddid;
+            console.log("w");
             this.AgencyAuthorize();
-        })
+        }).catch(error=>{
+            console.log("error");
+            console.log(error);
+        });
     }
     AgencyAuthorize(){
         var btns = document.getElementsByName("agency_authorize");
@@ -106,6 +125,89 @@
             this.showToast("鎮ㄦ病鏈夋巿鏉冪敵璇风殑鏉冮檺銆傝鑱旂郴绯荤粺绠$悊鍛樸��","error");
             return;
         }
+        //璐告槗鍚堣 you
+        var AccDealerBlacklist = this.AccDealerBlacklist;//鍒ゆ柇瀹㈡埛/缁忛攢鍟嗘槸鍚︿负榛戝悕鍗�
+        var angency1 = this.angency1;
+        var angency2 = this.angency2;
+        var accname = this.accname;
+        var ownerids = this.ownerids;
+        var ddid = this.ddid;
+        if(TradeComplianceStatusFlag=='true'){
+            //鎷︽埅+閭欢鎻愰啋
+            var oppflag=false;
+            if (AccDealerBlacklist=='123') {
+                // alert('瀹㈡埛,缁忛攢鍟�1锛岀粡閿�鍟�2閮戒负榛戝悕鍗曪紝涓嶈兘鍋氭巿鏉冪敵璇凤紝'+IFTradeComplianceAlert);
+                this.showToast('瀹㈡埛,缁忛攢鍟�1锛岀粡閿�鍟�2閮戒负榛戝悕鍗曪紝涓嶈兘鍋氭巿鏉冪敵璇凤紝'+IFTradeComplianceAlert,'error');
+                oppflag=true;
+
+            }else if(AccDealerBlacklist=='12'){
+                // alert('瀹㈡埛,缁忛攢鍟�1閮戒负榛戝悕鍗曪紝涓嶈兘鍋氭巿鏉冪敵璇凤紝'+IFTradeComplianceAlert);
+                this.showToast('瀹㈡埛,缁忛攢鍟�1閮戒负榛戝悕鍗曪紝涓嶈兘鍋氭巿鏉冪敵璇凤紝'+IFTradeComplianceAlert,'error');
+                oppflag=true;
+            }else if(AccDealerBlacklist=='23'){
+                // alert('缁忛攢鍟�1锛岀粡閿�鍟�2閮戒负榛戝悕鍗曪紝涓嶈兘鍋氭巿鏉冪敵璇凤紝'+IFTradeComplianceAlert);
+                this.showToast('缁忛攢鍟�1锛岀粡閿�鍟�2閮戒负榛戝悕鍗曪紝涓嶈兘鍋氭巿鏉冪敵璇凤紝'+IFTradeComplianceAlert,'error');
+                oppflag=true;
+            }else if(AccDealerBlacklist=='13'){
+                // alert('瀹㈡埛,缁忛攢鍟�2閮戒负榛戝悕鍗曪紝涓嶈兘鍋氭巿鏉冪敵璇凤紝'+IFTradeComplianceAlert);
+                this.showToast('瀹㈡埛,缁忛攢鍟�2閮戒负榛戝悕鍗曪紝涓嶈兘鍋氭巿鏉冪敵璇凤紝'+IFTradeComplianceAlert,'error');
+                oppflag=true;
+            }else if(AccDealerBlacklist=='1'){
+                // alert('瀹㈡埛涓洪粦鍚嶅崟锛屼笉鑳藉仛鎺堟潈鐢宠锛�'+IFTradeComplianceAlert);
+                this.showToast('瀹㈡埛涓洪粦鍚嶅崟锛屼笉鑳藉仛鎺堟潈鐢宠锛�'+IFTradeComplianceAlert,'error');
+                oppflag=true;
+            }else if(AccDealerBlacklist=='2'){
+                // alert('缁忛攢鍟�1涓洪粦鍚嶅崟锛屼笉鑳藉仛鎺堟潈鐢宠锛�'+IFTradeComplianceAlert);
+                this.showToast('缁忛攢鍟�1涓洪粦鍚嶅崟锛屼笉鑳藉仛鎺堟潈鐢宠锛�'+IFTradeComplianceAlert,'error');
+                oppflag=true;
+            }else if(AccDealerBlacklist=='3'){
+                // alert('缁忛攢鍟�2涓洪粦鍚嶅崟锛屼笉鑳藉仛鎺堟潈鐢宠锛�'+IFTradeComplianceAlert);
+                this.showToast('缁忛攢鍟�2涓洪粦鍚嶅崟锛屼笉鑳藉仛鎺堟潈鐢宠锛�'+IFTradeComplianceAlert,'error');
+                oppflag=true;
+            }
+            console.log('y');
+            console.log(oppflag);
+            if(oppflag){
+                accSendEmail({
+                    "AccDealerBlacklist":AccDealerBlacklist,
+                    "accname":accname,
+                    "angency1":angency1,
+                    "angency2":angency2,
+                    "ownerids":ownerids,
+                    "ddid":ddid,
+                    "oppid":oppid 
+                }).then(result=>{
+                    console.log('q');
+                    var opprtn = result;
+                    if (opprtn = true) {
+                        return;
+                    }
+                    //璀︾ず鎻愰啋
+                    if (AccDealerBlacklist=='567') {
+                        this.handleConfirmClick('鎮ㄦ墍閫夋嫨鐨勫鎴�,缁忛攢鍟�1锛岀粡閿�鍟�2瀛樺湪璐告槗鍚堣璀︾ず椋庨櫓锛屼笉寤鸿鍋氭巿鏉冪敵璇凤紝璇锋偍纭鏄惁缁х画鐢宠锛�'+IFTradeComplianceAlert);
+                    }else if(AccDealerBlacklist=='56'){
+                        this.handleConfirmClick('鎮ㄦ墍閫夋嫨鐨勫鎴�,缁忛攢鍟�1瀛樺湪璐告槗鍚堣璀︾ず椋庨櫓锛屼笉寤鸿鍋氭巿鏉冪敵璇凤紝璇锋偍纭鏄惁缁х画鐢宠锛�'+IFTradeComplianceAlert);
+                    }else if(AccDealerBlacklist=='67'){
+                        this.handleConfirmClick('鎮ㄦ墍閫夋嫨鐨勭粡閿�鍟�1锛岀粡閿�鍟�2瀛樺湪璐告槗鍚堣璀︾ず椋庨櫓锛屼笉寤鸿鍋氭巿鏉冪敵璇凤紝璇锋偍纭鏄惁缁х画鐢宠锛�'+IFTradeComplianceAlert);
+                    }else if(AccDealerBlacklist=='57'){
+                        this.handleConfirmClick('鎮ㄦ墍閫夋嫨鐨勫鎴�,缁忛攢鍟�2瀛樺湪璐告槗鍚堣璀︾ず椋庨櫓锛屼笉寤鸿鍋氭巿鏉冪敵璇凤紝璇锋偍纭鏄惁缁х画鐢宠锛�'+IFTradeComplianceAlert);
+                    }else if(AccDealerBlacklist=='5'){
+                        this.handleConfirmClick('鎮ㄦ墍閫夋嫨鐨勫鎴峰瓨鍦ㄨ锤鏄撳悎瑙勮绀洪闄╋紝涓嶅缓璁仛鎺堟潈鐢宠锛岃鎮ㄧ‘璁ゆ槸鍚︾户缁敵璇凤紝'+IFTradeComplianceAlert);
+                    }else if(AccDealerBlacklist=='6'){
+                        this.handleConfirmClick('鎮ㄦ墍閫夋嫨鐨勭粡閿�鍟�1瀛樺湪璐告槗鍚堣璀︾ず椋庨櫓锛屼笉寤鸿鍋氭巿鏉冪敵璇凤紝璇锋偍纭鏄惁缁х画鐢宠锛�'+IFTradeComplianceAlert);
+                    }else if(AccDealerBlacklist=='7'){
+                        this.handleConfirmClick('鎮ㄦ墍閫夋嫨鐨勭粡閿�鍟�2瀛樺湪璐告槗鍚堣璀︾ず椋庨櫓锛屼笉寤鸿鍋氭巿鏉冪敵璇凤紝璇锋偍纭鏄惁缁х画鐢宠锛�'+IFTradeComplianceAlert);
+                    }
+                });
+            }else{
+                this.ss();
+            }
+        }else{
+            this.ss();
+        }
+        //璐告槗鍚堣 you
+    }
+    ss(){
         if (this.stageName != '寮曞悎' && this.stageName != '璇环' ) {
             this.showToast("鐘舵��1:" + this.stageName + "銆佷笉鑳藉仛鎺堟潈鐢宠锛�","error");
             return;
@@ -146,7 +248,7 @@
         if (this.trade == '鍐呰部') {
             if(this.isCorrosion == '1'){
                 checkDangerItem({
-                    agency1: angency
+                    agency1: this.agency1Id
                 }).then(result=>{
                     var rtn1 = result;
                     if (rtn1 != 'OK') {
@@ -157,7 +259,7 @@
             });
             }else{
                 oppCheck({
-                    oppid: oppid,
+                    oppid: this.recordId,
                     saveFlg: '1'
                 }).then(result=>{
                     var rtn = result;
@@ -170,12 +272,24 @@
             }
         } else {
             updReg({
-                oppid: oppid
+                oppid: this.recordId
             }).then(()=>{
                 this.update();
             });
         }  
     }
+    async handleConfirmClick(msg) {
+        const result = await LightningConfirm.open({
+            message: msg,
+            variant: 'headerless',
+            label: 'this is the aria-label value'
+        });
+        if (result) {
+            this.ss();
+        } else {
+            this.dispatchEvent(new CloseActionScreenEvent());
+        }
+    }
     showToast(msg,type) {
         const event = new ShowToastEvent({
             title: '',
diff --git a/force-app/main/default/lwc/lexApplyAgainLwc/lexApplyAgainLwc.js b/force-app/main/default/lwc/lexApplyAgainLwc/lexApplyAgainLwc.js
index ca769de..62370fa 100644
--- a/force-app/main/default/lwc/lexApplyAgainLwc/lexApplyAgainLwc.js
+++ b/force-app/main/default/lwc/lexApplyAgainLwc/lexApplyAgainLwc.js
@@ -1,11 +1,3 @@
-/*
- * @Description: 
- * @version: 
- * @Author: chen jing wu
- * @Date: 2023-06-30 17:55:39
- * @LastEditors: chen jing wu
- * @LastEditTime: 2023-07-07 16:22:25
- */
 import { LightningElement,wire,track,api} from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
 import { CloseActionScreenEvent } from 'lightning/actions';
diff --git a/force-app/main/default/lwc/lexAssignTaskButton/lexAssignTaskButton.js b/force-app/main/default/lwc/lexAssignTaskButton/lexAssignTaskButton.js
index acfaab3..ed8f724 100644
--- a/force-app/main/default/lwc/lexAssignTaskButton/lexAssignTaskButton.js
+++ b/force-app/main/default/lwc/lexAssignTaskButton/lexAssignTaskButton.js
@@ -4,7 +4,7 @@
  * @Author: chen jing wu
  * @Date: 2023-05-15 11:14:32
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-06-05 14:01:14
+ * @LastEditTime: 2023-09-04 13:16:23
  */
 import { LightningElement,wire,track,api} from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
@@ -12,7 +12,8 @@
 import init from '@salesforce/apex/OpportunityLightingButtonController.initForAssignTaskButtonButton';
 import { NavigationMixin } from 'lightning/navigation';
 import { encodeDefaultFieldValues } from 'lightning/pageReferenceUtils';
-export default class LexAssignTaskButton extends LightningElement {
+import RECORD_TYPE_NAME_BY_INQUIRY_FOLLOW_UP from '@salesforce/label/c.RECORD_TYPE_NAME_BY_INQUIRY_FOLLOW_UP';
+export default class LexAssignTaskButton extends NavigationMixin(LightningElement) {
     @api recordId;
     accountName;
     accountId;
@@ -40,7 +41,7 @@
             this.accountId = result.accountId;
             this.accountName = result.accountName;
             this.oppName = result.name;
-            this.recordTypeId = result.recordTypeId;
+            this.recordTypeId = RECORD_TYPE_NAME_BY_INQUIRY_FOLLOW_UP;
             this.assignTask();
         }).catch(error=>{
             console.log("error");
@@ -71,12 +72,13 @@
             account__c: this.accountId,
             OpportunityId__c: this.recordId,
             taskStatus__c: '01 鍒嗛厤',
-            taskDifferent__c: '涓婄骇鍒嗛厤浠诲姟'
+            taskDifferent__c: '涓婄骇鍒嗛厤浠诲姟',
+            Name: '*'
         });
         this[NavigationMixin.Navigate]({
             type: 'standard__objectPage',
             attributes: {
-                objectApiName: 'Task',
+                objectApiName: 'task__c',
                 actionName: 'new'
             },
             state: {
diff --git a/force-app/main/default/lwc/lexBeforeOPDPDFBtn/lexBeforeOPDPDFBtn.js b/force-app/main/default/lwc/lexBeforeOPDPDFBtn/lexBeforeOPDPDFBtn.js
index 9c8037f..f594976 100644
--- a/force-app/main/default/lwc/lexBeforeOPDPDFBtn/lexBeforeOPDPDFBtn.js
+++ b/force-app/main/default/lwc/lexBeforeOPDPDFBtn/lexBeforeOPDPDFBtn.js
@@ -4,7 +4,7 @@
  * @Author: chen jing wu
  * @Date: 2023-04-13 15:08:43
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-05-11 15:49:41
+ * @LastEditTime: 2023-08-25 16:41:24
  */
 import { api, wire,LightningElement } from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
@@ -48,9 +48,10 @@
     }
     showToast(msg,type) {
         const event = new ShowToastEvent({
-            title: '',
+            title: ' ',
             message: msg,
-            variant: type
+            variant: type,
+            mode: 'sticky'
         });
         this.dispatchEvent(event);
     }
diff --git a/force-app/main/default/lwc/lexBeforeOPDPDFBtnSIS/lexBeforeOPDPDFBtnSIS.html b/force-app/main/default/lwc/lexBeforeOPDPDFBtnSIS/lexBeforeOPDPDFBtnSIS.html
index 3fc892f..234e137 100644
--- a/force-app/main/default/lwc/lexBeforeOPDPDFBtnSIS/lexBeforeOPDPDFBtnSIS.html
+++ b/force-app/main/default/lwc/lexBeforeOPDPDFBtnSIS/lexBeforeOPDPDFBtnSIS.html
@@ -4,12 +4,11 @@
  * @Author: chen jing wu
  * @Date: 2023-04-13 15:55:45
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-05-24 16:39:05
+ * @LastEditTime: 2023-04-13 15:56:58
 -->
 <template>
     <div class="lexBeforeOPDPDFBtnSISHolder" if:true={IsLoading}>
         <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
         <lightning-button label="Show Toast" onclick={showSuccess}></lightning-button>
-        <lightning-button onclick={handleConfirmClick} label="Open Confirm Modal"></lightning-button>
     </div>
 </template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexBeforeOPDPDFBtnSIS/lexBeforeOPDPDFBtnSIS.js b/force-app/main/default/lwc/lexBeforeOPDPDFBtnSIS/lexBeforeOPDPDFBtnSIS.js
index ca1d53d..db99c83 100644
--- a/force-app/main/default/lwc/lexBeforeOPDPDFBtnSIS/lexBeforeOPDPDFBtnSIS.js
+++ b/force-app/main/default/lwc/lexBeforeOPDPDFBtnSIS/lexBeforeOPDPDFBtnSIS.js
@@ -4,7 +4,7 @@
  * @Author: chen jing wu
  * @Date: 2023-04-13 15:55:45
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-05-24 16:37:05
+ * @LastEditTime: 2023-04-13 16:04:14
  */
 import { api, wire,LightningElement } from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
@@ -13,7 +13,7 @@
 import { ShowToastEvent } from 'lightning/platformShowToastEvent';
 import selectCommonSequence from '@salesforce/apex/ControllerUtil.selectCommonSequence';
 import addReportOPWithEvaluationPDF from '@salesforce/apex/Add_Report.addReportOPWithEvaluationPDF';
-import LightningConfirm from 'lightning/confirm';
+
 export default class LexBeforeOPDPDFBtnSIS extends LightningElement {
     @api recordId;
     accountId;
@@ -34,55 +34,6 @@
           }
         }
     }
-    async handleConfirmClick(msg) {
-        const result = await LightningConfirm.open({
-            message: msg,
-            variant: 'headerless',
-            label: 'this is the aria-label value',
-        });
-        console.log(result);
-        if(result){
-            try {
-                selectCommonSequence({
-                    valueField: 'EvaluationPDF_NextValue__c',
-                    formatField: 'EvaluationPDF_Format__c'
-                }).then(result=>{
-                    var pdfno = result;
-                    addReportOPWithEvaluationPDF({
-                        "repOwnerId": this.userId,
-                        "reportId": "",
-                        "dailyReportId": "",
-                        "eventId": "",
-                        "recordType": "SIS",
-                        "aId": this.accountId,
-                        "visitor1": "",
-                        "visitor2": "",
-                        "visitor3": "",
-                        "visitor4": "",
-                        "visitor5": "",
-                        "opp1": this.recordId,
-                        "opp2": "",
-                        "opp3": "",
-                        "opp4": "",
-                        "opp5": "",
-                        "reportDate": "",
-                        "evaluationPDFNumber": pdfno
-                    }).then(()=>{
-                        // 20220913 ljh WLIG-CHMATN update end
-                        this.IsLoading = false;
-                        window.open('/apex/BeforeOPDPDF?oid=' + this.recordId + '&pdfNo=' + pdfno, 'BeforeOPDPDF');
-                        this.dispatchEvent(new CloseActionScreenEvent());
-                    })
-                });
-                } catch(e) {
-                    this.showToast(e,"error");
-                    this.dispatchEvent(new CloseActionScreenEvent());
-                }
-        }else{
-            window.open('/apex/BeforeOPDPDF?oid=' + this.recordId, 'BeforeOPDPDF');
-            this.dispatchEvent(new CloseActionScreenEvent());
-        }
-    }
     connectedCallback(){
         init({
             recordId: this.recordId
@@ -93,7 +44,47 @@
         })
     }
     beforeOPDPDFBtn(){
-        this.handleConfirmClick('鏄惁鏂板缓SIS鎶ュ憡涔︼紵');
+        if (window.confirm('鏄惁鏂板缓SIS鎶ュ憡涔︼紵')) {
+            try {
+            selectCommonSequence({
+                valueField: 'EvaluationPDF_NextValue__c',
+                formatField: 'EvaluationPDF_Format__c'
+            }).then(result=>{
+                var pdfno = result;
+                addReportOPWithEvaluationPDF({
+                    "repOwnerId": this.userId,
+                    "reportId": "",
+                    "dailyReportId": "",
+                    "eventId": "",
+                    "recordType": "SIS",
+                    "aId": this.accountId,
+                    "visitor1": "",
+                    "visitor2": "",
+                    "visitor3": "",
+                    "visitor4": "",
+                    "visitor5": "",
+                    "opp1": this.recordId,
+                    "opp2": "",
+                    "opp3": "",
+                    "opp4": "",
+                    "opp5": "",
+                    "reportDate": "",
+                    "evaluationPDFNumber": pdfno
+                }).then(()=>{
+                    // 20220913 ljh WLIG-CHMATN update end
+                    this.IsLoading = false;
+                    window.open('/apex/BeforeOPDPDF?oid=' + this.recordId + '&pdfNo=' + pdfno, 'BeforeOPDPDF');
+                    this.dispatchEvent(new CloseActionScreenEvent());
+                })
+            });
+            } catch(e) {
+                this.showToast(e,"error");
+                this.dispatchEvent(new CloseActionScreenEvent());
+            }
+        } else {
+            window.open('/apex/BeforeOPDPDF?oid=' + this.recordId, 'BeforeOPDPDF');
+            this.dispatchEvent(new CloseActionScreenEvent());
+        }
     }
     showToast(msg,type) {
         const event = new ShowToastEvent({
diff --git a/force-app/main/default/lwc/lexCBLBPNewLwc/lexCBLBPNewLwc.js b/force-app/main/default/lwc/lexCBLBPNewLwc/lexCBLBPNewLwc.js
index 9418659..6cded84 100644
--- a/force-app/main/default/lwc/lexCBLBPNewLwc/lexCBLBPNewLwc.js
+++ b/force-app/main/default/lwc/lexCBLBPNewLwc/lexCBLBPNewLwc.js
@@ -1,3 +1,11 @@
+/*
+ * @Description: 
+ * @version: 
+ * @Author: chen jing wu
+ * @Date: 2023-07-28 15:58:45
+ * @LastEditors: chen jing wu
+ * @LastEditTime: 2023-08-10 14:27:50
+ */
 import { api, wire,LightningElement } from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
 import { CloseActionScreenEvent } from 'lightning/actions';
@@ -30,6 +38,7 @@
     CBLBPNewLwc(){
       const defaultValues = encodeDefaultFieldValues({
         ProductName__c: this.recordId,
+        Name: '*'
     });
       this[NavigationMixin.Navigate]({
           type: 'standard__objectPage',
diff --git a/force-app/main/default/lwc/lexCancel/lexCancel.js b/force-app/main/default/lwc/lexCancel/lexCancel.js
index 77a0e59..be3a1c5 100644
--- a/force-app/main/default/lwc/lexCancel/lexCancel.js
+++ b/force-app/main/default/lwc/lexCancel/lexCancel.js
@@ -4,7 +4,7 @@
  * @Author: chen jing wu
  * @Date: 2023-03-27 13:47:21
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-04-11 16:44:49
+ * @LastEditTime: 2023-08-25 16:41:19
  */
 import { api, wire,LightningElement } from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
@@ -55,9 +55,10 @@
 
     showToast(msg,type) {
         const event = new ShowToastEvent({
-            title: '',
+            title: ' ',
             message: msg,
-            variant: type
+            variant: type,
+            mode: 'sticky'
         });
         this.dispatchEvent(event);
     }
diff --git a/force-app/main/default/lwc/lexCopyPI/lexCopyPI.js b/force-app/main/default/lwc/lexCopyPI/lexCopyPI.js
index 29d758e..ee395bc 100644
--- a/force-app/main/default/lwc/lexCopyPI/lexCopyPI.js
+++ b/force-app/main/default/lwc/lexCopyPI/lexCopyPI.js
@@ -4,7 +4,7 @@
  * @Author: chen jing wu
  * @Date: 2023-06-21 10:22:50
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-06-21 11:10:10
+ * @LastEditTime: 2023-06-21 10:33:50
  */
 import { api, wire,LightningElement } from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
diff --git a/force-app/main/default/lwc/lexCreateEvent/lexCreateEvent.js b/force-app/main/default/lwc/lexCreateEvent/lexCreateEvent.js
index b7ccc1f..6e293fb 100644
--- a/force-app/main/default/lwc/lexCreateEvent/lexCreateEvent.js
+++ b/force-app/main/default/lwc/lexCreateEvent/lexCreateEvent.js
@@ -4,7 +4,7 @@
  * @Author: chen jing wu
  * @Date: 2023-04-13 13:50:23
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-06-05 09:13:58
+ * @LastEditTime: 2023-09-06 14:36:47
  */
 import { api, wire,LightningElement } from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
@@ -36,6 +36,7 @@
         init({
             recordId: this.recordId
         }).then(result=>{
+            console.log(result);
             this.accountId = result.accountId;
             this.createEvent();
         }).catch(error=>{
diff --git a/force-app/main/default/lwc/lexCreateOPDFromRentalApply/lexCreateOPDFromRentalApply.js b/force-app/main/default/lwc/lexCreateOPDFromRentalApply/lexCreateOPDFromRentalApply.js
index 1ba2822..26c4729 100644
--- a/force-app/main/default/lwc/lexCreateOPDFromRentalApply/lexCreateOPDFromRentalApply.js
+++ b/force-app/main/default/lwc/lexCreateOPDFromRentalApply/lexCreateOPDFromRentalApply.js
@@ -37,9 +37,12 @@
         }
     }
     connectedCallback(){
+        console.log('LexCreateOPDFromRentalApply init')
+        console.log('this.recordId = ' + this.recordId)
         init({
             recordId: this.recordId
         }).then(result=>{
+            console.log('LexCreateOPDFromRentalApply init result = ' + JSON.stringify(result))
             this.hospitalId = result.hospitalId;
             this.strategicDeptId = result.strategicDeptId;
             this.accountId = result.accountId;
@@ -61,7 +64,7 @@
                 actionName: 'new'
             },
             state: {
-                nooverride: '1',
+                //nooverride: '1',  //2023-08-14 zhj 
                 defaultFieldValues: defaultValues,
                 recordTypeId: this.recordTypeId
             }
diff --git a/force-app/main/default/lwc/lexCreateVOCFromCIC/lexCreateVOCFromCIC.js b/force-app/main/default/lwc/lexCreateVOCFromCIC/lexCreateVOCFromCIC.js
index d94df66..009436a 100644
--- a/force-app/main/default/lwc/lexCreateVOCFromCIC/lexCreateVOCFromCIC.js
+++ b/force-app/main/default/lwc/lexCreateVOCFromCIC/lexCreateVOCFromCIC.js
@@ -48,11 +48,13 @@
         this[NavigationMixin.Navigate]({
             type: 'standard__objectPage',
             attributes: {
-                objectApiName: 'Case',
+                objectApiName: 'Report__c',
                 actionName: 'new'
             },
             state: {
-                nooverride: '1',
+                //2023 08 04 寮犺但闃� PIPL鎸夐挳鏀归�� Start
+                // nooverride: '1',
+                //2023 08 04 寮犺但闃� PIPL鎸夐挳鏀归�� Start
                 defaultFieldValues: defaultValues,
                 recordTypeId: this.recordTypeId
             }
diff --git a/force-app/main/default/lwc/lexDepartmentCreateGI/lexDepartmentCreateGI.js b/force-app/main/default/lwc/lexDepartmentCreateGI/lexDepartmentCreateGI.js
index d7c3b33..e7b9451 100644
--- a/force-app/main/default/lwc/lexDepartmentCreateGI/lexDepartmentCreateGI.js
+++ b/force-app/main/default/lwc/lexDepartmentCreateGI/lexDepartmentCreateGI.js
@@ -1,3 +1,11 @@
+/*
+//  * @Description: 
+ * @version: 
+ * @Author: chen jing wu
+ * @Date: 2023-08-28 17:27:59
+ * @LastEditors: chen jing wu
+ * @LastEditTime: 2023-08-28 17:33:22
+ */
 import { LightningElement, track, wire, api } from 'lwc';
 import {CurrentPageReference} from 'lightning/navigation';
 import { CloseActionScreenEvent } from 'lightning/actions';
@@ -29,6 +37,7 @@
             recordId: this.recordId,
             type: 'GI'
         }).then(result=>{
+			console.log(result);
             this.recordTypeId = result.recordTypeId;
             this.hospitalDepartmentClass = result.hospitalDepartmentClass;
             const defaultValues = encodeDefaultFieldValues({
diff --git a/force-app/main/default/lwc/lexDepartmentCreateGS/lexDepartmentCreateGS.js b/force-app/main/default/lwc/lexDepartmentCreateGS/lexDepartmentCreateGS.js
index 8b26c3f..2efbf01 100644
--- a/force-app/main/default/lwc/lexDepartmentCreateGS/lexDepartmentCreateGS.js
+++ b/force-app/main/default/lwc/lexDepartmentCreateGS/lexDepartmentCreateGS.js
@@ -1,11 +1,3 @@
-/*
- * @Description: 
- * @version: 
- * @Author: chen jing wu
- * @Date: 2023-07-31 10:56:23
- * @LastEditors: chen jing wu
- * @LastEditTime: 2023-07-31 11:06:33
- */
 import { LightningElement, track, wire, api } from 'lwc';
 import {CurrentPageReference} from 'lightning/navigation';
 import { CloseActionScreenEvent } from 'lightning/actions';
diff --git a/force-app/main/default/lwc/lexDepartmentCreateGYN/lexDepartmentCreateGYN.js b/force-app/main/default/lwc/lexDepartmentCreateGYN/lexDepartmentCreateGYN.js
index 1180273..0b16f86 100644
--- a/force-app/main/default/lwc/lexDepartmentCreateGYN/lexDepartmentCreateGYN.js
+++ b/force-app/main/default/lwc/lexDepartmentCreateGYN/lexDepartmentCreateGYN.js
@@ -1,11 +1,3 @@
-/*
- * @Description: 
- * @version: 
- * @Author: chen jing wu
- * @Date: 2023-07-31 11:05:47
- * @LastEditors: chen jing wu
- * @LastEditTime: 2023-07-31 11:18:49
- */
 import { LightningElement, track, wire, api } from 'lwc';
 import {CurrentPageReference} from 'lightning/navigation';
 import { CloseActionScreenEvent } from 'lightning/actions';
diff --git a/force-app/main/default/lwc/lexDepartmentCreateOTH/lexDepartmentCreateOTH.js b/force-app/main/default/lwc/lexDepartmentCreateOTH/lexDepartmentCreateOTH.js
index 24f9a5f..c9c337c 100644
--- a/force-app/main/default/lwc/lexDepartmentCreateOTH/lexDepartmentCreateOTH.js
+++ b/force-app/main/default/lwc/lexDepartmentCreateOTH/lexDepartmentCreateOTH.js
@@ -1,11 +1,3 @@
-/*
- * @Description: 
- * @version: 
- * @Author: chen jing wu
- * @Date: 2023-07-31 11:18:03
- * @LastEditors: chen jing wu
- * @LastEditTime: 2023-07-31 11:28:22
- */
 import { LightningElement, track, wire, api } from 'lwc';
 import {CurrentPageReference} from 'lightning/navigation';
 import { CloseActionScreenEvent } from 'lightning/actions';
diff --git a/force-app/main/default/lwc/lexInitCreateSolution/lexInitCreateSolution.html b/force-app/main/default/lwc/lexInitCreateSolution/lexInitCreateSolution.html
new file mode 100644
index 0000000..b64e9ca
--- /dev/null
+++ b/force-app/main/default/lwc/lexInitCreateSolution/lexInitCreateSolution.html
@@ -0,0 +1,5 @@
+<template>
+    <div class="Holder" if:true={IsLoading}>
+        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
+    </div>  
+</template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexInitCreateSolution/lexInitCreateSolution.js b/force-app/main/default/lwc/lexInitCreateSolution/lexInitCreateSolution.js
new file mode 100644
index 0000000..2d2fd75
--- /dev/null
+++ b/force-app/main/default/lwc/lexInitCreateSolution/lexInitCreateSolution.js
@@ -0,0 +1,34 @@
+/*
+ * @Description: 
+ * @version: 
+ * @Author: chen jing wu
+ * @Date: 2023-09-06 13:46:37
+ * @LastEditors: chen jing wu
+ * @LastEditTime: 2023-09-06 14:17:26
+ */
+import { LightningElement, track, wire, api } from 'lwc';
+import {CurrentPageReference} from 'lightning/navigation';
+import { CloseActionScreenEvent } from 'lightning/actions';
+import { NavigationMixin } from 'lightning/navigation';
+import { encodeDefaultFieldValues } from 'lightning/pageReferenceUtils';
+
+export default class LexInitCreateSolution extends NavigationMixin(LightningElement) {
+    connectedCallback(){
+        const defaultValues = encodeDefaultFieldValues({
+            Name: '*'
+        });
+        this[NavigationMixin.Navigate]({
+            type: 'standard__objectPage',
+            attributes: {
+                objectApiName: 'SolutionProjectRequirements__c',
+                actionName: 'new'
+            },
+            state: {
+                nooverride: '1',
+                defaultFieldValues: defaultValues,
+                backgroundContext: '/lightning/o/SolutionProjectRequirements__c/list?filterName=Recent'
+            }
+        });
+        this.dispatchEvent(new CloseActionScreenEvent());
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexInitCreateSolution/lexInitCreateSolution.js-meta.xml b/force-app/main/default/lwc/lexInitCreateSolution/lexInitCreateSolution.js-meta.xml
new file mode 100644
index 0000000..d0616f9
--- /dev/null
+++ b/force-app/main/default/lwc/lexInitCreateSolution/lexInitCreateSolution.js-meta.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>51.0</apiVersion>
+    <isExposed>true</isExposed>
+    <targets>
+        <target>lightning__AppPage</target>
+        <target>lightning__RecordPage</target>
+        <target>lightning__HomePage</target>
+        <target>lightning__RecordAction</target>
+    </targets>
+</LightningComponentBundle>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexLastbuyProductNew/lexLastbuyProductNew.html b/force-app/main/default/lwc/lexLastbuyProductNew/lexLastbuyProductNew.html
new file mode 100644
index 0000000..5abcb96
--- /dev/null
+++ b/force-app/main/default/lwc/lexLastbuyProductNew/lexLastbuyProductNew.html
@@ -0,0 +1,5 @@
+<template>
+    <div class="Holder" if:true={IsLoading}>
+        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
+    </div> 
+</template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexLastbuyProductNew/lexLastbuyProductNew.js b/force-app/main/default/lwc/lexLastbuyProductNew/lexLastbuyProductNew.js
new file mode 100644
index 0000000..2de628c
--- /dev/null
+++ b/force-app/main/default/lwc/lexLastbuyProductNew/lexLastbuyProductNew.js
@@ -0,0 +1,26 @@
+import { LightningElement, track, wire, api } from 'lwc';
+import {CurrentPageReference} from 'lightning/navigation';
+import { CloseActionScreenEvent } from 'lightning/actions';
+import { NavigationMixin } from 'lightning/navigation';
+import { encodeDefaultFieldValues } from 'lightning/pageReferenceUtils';
+
+export default class LexLastbuyProductNew extends NavigationMixin(LightningElement) {
+    connectedCallback(){
+        const defaultValues = encodeDefaultFieldValues({
+            Name: '*'
+        });
+        this[NavigationMixin.Navigate]({
+            type: 'standard__objectPage',
+            attributes: {
+                objectApiName: 'LastbuyProduct__c',
+                actionName: 'new'
+            },
+            state: {
+                nooverride: '1',
+                defaultFieldValues: defaultValues,
+                backgroundContext: '/lightning/o/LastbuyProduct__c/list?filterName=Recent'
+            }
+        });
+        this.dispatchEvent(new CloseActionScreenEvent());
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexLastbuyProductNew/lexLastbuyProductNew.js-meta.xml b/force-app/main/default/lwc/lexLastbuyProductNew/lexLastbuyProductNew.js-meta.xml
new file mode 100644
index 0000000..d0616f9
--- /dev/null
+++ b/force-app/main/default/lwc/lexLastbuyProductNew/lexLastbuyProductNew.js-meta.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>51.0</apiVersion>
+    <isExposed>true</isExposed>
+    <targets>
+        <target>lightning__AppPage</target>
+        <target>lightning__RecordPage</target>
+        <target>lightning__HomePage</target>
+        <target>lightning__RecordAction</target>
+    </targets>
+</LightningComponentBundle>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.html b/force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.html
index 084b7cb..22c4e22 100644
--- a/force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.html
+++ b/force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.html
@@ -15,7 +15,7 @@
                     <div class="slds-combobox__form-element slds-input-has-icon slds-input-has-icon_right" role="none">
                        <template if:false={recordselected}>
                           <input class="slds-input slds-combobox__input" id="combobox-id-1" aria-autocomplete="list" aria-controls="listbox-id-1"
-                             role="textbox" type="text" placeholder="Search..." style="width: 190px;"  onkeyup={onKeyChange} value={selectedValue}/ disabled={disabled}>
+                             role="textbox" type="text" placeholder="Search..." style="width: 190px;"  onkeyup={onKeyChange} value={selectedValue}/ disabled={disabled} onclick={onKeyChange}>
                        </template>
                        <template if:true={recordselected}>
                           <span class="slds-pill slds-pill_link fullWidth slds-input slds-combobox__input"> 
diff --git a/force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.js b/force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.js
index aa4afc2..e459cd4 100644
--- a/force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.js
+++ b/force-app/main/default/lwc/lexLookupLwc/lexLookupLwc.js
@@ -4,7 +4,7 @@
  * @Author: chen jing wu
  * @Date: 2023-05-25 13:59:44
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-08-01 15:34:21
+ * @LastEditTime: 2023-08-16 13:59:32
  */
 import { LightningElement, track, api } from 'lwc';
 import getRecordsByName from '@salesforce/apex/lexLookupController.getRecordsByName'
@@ -68,6 +68,11 @@
         this.recordselected = false;
         this.selectedValue = "";
         this.recordsList = undefined;
+        const customEvent = new CustomEvent('buttonclick', {
+            bubbles: true,  // 浣夸簨浠跺啋娉�
+            composed: true  // 浣夸簨浠跺彲浠ヨ法shadow boundary浼犳挱
+        });
+        this.dispatchEvent(customEvent);
     }
 
     //Method to pass selected record to parent component.
diff --git a/force-app/main/default/lwc/lexLoseReport/lexLoseReport.js b/force-app/main/default/lwc/lexLoseReport/lexLoseReport.js
index ea92549..432e6d8 100644
--- a/force-app/main/default/lwc/lexLoseReport/lexLoseReport.js
+++ b/force-app/main/default/lwc/lexLoseReport/lexLoseReport.js
@@ -4,7 +4,7 @@
  * @Author: chen jing wu
  * @Date: 2023-04-20 14:08:55
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-05-12 11:35:46
+ * @LastEditTime: 2023-08-25 16:44:13
  */
 /*
  * @Description: 
@@ -82,7 +82,7 @@
         //alert("鍏宠仈鎷涙姇鏍囬」鐩殑璇环锛屽彧鑳藉湪鏈夌粨鏋滃悗鍋氬け鍗曟姤鍛婏紒");
         //}
         else {
-            var url = '/apex/PCLLostReportPage?pageStatus=Create&oppId=' + this.recordId + '&lostType=澶卞崟';
+            var url = '/apex/PCLLostReportPageLwc?pageStatus=Create&oppId=' + this.recordId + '&lostType=澶卞崟';
             location.href = url;
             // location.href = '/a1U/e?retURL=%2F' + this.recordId +
             // '&RecordType=01210000000R4hM' +
@@ -100,9 +100,10 @@
     }
     showToast(msg,type) {
         const event = new ShowToastEvent({
-            title: '',
+            title: ' ',
             message: msg,
-            variant: type
+            variant: type,
+            mode: 'sticky'
         });
         this.dispatchEvent(event);
     }
diff --git a/force-app/main/default/lwc/lexNewAgencyHospital/lexNewAgencyHospital.js b/force-app/main/default/lwc/lexNewAgencyHospital/lexNewAgencyHospital.js
index 23ea464..a5bfcfb 100644
--- a/force-app/main/default/lwc/lexNewAgencyHospital/lexNewAgencyHospital.js
+++ b/force-app/main/default/lwc/lexNewAgencyHospital/lexNewAgencyHospital.js
@@ -1,11 +1,3 @@
-/*
- * @Description: 
- * @version: 
- * @Author: chen jing wu
- * @Date: 2023-06-15 09:52:50
- * @LastEditors: chen jing wu
- * @LastEditTime: 2023-07-25 09:16:27
- */
 import { api, wire,LightningElement } from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
 import { CloseActionScreenEvent } from 'lightning/actions';
@@ -64,4 +56,4 @@
         });
         }
     }
-}
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexNewSolutionClosingAttachment/lexNewSolutionClosingAttachment.js b/force-app/main/default/lwc/lexNewSolutionClosingAttachment/lexNewSolutionClosingAttachment.js
index 035d557..9198841 100644
--- a/force-app/main/default/lwc/lexNewSolutionClosingAttachment/lexNewSolutionClosingAttachment.js
+++ b/force-app/main/default/lwc/lexNewSolutionClosingAttachment/lexNewSolutionClosingAttachment.js
@@ -1,3 +1,11 @@
+/*
+ * @Description: 
+ * @version: 
+ * @Author: chen jing wu
+ * @Date: 2023-08-29 14:42:25
+ * @LastEditors: chen jing wu
+ * @LastEditTime: 2023-08-29 14:42:44
+ */
 import { api, wire,LightningElement } from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
 import { CloseActionScreenEvent } from 'lightning/actions';
@@ -8,7 +16,7 @@
 import { NavigationMixin } from 'lightning/navigation';
 import { encodeDefaultFieldValues } from 'lightning/pageReferenceUtils';
 
-export default class LexNewSolutionClosingAttachment extends LightningElement {
+export default class LexNewSolutionClosingAttachment extends NavigationMixin(LightningElement) {
     @api recordId;
     schemeType;
     @wire(CurrentPageReference)
diff --git a/force-app/main/default/lwc/lexNewSolutonProLwc/lexNewSolutonProLwc.js b/force-app/main/default/lwc/lexNewSolutonProLwc/lexNewSolutonProLwc.js
index 9b22f13..b2d232f 100644
--- a/force-app/main/default/lwc/lexNewSolutonProLwc/lexNewSolutonProLwc.js
+++ b/force-app/main/default/lwc/lexNewSolutonProLwc/lexNewSolutonProLwc.js
@@ -1,3 +1,11 @@
+/*
+ * @Description: 
+ * @version: 
+ * @Author: chen jing wu
+ * @Date: 2023-08-24 15:52:32
+ * @LastEditors: chen jing wu
+ * @LastEditTime: 2023-08-24 15:54:14
+ */
 import { api, wire,LightningElement } from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
 import { CloseActionScreenEvent } from 'lightning/actions';
@@ -64,6 +72,7 @@
             this.salesAssistant = '';
         }
         const defaultValues = encodeDefaultFieldValues({
+            Name: '*',
             Hospital__c: this.hospitalId == undefined ? '' : this.hospitalId,
             Department_Class__c: this.accountId == undefined ? '' : this.accountId,
             Sales_Assistant__c: this.salesAssistant == undefined ? '' : this.salesAssistant
diff --git a/force-app/main/default/lwc/lexOCSMNoToReportForReport/lexOCSMNoToReportForReport.js b/force-app/main/default/lwc/lexOCSMNoToReportForReport/lexOCSMNoToReportForReport.js
index 06733d2..cc24b1c 100644
--- a/force-app/main/default/lwc/lexOCSMNoToReportForReport/lexOCSMNoToReportForReport.js
+++ b/force-app/main/default/lwc/lexOCSMNoToReportForReport/lexOCSMNoToReportForReport.js
@@ -4,7 +4,7 @@
  * @Author: chen jing wu
  * @Date: 2023-03-28 15:59:44
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-05-24 16:12:08
+ * @LastEditTime: 2023-05-24 16:09:50
  */
 import { api, wire,LightningElement } from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
@@ -71,7 +71,7 @@
                     return;
                 }
                 } catch(e) {
-                    console.log(e);
+                    
                 }
         }else{
             this.dispatchEvent(new CloseActionScreenEvent());
diff --git a/force-app/main/default/lwc/lexOCSMToReport/lexOCSMToReport.js b/force-app/main/default/lwc/lexOCSMToReport/lexOCSMToReport.js
index 28bf34f..d00ccd3 100644
--- a/force-app/main/default/lwc/lexOCSMToReport/lexOCSMToReport.js
+++ b/force-app/main/default/lwc/lexOCSMToReport/lexOCSMToReport.js
@@ -2,14 +2,6 @@
  * @Description: 
  * @version: 
  * @Author: chen jing wu
- * @Date: 2023-05-08 14:36:33
- * @LastEditors: chen jing wu
- * @LastEditTime: 2023-05-24 16:21:07
- */
-/*
- * @Description: 
- * @version: 
- * @Author: chen jing wu
  * @Date: 2023-04-07 09:02:03
  * @LastEditors: chen jing wu
  * @LastEditTime: 2023-05-24 16:16:57
diff --git a/force-app/main/default/lwc/lexOPDReport/lexOPDReport.js b/force-app/main/default/lwc/lexOPDReport/lexOPDReport.js
index 50883e0..541bfa6 100644
--- a/force-app/main/default/lwc/lexOPDReport/lexOPDReport.js
+++ b/force-app/main/default/lwc/lexOPDReport/lexOPDReport.js
@@ -93,6 +93,7 @@
                 Opportunity_Situation__c: '璺熻繘璇环',
                 
             });
+            console.log('defaultValues = ' + defaultValues);
             this[NavigationMixin.Navigate]({
                 type: 'standard__objectPage',
                 attributes: {
@@ -100,7 +101,7 @@
                     actionName: 'new'
                 },
                 state: {
-                    nooverride: '1',
+                    //nooverride: '1',
                     defaultFieldValues: defaultValues,
                     recordTypeId: this.recordTypeId
                 }
@@ -118,6 +119,7 @@
             Report_OPDPlan__c: this.opdPlan,
             Hospital_Department__c: this.account
         });
+        console.log('defaultValues = ' + defaultValues);
         this[NavigationMixin.Navigate]({
             type: 'standard__objectPage',
             attributes: {
@@ -125,7 +127,7 @@
                 actionName: 'new'
             },
             state: {
-                nooverride: '1',
+                //nooverride: '1',
                 defaultFieldValues: defaultValues,
                 recordTypeId: this.recordTypeId
             }
diff --git a/force-app/main/default/lwc/lexOPDReportConsum/lexOPDReportConsum.js b/force-app/main/default/lwc/lexOPDReportConsum/lexOPDReportConsum.js
index 674b4cf..be545a3 100644
--- a/force-app/main/default/lwc/lexOPDReportConsum/lexOPDReportConsum.js
+++ b/force-app/main/default/lwc/lexOPDReportConsum/lexOPDReportConsum.js
@@ -4,7 +4,7 @@
  * @Author: chen jing wu
  * @Date: 2023-06-09 16:41:45
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-07-06 09:34:39
+ * @LastEditTime: 2023-07-06 09:26:09
  */
 import { LightningElement,api, track, wire } from 'lwc';
 import {CurrentPageReference} from 'lightning/navigation';
@@ -95,7 +95,9 @@
                     actionName: 'new'
                 },
                 state: {
-                    nooverride: '1',
+                    // 2023 08 04 寮犺但闃� PIPL鐩稿叧鎸夐挳鏀归�� Start
+                    //nooverride: '1',
+                    // 2023 08 04 寮犺但闃� PIPL鐩稿叧鎸夐挳鏀归�� End
                     defaultFieldValues: defaultValues,
                     recordTypeId: this.recordTypeId
                 }
@@ -114,11 +116,32 @@
                     actionName: 'new'
                 },
                 state: {
-                    nooverride: '1',
+                    // 2023 08 04 寮犺但闃� PIPL鐩稿叧鎸夐挳鏀归�� Start
+                    //nooverride: '1',
+                    // 2023 08 04 寮犺但闃� PIPL鐩稿叧鎸夐挳鏀归�� End
                     defaultFieldValues: defaultValues,
                     recordTypeId: this.recordTypeId1
                 }
             });
         }
+        // }else{
+        //     strs = '';
+        // }
+        // if(strs.length<=0){
+        //     url = '/setup/ui/recordtypeselect.jsp?retURL=%2F' 
+        //     + this.rentalApplyId 
+        //     + '&save_new_url=%2Fa0B%2Fe%3FretURL%3D%252Fa0B%252Fo';
+        // }else{
+        //     url = '/a0B/e?retURL=%2Fa0B%2Fo' + strs;
+        // }
+        // url += '&CF00N100000098rY2=' + this.name +
+        // '&CF00N100000098rY2_lkid=' + this.recordId +
+        // '&CF00N10000002DPUD=' + this.hospital +
+        // '&CF00N10000002DPUD_lkid=' + this.hospitalId +
+        // '&CF00N10000002Dh0f=' + this.strategicDept +
+        // '&CF00N10000002Dh0f_lkid=' + this.strategicDeptId +
+        // '&CF00N10000002CWW4=' + this.account +
+        // '&CF00N10000002CWW4_lkid=' + this.accountId +'&ent=01I10000000SWfe';
+        // window.open(url);
     }
 }
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexOpporSplite/lexOpporSplite.js b/force-app/main/default/lwc/lexOpporSplite/lexOpporSplite.js
index f55c4a5..22d1607 100644
--- a/force-app/main/default/lwc/lexOpporSplite/lexOpporSplite.js
+++ b/force-app/main/default/lwc/lexOpporSplite/lexOpporSplite.js
@@ -4,7 +4,7 @@
  * @Author: chen jing wu
  * @Date: 2023-04-23 10:09:31
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-06-05 11:53:46
+ * @LastEditTime: 2023-05-15 11:06:07
  */
 import { api, wire,LightningElement } from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
@@ -12,9 +12,8 @@
 import { updateRecord } from 'lightning/uiRecordApi';
 import { ShowToastEvent } from 'lightning/platformShowToastEvent';
 import init  from '@salesforce/apex/OpportunityLightingButtonController.initForOpporSpliteButton';
-import { NavigationMixin } from 'lightning/navigation';
-import { encodeDefaultFieldValues } from 'lightning/pageReferenceUtils';
-export default class LexOpporSplite extends NavigationMixin(LightningElement) {
+
+export default class LexOpporSplite extends LightningElement {
     @api recordId;
     authorizedDBNo;
     estimationDecision;
@@ -62,30 +61,18 @@
         }else if(this.siDecideID == ''){
             this.showToast("闇�姹傝〃鏈壒鍑嗭紝涓嶈兘鎷嗗崟","error");
         }else if(this.recordId != '鑽夋涓�' && this.recordId != '宸叉彁浜�' && this.recordId != '宸茬粓姝�'){
-            // console.log("sss");
-            // window.open(
-            //         "/"
-            //         + this.recordId
-            //         + "/e?clone=1&retURL=%2F" 
-            //         + this.recordId + "&00N10000002Cbwh=*&CF00N10000006qHai=" 
-            //         + this.name + "&00Np0000001DOwi=***&00Np0000001CxmR=" 
-            //         + this.opportunityNo + "&CF00N10000006qHai_lkid=" 
-            //         + this.recordId + "&00N10000006qHav=" 
-            //         + this.opportunityNo + "&00N10000009Glvn=" 
-            //         + this.isAuthorized + "&00N10000008pnmd=1&00N10000002DXkZ=&00N10000002DXke=&00N10000002CmTf=&00N10000002Cb9P=&00N10000002DItz=&00N10000003O9oO=&00N10000003O9o4=&00N10000002CYHy=&00Np00000030gzb=&00Np0000002ajGe=&00Np00000034Qlb"
-            // );
-            this[NavigationMixin.Navigate]({
-                type: 'standard__objectPage',
-                attributes: {
-                    objectApiName: 'Opportunity',
-                    actionName: 'clone',
-                    recordId: this.recordId
-                },
-                state: {
-                    nooverride: '1',
-                    // defaultFieldValues: defaultValues,
-                }
-            });
+            console.log("sss");
+            window.open(
+                    "/"
+                    + this.recordId
+                    + "/e?clone=1&retURL=%2F" 
+                    + this.recordId + "&00N10000002Cbwh=*&CF00N10000006qHai=" 
+                    + this.name + "&00Np0000001DOwi=***&00Np0000001CxmR=" 
+                    + this.opportunityNo + "&CF00N10000006qHai_lkid=" 
+                    + this.recordId + "&00N10000006qHav=" 
+                    + this.opportunityNo + "&00N10000009Glvn=" 
+                    + this.isAuthorized + "&00N10000008pnmd=1&00N10000002DXkZ=&00N10000002DXke=&00N10000002CmTf=&00N10000002Cb9P=&00N10000002DItz=&00N10000003O9oO=&00N10000003O9o4=&00N10000002CYHy=&00Np00000030gzb=&00Np0000002ajGe=&00Np00000034Qlb"
+            );
         }
         this.dispatchEvent(new CloseActionScreenEvent());
     }
diff --git a/force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.css b/force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.css
index 5328481..13e9cb0 100644
--- a/force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.css
+++ b/force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.css
@@ -6,7 +6,9 @@
 .combobox-container label {
     margin-right: 10px;
 }
-
+.THIS.white svg {
+    fill : white;
+}
 /* .holder{
 	position: relative;
 	display: inline-block;
@@ -79,5 +81,4 @@
         overflow: hidden;
         text-overflow: ellipsis;
         white-space: nowrap;
-    }
-    
\ No newline at end of file
+    }
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.html b/force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.html
index f36488b..0240b7b 100644
--- a/force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.html
+++ b/force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.html
@@ -4,12 +4,38 @@
  * @Author: chen jing wu
  * @Date: 2023-04-20 17:16:48
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-08-02 11:29:37
+ * @LastEditTime: 2023-09-06 15:43:06
 -->
 <template>
     <div class="holder" if:true={IsLoading}>
         <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
     </div>
+    <template if:true={visible}>
+        <template if:true={isSuccess}>
+            <div style="position:absolute;top:1rem;left:1rem;right:1rem;position: fixed;z-index: 9999;">
+                <div class="slds-notify_container slds-is-relative">
+                    <div class="slds-notify slds-notify_toast slds-theme_default slds-box slds-box_small"  style="background-color:rgb(46, 132, 74);" role="success">
+                    <div class="slds-align_absolute-center">
+                        <h2 style="color:white;font-size:large">{message}</h2>
+                        <lightning-icon class="white" icon-name="utility:success" alternative-text="success" variant="Success" size="small" ></lightning-icon>
+                    </div>
+                    </div>
+                </div>
+            </div>
+        </template>
+        <template if:false={isSuccess}>
+            <div style="position:absolute;top:1rem;left:1rem;right:1rem;position: fixed;z-index: 9999;">
+                <div class="slds-notify_container slds-is-relative">
+                    <div class="slds-notify slds-notify_toast slds-theme_default slds-box slds-box_small"  style="background-color:rgb(234, 0, 30);" role="success">
+                    <div class="slds-align_absolute-center">
+                        <h2 style="color:white;font-size:large">{message}</h2>
+                        <lightning-icon class="white" icon-name="utility:error" alternative-text="error" variant="Error" size="small" ></lightning-icon>
+                    </div>
+                    </div>
+                </div>
+            </div>
+        </template>
+    </template>
     <template if:true={isInit}>
         <template if:true={isCreateOrEdit}>
             <lightning-card id="my-element1" class="card"  variant="Narrow" data-id="my-card">
@@ -33,7 +59,7 @@
                                     <div style="padding: 10px 3px;font: 16px;float: left">
                                         <span style="color:red;font-size: 10px;">*</span>
                                         澶卞崟绫诲瀷锛�</div>
-                                    <div style="float: left;">
+                                    <div style="float: left;padding-top: 17px;">
                                         <lightning-combobox name="progress" value={LostReport.lostReport.LostType__c} options={RecordTypeOptions} 
                                         onchange={handleLostTypeChange} class="searchField" style="bottom: 16px;">
                                         </lightning-combobox> 
@@ -59,11 +85,11 @@
                                 </lightning-layout-item>
                             </template>
                         </lightning-layout>
-                                <lightning-accordion allow-multiple-sections-open class="myAccordion">
+                                <lightning-accordion active-section-name="澶卞崟鍝佺墝" allow-multiple-sections-open="true" class="myAccordion">
                                         <template for:each={LostReport.LostBrands} for:item="brand" for:index="i">
                                             <li key={brand.lineNo}>
                                                 <div class= "x-accordion-heading">
-                                                    <lightning-accordion-section class="" data-id={i} name="澶卞崟鍝佺墝" label="澶卞崟鍝佺墝" active>
+                                                    <lightning-accordion-section active-section-name="澶卞崟鍝佺墝" class="" data-id={i} name="澶卞崟鍝佺墝" label="澶卞崟鍝佺墝" active="true">
                                                         <lightning-button name="save" label="淇濆瓨" onclick={saveBrandJs}></lightning-button>
                                                         <lightning-button name={i} label="鍒犻櫎" onclick={deleteBrandJs} disabled={isBrandCount2}></lightning-button>
                                                         <lightning-layout>
@@ -75,13 +101,13 @@
                                                                     <c-multi-select-combobox name={i} onselect={setBrandMannualName} data-id="Lost_By_Company" class="mycombobox" options={brandOptions} selected-value={reasonValue} label="澶卞崟鍝佺墝: " required></c-multi-select-combobox>
                                                                 </template> 
                                                             </lightning-layout-item>
-                                                            <lightning-layout-item flexibility="auto" padding="around-small">
-                                                                <lightning-combobox name={i} label="澶卞崟鍘熷洜锛堜富锛�:" value={brand.lostBrand.Lost_reason_main__c} options={columns2} 
-                                                                onchange={handleLostReasonMainChange} class="searchField" required></lightning-combobox>
+                                                            <lightning-layout-item size="4"  padding="around-small">
+                                                                <lightning-combobox name={i} label="澶卞崟鍘熷洜锛堜富锛�:" value={brand.lostBrand.Lost_reason_main__c} options={columns2s} 
+                                                                onchange={handleLostReasonMainChange} class="searchField" placeholder="--鏃�--" required></lightning-combobox>
                                                             </lightning-layout-item>
-                                                            <lightning-layout-item flexibility="auto" padding="around-small">
-                                                                <lightning-combobox name={i} label="澶卞崟鍘熷洜锛堟锛�:" value={brand.lostBrand.Lost_Reason_Sub__c} options={columns2} 
-                                                                onchange={handleLostReasonSubChange} class="searchField"></lightning-combobox>
+                                                            <lightning-layout-item size="4"  padding="around-small">
+                                                                <lightning-combobox name={i} label="澶卞崟鍘熷洜锛堟锛�:" value={brand.lostBrand.Lost_Reason_Sub__c} options={columns2s} 
+                                                                onchange={handleLostReasonSubChange} class="searchField" placeholder="--鏃�--"></lightning-combobox>
                                                             </lightning-layout-item>
                                                         </lightning-layout>
                                                         <lightning-layout> 
@@ -126,14 +152,18 @@
                                                                                 <template for:each={brand.LostProducts} for:item="product" for:index="j">
                                                                                     <tr class="inputRows" key={product.lineNo2}>
                                                                                         <td>
-                                                                                           <lightning-combobox placeholder={product.LostProductss.LostBrandName__c} data-id={i} class="BrandName" name={j} title={i} options={brandOptions} value={product.LostProductss.LostBrandName__c} onchange={handleLostBrandNameChange} read-only="true" style="margin-bottom: 20px; width: 70px"></lightning-combobox> 
+                                                                                           <lightning-combobox placeholder={product.LostProductss.LostBrandName__c} data-id={i} class="BrandName" name={j} title={i} options={brandOptions} value={product.LostProductss.LostBrandName__c} onchange={handleLostBrandNameChange} read-only="true" style="margin-bottom: 20px; width: 130px"></lightning-combobox> 
                                                                                         </td>
                                                                                         <td>
                                                                                             <template if:true={isEdit}>
-                                                                                                <c-lex-lookup-lwc class="Product" data-id={i} title={i} name={j} iconname="standard:product_item" query-brand={product.LostProductss.LostBrandName__c} objectname="Product2" onselected={handleSelected} init-value={product.productName}></c-lex-lookup-lwc>
+                                                                                                <div style="padding-bottom: 17px;">
+                                                                                                    <c-lex-lookup-lwc onbuttonclick={handleCustomButtonClick} class="Product" data-id={i} title={i} name={j} iconname="standard:product_item" query-brand={product.LostProductss.LostBrandName__c} objectname="Product2" onchange={handleClear} onselected={handleSelected} init-value={product.productName} style="margin-bottom: 17px;"></c-lex-lookup-lwc>
+                                                                                                </div> 
                                                                                             </template>
                                                                                             <template if:false={isEdit}>
-                                                                                                <c-lex-lookup-lwc class="Product" data-id={i} title={i} name={j} iconname="standard:product_item" query-brand={product.LostProductss.LostBrandName__c} objectname="Product2" onselected={handleSelected} style="margin-bottom: 20px;"></c-lex-lookup-lwc>
+                                                                                                <div style="padding-bottom: 17px;">
+                                                                                                    <c-lex-lookup-lwc onbuttonclick={handleCustomButtonClick} class="Product" data-id={i} title={i} name={j} iconname="standard:product_item" query-brand={product.LostProductss.LostBrandName__c} objectname="Product2" onchange={handleClear} onselected={handleSelected} style="margin-bottom: 17px;"></c-lex-lookup-lwc>
+                                                                                                </div>
                                                                                             </template>
                                                                                         </td>
                                                                                         <td>
@@ -212,7 +242,7 @@
                                     </lightning-record-view-form> 
                                 </lightning-layout-item>
                                 <lightning-layout-item size="1"></lightning-layout-item>
-                                <lightning-layout-item size="2">
+                                <lightning-layout-item size="1">
                                     <label>澶卞崟鎬婚噾棰濓紙鍏冿級:</label>
                                 </lightning-layout-item>
                                 <lightning-layout-item size="1">
@@ -242,72 +272,81 @@
                         </div>
                         <div style="margin-top: 5px">
                             <div class="slds-box slds-p-around_medium">
-                                <lightning-accordion allow-multiple-sections-open class="myAccordion">
+                                <lightning-accordion allow-multiple-sections-open class="myAccordion" active-section-name="澶卞崟鍝佺墝">
                                     <template for:each={LostReport.LostBrands} for:item="brand" for:index="i">
                                         <li key={brand.lostBrand.Id}>
-                                            <lightning-accordion-section class="text-container" data-id={i} name="澶卞崟鍝佺墝" label="澶卞崟鍝佺墝">
-                                                <lightning-layout>
-                                                    <lightning-layout-item size="2" style="border-style:solid;border-width: 1px;">
-                                                        <label>澶卞崟鍝佺墝:</label>
-                                                    </lightning-layout-item>
-                                                    <lightning-layout-item size="2" style="border-style:solid;border-width: 1px;">
-                                                        <lightning-record-view-form object-api-name="PCLLostBrand__c" record-id={brand.lostBrand.Id} density="comfy">
-                                                            <lightning-output-field field-name="Lost_By_Company__c" variant="label-hidden"></lightning-output-field>
-                                                        </lightning-record-view-form> 
-                                                    </lightning-layout-item>
-                                                    <lightning-layout-item size="2" style="border-style:solid;border-width: 1px;">
-                                                        <label>澶卞崟鍘熷洜锛堜富锛�:</label>
-                                                    </lightning-layout-item>
-                                                    <lightning-layout-item size="2" style="border-style:solid;border-width: 1px;">
-                                                        <lightning-record-view-form object-api-name="PCLLostBrand__c" record-id={brand.lostBrand.Id} density="comfy">
-                                                            <lightning-output-field field-name="Lost_reason_main__c" variant="label-hidden"></lightning-output-field>
-                                                        </lightning-record-view-form> 
-                                                    </lightning-layout-item>
-                                                    <lightning-layout-item size="2" style="border-style:solid;border-width: 1px;">
-                                                        <label>澶卞崟鍘熷洜锛堟锛�:</label>
-                                                    </lightning-layout-item>
-                                                    <lightning-layout-item size="2" style="border-style:solid;border-width: 1px;">
-                                                        <lightning-record-view-form object-api-name="PCLLostBrand__c" record-id={brand.lostBrand.Id} density="comfy">
-                                                            <lightning-output-field field-name="Lost_Reason_Sub__c" variant="label-hidden"></lightning-output-field>
-                                                        </lightning-record-view-form>
-                                                    </lightning-layout-item>
-                                                </lightning-layout>
-                                                <lightning-layout> 
-                                                    <lightning-layout-item size="2" style="border-style:solid;border-width: 1px;">
-                                                        <label>澶卞崟鍝佺墝锛堟墜鍔級:</label>
-                                                    </lightning-layout-item>
-                                                    <lightning-layout-item size="2" style="border-style:solid;border-width: 1px;">
-                                                        <lightning-record-view-form object-api-name="PCLLostBrand__c" record-id={brand.lostBrand.Id} density="comfy">
-                                                            <lightning-output-field field-name="Lost_By_Company_Mannual__c" variant="label-hidden"></lightning-output-field>
-                                                        </lightning-record-view-form> 
-                                                    </lightning-layout-item>
-                                                    <lightning-layout-item size="2" style="border-style:solid;border-width: 1px;">
-                                                        <label>澶卞崟閲戦锛堝厓锛�:</label>
-                                                    </lightning-layout-item>
-                                                    <lightning-layout-item size="2" style="border-style:solid;border-width: 1px;">
-                                                        <lightning-record-view-form object-api-name="PCLLostBrand__c" record-id={brand.lostBrand.Id} density="comfy">
-                                                            <lightning-output-field field-name="LostPrice__c" variant="label-hidden"></lightning-output-field>
-                                                        </lightning-record-view-form> 
-                                                    </lightning-layout-item>
-                                                    <lightning-layout-item size="2" style="border-style:solid;border-width: 1px;">
-                                                        <label>涓爣缁忛攢鍟�:</label>
-                                                    </lightning-layout-item>
-                                                    <lightning-layout-item size="2" style="border-style:solid;border-width: 1px;">
-                                                        <lightning-record-view-form object-api-name="PCLLostBrand__c" record-id={brand.lostBrand.Id} density="comfy">
-                                                            <lightning-output-field field-name="Agency__c" variant="label-hidden"></lightning-output-field>
-                                                        </lightning-record-view-form> 
-                                                    </lightning-layout-item>
-                                                </lightning-layout>
-                                                <lightning-layout>
-                                                    <lightning-layout-item size="2" style="border-style:solid;border-width: 1px;">
-                                                        <label>涓爣缁忛攢鍟嗭紙鎵嬪姩锛�:</label>
-                                                    </lightning-layout-item>
-                                                    <lightning-layout-item size="2" style="border-style:solid;border-width: 1px;">
-                                                        <lightning-record-view-form object-api-name="PCLLostBrand__c" record-id={brand.lostBrand.Id} density="comfy">
-                                                            <lightning-output-field field-name="AgencyMannual__c" variant="label-hidden"></lightning-output-field>
-                                                        </lightning-record-view-form> 
-                                                    </lightning-layout-item>
-                                                </lightning-layout>
+                                            <lightning-accordion-section  class="text-container" data-id={i} name="澶卞崟鍝佺墝" label="澶卞崟鍝佺墝" active>
+                                                
+                                                    <lightning-layout>
+                                                        <lightning-layout-item size="2" style="border-width: 1px;border-bottom-style: groove;border-bottom-color: silver;">
+                                                            <label>澶卞崟鍝佺墝:</label>
+                                                        </lightning-layout-item>
+                                                        <lightning-layout-item size="3" style="border-width: 1px;border-bottom-style: groove;border-bottom-color: silver;">
+                                                            <lightning-record-view-form object-api-name="PCLLostBrand__c" record-id={brand.lostBrand.Id} density="comfy">
+                                                                <lightning-output-field field-name="Lost_By_Company__c" variant="label-hidden"></lightning-output-field>
+                                                            </lightning-record-view-form> 
+                                                        </lightning-layout-item>
+                                                        <lightning-layout-item size="2"></lightning-layout-item>
+                                                        <lightning-layout-item size="2" style="border-width: 1px;border-bottom-style: groove;border-bottom-color: silver;">
+                                                            <label>澶卞崟鍝佺墝锛堟墜鍔級:</label>
+                                                        </lightning-layout-item>
+                                                        <lightning-layout-item size="3" style="border-width: 1px;border-bottom-style: groove;border-bottom-color: silver;">
+                                                            <lightning-record-view-form object-api-name="PCLLostBrand__c" record-id={brand.lostBrand.Id} density="comfy">
+                                                                <lightning-output-field field-name="Lost_By_Company_Mannual__c" variant="label-hidden"></lightning-output-field>
+                                                            </lightning-record-view-form> 
+                                                        </lightning-layout-item>
+                                                    </lightning-layout>
+                                                    <lightning-layout>
+                                                        <lightning-layout-item size="2" style="border-width: 1px;border-bottom-style: groove;border-bottom-color: silver;">
+                                                            <label>澶卞崟鍘熷洜锛堜富锛�:</label>
+                                                        </lightning-layout-item>
+                                                        <lightning-layout-item size="3" style="border-width: 1px;border-bottom-style: groove;border-bottom-color: silver;">
+                                                            <lightning-record-view-form object-api-name="PCLLostBrand__c" record-id={brand.lostBrand.Id} density="comfy">
+                                                                <lightning-output-field field-name="Lost_reason_main__c" variant="label-hidden"></lightning-output-field>
+                                                            </lightning-record-view-form> 
+                                                        </lightning-layout-item>
+                                                        <lightning-layout-item size="2"></lightning-layout-item>
+                                                        <lightning-layout-item size="2" style="border-width: 1px;border-bottom-style: groove;border-bottom-color: silver;">
+                                                            <label>澶卞崟鍘熷洜锛堟锛�:</label>
+                                                        </lightning-layout-item>
+                                                        <lightning-layout-item size="3" style="border-width: 1px;border-bottom-style: groove;border-bottom-color: silver;">
+                                                            <lightning-record-view-form object-api-name="PCLLostBrand__c" record-id={brand.lostBrand.Id} density="comfy">
+                                                                <lightning-output-field field-name="Lost_Reason_Sub__c" variant="label-hidden"></lightning-output-field>
+                                                            </lightning-record-view-form>
+                                                        </lightning-layout-item>
+                                                        
+                                                    </lightning-layout>
+                                                    <lightning-layout> 
+                                                        
+                                                        <lightning-layout-item size="2" style="border-width: 1px;border-bottom-style: groove;border-bottom-color: silver;">
+                                                            <label>涓爣缁忛攢鍟�:</label>
+                                                        </lightning-layout-item>
+                                                        <lightning-layout-item size="3" style="border-width: 1px;border-bottom-style: groove;border-bottom-color: silver;">
+                                                            <lightning-record-view-form object-api-name="PCLLostBrand__c" record-id={brand.lostBrand.Id} density="comfy">
+                                                                <lightning-output-field field-name="Agency__c" variant="label-hidden"></lightning-output-field>
+                                                            </lightning-record-view-form> 
+                                                        </lightning-layout-item>
+                                                        <lightning-layout-item size="2"></lightning-layout-item>
+                                                        <lightning-layout-item size="2" style="border-width: 1px;border-bottom-style: groove;border-bottom-color: silver;">
+                                                            <label>涓爣缁忛攢鍟嗭紙鎵嬪姩锛�:</label>
+                                                        </lightning-layout-item>
+                                                        <lightning-layout-item size="3" style="border-width: 1px;border-bottom-style: groove;border-bottom-color: silver;">
+                                                            <lightning-record-view-form object-api-name="PCLLostBrand__c" record-id={brand.lostBrand.Id} density="comfy">
+                                                                <lightning-output-field field-name="AgencyMannual__c" variant="label-hidden"></lightning-output-field>
+                                                            </lightning-record-view-form> 
+                                                        </lightning-layout-item>
+                                                    </lightning-layout>
+                                                    <lightning-layout>
+                                                        <lightning-layout-item size="2" style="border-width: 1px;border-bottom-style: groove;border-bottom-color: silver;">
+                                                            <label>澶卞崟閲戦锛堝厓锛�:</label>
+                                                        </lightning-layout-item>
+                                                        <lightning-layout-item size="3" style="border-width: 1px;border-bottom-style: groove;border-bottom-color: silver;">
+                                                            <lightning-record-view-form object-api-name="PCLLostBrand__c" record-id={brand.lostBrand.Id} density="comfy">
+                                                                <lightning-output-field field-name="LostPrice__c" variant="label-hidden"></lightning-output-field>
+                                                            </lightning-record-view-form> 
+                                                        </lightning-layout-item>
+                                                    </lightning-layout>
+                                                
                                                 <lightning-layout>
                                                     <lightning-layout-item flexibility="auto" padding="around-small">
                                                         <!-- <template if:true={isInit}>
diff --git a/force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.js b/force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.js
index 2a0a5da..aa15bbc 100644
--- a/force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.js
+++ b/force-app/main/default/lwc/lexPCLLostReportPage/lexPCLLostReportPage.js
@@ -4,15 +4,26 @@
  * @Author: chen jing wu
  * @Date: 2023-04-20 15:04:03
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-08-01 16:22:17
+ * @LastEditTime: 2023-09-07 14:46:02
  */
-const columns2=[
+let columns2=[
     { label: '--鏃�--', value: '' },
     { label: '鏃犱俊鎭紝璺熻繘涓嶅強鏃�', value: '鏃犱俊鎭紝璺熻繘涓嶅強鏃�' },
     { label: '浠锋牸', value: '浠锋牸' },
     { label: '鍖荤敓鍋忓ソ', value: '鍖荤敓鍋忓ソ' },
     { label: '鏈嶅姟涓嶅埌浣�', value: '鏈嶅姟涓嶅埌浣�' },
     { label: '琛屾斂鍐崇瓥', value: '琛屾斂鍐崇瓥' },
+    { label: '绔炲搧鍘熸湁鍩虹涓婂娣昏澶�', value: '绔炲搧鍘熸湁鍩虹涓婂娣昏澶�' },
+    { label: '娓犻亾鍥犵礌', value: '娓犻亾鍥犵礌' },
+    { label: '鏌愮浜у搧缂哄け', value: '鏌愮浜у搧缂哄け' },
+    { label: '閲囪喘骞宠 ', value: '閲囪喘骞宠 ' }
+];
+let columns22=[
+    { label: '--鏃�--', value: '' },
+    { label: '鏃犱俊鎭紝璺熻繘涓嶅強鏃�', value: '鏃犱俊鎭紝璺熻繘涓嶅強鏃�' },
+    { label: '浠锋牸', value: '浠锋牸' },
+    { label: '鍖荤敓鍋忓ソ', value: '鍖荤敓鍋忓ソ' },
+    { label: '鏈嶅姟涓嶅埌浣�', value: '鏈嶅姟涓嶅埌浣�' },
     { label: '绔炲搧鍘熸湁鍩虹涓婂娣昏澶�', value: '绔炲搧鍘熸湁鍩虹涓婂娣昏澶�' },
     { label: '娓犻亾鍥犵礌', value: '娓犻亾鍥犵礌' },
     { label: '鏌愮浜у搧缂哄け', value: '鏌愮浜у搧缂哄け' },
@@ -46,7 +57,6 @@
 import { api, wire,track,LightningElement } from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
 import dataEntry from '@salesforce/apex/lexPCLLostReportLwcController.dataEntry';
-import { ShowToastEvent } from 'lightning/platformShowToastEvent';
 import init from '@salesforce/apex/lexPCLLostReportLwcController.init';
 import multiSelectCombobox from 'c/multiSelectCombobox'
 import searchBrands from '@salesforce/apex/lexPCLLostReportLwcController.searchBrands';
@@ -55,17 +65,21 @@
 import getPickList from '@salesforce/apex/lexPCLLostReportLwcController.getPickList';
 import { NavigationMixin } from 'lightning/navigation';
 import submit from '@salesforce/apex/lexPCLLostReportLwcController.submit';
+import searchBatchIfForProduct from '@salesforce/apex/lexPCLLostReportLwcController.searchBatchIfForProduct';
 import {CloseActionScreenEvent} from 'lightning/actions'; 
 import lexLookupLwc from 'c/lexLookupLwc';
 import searchProduct from '@salesforce/apex/lexPCLLostReportLwcController.searchProduct';
 import { updateRecord } from 'lightning/uiRecordApi';
 export default class LexPCLLostReportPage extends NavigationMixin(LightningElement) {
-
+    @track visible = false;
+    @wire(CurrentPageReference) pageRef;
     @api oppId;
-    @track columns2=columns2;
+    @track columns2s=columns22;
     @track status = {
         pageStatus: 'Create'
       }
+    @track message;
+    @track isSuccess;
     @track LostReport = {
         LostBrands: [
         ],
@@ -77,7 +91,8 @@
     submitFlag = '';
     flag;
     tableflag = 0;
-    reportId = '';
+    @api reportId;
+    @api pageStatus;
     newProduct;
     productOptionsList;
     productClassOptions = productClassOptions;
@@ -90,7 +105,26 @@
     deleteProductIdList = [];
     IsLoading;
     newApprovalHistorys;
+    handleCustomButtonClick(event) {
+        try {
+            var index1 = event.target.title;
+            var index2 = event.target.name;
+            var elements1 = this.template.querySelectorAll('.ProductClass[data-id="' + index1 + '"]');
+            var elements2 = this.template.querySelectorAll('.ProductCategory[data-id="' + index1 + '"]');
+            this.LostReport.LostBrands[index1].LostProducts[index2].LostProductss.LostProduct__c = null;
+            elements1[index2].readOnly = false;
+            elements2[index2].readOnly = false;
+            this.LostReport.LostBrands[index1].LostProducts[index2].LostProductss.ProductClass__c=null;
+            this.LostReport.LostBrands[index1].LostProducts[index2].LostProductss.ProductCategory__c=null;
+            this.LostReport.LostBrands[index1].LostProducts[index2].bool=false;
+            elements2[index2].readOnly = true;
+        } catch (error) {
+            console.log('error');
+        }
+    }
+    
     connectedCallback(){
+        this.status.pageStatus = this.pageStatus;
         init({
             oppId1: this.oppId,
             lostReportId1: this.reportId,
@@ -114,6 +148,36 @@
                 this.newProduct = JSON.parse(JSON.stringify(this.LostReport.LostBrands[0].LostProducts[0]));
                 this.newApprovalHistorys = JSON.parse(JSON.stringify(this.LostReport.approvalHistorys));
                 console.log(this.LostReport);
+                console.log(this.LostReport.approvalHistorys.length);
+                if(this.LostReport.approvalHistorys.length > 0){
+                    for(var i=0;i < this.LostReport.approvalHistorys.length;i++){
+                        console.log('123');
+                        var date = new Date(this.LostReport.approvalHistorys[i].CreatedDate);
+                        this.LostReport.approvalHistorys[i].CreatedDate = date.toLocaleString();
+                        if(this.LostReport.approvalHistorys[i].StepStatus == 'Approved'){
+                            this.LostReport.approvalHistorys[i].StepStatus = '宸叉壒鍑�';
+                        }else if(this.LostReport.approvalHistorys[i].StepStatus == 'Fault'){
+    
+                        }else if(this.LostReport.approvalHistorys[i].StepStatus == 'Pending'){
+                            this.LostReport.approvalHistorys[i].StepStatus = '寰呭鐞�';
+                        }else if(this.LostReport.approvalHistorys[i].StepStatus == 'Held'){
+    
+                        }else if(this.LostReport.approvalHistorys[i].StepStatus == 'NoResponse'){
+    
+                        }else if(this.LostReport.approvalHistorys[i].StepStatus == 'Reassigned'){
+    
+                        }else if(this.LostReport.approvalHistorys[i].StepStatus == 'Rejected'){
+                            resthis.LostReportult.approvalHistorys[i].StepStatus = '宸叉嫆缁�';
+                        }else if(this.LostReport.approvalHistorys[i].StepStatus == 'Removed'){
+    
+                        }else if(this.LostReport.approvalHistorys[i].StepStatus == 'Started'){
+                            this.LostReport.approvalHistorys[i].StepStatus = '宸叉彁浜�';
+                        }
+                        // this.LostReport.approvalHistorys.push(JSON.parse(JSON.stringify(result.approvalHistorys[i])));
+                        console.log('321');
+                    }
+                    this.submitFlag = true;
+                }
                 this.isInit = true;
             }
             }).catch(error=>{
@@ -141,6 +205,13 @@
         });
 
     }
+    renderedCallback(){
+        const sections = this.template.querySelectorAll('lightning-accordion-section');
+        sections.forEach(section=>{
+            console.log(section);
+            section.active = true;    
+        });
+    }
 
     @wire(CurrentPageReference)
     getStateParameters(currentPageReference) {
@@ -159,12 +230,30 @@
     }
 
     showToast(msg,type) {
-        const event = new ShowToastEvent({
-            title: '',
-            message: msg,
-            variant: type
-        });
-        this.dispatchEvent(event);
+        try {
+            if(type == 'success'){
+                this.isSuccess = true;
+            }else{
+                this.isSuccess = false;
+            }
+            this.message = msg;
+            this.visible = true;
+            let delay = 5000;
+            console.log(this.message);
+            console.log('1');
+            setTimeout(() => {
+                this.visible = false;
+            }, delay ); 
+        } catch (error) {
+            console.log(error);
+        }
+
+        // const event = new ShowToastEvent({
+        //     title: '',
+        //     message: msg,
+        //     variant: type
+        // });
+        // this.dispatchEvent(event);
     }
     updateRecordView(recordId) {
         updateRecord({fields: { Id: recordId }});
@@ -292,13 +381,14 @@
         });
     }
     onApproveChange(event){
-        this[NavigationMixin.Navigate]({
-            type: 'standard__recordPage',
-            attributes: {
-                recordId: this.LostReport.approvalHistorys[0].Id,
-                actionName: 'view'
-            }
-        });
+        window.open('/lightning/r/ProcessInstanceStep/'+ this.LostReport.approvalHistorys[0].Id + '/view?0.source=alohaHeader');
+        // this[NavigationMixin.Navigate]({
+        //     type: 'standard__recordPage',
+        //     attributes: {
+        //         recordId: this.LostReport.approvalHistorys[0].Id,
+        //         actionName: 'view'
+        //     }
+        // });
     }
     
 
@@ -337,11 +427,25 @@
             console.log(this.deleteProductIdList);
         }
         this.LostReport.LostBrands[index].lostBrand.Lost_By_Company__c = payload.value;
-        if(payloadType === 'multi-select'){
-            this.clearProducts(payload.value,index);
-            this.setDefaultBrand(payload.value,index);
-            this.clearBrandMannualName(payload.value,index);
-        }
+        this.LostReport.LostBrands[index].lostBrand.Lost_reason_main__c = '';
+        this.LostReport.LostBrands[index].lostBrand.Lost_Reason_Sub__c = '';
+        searchBatchIfForProduct({
+            productName: this.LostReport.LostBrands[index].lostBrand.Lost_By_Company__c
+        }).then(result=>{
+            console.log(result);
+            if(result == '杩涘彛'){
+                this.columns2s = columns2;
+            }else{
+                this.columns2s = columns22;
+            }
+            if(payloadType === 'multi-select'){
+            
+                this.clearProducts(payload.value,index);
+                this.setDefaultBrand(payload.value,index);
+                this.clearBrandMannualName(payload.value,index);
+            }
+        });
+        
     }
     setDefaultBrand(value,index){
         var newProducts = [];
@@ -393,13 +497,14 @@
     }
     cancel() {
         // Navigate to the specified opportunity page using the NavigationMixin
-        this[NavigationMixin.Navigate]({
-            type: 'standard__recordPage',
-            attributes: {
-                recordId: this.oppId,
-                actionName: 'view'
-            }
-        });
+        // this[NavigationMixin.Navigate]({
+        //     type: 'standard__recordPage',
+        //     attributes: {
+        //         recordId: this.oppId,
+        //         actionName: 'view'
+        //     }
+        // });
+        window.location = '/' +this.oppId;
     }
     
     saveBrandJs(event) {
@@ -582,6 +687,7 @@
         console.log(this.deleteProductIdList);
     }
     search(topNum,secondNum){
+        console.log('12345');
         var elements1 = this.template.querySelectorAll('.ProductClass[data-id="' + topNum + '"]');
         var elements2 = this.template.querySelectorAll('.ProductCategory[data-id="' + topNum + '"]');
         if (this.LostReport.LostBrands[topNum].LostProducts[secondNum].LostProductss.LostProduct__c==null) {
@@ -590,8 +696,8 @@
 			this.LostReport.LostBrands[topNum].LostProducts[secondNum].LostProductss.ProductClass__c=null;
 			this.LostReport.LostBrands[topNum].LostProducts[secondNum].LostProductss.ProductCategory__c=null;
 			this.LostReport.LostBrands[topNum].LostProducts[secondNum].bool=false;
-            elements1[secondNum].readOnly = true;
-            elements2[secondNum].readOnly = true;
+            // elements1[secondNum].readOnly = true;
+            // elements2[secondNum].readOnly = true;
 
 		}else {
 			searchProduct({
@@ -622,7 +728,13 @@
 			
 		}
     }
+
+    handleClear(event){
+        console.log('ssss');
+    }
+
     handleSelected(event) {
+        console.log('54321');
         var index1 = event.target.title;
         var index2 = event.target.name;
         this.LostReport.LostBrands[index1].LostProducts[index2].LostProductss.LostProduct__c = event.detail.Id;
diff --git a/force-app/main/default/lwc/lexQuotationProductNew/lexQuotationProductNew.js b/force-app/main/default/lwc/lexQuotationProductNew/lexQuotationProductNew.js
index d3a3a75..31d9b4a 100644
--- a/force-app/main/default/lwc/lexQuotationProductNew/lexQuotationProductNew.js
+++ b/force-app/main/default/lwc/lexQuotationProductNew/lexQuotationProductNew.js
@@ -4,7 +4,7 @@
  * @Author: chen jing wu
  * @Date: 2023-04-14 17:15:33
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-06-05 10:36:22
+ * @LastEditTime: 2023-09-08 13:07:55
  */
 import { api, wire,LightningElement } from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
@@ -49,10 +49,10 @@
         var Currency = this.currencyIsoCode;
         var OppID = this.recordId;
         if (Currency == 'CNY'){
-        var url = '/' + this.reportForCNYId + '?pv0=' + OppID;
+        var url = '/lightning/r/Report/' + this.reportForCNYId + '/view?fv0=' + OppID;
         }
         else if (Currency == 'USD'){
-        var url = '/' + this.reportForUSDId + '?pv0=' + OppID;
+        var url = '/lightning/r/Report/' + this.reportForUSDId + '/view?fv0=' + OppID;
         }
         window.open(url);
         this.dispatchEvent(new CloseActionScreenEvent());
diff --git a/force-app/main/default/lwc/lexSpecSubmit/lexSpecSubmit.html b/force-app/main/default/lwc/lexSpecSubmit/lexSpecSubmit.html
index 87b4e9e..0a04a90 100644
--- a/force-app/main/default/lwc/lexSpecSubmit/lexSpecSubmit.html
+++ b/force-app/main/default/lwc/lexSpecSubmit/lexSpecSubmit.html
@@ -1,7 +1,13 @@
+<!--
+ * @Description: 
+ * @version: 
+ * @Author: chen jing wu
+ * @Date: 2023-07-28 15:58:45
+ * @LastEditors: chen jing wu
+ * @LastEditTime: 2023-08-10 15:02:42
+-->
 <template>
     <div class="specSubmitHolder" if:true={IsLoading}>
-        <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
-        <lightning-button label="Show Toast" onclick={ShowToastEvent}></lightning-button>
-        <lightning-button onclick={handleConfirmClick} label="Open Confirm Modal"></lightning-button>
+        <lightning-spinner alternative-text="Loading" size="small"></lightning-spinner>
     </div>
 </template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexSpecSubmit/lexSpecSubmit.js b/force-app/main/default/lwc/lexSpecSubmit/lexSpecSubmit.js
index 4ad66b6..72a5821 100644
--- a/force-app/main/default/lwc/lexSpecSubmit/lexSpecSubmit.js
+++ b/force-app/main/default/lwc/lexSpecSubmit/lexSpecSubmit.js
@@ -4,22 +4,26 @@
  * @Author: chen jing wu
  * @Date: 2023-06-06 15:41:32
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-07-07 10:35:35
+ * @LastEditTime: 2023-09-01 09:33:28
  */
-import { api, wire,LightningElement } from 'lwc';
+import { api, wire,LightningElement, track } from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
 import { CloseActionScreenEvent } from 'lightning/actions';
 import updateForSpecSubmitButton  from '@salesforce/apex/lexOpportunitySpecialApplyController.updateForSpecSubmitButton';
 import init  from '@salesforce/apex/lexOpportunitySpecialApplyController.initForSpecSubmitButton';
-import { updateRecord } from 'lightning/uiRecordApi';
+import { updateRecord,getRecord } from 'lightning/uiRecordApi';
 import { ShowToastEvent } from 'lightning/platformShowToastEvent';
 import LightningConfirm from 'lightning/confirm';
+import STATUS_FIELD from "@salesforce/schema/OpportunitySpecialApply__c.Status__c";
+import { refreshApex } from '@salesforce/apex';
 export default class LexSpecSubmit extends LightningElement {
+    @wire(getRecord, { recordId: '$recordId', fields: [STATUS_FIELD] })
+    record;
     @api recordId;
     applyReason;
     isUploadFile;
     status;
-    IsLoading = true;
+    @track IsLoading = false;
     @wire(CurrentPageReference)
     getStateParameters(currentPageReference) {
             console.log(111);
@@ -37,9 +41,10 @@
     }
     showToast(msg,type) {
         const event = new ShowToastEvent({
-            title: '',
+            title: ' ',
             message: msg,
-            variant: type
+            variant: type,
+            mode: 'sticky'
         });
         this.dispatchEvent(event);
     }
@@ -84,8 +89,10 @@
             message: msg,
             variant: 'headerless',
             label: 'this is the aria-label value',
+            mode:'sticky'
         });
         console.log(result);
+        this.IsLoading = true;
         if(result){
             updateForSpecSubmitButton({
                 recordId: this.recordId
@@ -94,8 +101,10 @@
                     this.showToast(result,'error');
                 }else{
                     this.showToast('瀹℃壒鎻愪氦鎴愬姛銆�','success');
-                    this.updateRecordView(this.recordId);
-                    this.IsLoading = false;
+                    setTimeout(() => {
+                        refreshApex(this.record);
+                        this.dispatchEvent(new CloseActionScreenEvent());
+                    }, 1000);
                 }
                 this.dispatchEvent(new CloseActionScreenEvent());
             });
diff --git a/force-app/main/default/lwc/lexSpecilaApplyCreateLwc/lexSpecilaApplyCreateLwc.js b/force-app/main/default/lwc/lexSpecilaApplyCreateLwc/lexSpecilaApplyCreateLwc.js
index d7b04dd..f9b3735 100644
--- a/force-app/main/default/lwc/lexSpecilaApplyCreateLwc/lexSpecilaApplyCreateLwc.js
+++ b/force-app/main/default/lwc/lexSpecilaApplyCreateLwc/lexSpecilaApplyCreateLwc.js
@@ -1,11 +1,3 @@
-/*
- * @Description: 
- * @version: 
- * @Author: chen jing wu
- * @Date: 2023-06-25 10:06:08
- * @LastEditors: chen jing wu
- * @LastEditTime: 2023-06-25 10:54:46
- */
 import { LightningElement,api, track, wire } from 'lwc';
 import {CurrentPageReference} from 'lightning/navigation';
 import { CloseActionScreenEvent } from 'lightning/actions';
@@ -62,4 +54,4 @@
         });
         this.dispatchEvent(new CloseActionScreenEvent());
     }
-}
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexSubmitCompetitorReport/lexSubmitCompetitorReport.js b/force-app/main/default/lwc/lexSubmitCompetitorReport/lexSubmitCompetitorReport.js
index cff5fa6..36ecf31 100644
--- a/force-app/main/default/lwc/lexSubmitCompetitorReport/lexSubmitCompetitorReport.js
+++ b/force-app/main/default/lwc/lexSubmitCompetitorReport/lexSubmitCompetitorReport.js
@@ -4,7 +4,7 @@
  * @Author: chen jing wu
  * @Date: 2023-04-07 09:02:03
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-04-11 11:28:51
+ * @LastEditTime: 2023-08-25 16:50:36
  */
 import { LightningElement,wire,track,api} from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
@@ -49,9 +49,10 @@
 
     showToast(msg,type) {
       const event = new ShowToastEvent({
-          title: '',
+          title: ' ',
           message: msg,
-          variant: type
+          variant: type,
+          mode: 'sticky'
       });
       this.dispatchEvent(event);
   }
diff --git a/force-app/main/default/lwc/lexSubmitSolutionForApproval/lexSubmitSolutionForApproval.html b/force-app/main/default/lwc/lexSubmitSolutionForApproval/lexSubmitSolutionForApproval.html
index 8fef32d..5c174a9 100644
--- a/force-app/main/default/lwc/lexSubmitSolutionForApproval/lexSubmitSolutionForApproval.html
+++ b/force-app/main/default/lwc/lexSubmitSolutionForApproval/lexSubmitSolutionForApproval.html
@@ -1,5 +1,14 @@
+<!--
+ * @Description: 
+ * @version: 
+ * @Author: chen jing wu
+ * @Date: 2023-08-23 17:29:26
+ * @LastEditors: chen jing wu
+ * @LastEditTime: 2023-08-24 16:50:01
+-->
 <template>
     <div class="submitSolutionForApprovalHolder" if:true={IsLoading}>
         <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
+        <lightning-button label="Show Toast" onclick={showToast}></lightning-button>
     </div> 
 </template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexSubmitSolutionForApproval/lexSubmitSolutionForApproval.js b/force-app/main/default/lwc/lexSubmitSolutionForApproval/lexSubmitSolutionForApproval.js
index e7c5194..acb7b32 100644
--- a/force-app/main/default/lwc/lexSubmitSolutionForApproval/lexSubmitSolutionForApproval.js
+++ b/force-app/main/default/lwc/lexSubmitSolutionForApproval/lexSubmitSolutionForApproval.js
@@ -4,19 +4,23 @@
  * @Author: chen jing wu
  * @Date: 2023-06-20 14:37:24
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-07-07 16:11:12
+ * @LastEditTime: 2023-08-29 14:07:08
  */
-import { api, wire,LightningElement } from 'lwc';
+import { api, wire,LightningElement, track } from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
 import { CloseActionScreenEvent } from 'lightning/actions';
 import updateSubmitSolutionForApprovalButton  from '@salesforce/apex/lexSolutionProjectRequirementsController.updateSubmitSolutionForApprovalButton';
 import init  from '@salesforce/apex/lexSolutionProjectRequirementsController.initSubmitSolutionForApprovalButton';
 import queryForAttachments  from '@salesforce/apex/lexSolutionProjectRequirementsController.queryForAttachments';
-import { updateRecord } from 'lightning/uiRecordApi';
+import { updateRecord,getRecord } from 'lightning/uiRecordApi';
+import STATUS_FIELD from "@salesforce/schema/SolutionProjectRequirements__c.Status__c";
+import { refreshApex } from '@salesforce/apex';
 import { ShowToastEvent } from 'lightning/platformShowToastEvent';
 import LightningConfirm from 'lightning/confirm';
 
 export default class LexSubmitSolutionForApproval extends LightningElement {
+    @wire(getRecord, { recordId: '$recordId', fields: [STATUS_FIELD] })
+    record;
     @api recordId;
     status;
     submitDateYouWant;
@@ -42,9 +46,10 @@
     }
     showToast(msg,type) {
         const event = new ShowToastEvent({
-            title: '',
+            title: ' ',
             message: msg,
-            variant: type
+            variant: type,
+            mode: 'sticky'
         });
         this.dispatchEvent(event);
     }
@@ -79,13 +84,12 @@
             this.dispatchEvent(new CloseActionScreenEvent());
             return;
         }
-
-        if(this.submitDateYouWant < this.createdDate + 3){
+        this.createdDate.setDate(this.createdDate.getDate() + 3);
+        if(this.submitDateYouWant.getTime() < this.createdDate.getTime()){
             this.showToast('甯屾湜鎻愪氦鏃ユ湡涓嶅緱灏忎簬涓夊ぉ锛屽绱ф�ラ渶姹傝閭欢鑱旂粶Solution鎷呭綋','error');
             this.dispatchEvent(new CloseActionScreenEvent());
             return;
         }
-        console.log("start");
         queryForAttachments({
             Id: this.departmentClassId
         }).then(result=>{
@@ -118,7 +122,7 @@
         const result = await LightningConfirm.open({
             message: msg,
             variant: 'headerless',
-            label: 'this is the aria-label value',
+            label: 'this is the aria-label value'
         });
         console.log(result);
         if(result){
@@ -129,7 +133,13 @@
                    if(results){
                         this.showToast(results,"error");
                         this.dispatchEvent(new CloseActionScreenEvent());
-                   } 
+                   } else{
+                        setTimeout(() => {
+                            refreshApex(this.record);
+                            this.dispatchEvent(new CloseActionScreenEvent());
+                        }, 1000);
+                        
+                   }
                 } catch (error) {
                     if(err.faultstring !=undefined && err.faultstring.indexOf('INVALID_SESSION_ID') != -1) {
                         this.showToast('褰撳墠缃戦〉宸茬櫥鍑猴紝璇锋偍閲嶆柊鐧诲綍鍚庡埛鏂拌缃戦〉锛�','error');
@@ -140,8 +150,6 @@
                     }
                     return;
                 }
-                this.updateRecordView(this.recordId);
-                this.dispatchEvent(new CloseActionScreenEvent());
             });
             // isopd.Id = "{!SolutionProjectRequirements__c.Id}";
             // isopd.Submint_TF__c = true;
diff --git a/force-app/main/default/lwc/lexSubmitSolutionForApproval/lexSubmitSolutionForApproval.js-meta.xml b/force-app/main/default/lwc/lexSubmitSolutionForApproval/lexSubmitSolutionForApproval.js-meta.xml
index 3392981..460876b 100644
--- a/force-app/main/default/lwc/lexSubmitSolutionForApproval/lexSubmitSolutionForApproval.js-meta.xml
+++ b/force-app/main/default/lwc/lexSubmitSolutionForApproval/lexSubmitSolutionForApproval.js-meta.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata">
-    <apiVersion>54.0</apiVersion>
+    <apiVersion>56.0</apiVersion>
 	<isExposed>true</isExposed>
 	<targets>
 		<target>lightning__RecordPage</target>
diff --git a/force-app/main/default/lwc/lexSubmitSolutionSchemeForApproval/lexSubmitSolutionSchemeForApproval.js b/force-app/main/default/lwc/lexSubmitSolutionSchemeForApproval/lexSubmitSolutionSchemeForApproval.js
index 479b649..55c7347 100644
--- a/force-app/main/default/lwc/lexSubmitSolutionSchemeForApproval/lexSubmitSolutionSchemeForApproval.js
+++ b/force-app/main/default/lwc/lexSubmitSolutionSchemeForApproval/lexSubmitSolutionSchemeForApproval.js
@@ -1,15 +1,8 @@
-/*
- * @Description: 
- * @version: 
- * @Author: chen jing wu
- * @Date: 2023-06-21 09:17:25
- * @LastEditors: chen jing wu
- * @LastEditTime: 2023-07-07 16:35:41
- */
 import { api, wire,LightningElement } from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
 import { CloseActionScreenEvent } from 'lightning/actions';
 import updateSubmitSolutionSchemeForApprovalButton  from '@salesforce/apex/lexSolutionProgrammeController.updateSubmitSolutionSchemeForApprovalButton';
+import submitApproval  from '@salesforce/apex/lexSolutionProgrammeController.submitApproval';
 import init  from '@salesforce/apex/lexSolutionProgrammeController.initSubmitSolutionSchemeForApprovalButton';
 import queryForAttachments  from '@salesforce/apex/lexSolutionProgrammeController.queryForAttachments';
 import { updateRecord } from 'lightning/uiRecordApi';
@@ -36,15 +29,6 @@
           }
         }
     }
-    showToast(msg,type) {
-        const event = new ShowToastEvent({
-            title: '',
-            message: msg,
-            variant: type
-        });
-        this.dispatchEvent(event);
-    }
-
 
     updateRecordView(recordId) {
         updateRecord({fields: { Id: recordId }});
@@ -54,8 +38,9 @@
         init({
             recordId: this.recordId
         }).then(result=>{
-            this.schemeType = result.schemeType == undefined ? result.schemeType : '';
-            this.confirmationResult = result.confirmationResult == undefined ? result.confirmationResult : '';
+            console.log(result);
+            this.schemeType = result.schemeType;
+            this.confirmationResult = result.confirmationResult == undefined ?  '' : result.confirmationResult;
             this.submitSolutionSchemeForApproval();
         });
     }
@@ -76,22 +61,29 @@
         });
         console.log(result);
         if(result){
-            if(this.schemeType == '缁撴' && this.confirmationResult == ''){
+            console.log(this.schemeType);
+            console.log(this.confirmationResult);
+            if(this.schemeType == '缁撴' && (this.confirmationResult == '' || this.confirmationResult == undefined)){
                 this.showToast('缁撴鏂规鎻愪氦鍓嶏紝鏂规閲囩撼缁撴灉蹇呭~','error');
                 this.dispatchEvent(new CloseActionScreenEvent());
                 return;
             }
+            console.log('this.schemeType:'+this.schemeType);
             if((this.records.length > 0 && this.schemeType == '缁撴') || (this.schemeType == '鍒濇')){
-                updateSubmitSolutionSchemeForApprovalButton({
-                    recordId: this.recordId
-                }).then(result=>{
-                    if(result){
-                        this.showToast(result,'error');
+                submitApproval({recordId:this.recordId}).then(rep => {
+                    console.log(rep);
+                    if(rep==='OK'){
+                        console.log('1');
+                        this.showToast('鎻愪氦瀹℃壒鎴愬姛','success');
                     }else{
-                        this.updateRecordView(this.recordId);
+                        console.log('2');
+                        this.showToast(rep,'error');
                     }
-                    this.dispatchEvent(new CloseActionScreenEvent());
-                });
+                }).catch(err => {
+                    console.log('3');
+                    console.log(err);
+                    this.showToast(err,'error');
+                })
             }else{
                 this.showToast('缁撴鐨勬柟妗堟彁浜ゅ墠锛屽繀椤讳笂浼犵粨妗堥檮浠�','error');
                 this.dispatchEvent(new CloseActionScreenEvent());
@@ -103,4 +95,15 @@
             return;
         }
     }
+    showToast(msg, type) {
+        const event = new ShowToastEvent({
+            message: msg,
+            variant: type
+        });
+        this.dispatchEvent(event);
+        this.dispatchEvent(new CloseActionScreenEvent());
+        if(type==='success'){
+            window.location.href = '/lightning/r/Solution_Programme__c/'+this.recordId+'/view';
+        }
+    }
 }
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexVOCAnswer/lexVOCAnswer.js b/force-app/main/default/lwc/lexVOCAnswer/lexVOCAnswer.js
index 5100340..4b754de 100644
--- a/force-app/main/default/lwc/lexVOCAnswer/lexVOCAnswer.js
+++ b/force-app/main/default/lwc/lexVOCAnswer/lexVOCAnswer.js
@@ -4,7 +4,7 @@
  * @Author: chen jing wu
  * @Date: 2023-03-27 14:05:59
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-05-09 10:21:25
+ * @LastEditTime: 2023-08-25 16:51:56
  */
 import { LightningElement, wire, track, api } from "lwc";
 import { CurrentPageReference } from "lightning/navigation";
@@ -54,14 +54,15 @@
     //window.location.replace("https://ocsm--partial.sandbox.lightning.force.com/lightning/r/Report__c/" + this.recordId + "/view");
   }
 
-  showToast(msg, type) {
+  showToast(msg,type) {
     const event = new ShowToastEvent({
-      title: "",
-      message: msg,
-      variant: type
+        title: ' ',
+        message: msg,
+        variant: type,
+        mode: 'sticky'
     });
     this.dispatchEvent(event);
-  }
+}
 
   updateRecordView(recordId) {
     updateRecord({ fields: { Id: recordId } });
diff --git a/force-app/main/default/lwc/lexVOCCheck/lexVOCCheck.html b/force-app/main/default/lwc/lexVOCCheck/lexVOCCheck.html
index 592cc85..2226db9 100644
--- a/force-app/main/default/lwc/lexVOCCheck/lexVOCCheck.html
+++ b/force-app/main/default/lwc/lexVOCCheck/lexVOCCheck.html
@@ -1,6 +1,6 @@
 <template>
     <div class="checkHolder" if:true={IsLoading}>
         <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
-        <lightning-button label="Show Toast" onclick={ShowToastEvent}></lightning-button>
+        <!-- <lightning-button label="Show Toast" onclick={ShowToastEvent}></lightning-button> -->
     </div>
 </template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexVOCCheck/lexVOCCheck.js b/force-app/main/default/lwc/lexVOCCheck/lexVOCCheck.js
index 1356a5d..d95e89e 100644
--- a/force-app/main/default/lwc/lexVOCCheck/lexVOCCheck.js
+++ b/force-app/main/default/lwc/lexVOCCheck/lexVOCCheck.js
@@ -18,7 +18,7 @@
     userId;
     systemProfileId;
     luShengId;
-    huDiAnId;
+    // huDiAnId;
     Isloading = true;
 
     @wire(CurrentPageReference)
@@ -52,7 +52,7 @@
                 this.profileId = result.profileId;
                 this.systemProfileId = result.systemProfileId;
                 this.luShengId = result.luShengId;
-                this.huDiAnId = result.huDiAnId;
+                // this.huDiAnId = result.huDiAnId;
                 console.log(this.status); 
                 this.check();
                 //window.location.replace("https://ocsm--partial.sandbox.lightning.force.com/lightning/r/Report__c/" + this.recordId + "/view");
@@ -92,7 +92,8 @@
     }
     check (){
         // 闄嗚儨锛岃儭杩畨锛岀郴缁熺鐞嗗憳鍙偣(闇�瑕佽皟鏁�)
-        if (this.userId != this.luShengId && this.userId != this.huDiAnId && this.profileId != this.systemProfileId) {
+        // && this.userId != this.huDiAnId 鑳¤开瀹夊凡绂昏亴
+        if (this.userId != this.luShengId && this.profileId != this.systemProfileId) {
                 this.showToast("浣犳病鏈夊垽瀹歏OC鐨勬潈闄�","error");
                 this.dispatchEvent(new CloseActionScreenEvent());
                 return;
@@ -118,6 +119,7 @@
                     this.showToast(result,"error");
                 }else{
                     this.updateRecordView(this.recordId);
+                    console.log("success");
                 }
                 this.Isloading = false;   
                 this.dispatchEvent(new CloseActionScreenEvent());
diff --git a/force-app/main/default/lwc/lexVOCConfirm/lexVOCConfirm.js b/force-app/main/default/lwc/lexVOCConfirm/lexVOCConfirm.js
index da06c20..da16952 100644
--- a/force-app/main/default/lwc/lexVOCConfirm/lexVOCConfirm.js
+++ b/force-app/main/default/lwc/lexVOCConfirm/lexVOCConfirm.js
@@ -4,7 +4,7 @@
  * @Author: chen jing wu
  * @Date: 2023-03-27 14:08:56
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-05-15 09:13:55
+ * @LastEditTime: 2023-08-24 15:37:45
  */
 import { LightningElement,wire,track,api} from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
@@ -84,12 +84,13 @@
             }
         updateForVOCConfirmButton({
             recordId: this.recordId,
-            satisfy: this.sSatisfy,
+            satisfy: this.satisfy,
             satisfy1: this.satisfy1    
         }).then(result=>{
             if(result){
                 this.showToast(result,"error");
             }else{
+                this.showToast(result,"success");
                 this.updateRecordView(this.recordId);
             }
             this.Isloading = false;
diff --git a/force-app/main/default/lwc/lexVOCFinish/lexVOCFinish.html b/force-app/main/default/lwc/lexVOCFinish/lexVOCFinish.html
index 308b1e2..8e9f3ca 100644
--- a/force-app/main/default/lwc/lexVOCFinish/lexVOCFinish.html
+++ b/force-app/main/default/lwc/lexVOCFinish/lexVOCFinish.html
@@ -1,6 +1,14 @@
+<!--
+ * @Description: 
+ * @version: 
+ * @Author: chen jing wu
+ * @Date: 2023-06-14 16:06:52
+ * @LastEditors: chen jing wu
+ * @LastEditTime: 2023-07-28 11:15:02
+-->
 <template>
     <div class="vocFinishHolder" if:true={IsLoading}>
         <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
-        <lightning-button label="Show Toast" onclick={ShowToastEvent}></lightning-button>
+        <!-- <lightning-button label="Show Toast" onclick={ShowToastEvent}></lightning-button> -->
     </div>
 </template>
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexVOCSubmit/lexVOCSubmit.html b/force-app/main/default/lwc/lexVOCSubmit/lexVOCSubmit.html
index 4c6138d..d31d100 100644
--- a/force-app/main/default/lwc/lexVOCSubmit/lexVOCSubmit.html
+++ b/force-app/main/default/lwc/lexVOCSubmit/lexVOCSubmit.html
@@ -1,11 +1,3 @@
-<!--
- * @Description: 
- * @version: 
- * @Author: chen jing wu
- * @Date: 2023-06-14 16:06:52
- * @LastEditors: chen jing wu
- * @LastEditTime: 2023-07-12 13:50:00
--->
 <template>
     <div class="vocSubmitHolder" if:true={IsLoading}>
         <lightning-spinner alternative-text="Loading" size="medium"></lightning-spinner>
diff --git a/force-app/main/default/lwc/lexVOCSubmit/lexVOCSubmit.js b/force-app/main/default/lwc/lexVOCSubmit/lexVOCSubmit.js
index c531771..ecea080 100644
--- a/force-app/main/default/lwc/lexVOCSubmit/lexVOCSubmit.js
+++ b/force-app/main/default/lwc/lexVOCSubmit/lexVOCSubmit.js
@@ -4,7 +4,7 @@
  * @Author: chen jing wu
  * @Date: 2023-03-27 13:39:23
  * @LastEditors: chen jing wu
- * @LastEditTime: 2023-05-09 10:15:43
+ * @LastEditTime: 2023-09-08 15:42:21
  */
 import { LightningElement,wire,track,api} from 'lwc';
 import { CurrentPageReference } from "lightning/navigation";
@@ -61,9 +61,10 @@
 
     showToast(msg,type) {
         const event = new ShowToastEvent({
-            title: '',
+            title: ' ',
             message: msg,
-            variant: type
+            variant: type,
+            mode: 'sticky'
         });
         this.dispatchEvent(event);
     }
@@ -81,7 +82,10 @@
                 if(result){
                     this.showToast(result,"error");
                 }else{
-                    this.updateRecordView(this.recordId);
+                    // this.updateRecordView(this.recordId);
+                    setTimeout(() => {
+                        window.location = '/' + this.recordId;
+                    }, 2000);
                 }
                 this.IsLoading = false;
                 this.dispatchEvent(new CloseActionScreenEvent());
diff --git a/force-app/main/default/pages/AccountCaseTab.page b/force-app/main/default/pages/AccountCaseTab.page
index 11c5b80..5f770df 100644
--- a/force-app/main/default/pages/AccountCaseTab.page
+++ b/force-app/main/default/pages/AccountCaseTab.page
@@ -1,10 +1,47 @@
 <apex:page controller="AccountCaseTabController" showChat="false" showHeader="false" sidebar="false" action="{!init}" id="Page" lightningStylesheets="true">
+    <apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/>
 <title>妫�鏌ユ暟</title>
 <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
 <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
 <style type="text/css">
     table {border-collapse: collapse;}
-    
+     /*淇℃伅鎻愮ず棰滆壊*/
+body .bPageBlock .pbSubheader, .slds-vf-scope .bPageBlock .pbSubheader{
+	background-color: #08107b !important;;
+    color: #FFF !important;
+}
+body .infoM2, body .infoM3, body .infoM4, .slds-vf-scope .infoM2, .slds-vf-scope .infoM3, .slds-vf-scope .infoM4 {
+    background-color: #08107b !important;
+}
+body .message, .slds-vf-scope .message{
+    background-color: #08107b !important;
+}
+
+body .errorM2 h4,body .errorM3 h4,body .errorM4 h4,.slds-vf-scope .errorM2 h4,.slds-vf-scope .errorM3 h4,.slds-vf-scope .errorM4 h4 {
+    /* color: rgb(255, 255, 255)!important */
+    background-color: rgb(234, 0, 30)!important
+}
+
+body .errorM2,body .errorM3,body .errorM4,.slds-vf-scope .errorM2,.slds-vf-scope .errorM3,.slds-vf-scope .errorM4 {
+    background-color: rgb(234, 0, 30)!important
+}
+
+body .errorM2,body .errorM3,body .errorM4,.slds-vf-scope .errorM2,.slds-vf-scope .errorM3,.slds-vf-scope .errorM4 {
+    background-color: rgb(234, 0, 30)!important
+}
+body .warningM2,body .warningM3,body .warningM4,.slds-vf-scope .warningM2,.slds-vf-scope .warningM3,.slds-vf-scope .warningM4 {
+    background-color: rgb(254, 147, 57)!important;
+    color: rgb(24, 24, 24)!important
+}
+body .confirmM2,body .confirmM3,body .confirmM4,.slds-vf-scope .confirmM2,.slds-vf-scope .confirmM3,.slds-vf-scope .confirmM4 {
+    background-color: rgb(46, 132, 74)!important
+}
+body .pbButton{
+    text-align: left;
+}
+.message .messageText{
+    color: #FFF !important;
+}
     th.lvl1 {width: 100px;}
     th.lvl2 {width: 100px;}
     th.lvl3 {width: 100px;}
@@ -15,7 +52,7 @@
     th.priceSum {width: 100px; text-align: center;}
     th.priceTotal {width: 100px; text-align: center;}
     
-    td {font-size: 120%;}
+    td {font-size: .8125rem; }
     td.lvl1 {text-align:center; vertical-align:middle;}
     td.lvl2 {text-align:center; vertical-align:middle;}
     td.sum {text-align: right;}
diff --git a/force-app/main/default/pages/AssetGuaranteePeriodAlteration.page b/force-app/main/default/pages/AssetGuaranteePeriodAlteration.page
index 94a7016..5af7a16 100644
--- a/force-app/main/default/pages/AssetGuaranteePeriodAlteration.page
+++ b/force-app/main/default/pages/AssetGuaranteePeriodAlteration.page
@@ -232,7 +232,7 @@
                             </td>                           
                             <td>
                             <apex:inputText value="{!val1}"
-                            id="val1" style="width:100px"/>
+                            id="val1" style="width:110px"/>
                             </td>
                             <td align="right"></td>
                             <td><apex:commandButton value="淇濇湁璁惧鎼滅储" style="width: 120px;" onclick="searchProductJs('0');return false;" /></td>
diff --git a/force-app/main/default/pages/AssetMaintain.page b/force-app/main/default/pages/AssetMaintain.page
index 6b50d1e..1f261c9 100644
--- a/force-app/main/default/pages/AssetMaintain.page
+++ b/force-app/main/default/pages/AssetMaintain.page
@@ -4,6 +4,11 @@
 <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
 <apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/>
     <style>
+         /*20230815 ljh start*/
+         table.mytable tr{
+            height:45px;
+        }
+        /*20230815 ljh end*/
         .dateFormat  {
             display: none;
         }
@@ -16,6 +21,7 @@
         table {
             table-layout: fixed;
             border-collapse: collapse;
+            line-height: 28px;
         }
         a {
             text-decoration: none;
@@ -105,7 +111,7 @@
             padding-left: 10px;
         }
         .inputTextStyle input {
-            width: 90%;
+            width: 95%;
         }
         .inputTextStyle select {
             width: 95%;
@@ -121,6 +127,30 @@
         }
         #pageBlockButton1 {
             margin: 0pxt;
+        }
+        td{
+            min-height: 28px
+        }
+
+        .you-button {
+            background-color: #d9d8d8 !important; 
+            box-shadow: 0px 7px 2px 0px #aeacac !important;
+            transition: all .5s !important;
+            }
+
+            /* .you-button:hover {
+                background-color: #fcdc5e !important;
+            } */
+
+        .you-button:active {
+            transform: translate(0,4px) !important;
+            text-shadow: -2px 2px 2px rgb(209 132 0),
+                    -2px 2px 2px rgb(209 132 0),
+                    -2px 2px 2px rgb(209 132 0),
+                    -2px 2px 2px rgb(209 132 0),
+                    -2px 2px 2px rgb(209 132 0),
+                    -2px 2px 2px rgb(209 132 0) !important;
+            box-shadow: 0px 1px 0px 0px #aeacac !important;
         }
     </style>
     <script type="text/javascript">
@@ -198,21 +228,21 @@
         }
         var globalQueryCondition;
         var fromQuickBarFlag = 'false';
-        // function checkAssetJs(queryCondition) {
-        //     fromQuickBarFlag = 'true';
-        //     globalQueryCondition = queryCondition;
-        //     var changeFlg = checkChangeFlg();
-        //     if (changeFlg == '1') {
-        //         blockme();
-        //         checkAssetFunc(queryCondition, fromQuickBarFlag);
-        //     } else if (changeFlg == '3') {
-        //         blockme();
-        //         checkAssetFunc(queryCondition, fromQuickBarFlag);
-        //         globalQueryCondition = '';
-        //     }
-        //     fromQuickBarFlag = 'false';
-        //     return false;
-        // }
+        function checkAssetJs(queryCondition) {
+            fromQuickBarFlag = 'true';
+            globalQueryCondition = queryCondition;
+            var changeFlg = checkChangeFlg();
+            if (changeFlg == '1') {
+                blockme();
+                checkAssetFunc(queryCondition, fromQuickBarFlag);
+            } else if (changeFlg == '3') {
+                blockme();
+                checkAssetFunc(queryCondition, fromQuickBarFlag);
+                globalQueryCondition = '';
+            }
+            fromQuickBarFlag = 'false';
+            return false;
+        }
 
         // 妫�绱㈡寜閽�
         function searchBtnJs() {
@@ -396,48 +426,37 @@
             <apex:actionFunction name="clearAllSearchConditionWhenCancel" action="{!clearAllSearchConditionWhenCancel}"></apex:actionFunction>
             <!-- 宸︿晶鎸夐挳鍖� -->
             <!-- chenjingwu 2023.8.2 start-->
-            <!-- <apex:outputPanel layout="block" style="width: 13%; float: left;" rendered="{!showTop}">
+            <!-- 宸︿晶鎸夐挳鍖� -->
+            <apex:outputPanel layout="block" style="width: 17%; float: left;" rendered="{!showTop}">
                 <apex:pageBlock mode="maindetail">
-                    <table style='height: 220px'>
+                    <table style='height: 390px'>
                         <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅鍏ㄩ儴淇濇湁璁惧" rendered="{!!allBlueFlag}" onclick="checkAssetJs('all'); return false;" /></td></tr>
-                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton value="鏌ョ湅鍏ㄩ儴淇濇湁璁惧" rendered="{!allBlueFlag}" onclick="checkAssetJs('all'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle "><apex:commandButton styleClass="you-button"  value="鏌ョ湅鍏ㄩ儴淇濇湁璁惧" rendered="{!allBlueFlag}" onclick="checkAssetJs('all'); return false;" /></td></tr>
                         <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅鏈夋晥搴撳瓨" rendered="{!!consumableBlueFlag}" onclick="checkAssetJs('consumable'); return false;" /></td></tr>
-                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton value="鏌ョ湅鏈夋晥搴撳瓨" rendered="{!consumableBlueFlag}" onclick="checkAssetJs('consumable'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle"><apex:commandButton styleClass="you-button"  value="鏌ョ湅鏈夋晥搴撳瓨" rendered="{!consumableBlueFlag}" onclick="checkAssetJs('consumable'); return false;" /></td></tr>
                         <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅鍊熷嚭鍒嗛厤鏁�" rendered="{!!lendingBlueFlag}" onclick="checkAssetJs('lending'); return false;" /></td></tr>
-                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton value="鏌ョ湅鍊熷嚭鍒嗛厤鏁�" rendered="{!lendingBlueFlag}" onclick="checkAssetJs('lending'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle"><apex:commandButton styleClass="you-button"  value="鏌ョ湅鍊熷嚭鍒嗛厤鏁�" rendered="{!lendingBlueFlag}" onclick="checkAssetJs('lending'); return false;" /></td></tr>
                         <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅淇悊涓繚鏈夎澶�" rendered="{!!repairingBlueFlag}" onclick="checkAssetJs('repairing'); return false;" /></td></tr>
-                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton value="鏌ョ湅淇悊涓繚鏈夎澶�" rendered="{!repairingBlueFlag}" onclick="checkAssetJs('repairing'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle"><apex:commandButton styleClass="you-button"  value="鏌ョ湅淇悊涓繚鏈夎澶�" rendered="{!repairingBlueFlag}" onclick="checkAssetJs('repairing'); return false;" /></td></tr>
                         <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅寰呮姤搴熶繚鏈夎澶�" rendered="{!!scrappingBlueFlag}" onclick="checkAssetJs('scrapping'); return false;" /></td></tr>
-                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton value="鏌ョ湅寰呮姤搴熶繚鏈夎澶�" rendered="{!scrappingBlueFlag}" onclick="checkAssetJs('scrapping'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle"><apex:commandButton styleClass="you-button"  value="鏌ョ湅寰呮姤搴熶繚鏈夎澶�" rendered="{!scrappingBlueFlag}" onclick="checkAssetJs('scrapping'); return false;" /></td></tr>
                         <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅宸叉姤搴熶繚鏈夎澶�" rendered="{!!scrappedBlueFlag}" onclick="checkAssetJs('scrapped'); return false;" /></td></tr>
-                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton value="鏌ョ湅宸叉姤搴熶繚鏈夎澶�" rendered="{!scrappedBlueFlag}" onclick="checkAssetJs('scrapped'); return false;" /></td></tr> -->
+                        <tr><td class="checkButtonStyle"><apex:commandButton styleClass="you-button"  value="鏌ョ湅宸叉姤搴熶繚鏈夎澶�" rendered="{!scrappedBlueFlag}" onclick="checkAssetJs('scrapped'); return false;" /></td></tr>
                         <!-- OLY_OCM-818 -->
-
-                        <!-- <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅宸叉秷鑰楃殑淇濇湁璁惧" rendered="{!!consumedBlueFlag}" onclick="checkAssetJs('consumed'); return false;" /></td></tr>
-                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton value="鏌ョ湅宸叉秷鑰楃殑淇濇湁璁惧" rendered="{!consumedBlueFlag}" onclick="checkAssetJs('consumed'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅宸叉秷鑰楃殑淇濇湁璁惧" rendered="{!!consumedBlueFlag}" onclick="checkAssetJs('consumed'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle"><apex:commandButton styleClass="you-button"  value="鏌ョ湅宸叉秷鑰楃殑淇濇湁璁惧" rendered="{!consumedBlueFlag}" onclick="checkAssetJs('consumed'); return false;" /></td></tr>
                         <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅鍗冲皢鍒版湡鐨勪繚鏈夎澶�" rendered="{!!soonExpiredBlueFlag}" onclick="checkAssetJs('soonExpired'); return false;" /></td></tr>
-                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton value="鏌ョ湅鍗冲皢鍒版湡鐨勪繚鏈夎澶�" rendered="{!soonExpiredBlueFlag}" onclick="checkAssetJs('soonExpired'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle"><apex:commandButton styleClass="you-button"  value="鏌ョ湅鍗冲皢鍒版湡鐨勪繚鏈夎澶�" rendered="{!soonExpiredBlueFlag}" onclick="checkAssetJs('soonExpired'); return false;" /></td></tr>
                         <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅宸茶繃鏈熺殑淇濇湁璁惧" rendered="{!!expiredBlueFlag}" onclick="checkAssetJs('expired'); return false;" /></td></tr>
-                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton value="鏌ョ湅宸茶繃鏈熺殑淇濇湁璁惧" rendered="{!expiredBlueFlag}" onclick="checkAssetJs('expired'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle"><apex:commandButton styleClass="you-button"  value="鏌ョ湅宸茶繃鏈熺殑淇濇湁璁惧" rendered="{!expiredBlueFlag}" onclick="checkAssetJs('expired'); return false;" /></td></tr>
                     </table>
                 </apex:pageBlock>
-            </apex:outputPanel> -->
-
-            <!-- <apex:outputPanel layout="block" style="width: 13%; float: left;" rendered="{!showTop}">
-                <apex:pageBlock mode="maindetail">
-                    <table style='height: 220px'>
-                        <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅鍏ㄩ儴淇濇湁璁惧" rendered="{!!allBlueFlag}" onclick="checkAssetJs('all'); return false;" /></td></tr>
-                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton value="鏌ョ湅鍏ㄩ儴淇濇湁璁惧" rendered="{!allBlueFlag}" onclick="checkAssetJs('all'); return false;" /></td></tr>
-                        <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅鏈夋晥搴撳瓨" rendered="{!!consumableBlueFlag}" onclick="checkAssetJs('consumable'); return false;" /></td></tr>
-                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton value="鏌ョ湅鏈夋晥搴撳瓨" rendered="{!consumableBlueFlag}" onclick="checkAssetJs('consumable'); return false;" /></td></tr>
-                    </table>
-                </apex:pageBlock>
-            </apex:outputPanel> -->
+            </apex:outputPanel>
             <!-- chenjingwu 2023.8.2 end-->
             <!-- 鍙充晶妫�绱㈠尯 -->
-            <apex:outputPanel layout="block" style="width: 100%;margin: 0 auto;" rendered="{!showTop}">
+            <apex:outputPanel layout="block" style="width: 82%;margin: 0 auto;float: right;" rendered="{!showTop}">
                 <apex:pageBlock mode="maindetail">
-                    <table style='width: 95%; height: 220px'>
+                    <table style='width: 100%; height: 390px' class="mytable">
                         <tr>
                             <td class="labelStyle">澶囧搧瀛樻斁鍦�</td>
                             <td class="inputTextStyle">
@@ -452,14 +471,11 @@
                             <td class="labelStyle">璐ф灦鍙�</td>
                             <td class="inputTextStyle"><apex:inputText value="{!searchB.wh_location}" id="shelfNumId" /></td>
                             <td class="blankStyle"></td>
-                            <td class="labelStyle">澶囧搧鐘舵��</td>
+                            <td class="labelStyle">娑堣�楀搧鏈夋晥鏈熻嚦</td>
                             <td class="inputTextStyle">
-                                <apex:selectList value="{!searchB.fixture_Status}" id="assetStatusId" size="1">
-                                    <apex:selectOptions value="{!assetStatusOptionList}"/>
-                                </apex:selectList>
+                                <apex:inputText id="consumable_Guaranteen_endStr" value="{!searchB.consumable_Guaranteen_endStr}" size="12" onfocus="DatePicker.pickDate(true, '{!$Component.consumable_Guaranteen_endStr}', false)" />
                             </td>
                         </tr>
-                        <tr><td><br /><br /></td></tr>
                         <tr>
                             <td class="labelStyle">澶囧搧绠$悊缂栫爜</td>  <!-- 銈枫儶銈€儷鐣彿 -->
                             <td class="inputTextStyle">
@@ -483,7 +499,6 @@
                                 </apex:selectList>
                             </td>
                         </tr>
-                        <tr><td><br /><br /></td></tr>
                         <tr>
                             <td class="labelStyle">涓讳綋/闄勫睘鍝�</td>
                             <td class="inputTextStyle">
@@ -506,14 +521,7 @@
                                 </apex:selectList>
                             </td>
                             <td class="blankStyle"></td>
-                            <td class="labelStyle">绠$悊绉嶇被</td>
-                            <td class="inputTextStyle">
-                                <apex:selectList value="{!searchB.manage_type}" id="manage_type" size="1">
-                                    <apex:selectOptions value="{!manage_typeOpts}"/>
-                                </apex:selectList>
-                            </td>
                         </tr>
-                        <tr><td><br /><br /></td></tr>
                         <tr>
                             <td class="labelStyle">鎵�鍦ㄥ湴鍖�(鏈儴)</td>
                             <td class="inputTextStyle">
@@ -529,17 +537,14 @@
                                 </apex:selectList>
                             </td>
                             <td class="blankStyle"></td>
-                            <td class="labelStyle">娑堣�楀搧鏈夋晥鏈熻嚦</td>
+                            <td class="labelStyle">澶囧搧鐘舵��</td>
                             <td class="inputTextStyle">
-                                <apex:inputText id="consumable_Guaranteen_endStr" value="{!searchB.consumable_Guaranteen_endStr}" size="12" onfocus="DatePicker.pickDate(true, '{!$Component.consumable_Guaranteen_endStr}', false)" />
+                                <apex:selectList value="{!searchB.fixture_Status}" id="assetStatusId" size="1">
+                                    <apex:selectOptions value="{!assetStatusOptionList}"/>
+                                </apex:selectList>
                             </td>
                             <td class="blankStyle"></td>
-                            <td class="searchButtonStyle" colspan="2">
-                                <apex:commandButton style="width: 30%" value="妫�绱�" onclick="searchBtnJs(); return false;" rerender="allForm" />
-                                <apex:commandButton style="width: 30%" value="鍙栨秷" onclick="cancelBtnJs(); return false;" rerender="allForm" />
-                            </td>
                         </tr>
-                        <tr><td><br /><br /></td></tr>
                         <tr>
                             <td class="labelStyle">澶囧搧绫诲埆</td>
                             <td class="inputTextStyle">
@@ -555,14 +560,18 @@
                                 </apex:selectList>
                             </td>
                             <td class="blankStyle"></td>
-                            <!-- chenjingwu 2023.8.2 start-->
-                            <td class="labelStyle">璁惧鐘舵��</td>
+                            <td class="labelStyle">绠$悊绉嶇被</td>
                             <td class="inputTextStyle">
-                                <apex:selectList value="{!assertQueryCondition}" id="assertQueryCondition" size="1">
-                                    <apex:selectOptions value="{!assertQueryConditionOpts}"/>
+                                <apex:selectList value="{!searchB.manage_type}" id="manage_type" size="1">
+                                    <apex:selectOptions value="{!manage_typeOpts}"/>
                                 </apex:selectList>
                             </td>
-                            <!-- chenjingwu 2023.8.2 end-->
+                            <td class="blankStyle"></td>
+                            <td class="searchButtonStyle" colspan="2" style="text-align: right;">
+                                <apex:commandButton style="width: 30%" value="妫�绱�" onclick="searchBtnJs(); return false;" rerender="allForm" />
+                                <apex:commandButton style="width: 30%" value="鍙栨秷" onclick="cancelBtnJs(); return false;" rerender="allForm" />
+                            </td>
+                            
                         </tr>
                     </table>
                 </apex:pageBlock>
@@ -576,11 +585,12 @@
             <apex:inputHidden id="clearApplyFlagId" />
             <apex:outputPanel style="display:none">
                 <apex:outputPanel id="popupBox" layout="block">
-                    <input type="file" id="file_input" name="attFile" accept=".csv" /><br/>
+                    <input type="file" id="file_input" name="attFile" accept=".csv" style="padding-left: 8px;"/><br/><br/>
                     <apex:selectList size="1" id="csvMaintaintype">
                         <apex:selectOptions value="{!maintainTypeOptionList}"/>
                     </apex:selectList>
                     <center>
+                        <input type="hidden" id="customHidden"/>
                         <apex:commandButton value="纭" onclick="remoteLocationPost(); return false;" style="width: 20%; margin: 20px 10px 0px 10px" />
                         <apex:commandButton value="鍙栨秷" onclick="popupBox.hide();" style="width: 20%; margin: 20px 10px 0px 10px" />
                     </center>
@@ -675,10 +685,10 @@
 
             <table border="0">
                 <tr>
-                    <td style="width: 2%"></td>
-                    <td class="setButtonStyle"><apex:commandButton value="EXCEL瀵煎叆" onclick="openPopupCSV(); return false;" oncomplete="refresh" disabled="{!!importCSVButtonActive}" /></td>
-                    <td class="setButtonStyle"><apex:commandButton action="{!saveApply}" value="淇濆瓨鐢宠" onclick="blockme();" rerender="allForm" oncomplete="unblockUI()" disabled="{!!saveButtonActive}" /></td>
-                    <td class="setButtonStyle"><apex:commandButton value="鎻愪氦鐢宠" onclick="submitApplyJS();return false;" disabled="{!!submitButtonActive}" /></td>
+                    <!-- <td style="width: 2%"></td> -->
+                    <td class="setButtonStyle"><apex:commandButton style="width: 90%" value="EXCEL瀵煎叆" onclick="openPopupCSV(); return false;" oncomplete="refresh" disabled="{!!importCSVButtonActive}" /></td>
+                    <td class="setButtonStyle"><apex:commandButton style="width: 90%" action="{!saveApply}" value="淇濆瓨鐢宠" onclick="blockme();" rerender="allForm" oncomplete="unblockUI()" disabled="{!!saveButtonActive}" /></td>
+                    <td class="setButtonStyle"><apex:commandButton style="width: 90%" value="鎻愪氦鐢宠" onclick="submitApplyJS();return false;" disabled="{!!submitButtonActive}" /></td>
                     <apex:actionFunction name="submitApply" action="{!submitApply}" rerender="allForm" onComplete="unblockUI();" />
                     <script>
                         function submitApplyJS(){
@@ -688,7 +698,7 @@
                             }
                         }
                     </script>
-                    <td class="setButtonStyle"><apex:commandButton value="鍒犻櫎" onclick="deleteApplyJS();return false;" disabled="{!!deleteButtonActive}" /></td>
+                    <td class="setButtonStyle"><apex:commandButton style="width: 90%" value="鍒犻櫎" onclick="deleteApplyJS();return false;" disabled="{!!deleteButtonActive}" /></td>
                     <apex:actionFunction name="deleteApply" action="{!deleteApply}" rerender="allForm" onComplete="unblockUI();" />
                     <script>
                         function deleteApplyJS() {
@@ -698,14 +708,14 @@
                             }
                         }
                     </script>
-                    <td class="setButtonStyle"><apex:commandButton action="{!abandon}" value="搴熷純" onclick="blockme();" rerender="allForm" oncomplete="unblockUI()" disabled="{!!abandonButtonActive}" /></td>
+                    <td class="setButtonStyle"><apex:commandButton style="width: 90%" action="{!abandon}" value="搴熷純" onclick="blockme();" rerender="allForm" oncomplete="unblockUI()" disabled="{!!abandonButtonActive}" /></td>
                     <td>
                         <apex:selectList size="1" id="reportMaintaintype">
                             <apex:selectOptions value="{!maintainTypeOptionList}"/>
                         </apex:selectList>
                     </td>
                     <td>
-                        <apex:commandButton onclick="openReport();return false;" value="鏌ョ湅鎶ヨ〃" />
+                        <apex:commandButton style="width: 90px" onclick="openReport();return false;" value="鏌ョ湅鎶ヨ〃" />
                     </td>
                     <script type="text/javascript">
                         var popupBox;
@@ -762,31 +772,35 @@
                             else{
                                 reportId = "{!notScrappedReportId}";
                             }
-                            var url = `/${reportId}?pv0=${maintainType}`;
+                            var url = `/lightning/r/Report/${reportId}?fv0=${maintainType}`;
                             window.open(url);
                         }
                     </script>
                 </tr>
+                <tr><td>&nbsp;</td></tr>
                 <tr>
-                    <td class="labelSettingStyle">缁存姢绫诲瀷</td>
-                    <td class="inputTextStyle">
-                        <apex:selectList id="maintainTypeId" size="1">
+                    <td>
+                    <font>缁存姢绫诲瀷</font>&nbsp;
+                    <apex:selectList id="maintainTypeId" size="1" style="width: 100px;">
                             <apex:selectOptions value="{!maintainTypeOptionList}"/>
-                        </apex:selectList>
+                        </apex:selectList>    
                     </td>
+                    <!-- <td class="inputTextStyle">
+                        
+                    </td> -->
                     <td class="labelSettingStyle">缁存姢鏁伴噺</td>
                     <td class="inputTextStyle">
 
-                        <apex:inputText id="maintainCountId"/>
+                        <apex:inputText id="maintainCountId" style="width: 90%"/>
                     </td>
                     <td class="labelSettingStyle">搴熷純鏁伴噺</td>
                     <td class="inputTextStyle">
 
-                        <apex:inputText id="abandonCountId"/>
+                        <apex:inputText id="abandonCountId" style="width: 90%"/>
                     </td>
-                    <td class="setButtonStyle"><apex:commandButton action="{!changeEditable}" value="缂栬緫" onclick="blockme();" rerender="allForm" oncomplete="unblockUI();" disabled="{!!editButtonActive}" /></td>
+                    <td class="setButtonStyle"><apex:commandButton style="width: 70%" action="{!changeEditable}" value="缂栬緫" onclick="blockme();" rerender="allForm" oncomplete="unblockUI();" disabled="{!!editButtonActive}" /></td>
                     <td class="setButtonStyle">
-                        <apex:commandButton value="閫傜敤" reRender="allForm" onclick="applyJs(); return false;" disabled="{!!editmode}"  />
+                        <apex:commandButton style="width: 58%" value="閫傜敤" reRender="allForm" onclick="applyJs(); return false;" disabled="{!!editmode}"  />
                         <script type="text/javascript">
                             // 閫傜敤鎸夐挳
                             function applyJs() {
@@ -851,50 +865,55 @@
                         </script>
                     </td>
                 </tr>
+                <tr><td>&nbsp;</td></tr>
             </table>
 
             <table>
                 <tr>
-                    <td>
+                    <td style="width: 49%;">
                         <font>鏁版嵁瀛楁</font>&nbsp;
-                        <apex:selectList value="{!fieldName}" size="1" style="width:110px"><apex:selectOptions value="{!fieldNameOpts}"/></apex:selectList>銆�
+                        <apex:selectList value="{!fieldName}" size="1" style="width:100px"><apex:selectOptions value="{!fieldNameOpts}"/></apex:selectList>銆�
                         &nbsp;<apex:selectList value="{!operator}" size="1"><apex:selectOptions value="{!operatorOpts}"/></apex:selectList>銆�
                         &nbsp;<apex:inputText value="{!fieldvalue}" style="width:80px"/>
-                        <apex:commandButton value="绛涢��" action="{!filter}" onclick="blockme();" rerender="allForm" oncomplete="unblockUI()"/>
+                        <apex:commandButton style="width: 18%;" value="绛涢��" action="{!filter}" onclick="blockme();" rerender="allForm" oncomplete="unblockUI()"/>
                     </td>
-                    <td>鏄剧ず鏁版嵁鏁伴噺</td>
+                    <td style="width: 8%;">鏄剧ず鏁版嵁鏁伴噺</td>
                     <td class="inputTextStyle">
                         <apex:actionFunction name="firstPg" action="{!firstPage}" rerender="allForm" onComplete="unblockUI();" />
                         <apex:selectList value="{!selRecordOption}" size="1" onchange="blockme();firstPg(); return false;">
                             <apex:selectOptions value="{!limitOpts}"/>
                         </apex:selectList>
                     </td>
-                    <td align="right">鍏眥!allAssetDataListSize}鏉℃暟鎹�</td>
+                    <td align="right" style="width: 8%;">鍏眥!allAssetDataListSize}鏉℃暟鎹�</td>
                     <td width="20px"></td>
-                    <td align="right"> 宸查�変腑<label id="checkedNumId">{!checkedSize}</label>鏉℃暟鎹�</td>
+                    <td align="right" style="width: 10%;"> 宸查�変腑<label id="checkedNumId">{!checkedSize}</label>鏉℃暟鎹�</td>
                     <td width="20px"></td>
-                    <td align="right"> 鏈�変腑<label id="uncheckedNumId">{!allAssetDataListSize - checkedSize}</label>鏉℃暟鎹�</td>
-                    <td width="20px"></td>
-                    <td align="right">绗� {!currPage} 椤�</td>
-                    <td width="20px"></td>
-                    <td align="right">鍏� {!totalPage} 椤�</td>
-                    <td width="20px"></td>
-                    <td align="right" width="45px">
+                    <td style="width: 13%;"> 鏈�変腑<label id="uncheckedNumId">{!allAssetDataListSize - checkedSize}</label>鏉℃暟鎹�</td>
+                    
+                </tr>
+                
+            </table>
+            <table style="width: 97%">
+                <tr>
+                    <td></td>
+                    <td style="width: 40%" align="right">绗� {!currPage} 椤� &nbsp;&nbsp;鍏� {!totalPage} 椤�</td>
+                    <td align="left"></td>
+                    <td width="120px"></td>
+                    <td style="width: 8%">
                         <apex:commandLink action="{!firstPage}" value="棣栭〉" id="firstPg" onclick="blockme();" oncomplete="unblockUI();" reRender="allForm" style="{!IF(currPage==1,'display: none;','')}color: blue;"/>
                         <apex:outputText value="棣栭〉" style="{!IF(currPage!=1,'display: none;','')}color: gray;"></apex:outputText>
+
                     </td>
-                    <td width="45px"></td>
-                    <td align="right" width="45px">
+                    <td width="4%">
                         <apex:commandLink action="{!previousPage}" value="涓婁竴椤�" id="previous" onclick="blockme();" oncomplete="unblockUI();" reRender="allForm" style="{!IF(currPage==1,'display: none;','')}color: blue;"/>
                         <apex:outputText value="涓婁竴椤�" style="{!IF(currPage!=1,'display: none;','')}color: gray;"></apex:outputText>
                     </td>
-                    <td width="45px"></td>
-                    <td align="right" width="45px">
+                    <td width="45px">
                         <apex:commandLink action="{!nextPage}" value="涓嬩竴椤�" id="next" onclick="blockme();" oncomplete="unblockUI();" reRender="allForm" style="{!IF(totalPage==currPage ||totalPage == 0,'display: none;','')}color: blue;"/>
                         <apex:outputText value="涓嬩竴椤�" style="{!IF(totalPage!=currPage && totalPage != 0,'display: none;','')}color: gray;"></apex:outputText>
                     </td>
-                    <td width="45px"></td>
-                    <td align="right" width="45px">
+                    <td width="50px"></td>
+                    <td width="45px">
                         <apex:commandLink action="{!endPage}" value="灏鹃〉" id="endPg" onclick="blockme();" oncomplete="unblockUI();" reRender="allForm" style="{!IF(totalPage==currPage||totalPage == 0,'display: none;','')}color: blue;"/>
                         <apex:outputText value="灏鹃〉" style="{!IF(totalPage!=currPage && totalPage != 0,'display: none;','')}color: gray;"></apex:outputText>
                     </td>
@@ -912,7 +931,7 @@
                 <table class="list" border="1" style="border-collapse: collapse; table-layout: fixed; border-bottom-width: 0px; border-spacing: 0px; height: 30px;">
                     <tr class="headerRow" style="background-color: #DCDCDC; text-align: left; vertical-align: top;">
                         <!-- 鍏ㄩ�� -->
-                        <td style="width:20px"><input type='checkbox' onclick='selectAllJs()' id='checker' onchange='checkboxOnclick(); return false;'/></td>
+                        <td style="width:23px"><input type='checkbox' onclick='selectAllJs()' id='checker' onchange='checkboxOnclick(); return false;'/></td>
                         <apex:variable value="{!0}" var="cnt" />
                         <apex:repeat value="{!amdLeftLabelList}" var="t">
                             <td class="col_{!columnAmdLeftCssList[cnt]}" style="word-wrap:break-word">
@@ -943,7 +962,7 @@
                     <apex:repeat id="dataline_L1" value="{!allAssetInfoShowList}" var="eachAssetData">
                         <tr class="dataRow" id="tableData_L_{!Cnt_L}" onmouseover="if (window.hiOn){hiOn(this);} " onmouseout="if (window.hiOff){hiOff(this);} " onblur="if (window.hiOff){hiOff(this);}" onfocus="if (window.hiOn){hiOn(this);}">
                             <!-- 鍏ㄩ�� -->
-                            <td class="dataCellBorder1" style="width:20px" align="center">
+                            <td class="dataCellBorder1" style="width:23px" align="center">
                                 <apex:inputCheckbox id="rowCheck" value="{!eachAssetData.isCheck}" disabled="{!IF((internalAssetLocationLogin != 'All' && eachAssetData.amd['Internal_asset_location__c'] != internalAssetLocationLogin), true, false)}" onchange="checkboxOnclick(); return false;" />
                                 <apex:inputHidden id="canChange" />
                             </td>
@@ -972,7 +991,7 @@
                     <apex:repeat id="dataline_L2" value="{!assetFromSearchList}" var="eachAssetData">
                         <tr class="dataRow" id="tableData_L_{!Cnt_L}" onmouseover="if (window.hiOn){hiOn(this);} " onmouseout="if (window.hiOff){hiOff(this);} " onblur="if (window.hiOff){hiOff(this);}" onfocus="if (window.hiOn){hiOn(this);}">
                             <!-- 鍏ㄩ�� -->
-                            <td class="dataCellBorder1" style="width:20px" align="center">
+                            <td class="dataCellBorder1" style="width:23px" align="center">
                                 <apex:inputCheckbox id="rowCheck" value="{!eachAssetData.isCheck}" disabled="{!IF((internalAssetLocationLogin != 'All' && eachAssetData.amd['Internal_asset_location__c'] != internalAssetLocationLogin), true, false)}" onchange="checkboxOnclick(); return false;" />
                                 <apex:inputHidden id="canChange" />
                             </td>
diff --git a/force-app/main/default/pages/AssetMaintainIframe.page b/force-app/main/default/pages/AssetMaintainIframe.page
index 0d1bcda..b9a9549 100644
--- a/force-app/main/default/pages/AssetMaintainIframe.page
+++ b/force-app/main/default/pages/AssetMaintainIframe.page
@@ -1,4 +1,4 @@
-<apex:page lightningStylesheets="true">
+<apex:page lightningStylesheets="true" title="澶囧搧缁存姢鏁版嵁鐩稿叧鎿嶄綔">
     <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
     <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
     <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
@@ -7,38 +7,71 @@
                 flex: 2;
                 padding: 20px;
             }
+            .you-button {
+            background-color: #d9d8d8 !important; 
+            box-shadow: 0px 7px 2px 0px #aeacac !important;
+            transition: all .5s !important;
+            }
+
+            /* .you-button:hover {
+                background-color: #fcdc5e !important;
+            } */
+
+        .you-button:active {
+            transform: translate(0,4px) !important;
+            text-shadow: -2px 2px 2px rgb(209 132 0),
+                    -2px 2px 2px rgb(209 132 0),
+                    -2px 2px 2px rgb(209 132 0),
+                    -2px 2px 2px rgb(209 132 0),
+                    -2px 2px 2px rgb(209 132 0),
+                    -2px 2px 2px rgb(209 132 0) !important;
+            box-shadow: 0px 1px 0px 0px #aeacac !important;
+        }
+
         </style>
     <apex:form >
         <apex:actionFunction action="{!loadPage}" name="cancel" rerender="allForm" oncomplete="unblockUI();"/>
         <div class="vf-container">
-            <div style="width:10%;float:left;">
+            <div style="width:9%;float:left;">
                 <div>
-                    <apex:commandButton style="width: 99%" value="鏁版嵁缁存姢" onclick="loadPage('/apex/AssetMaintain'); return false"/> 
+                    <apex:commandButton styleClass="you-button" style="width: 100%;" value="鏁版嵁缁存姢" onclick="loadPage('/apex/AssetMaintain'); return false"/> 
                 </div>
-                <div>
-                    <apex:commandButton style="width: 99%" value="缁存姢浜у搧涓绘暟鎹�" onclick="location.href = '/a3z/o'; return false"/> 
+                <div style="margin-top:10px;">
+                    <apex:commandButton style="width: 100%" value="鏁版嵁缁存姢鍗�" onclick="window.open('/lightning/o/AssetMaintainHeader__c/list?filterName=Recent')"/> 
+                </div>
+                <div style="margin-top:10px;">
+                    <apex:commandButton style="width: 100%" value="缁存姢浜у搧涓绘暟鎹�" onclick="window.open('/a3z/o')"/> 
                 </div>
             </div>
-            <div style="width:90%;float:right;" id="vf-content">
-                <!-- VF 椤甸潰鍐呭灏嗗湪姝ゅ鏄剧ず -->
-            </div>
+
+            <iframe src="/apex/AssetMaintain" id="iframepage" width="90%" style="margin-left:3px;" scrolling="auto" onload="changeFrameHeight()" frameborder="0"></iframe>
         </div>
     </apex:form>
         
     
         <script>
-            function loadPage(pageUrl) {
+            // function loadPage(pageUrl) {
     
-                var vfContent = "<iframe src='" + pageUrl + "' style='width: 100%; height: 1000px; border: none;'></iframe>";
-                document.getElementById("vf-content").innerHTML = vfContent;
+            //     var vfContent = "<iframe src='" + pageUrl + "' style='width: 100%; height: 1000px; border: none;'></iframe>";
+            //     document.getElementById("vf-content").innerHTML = vfContent;
                 
-            }
+            // }
     
-            window.addEventListener('load', function () {
-                blockme();
-                var vfContent = "<iframe src='/apex/AssetMaintain' style='width: 100%; height: 1000px; border: none;'></iframe>";
-                document.getElementById("vf-content").innerHTML = vfContent;
-                unblockUI();
-            });
+            // window.addEventListener('load', function () {
+            //     blockme();
+            //     var vfContent = "<iframe src='/apex/AssetMaintain' style='width: 100%; height: 1000px; border: none;'></iframe>";
+            //     document.getElementById("vf-content").innerHTML = vfContent;
+            //     unblockUI();
+            // });
+            function changeFrameHeight(){
+                var ifm= document.getElementById("iframepage");
+                ifm.height=document.documentElement.clientHeight-30;
+            }
+            function changeFlagColor(){
+
+            }
+            window.onresize=function(){
+                changeFrameHeight();
+            }
         </script>
 </apex:page>
\ No newline at end of file
diff --git a/force-app/main/default/pages/AssetModifyBelongs.page b/force-app/main/default/pages/AssetModifyBelongs.page
index 3361cbc..57b81d8 100644
--- a/force-app/main/default/pages/AssetModifyBelongs.page
+++ b/force-app/main/default/pages/AssetModifyBelongs.page
@@ -1,12 +1,122 @@
-<apex:page standardController="AssetModifyBelongsChange__c" extensions="AssetModifyBelongsController" showHeader="false" sidebar="false" id="allPage" action="{!init}" title="鏈�缁堢敤鎴峰彉鏇寸敵璇�" lightningStylesheets="true">
+<apex:page standardController="AssetModifyBelongsChange__c"  extensions="AssetModifyBelongsController" showHeader="false" sidebar="false" id="allPage" action="{!init}" title="鏈�缁堢敤鎴峰彉鏇寸敵璇�" lightningStylesheets="true">
+<apex:slds />
 <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
 <apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/>
-
+<apex:includeScript value="{!$Resource.SLDSDynamicLookupScript}"/>
 <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
 <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
 <apex:includeScript value="{!URLFOR($Resource.CommonUtilJs)}"/>
 <script>
+             //2023 08 30 寮犺但闃� PIPL椤甸潰鏀归�� start
+        var AWSDataId = '';
+        //2023 08 30 寮犺但闃� PIPL椤甸潰鏀归�� end
+        let inputHiddenId='allPage:allForm:AccountField__c';
+        //2023 08 30 寮犺但闃� PIPL椤甸潰鏀归�� start
+        function Query2(){
+            
+        }
 
+        let newSearchContactWindow = null;
+        function searchContact() {
+                    let accountValue = '{!ambc.AccountField__c}';
+                    let searchContactKeyWord = document.getElementById("allPage:allForm:allBlock:searchBlock:OEC").value;
+                    let responsibleNodeId = document.getElementById("allPage:allForm:AccountField__c").value;
+                    let ObjectType = 'Account';
+                    let FieldNameList = '濮撳悕,Id';
+                    let FieldApiNameList = 'Name,Id';
+                    let QueryFieldName = '濮撳悕';
+                    let QueryFieldApiName = 'Name';
+                    let QuertLimit='recordTypeId in '+
+                    '(\\\'01210000000Qfmb\\\',\\\'01210000000QfmR\\\',\\\'01210000000QfmM\\\',\\\'01210000000QfmH\\\''+
+                    ',\\\'01210000000QfmC\\\',\\\'01210000000Qfm7\\\',\\\'01210000000Qfm2\\\',\\\'01210000000QemQ\\\')';
+                    // let QuertLimit='';
+                    console.log(accountValue);
+                    if (accountValue != '000000000000000') {
+                        let baseUrl = "/apex/SearchContactPageLWC";
+                        let suffixUrl = "?contactId=" + responsibleNodeId + "&accountId=" + accountValue+"&searchContactKeyWord=" + searchContactKeyWord+"&Type=OFS" + '&ObjectType=' + ObjectType + '&FieldNameList=' + FieldNameList + '&FieldApiNameList=' + FieldApiNameList + '&QueryFieldName=' + QueryFieldName + '&QueryFieldApiName=' + QueryFieldApiName + '&QuertLimit=' + encodeURI(QuertLimit) + '&inputHiddenId=' +inputHiddenId;
+                        let newSearchContactParam = 'height=600,width=800,left=100,top=100,dialogHide=true,resizable=no,scrollbars=yes,toolbar=no,status=no';
+                        newSearchContactWindow = window.open(baseUrl + suffixUrl, 'Popup', newSearchContactParam);
+                        if (window.focus) {
+                            newSearchContactWindow.focus();
+                        }
+                        return false;
+                    } else {
+                        
+                        alertErrorMessage('璇峰厛閫夋嫨鍖婚櫌鍚�');
+                    }
+        }
+        function closePopupWindow() {
+            console.log('close1');
+            if (null != newSearchContactWindow) {
+                newSearchContactWindow.close();
+            }
+            console.log('close2');
+            let contactInfoStr = document.getElementById('allPage:allForm:AccountField__c').value;
+            console.log('closePopup:' + contactInfoStr);
+            let contactInfo = JSON.parse(contactInfoStr);
+            document.getElementById("allPage:allForm:allBlock:searchBlock:OEC").value = contactInfo.Name;
+            document.getElementById(document.getElementById("allPage:allForm:allBlock:searchBlock:OEC").id + '_lkold').value = contactInfo.Name;
+            document.getElementById(document.getElementById("allPage:allForm:allBlock:searchBlock:OEC").id + '_lkid').value = contactInfo.Id;
+            document.getElementById('allPage:allForm:AccountField__c').value = contactInfo.Id;
+            AWSDataId = contactInfo.AWSDataId;
+            console.log('AWSDataId = ' + AWSDataId);
+        }
+        j$(function(){
+            Query2();
+            replaceSearchContactLookup();
+        })
+        function replaceSearchContactLookup() {
+            console.log('enter replaceSearchContactLookup');
+            document.getElementById("allPage:allForm:allBlock:searchBlock:OEC").parentNode.children[2].removeAttribute("href");
+            console.log(document.getElementById("allPage:allForm:allBlock:searchBlock:OEC"));
+            document.getElementById("allPage:allForm:allBlock:searchBlock:OEC").parentNode.children[2].onclick = function() {
+                searchContact();
+            };
+        }
+//2023 08 30 寮犺但闃� PIPL椤甸潰鏀归�� end
+function cg(){
+    var input=document.getElementById("allPage:allForm:allBlock:searchBlock:OEC");
+    // console.log(cam);
+    // console.log(document.getElementById("allPage:allForm:allBlock:searchBlock:OEC_lkid"));
+    // console.log(cam.classList.add("slds-lookup__menu"));
+    // input.classList.add("slds-form-element_stacked");
+    // console.log(input);
+              // 鑾峰彇inputField缁勪欢
+    // let td = document.querySelector("td[colspan='4']");
+    // let input = td[1].querySelector("input[id$='OEC']");
+    console.log(input);
+    input.classList.add("slds-input");
+    input.style.boxShadow = "0 2px 3px #F7F7F7";
+  input.addEventListener('click', (event) => {
+
+  // 闃绘榛樿寮瑰嚭榛樿鎼滅储妗�
+  event.preventDefault(); 
+  
+  // 寮瑰嚭灞傚厓绱�
+  const popup = input.querySelector('.lookupInput');
+
+  // 娣诲姞Lightning鏍峰紡绫�
+  popup.classList.add('slds-dropdown');
+  popup.classList.add('slds-combobox');
+
+  // 杈撳叆妗� 
+  const searchInput = popup.querySelector('input');
+  searchInput.classList.add('slds-input');
+
+  // 璋冩暣DOM缁撴瀯
+  // ......
+
+  // 鍒犻櫎榛樿鏍峰紡
+  popup.classList.remove('xx-class');
+
+  // 璁剧疆CSS鏍峰紡
+  searchInput.style.boxShadow = '0 2px 3px #f7f7f7';
+
+  // 寮瑰嚭灞傛樉绀�
+  popup.style.display = 'block';
+
+});
+};
 function ClearJs(){
     blockme();
     document.getElementById("allPage:allForm:allBlock:searchBlock:text1").value = "";
@@ -127,7 +237,7 @@
     }
 </style>
     <apex:form id="allForm">
-
+        <apex:inputHidden value="{!ambc.AccountField__c}" id="AccountField__c" />
         <apex:actionFunction name="save" action="{!save}" rerender="editAble,ConsumableorderdetailsSection, message,editAble" onComplete="unblockUI();CheckStatusAfter();">
         </apex:actionFunction>
         <apex:actionFunction name="Sorder" action="{!Sorder}" rerender="ConsumableorderdetailsSection, message" onComplete="unblockUI();CheckStatusAfter();init();">
@@ -252,7 +362,7 @@
                             id="val1" style="width:200px"/>
                             </td>
                             <td align="left"><div id="seachdiv">鍚堝悓缂栫爜绮剧‘鏌ヨ<apex:inputCheckbox value="{!checkexact}" id="RowCheckbox"/></div></td>
-                            <td><apex:commandButton value="淇濇湁璁惧鎼滅储" style="width: 120px;" onclick="searchProductJs('0');return false;" /></td>
+                            <td><apex:commandButton value="淇濇湁璁惧鎼滅储" style="width: 120px;padding-right: 10px" onclick="searchProductJs('0');return false;" /></td>
                             <td><input type="button" value="娓呯┖" style="width: 100px;" onclick="ClearJs();return false;" class="btn"/></td>
                             <td/>
                         </tr>
@@ -262,7 +372,16 @@
                         <tr>
                             <td colspan="3"/>
                             <td colspan="4" style="height:50px;">&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;鍘熷鎴凤細<apex:outputField value="{!ambc.rawAccount__c}"/></td>
-                            <td colspan="4">鐩爣瀹㈡埛锛�<apex:inputField id="OEC" value="{!ambc.AccountField__c}" style="height:25px;width:200px"/></td>
+                            <!-- <td colspan="4">鐩爣瀹㈡埛锛�<apex:inputField  id="OEC" value="{!ambc.AccountField__c}"  style="height:25px;width:200px"/></td> -->
+                            <td colspan="4" style="height:50px;display: flex;flex-direction:column;justify-content:center;">
+                                <div style="display: flex;flex-direction:row;justify-content:flex-start;">
+                                    <div style="height:50px;display: flex;flex-direction:column;justify-content:center;">鐩爣瀹㈡埛锛�</div>
+                                    <div style="height:50px;display: flex;flex-direction:column;justify-content:center;padding-bottom: 10px">
+
+                                        <c:SLDSDynamicLookup SLDSResourceName="{!$Resource.SLDS}" ObjectApiName="Account" DisplayFieldApiNames="Name" DisplayFieldsPattern="Name"  LabelName="Name" SetValueToField="{!ambc.AccountField__c}" setStyleCss="width:300px;"/>
+                                    </div>
+                                </div>
+                            </td>
                         </tr>
                        
                         <tr  >
diff --git a/force-app/main/default/pages/AssetModifyBelongs.page-meta.xml b/force-app/main/default/pages/AssetModifyBelongs.page-meta.xml
index 0a89b78..7f0c88a 100644
--- a/force-app/main/default/pages/AssetModifyBelongs.page-meta.xml
+++ b/force-app/main/default/pages/AssetModifyBelongs.page-meta.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <ApexPage xmlns="http://soap.sforce.com/2006/04/metadata">
-    <apiVersion>36.0</apiVersion>
+    <apiVersion>40.0</apiVersion>
     <availableInTouch>false</availableInTouch>
     <confirmationTokenRequired>false</confirmationTokenRequired>
     <label>AssetModifyBelongs</label>
diff --git a/force-app/main/default/pages/CheckAllOlympusAsset.page b/force-app/main/default/pages/CheckAllOlympusAsset.page
index ca66de2..00d4217 100644
--- a/force-app/main/default/pages/CheckAllOlympusAsset.page
+++ b/force-app/main/default/pages/CheckAllOlympusAsset.page
@@ -60,7 +60,7 @@
             height:50px;
             width:90%;
         }
-        table.list .col_Internal_asset_location__c {width:130px;}
+        table.list .col_Internal_asset_location__c {width:100px;}
         table.list .col_Salesdepartment__c {width:110px;}
         table.list .col_SalesProvince__c {width:70px;}
         table.list .col_Asset_loaner_category__c {width:80px;}
@@ -68,14 +68,14 @@
         table.list .col_CompanyOfEquipment__c {width:60px;}
         table.list .col_Asset_name__c {width:60px;}
         table.list .col_Internal_Asset_number__c {width:80px;}
-        table.list .col_Internal_Asset_number_key__c {width:80px;}
+        table.list .col_Internal_Asset_number_key__c {width:100px;}
 
-        table.list .col_SerialNumber {width:60px;}  /*鏈鸿韩缂栧彿*/
+        table.list .col_SerialNumber {width:40px;}  /*鏈鸿韩缂栧彿*/
         table.list .col_Product_Serial_No__c {width:60px;}  /*浜у搧 + 鏈轰綋缂栫爜*/
         table.list .col_Product_category__c {width:60px;}
-        table.list .col_Equipment_Type__c {width:120px;}
+        table.list .col_Equipment_Type__c {width:70px;}/* 澶囧搧鍒嗙被zyh*/
         table.list .col_Consumable_Guaranteen_end__c {width:70px;}
-        table.list .col_Manage_type__c {width:80px;}  /*绠$悊绉嶇被*/
+        table.list .col_Manage_type__c {width:60px;}  /*绠$悊绉嶇被*/
         table.list .col_Loaner_accsessary__c {width:50px;}
         table.list .col_EquipmentSet_Managment_Code__c {width:50px;}
         table.list .col_AssetManageConfirm__c {width:50px;}
@@ -92,6 +92,7 @@
         table.list .col_Repairing_Count__c {width:30px;}
         table.list .col_Fixture_Status__c {width:30px;}
         table.list .col_Main_OneToOne__c {width:40px;}
+        table.list .col_Status {width:40px;}
 
         .navigationBarBlock {
             width: 100%;
@@ -135,7 +136,7 @@
             width: 9%;
         }
         .inputTextStyle input {
-            width: 90%;
+            width: 95%;
         }
         .inputTextStyle select {
             width: 95%;
@@ -152,6 +153,11 @@
         #pageBlockButton1 {
             margin: 0pxt;
         }
+        /*20230815 ljh start*/
+        table.mytable tr{
+            height:45px;
+        }
+        /*20230815 ljh end*/
     </style>
     <script type="text/javascript">
         // 鏀瑰彉table灏哄
@@ -220,21 +226,21 @@
         }
         var globalQueryCondition;
         var fromQuickBarFlag = 'false';
-        // function checkAssetJs(queryCondition) {
-        //     fromQuickBarFlag = 'true';
-        //     globalQueryCondition = queryCondition;
-        //     var changeFlg = checkChangeFlg();
-        //     if (changeFlg == '1') {
-        //         blockme();
-        //         checkAssetFunc(queryCondition, fromQuickBarFlag);
-        //     } else if (changeFlg == '3') {
-        //         blockme();
-        //         checkAssetFunc(queryCondition, fromQuickBarFlag);
-        //         globalQueryCondition = '';
-        //     }
-        //     fromQuickBarFlag = 'false';
-        //     return false;
-        // }
+        function checkAssetJs(queryCondition) {
+            fromQuickBarFlag = 'true';
+            globalQueryCondition = queryCondition;
+            var changeFlg = checkChangeFlg();
+            if (changeFlg == '1') {
+                blockme();
+                checkAssetFunc(queryCondition, fromQuickBarFlag);
+            } else if (changeFlg == '3') {
+                blockme();
+                checkAssetFunc(queryCondition, fromQuickBarFlag);
+                globalQueryCondition = '';
+            }
+            fromQuickBarFlag = 'false';
+            return false;
+        }
 
         // 妫�绱㈡寜閽�
         function searchBtnJs() {
@@ -359,6 +365,12 @@
             window.open('{!$Page.InventoryResultRecord}');
         }
 
+        // 銆怓Y24澶у強宸ㄥぇ璇鹃銆戝寳浜柊娉曡椤圭洰瀵瑰簲 DB202307428742 20230804 by lc Start
+        function gotoInventoryTemperatureHumidity() {
+            window.open('{!$Page.InventoryTemperatureHumidity}');
+        }
+        // 銆怓Y24澶у強宸ㄥぇ璇鹃銆戝寳浜柊娉曡椤圭洰瀵瑰簲 DB202307428742 20230804 by lc Start
+
         function gotoInventoryReport() {
             window.open('{!$Page.InventoryReport}');
         }
@@ -445,60 +457,42 @@
             <apex:actionFunction name="clearAllSearchConditionWhenCancel" action="{!clearAllSearchConditionWhenCancel}"></apex:actionFunction>
             <!-- 宸︿晶鎸夐挳鍖� -->
             <!-- chenjingwu 2023.8.2 start-->
-            <!-- <apex:outputPanel layout="block" style="width: 13%; float: left;">
+            <apex:outputPanel layout="block" style="width: 16%; float: left;">
                 <apex:pageBlock mode="maindetail">
-                    <table style='height: 220px'>
+                    <table style='height: 370px'>
                         <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅鍏ㄩ儴淇濇湁璁惧" rendered="{!!allBlueFlag}" onclick="checkAssetJs('all'); return false;" /></td></tr>
-                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton value="鏌ョ湅鍏ㄩ儴淇濇湁璁惧" rendered="{!allBlueFlag}" onclick="checkAssetJs('all'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle "><apex:commandButton style="background-color: silver;" value="鏌ョ湅鍏ㄩ儴淇濇湁璁惧" rendered="{!allBlueFlag}" onclick="checkAssetJs('all'); return false;" /></td></tr>
                         <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅鏈夋晥搴撳瓨" rendered="{!!consumableBlueFlag}" onclick="checkAssetJs('consumable'); return false;" /></td></tr>
-                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton value="鏌ョ湅鏈夋晥搴撳瓨" rendered="{!consumableBlueFlag}" onclick="checkAssetJs('consumable'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton style="background-color: silver;" value="鏌ョ湅鏈夋晥搴撳瓨" rendered="{!consumableBlueFlag}" onclick="checkAssetJs('consumable'); return false;" /></td></tr>
                         <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅鍊熷嚭鍒嗛厤鏁�" rendered="{!!lendingBlueFlag}" onclick="checkAssetJs('lending'); return false;" /></td></tr>
-                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton value="鏌ョ湅鍊熷嚭鍒嗛厤鏁�" rendered="{!lendingBlueFlag}" onclick="checkAssetJs('lending'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton style="background-color: silver;" value="鏌ョ湅鍊熷嚭鍒嗛厤鏁�" rendered="{!lendingBlueFlag}" onclick="checkAssetJs('lending'); return false;" /></td></tr>
                         <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅淇悊涓繚鏈夎澶�" rendered="{!!repairingBlueFlag}" onclick="checkAssetJs('repairing'); return false;" /></td></tr>
-                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton value="鏌ョ湅淇悊涓繚鏈夎澶�" rendered="{!repairingBlueFlag}" onclick="checkAssetJs('repairing'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton style="background-color: silver;" value="鏌ョ湅淇悊涓繚鏈夎澶�" rendered="{!repairingBlueFlag}" onclick="checkAssetJs('repairing'); return false;" /></td></tr>
                         <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅寰呮姤搴熶繚鏈夎澶�" rendered="{!!scrappingBlueFlag}" onclick="checkAssetJs('scrapping'); return false;" /></td></tr>
-                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton value="鏌ョ湅寰呮姤搴熶繚鏈夎澶�" rendered="{!scrappingBlueFlag}" onclick="checkAssetJs('scrapping'); return false;" /></td></tr>
-                        <apex:outputText rendered="{!angecylookrole}">  -->
-                            <!-- 1650-->
-                        <!-- <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅宸叉姤搴熶繚鏈夎澶�" rendered="{!!scrappedBlueFlag && angecylookrole}" onclick="checkAssetJs('scrapped'); return false;" /></td></tr>
-                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton value="鏌ョ湅宸叉姤搴熶繚鏈夎澶�" rendered="{!scrappedBlueFlag}" onclick="checkAssetJs('scrapped'); return false;" /></td></tr> -->
+                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton style="background-color: silver;" value="鏌ョ湅寰呮姤搴熶繚鏈夎澶�" rendered="{!scrappingBlueFlag}" onclick="checkAssetJs('scrapping'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅宸叉姤搴熶繚鏈夎澶�" rendered="{!!scrappedBlueFlag}" onclick="checkAssetJs('scrapped'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton style="background-color: silver;" value="鏌ョ湅宸叉姤搴熶繚鏈夎澶�" rendered="{!scrappedBlueFlag}" onclick="checkAssetJs('scrapped'); return false;" /></td></tr>
                         <!-- OLY_OCM-818 -->
-                        <!-- <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅宸叉秷鑰楃殑淇濇湁璁惧" rendered="{!!consumedBlueFlag && angecylookrole}" onclick="checkAssetJs('consumed'); return false;" /></td></tr>
-                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton value="鏌ョ湅宸叉秷鑰楃殑淇濇湁璁惧" rendered="{!consumedBlueFlag}" onclick="checkAssetJs('consumed'); return false;" /></td></tr>
-                        <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅鍗冲皢鍒版湡鐨勪繚鏈夎澶�" rendered="{!!soonExpiredBlueFlag && angecylookrole}" onclick="checkAssetJs('soonExpired'); return false;" /></td></tr>
-                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton value="鏌ョ湅鍗冲皢鍒版湡鐨勪繚鏈夎澶�" rendered="{!soonExpiredBlueFlag}" onclick="checkAssetJs('soonExpired'); return false;" /></td></tr>
-                        <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅宸茶繃鏈熺殑淇濇湁璁惧" rendered="{!!expiredBlueFlag && angecylookrole}" onclick="checkAssetJs('expired'); return false;" /></td></tr>
-                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton value="鏌ョ湅宸茶繃鏈熺殑淇濇湁璁惧" rendered="{!expiredBlueFlag}" onclick="checkAssetJs('expired'); return false;" /></td></tr>
-                        </apex:outputText> -->
-                        <!-- OLY_OCM-818 -->
-                        <!-- <tr>
-                            <td class="checkButtonStyle">
-                                <apex:commandButton value="鐩樼偣缁撴灉璁板綍" onclick="checkChangeFlg(); gotoInventoryResultRecord(); return false;" />
-                            </td>
-                        </tr>
+                        <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅宸叉秷鑰楃殑淇濇湁璁惧" rendered="{!!consumedBlueFlag}" onclick="checkAssetJs('consumed'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton style="background-color: silver;" value="鏌ョ湅宸叉秷鑰楃殑淇濇湁璁惧" rendered="{!consumedBlueFlag}" onclick="checkAssetJs('consumed'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅鍗冲皢鍒版湡鐨勪繚鏈夎澶�" rendered="{!!soonExpiredBlueFlag}" onclick="checkAssetJs('soonExpired'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton style="background-color: silver;" value="鏌ョ湅鍗冲皢鍒版湡鐨勪繚鏈夎澶�" rendered="{!soonExpiredBlueFlag}" onclick="checkAssetJs('soonExpired'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅宸茶繃鏈熺殑淇濇湁璁惧" rendered="{!!expiredBlueFlag}" onclick="checkAssetJs('expired'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton style="background-color: silver;" value="鏌ョ湅宸茶繃鏈熺殑淇濇湁璁惧" rendered="{!expiredBlueFlag}" onclick="checkAssetJs('expired'); return false;" /></td></tr>
+			 <!--  銆怓Y24澶у強宸ㄥぇ璇鹃銆戝寳浜柊娉曡椤圭洰瀵瑰簲 DB202307428742 20230804 by lc Start -->
                         <tr>
                             <td class="checkButtonStyle">
-                                <apex:commandButton value="澶囧搧鐩樼偣鎶ュ憡" onclick="checkChangeFlg(); gotoInventoryReport(); return false;" />
+                                <apex:commandButton value="娓╂箍搴︾洏鐐�" rendered="{!angecylookrole}" onclick="checkChangeFlg(); gotoInventoryTemperatureHumidity(); return false;" />
                             </td>
                         </tr>
-                        <tr>
-                            <td class="checkButtonStyle">
-                                <apex:commandButton value="鑰楁潗鐩樼偣鎶ュ憡" rendered="{!angecylookrole}" onclick="checkChangeFlg(); gotoConsumInventoryReport(); return false;" />
-                            </td>
-                        </tr>
-                        <tr>
-                            <td class="checkButtonStyle">
-                                <apex:commandButton value="鏁版嵁缁存姢" rendered="{!angecylookrole}" onclick="checkChangeFlg(); gotoAssetMaintain(); return false;" />
-                            </td>
-                        </tr>
+                        <!--  銆怓Y24澶у強宸ㄥぇ璇鹃銆戝寳浜柊娉曡椤圭洰瀵瑰簲 DB202307428742 20230804 by lc End -->
                     </table>
                 </apex:pageBlock>
-            </apex:outputPanel> -->
-            <!-- chenjingwu 2023.8.2 end-->
+            </apex:outputPanel>
             <!-- 鍙充晶妫�绱㈠尯 -->
-            <apex:outputPanel layout="block" style="width: 90%;margin: 0 auto;">
+            <apex:outputPanel layout="block" style="width: 83%; float: right;">
                 <apex:pageBlock mode="maindetail">
-                    <table style='width: 95%; height: 220px'>
+                    <table style='width: 100%; height: 370px'>
                         <tr>
                             <td class="labelStyle">澶囧搧瀛樻斁鍦�</td>
                             <td class="inputTextStyle">
@@ -597,10 +591,30 @@
                                 <apex:inputText id="consumable_Guaranteen_endStr" value="{!searchB.consumable_Guaranteen_endStr}" size="12" onfocus="DatePicker.pickDate(true, '{!$Component.consumable_Guaranteen_endStr}', false)" />
                             </td>
                             <td class="blankStyle"></td>
-                            <td class="searchButtonStyle" colspan="2">
-                                <apex:commandButton style="width: 30%" value="妫�绱�" onclick="searchBtnJs(); return false;" rerender="allForm" />
-                                <apex:commandButton style="width: 30%" value="鍙栨秷" onclick="cancelBtnJs(); return false;" rerender="allForm" />
-                                <apex:commandButton style="width: 30%" value="瀵煎嚭鏁版嵁" disabled="{!onlyReadFlag}" onclick="checkCsvExport(); return false;" />
+                        </tr>
+                        <tr><td><br /><br /></td></tr>
+                        <tr>
+                            <td class="labelStyle">澶囧搧绫诲埆</td>
+                            <td class="inputTextStyle">
+                                <apex:selectList value="{!searchB.asset_loaner_category}" id="assetLoanerCategory" size="1">
+                                    <apex:selectOptions value="{!assetLoanerCategoryOpts}"/>
+                                </apex:selectList>
+                            </td>
+                            <td class="blankStyle"></td>
+                            <td class="labelStyle">鍒版湡鏃堕棿</td>
+                            <td class="inputTextStyle">
+                                <apex:selectList value="{!searchB.daysToExpired}" id="daysToExpired" size="1">
+                                    <apex:selectOptions value="{!daysToExpiredOpts}"/>
+                                </apex:selectList>
+                            </td>
+                            <td class="blankStyle"></td>
+                            <td class="blankStyle"></td>
+                            <td class="blankStyle"></td>
+                            <td class="blankStyle"></td>
+                            <td colspan="2">
+                                <apex:commandButton style="width: 28%" value="妫�绱�" onclick="searchBtnJs(); return false;" rerender="allForm" />
+                                <apex:commandButton style="width: 28%" value="鍙栨秷" onclick="cancelBtnJs(); return false;" rerender="allForm" />
+                                <apex:commandButton style="width: 36%" value="瀵煎嚭鏁版嵁" disabled="{!onlyReadFlag}" onclick="checkCsvExport(); return false;" />
                             </td>
                             <apex:actionFunction name="csvExprot" action="{!csvExprot}" />
                             <script type="text/javascript">
@@ -621,38 +635,6 @@
                                 }
                             </script>
                         </tr>
-                        <tr><td><br /><br /></td></tr>
-                        <tr>
-                            <td class="labelStyle">澶囧搧绫诲埆</td>
-                            <td class="inputTextStyle">
-                                <apex:selectList value="{!searchB.asset_loaner_category}" id="assetLoanerCategory" size="1">
-                                    <apex:selectOptions value="{!assetLoanerCategoryOpts}"/>
-                                </apex:selectList>
-                            </td>
-                            <td class="blankStyle"></td>
-                            <td class="labelStyle">鍒版湡鏃堕棿</td>
-                            <td class="inputTextStyle">
-                                <apex:selectList value="{!searchB.daysToExpired}" id="daysToExpired" size="1">
-                                    <apex:selectOptions value="{!daysToExpiredOpts}"/>
-                                </apex:selectList>
-                            </td>
-                            <td class="blankStyle"></td>
-                            <!-- chenjingwu 2023.8.2 start-->
-                            <td class="labelStyle">璁惧鐘舵��</td>
-                            <td class="inputTextStyle">
-                                <apex:selectList value="{!assertQueryCondition}" id="assertQueryCondition" size="1">
-                                    <apex:selectOptions value="{!assertQueryConditionOpts}"/>
-                                </apex:selectList>
-                            </td>
-                            <!-- chenjingwu 2023.8.2 end-->
-                        </tr>
-                        <tr><td><br /><br /></td></tr>
-                        <tr>
-                            <td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td><td></td>
-                            <td class="searchButtonStyle">
-                                <apex:commandButton style="width: 100%;float:right" value="鏁版嵁缁存姢鈥�" onclick="gotoAssetMaintain(); return false;" rerender="allForm" />
-                            </td>
-                        </tr>
                     </table>
                 </apex:pageBlock>
             </apex:outputPanel>
@@ -667,11 +649,11 @@
             <apex:inputHidden id="clearApplyFlagId" />
             <table>
                 <tr>
-                    <td style="width: 2%"></td>
-                    <td class="labelSettingStyle">澶囧搧瀛樻斁鍦�</td>
-                    <td class="blankStyle"></td>
+                    <!-- <td style="width: 2%"></td> -->
+                    <td class="">澶囧搧瀛樻斁鍦�</td>
+                    <td width="10px"></td>
                     <td class="inputTextStyle">
-                        <apex:selectList value="{!internalAssetLocationSet}" id="stockId" size="1" rendered="{!beipincunfangdiEditableFlag}">
+                        <apex:selectList value="{!internalAssetLocationSet}" id="stockId" size="1" rendered="{!beipincunfangdiEditableFlag}" style="margin-left: 3px;">
                             <apex:selectOptions value="{!internalAssetDataLocationOptionList}"/>
                         </apex:selectList>
                         <apex:inputText disabled="true" rendered="{!!beipincunfangdiEditableFlag}" />
@@ -694,7 +676,7 @@
                     <td><apex:inputText id="otherSelectionId" rendered="{!angecylookrole}"/>
                     <apex:inputText disabled="true" rendered="{!!angecylookrole}" /></td>
 
-                    <td class="setButtonStyle">
+                    <td class="setButtonStyle" style="padding-right: 10px;">
                         <apex:commandButton value="閫傜敤" reRender="allForm" onclick="applyJs(); return false;" disabled="{!onlyReadFlag}" />
                         <script type="text/javascript">
                             // 閫傜敤鎸夐挳
@@ -865,7 +847,7 @@
                         <apex:param name="applyMsgType" value="" />
                     </apex:actionFunction>
 
-                    <td class="setButtonStyle"><apex:commandButton action="{!saveBtn}" value="淇濆瓨" onclick="blockme();" rerender="allForm" oncomplete="unblockUI(); checkSavingJs();" disabled="{!onlyReadFlag}" /></td>
+                    <td class="setButtonStyle" style="padding-right: 10px;"><apex:commandButton action="{!saveBtn}" value="淇濆瓨" onclick="blockme();" rerender="allForm" oncomplete="unblockUI(); checkSavingJs();" disabled="{!onlyReadFlag}" /></td>
                     <!-- 鎵归噺鏇存柊 -->
                     <td class="setButtonStyle"><apex:commandButton value="鎵归噺鏇存柊" onclick="openPopup(); return false;" oncomplete="refresh" disabled="{!onlyReadFlag}" /></td>
                     <td style="width: auto"></td>
@@ -913,25 +895,26 @@
                 <apex:outputPanel id="popupBox" layout="block">
                     <input type="file" id="file_input" name="attFile" accept=".csv" /><br/>
                     <center>
+                        <input type="hidden" id="other_hidden"/>
                         <apex:commandButton value="纭" onclick="remoteLocationPost(); return false;" style="width: 20%; margin: 20px 10px 0px 10px" />
                         <apex:commandButton value="鍙栨秷" onclick="popupBox.hide();" style="width: 20%; margin: 20px 10px 0px 10px" />
                     </center>
                 </apex:outputPanel>
             </apex:outputPanel>
-            <table>
+            <table style="width: 100%">
                 <tr>
-                    <td style="width: 5%"></td>
-                    <td>鏄剧ず鏈�変腑鏁版嵁鏁伴噺</td>
-                    <td class="blankStyle"></td>
-                    <td class="inputTextStyle">
-                        <apex:selectList value="{!selRecordOption}" size="1" onchange="searchBtnJs(); return false;"><apex:selectOptions value="{!limitOpts}"/></apex:selectList>
+                    <!-- <td style="width: 5%"></td> -->
+                    <td width="70px">鏄剧ず鏈�変腑鏁版嵁鏁伴噺</td>
+                    <!-- <td class="blankStyle"></td> -->
+                    <td class="inputTextStyle" style="padding-left: 35px;">
+                        <apex:selectList value="{!selRecordOption}" size="1" style="margin-top: 10px;margin-left: 5px;" onchange="searchBtnJs(); return false;"><apex:selectOptions value="{!limitOpts}"/></apex:selectList>
                     </td>
-                    <td width="45px"></td>
-                    <td align="right">鍏辨绱㈠嚭 {!totalSoqlRecordNum + totalFixDataNum} 鏉℃暟鎹�</td>
-                    <td width="45px"></td>
-                    <td id="checkedNumId" align="right">鏈〉宸查�変腑 {!totalFixDataNum} 鏉℃暟鎹�</td>
-                    <td width="45px"></td>
-                    <td id="uncheckedNumId" align="right"> 鏈〉鏈�変腑 {!totalUnfixDataNum} 鏉℃暟鎹�</td>
+                    <td width="30px"></td>
+                    <td align="right" style="width: 130px">鍏辨绱㈠嚭 {!totalSoqlRecordNum + totalFixDataNum} 鏉℃暟鎹�</td>
+                    <td width="30px"></td>
+                    <td id="checkedNumId" align="right"  style="width: 180px">鏈〉宸查�変腑 {!totalFixDataNum} 鏉℃暟鎹�</td>
+                    <td width="10px"></td>
+                    <td id="uncheckedNumId" align="right" style="width: 153px"> 鏈〉鏈�変腑 {!totalUnfixDataNum} 鏉℃暟鎹�</td>
                     <script>
                         j$(function() {
                             // 缁熻鎵撳嬀鏁伴噺
@@ -948,29 +931,30 @@
                         });
                     </script>
                     <td width="45px"></td>
-                    <td align="right">绗� {!currPage} 椤�</td>
+                    <td align="right" style="width:41px">绗� {!currPage} 椤�</td>
                     <td width="45px"></td>
-                    <td align="right">鍏� {!totalPage} 椤�</td>
-                    <td width="45px"></td>
+                    <td align="right" style="width:55px">鍏� {!totalPage} 椤�</td>
+                    <td width="60px"></td>
                     <td align="right" width="45px">
                         <apex:commandLink action="{!firstPage}" value="棣栭〉" id="firstPg" onclick="blockme();" oncomplete="unblockUI();" reRender="allForm" style="{!IF(currPage==1,'display: none;','')}color: blue;"/>
                         <apex:outputText value="棣栭〉" style="{!IF(currPage!=1,'display: none;','')}color: gray;"></apex:outputText>
                     </td>
-                    <td width="45px"></td>
+                    <td width="10px"></td>
                     <td align="right" width="45px">
                         <apex:commandLink action="{!previousPage}" value="涓婁竴椤�" id="previous" onclick="blockme();" oncomplete="unblockUI();" reRender="allForm" style="{!IF(currPage==1,'display: none;','')}color: blue;"/>
                         <apex:outputText value="涓婁竴椤�" style="{!IF(currPage!=1,'display: none;','')}color: gray;"></apex:outputText>
                     </td>
-                    <td width="45px"></td>
+                    <td width="10px"></td>
                     <td align="right" width="45px">
                         <apex:commandLink action="{!nextPage}" value="涓嬩竴椤�" id="next" onclick="blockme();" oncomplete="unblockUI();" reRender="allForm" style="{!IF(totalPage==currPage ||totalPage == 0,'display: none;','')}color: blue;"/>
                         <apex:outputText value="涓嬩竴椤�" style="{!IF(totalPage!=currPage && totalPage != 0,'display: none;','')}color: gray;"></apex:outputText>
                     </td>
-                    <td width="45px"></td>
+                    <td width="10px"></td>
                     <td align="right" width="45px">
                         <apex:commandLink action="{!endPage}" value="灏鹃〉" id="endPg" onclick="blockme();" oncomplete="unblockUI();" reRender="allForm" style="{!IF(totalPage==currPage||totalPage == 0,'display: none;','')}color: blue;"/>
                         <apex:outputText value="灏鹃〉" style="{!IF(totalPage!=currPage && totalPage != 0,'display: none;','')}color: gray;"></apex:outputText>
                     </td>
+                    <td class="blankStyle"></td>
                 </tr>
             </table>
         </apex:pageBlock>
@@ -980,7 +964,7 @@
             <input type="hidden" id="count_hidden" value="{!allAssetDataListSize}"/>
             <!-- 鏌ョ湅鍏ㄩ儴淇濇湁璁惧 -->
             <div id="out_Div_L" style="overflow:auto">
-                <table class="list" border="1" style="border-collapse: collapse; table-layout: fixed; border-bottom-width: 0px; border-spacing: 0px; height: 80px; width: 600px;">
+                <table class="list" border="1" style="border-collapse: collapse; table-layout: fixed; border-bottom-width: 0px; border-spacing: 0px; height: 40px; width: 600px;">
                     <tr class="headerRow" style="background-color: #DCDCDC; text-align: left; vertical-align: top;">
                         <!-- 鍏ㄩ�� -->
                         <td style="width:20px"><input type='checkbox' onclick='selectAllJs()' id='checker' onchange='checkboxOnclick(); return false;'/></td>
@@ -995,7 +979,7 @@
                 </table>
             </div>
             <div id="out_Div_R">
-                <table class="list" border="1" style="border-collapse: collapse; table-layout:fixed; border-bottom-width: 0px; border-spacing:0; width:700px; height: 80px;">
+                <table class="list" border="1" style="border-collapse: collapse; table-layout:fixed; border-bottom-width: 0px; border-spacing:0; width:2660px; height: 40px;">
                     <tr class="headerRow" style="background-color: #DCDCDC; text-align: left; vertical-align: top;">
                         <apex:variable value="{!0}" var="cnt" />
                         <apex:repeat value="{!rightLabelList}" var="t">
@@ -1064,13 +1048,13 @@
                 }
             </script>
             <div id="in_Div_R" style="overflow:auto;">
-                <table class="list" border="1" style="border-collapse:collapse;table-layout:fixed;border-bottom-width:0px;border-spacing:0;width:660px;" id="tableData_R">
+                <table class="list" border="1" style="border-collapse:collapse;table-layout:fixed;border-bottom-width:0px;border-spacing:0;width:2660px;" id="tableData_R">
                     <apex:variable value="{!0}" var="Cnt_R" />
                     <apex:repeat id="dataline_R" value="{!allAssetInfoList}" var="eachAssetData">
                         <tr id="tableData_R_{!Cnt_R}" class="dataRow" onmouseover="if (window.hiOn){hiOn(this);} " onmouseout="if (window.hiOff){hiOff(this);} " onblur="if (window.hiOff){hiOff(this);}" onfocus="if (window.hiOn){hiOn(this);}" >
                             <apex:variable value="{!0}" var="cnt2" />
                             <apex:repeat id="eachdata_R" value="{!rightApiList}" var="eachRightApi">
-                                <td class="col_{!columnRightCssList[cnt2]} dataCellBorder1 {!eachRightApi[0]}" style="word-wrap:break-word">
+                                <td class="col_{!columnRightCssList[cnt2]} dataCellBorder1 {!eachRightApi[0]}" style="word-wrap:break-word;min-width: 100px">
                                     <!-- r -->
                                     <apex:outputPanel rendered="{!(eachRightApi.size>1 || columnRightRWMap[eachRightApi[0]]=='r')}" layout="none">
                                         <apex:outputPanel rendered="{!eachRightApi.size == 1}" layout="none">
diff --git a/force-app/main/default/pages/CheckAllOlympusAssetNew.page b/force-app/main/default/pages/CheckAllOlympusAssetNew.page
new file mode 100644
index 0000000..e4ea5dc
--- /dev/null
+++ b/force-app/main/default/pages/CheckAllOlympusAssetNew.page
@@ -0,0 +1,1088 @@
+<apex:page controller="CheckAllOlympusAssetController" title="妫�绱繚鏈夎澶�" showHeader="true" sidebar="false" id="allPage" action="{!init}" tabStyle="CheckAllOlympusAsset__tab" docType="html-5.0" lightningStylesheets="true">
+<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
+<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
+<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
+<apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/>
+    <style>
+        .dateFormat  {
+            display: none;
+        }
+        .requiredBlock  {
+            display: none;
+        }
+        .message {
+            margin: 0px;
+            /*width: 1125px;*/
+        }
+        table {
+            table-layout: fixed;
+            border-collapse: collapse;
+        }
+        a {
+            text-decoration: none;
+        }
+        /*TODO width margin-left 杩欓噷璋冭妭瀹藉害*/
+        div#out_Div_L {
+            position: relative;
+            overflow: hidden;
+            width: 1300px;
+        }
+        div#out_Div_R {
+            position: relative;
+            overflow: hidden;
+            width: 1200px;
+            margin-left: 686px;
+        }
+
+        div#in_Div_L {
+            position: relative;
+            width: 745px;
+            height: 451px;
+        }
+        div#in_Div_R {
+            position: relative;
+            overflow: auto;
+            height: 451px;
+            margin-left: 686px;
+            margin-top: -451px;
+        }
+        div#in_Div_L td.dataCellBorder1 {
+            border-width: 1px;
+        }
+        div#in_Div_R td.dataCellBorder1 {
+            border-width: 1px;
+        }
+        /* 榛樿 */
+        table.list td {width:100px;}
+        table.list td select {width:95%;}
+        table.list td input {width:95%;}
+        table.list td textarea {
+            height:50px;
+            width:90%;
+        }
+        table.list .col_Internal_asset_location__c {width:100px;}
+        table.list .col_Salesdepartment__c {width:110px;}
+        table.list .col_SalesProvince__c {width:70px;}
+        table.list .col_Asset_loaner_category__c {width:80px;}
+        table.list .col_Fixture_Model_No_F__c {width:80px;}
+        table.list .col_CompanyOfEquipment__c {width:60px;}
+        table.list .col_Asset_name__c {width:60px;}
+        table.list .col_Internal_Asset_number__c {width:80px;}
+        table.list .col_Internal_Asset_number_key__c {width:100px;}
+
+        table.list .col_SerialNumber {width:40px;}  /*鏈鸿韩缂栧彿*/
+        table.list .col_Product_Serial_No__c {width:60px;}  /*浜у搧 + 鏈轰綋缂栫爜*/
+        table.list .col_Product_category__c {width:60px;}
+        table.list .col_Equipment_Type__c {width:70px;}/* 澶囧搧鍒嗙被zyh*/
+        table.list .col_Consumable_Guaranteen_end__c {width:70px;}
+        table.list .col_Manage_type__c {width:60px;}  /*绠$悊绉嶇被*/
+        table.list .col_Loaner_accsessary__c {width:50px;}
+        table.list .col_EquipmentSet_Managment_Code__c {width:50px;}
+        table.list .col_AssetManageConfirm__c {width:50px;}
+        table.list .col_Fixture_QRCode__c {width:50px;}
+        table.list .col_WH_location__c {width:30px;}
+        table.list .col_Quantity {width:30px;}
+        table.list .col_You_Xiao_Ku_Cun__c {width:30px;}
+        table.list .col_Ji_Zhong_Guan_Li_Ku_Cun__c {width:30px;}
+        table.list .col_Out_of_wh__c {width:30px;}
+        table.list .col_Rental_Count__c {width:30px;}
+        table.list .col_Frozen_Quantity__c {width:30px;}
+        table.list .col_Abandoned_RealThing__c {width:30px;}
+        table.list .col_Abandoned_Inventory__c {width:40px;}
+        table.list .col_Repairing_Count__c {width:30px;}
+        table.list .col_Fixture_Status__c {width:30px;}
+        table.list .col_Main_OneToOne__c {width:40px;}
+        table.list .col_Status {width:40px;}
+
+        .navigationBarBlock {
+            width: 100%;
+        }
+        .apexp .bPageBlock.apexDefaultPageBlock .pbBody {
+            margin: 0px;
+        }
+        .checkButtonStyle input {
+            width: 100%;
+            text-align: left;
+        }
+        .searchButtonStyle {
+            width: 50%;
+        }
+        .searchButtonStyle input {
+            width: 80%;
+            background: #9BC2E6;
+        }
+        .setButtonStyle {
+            width: 8%;
+        }
+        .setButtonStyle input {
+            width: 100%;
+            background: #9BC2E6;
+        }
+        .startInventoryButtonStyle {
+            width: 12%;
+        }
+        .labelSettingStyle {
+            width: 8%;
+            text-align: right;
+        }
+        .labelStyle {
+            width: 8%;
+            text-align: left;
+        }
+        .blankStyle {
+            width: 1%;
+        }
+        .inputTextStyle {
+            width: 9%;
+        }
+        .inputTextStyle input {
+            width: 95%;
+        }
+        .inputTextStyle select {
+            width: 95%;
+        }
+        .redStyle {
+            background-color: #F00;
+        }
+        .greyStyle {
+            background-color: #AAA;
+        }
+        .blueStyle input {
+            background: #9BC2E6;
+        }
+        #pageBlockButton1 {
+            margin: 0pxt;
+        }
+        /*20230815 ljh start*/
+        table.mytable tr{
+            height:45px;
+        }
+        /*20230815 ljh end*/
+    </style>
+    <script type="text/javascript">
+        // 鏀瑰彉table灏哄
+        var heightAjustment = 120;
+        var widthAjustment = 30;
+        function windowResize() {
+            blockHeight = j$(window).innerHeight() - j$(escapeVfId('allPage:allForm:searchBlock')).height() - j$(escapeVfId('allPage:allForm:dataBlock:pageBlockButton1')).height() - j$('table#msg').height() - heightAjustment;
+            sbwidth = scrollbarWidth();
+            R_width = j$(escapeVfId('allPage:allForm:dataBlock')).width();
+            blockWidth = 490;
+            j$(escapeVfId('allPage:allForm:dataBlock')).css('height', blockHeight + 150 + 'px');
+            j$('div#in_Div_L').css('width', blockWidth + 220 + 'px');
+            j$('div#out_Div_L').css('width', blockWidth + 220 + 'px');  // 璋冩暣out_Div_L瀹藉害
+            j$('div#in_Div_L').css('height', blockHeight + 'px');
+            // **************************************************************
+            j$('div#in_Div_R').css('width', R_width - blockWidth - 220 + 'px');
+            j$('div#out_Div_R').css('width', R_width - blockWidth - 220  + 'px');
+            j$('div#in_Div_R').css('height', blockHeight + 20 + 'px');
+            var titleHeight_L = j$('div#out_Div_L').height();
+            var titleHeight_R = j$('div#out_Div_R').height();
+            if (titleHeight_L >= titleHeight_R) {
+                j$('div#out_Div_R').css('height', (titleHeight_L) + 'px');
+                j$('div#out_Div_R').css('margin-top', (-titleHeight_L) + 'px');
+                j$('table#table_out_Div_R').css('height', (titleHeight_L) + 'px');
+            } else {
+                j$('div#out_Div_L').css('height', titleHeight_R+'px');
+            }
+            j$('div#in_Div_R').css('margin-top', (-j$('div#in_Div_L').height()) + 'px');
+            var number = j$('table#tableData_L').find('tr').length;
+            if (number>0) {
+                for (var i = 0 ; i < number ;i++) {
+                    if (j$('tr#tableData_R_'+i).height() > j$('tr#tableData_L_'+i).height()){
+                        j$('tr#tableData_L_'+i).css('height', j$('tr#tableData_R_'+i).height());
+                    } else {
+                        j$('tr#tableData_R_'+i).css('height', j$('tr#tableData_L_'+i).height());
+                    }
+                }
+            }
+            if (j$('table#tableData_R').height() > j$('div#in_Div_R').height()) {
+                j$('div#in_Div_R').css('width', (R_width-blockWidth-220 + sbwidth) + 'px');
+            } else {
+                j$('div#out_Div_R').css('width', (R_width-blockWidth-240 + sbwidth) + 'px');
+                j$('div#in_Div_R').css('width', (R_width-blockWidth-240 + sbwidth) + 'px');
+            }
+        }
+        // 鍏ㄩ�夊姛鑳�
+        function selectAllJs() {
+            j$(escapeVfId('checker')).prop('disabled', true);
+            var productCount = j$('input#count_hidden').val();
+            if (j$(escapeVfId('checker')).attr('checked') == 'checked') {
+                for (var i = 0; i < productCount; i++) {
+                    var disabled = j$(escapeVfId('allPage:allForm:dataBlock:dataline_L:'+ i + ':rowCheck')).prop('disabled');
+                    if (disabled == false) {
+                        j$(escapeVfId('allPage:allForm:dataBlock:dataline_L:'+ i + ':rowCheck')).attr('checked', true);
+                    }
+                }
+            } else {
+                for (var i = 0; i < productCount; i++) {
+                    var disabled = j$(escapeVfId('allPage:allForm:dataBlock:dataline_L:'+ i + ':rowCheck')).prop('disabled');
+                    if (disabled == false) {
+                        j$(escapeVfId('allPage:allForm:dataBlock:dataline_L:'+ i + ':rowCheck')).attr('checked', false);
+                    }
+                }
+            }
+            j$(escapeVfId('checker')).prop('disabled', false);
+        }
+        var globalQueryCondition;
+        var fromQuickBarFlag = 'false';
+        function checkAssetJs(queryCondition) {
+            fromQuickBarFlag = 'true';
+            globalQueryCondition = queryCondition;
+            var changeFlg = checkChangeFlg();
+            if (changeFlg == '1') {
+                blockme();
+                checkAssetFunc(queryCondition, fromQuickBarFlag);
+            } else if (changeFlg == '3') {
+                blockme();
+                checkAssetFunc(queryCondition, fromQuickBarFlag);
+                globalQueryCondition = '';
+            }
+            fromQuickBarFlag = 'false';
+            return false;
+        }
+
+        // 妫�绱㈡寜閽�
+        function searchBtnJs() {
+            var changeFlg = checkChangeFlg();
+            if (changeFlg == '1') {
+                blockme();
+                checkAssetFunc(globalQueryCondition, fromQuickBarFlag);
+            } else if (changeFlg == '3') {
+                blockme();
+                checkAssetFunc(globalQueryCondition, fromQuickBarFlag);
+            }
+        }
+
+        function checkAssetFuncJs() {
+            checkAssetFunc(globalQueryCondition, fromQuickBarFlag);
+            globalQueryCondition = '';
+        }
+        // 鍙栨秷鏃舵暟鎹瓨鍦ㄥ彉鏇存娴�
+        function checkChangeFlagWhenCancel() {
+            var changeFlag = document.getElementById('allPage:allForm:dataBlock:changeFlg').value;
+            if (changeFlag == 1) {
+                if (window.confirm('鐢婚潰涓婄殑鏁版嵁鏈夊彉鍖栵紝瑕佸彇娑堟墍鍋氱殑鍙樻洿鍚楋紵\n鐐瑰嚮 [纭畾] 鍙栨秷鎵�鏈夊彉鏇碶n鐐瑰嚮 [鍙栨秷] 杩斿洖涔嬪墠鐨勭粨鏋溿��')) {
+                    document.getElementById('allPage:allForm:dataBlock:changeFlg').value = 0;
+                    return '1';
+                } else {
+                    return '2';
+                }
+            }
+            return '3';
+        }
+        // 鍙栨秷鎸夐挳
+        function cancelBtnJs() {
+            var changeFlg = checkChangeFlagWhenCancel();
+            // 鐐瑰嚮鍙栨秷骞剁‘瀹氭椂
+            if (changeFlg == '1') {
+                blockme();
+                clearAllCheckedJs();  // apex:actionFunction
+
+                j$(escapeVfId('checker')).prop('disabled', true);
+                var productCount = j$('input#count_hidden').val();
+
+                for (var i = 0; i < productCount; i++) {
+                    var disabled = j$(escapeVfId('allPage:allForm:dataBlock:dataline_L:'+ i + ':rowCheck')).prop('checked');
+                    if (disabled == true) {
+                        j$(escapeVfId('allPage:allForm:dataBlock:dataline_L:'+ i + ':rowCheck')).attr('checked', false);
+                    }
+                }
+                j$(escapeVfId('checker')).prop('disabled', false);
+                j$(escapeVfId('allPage:allForm:pageBlockButton1:stockId')).val('');
+                j$(escapeVfId('allPage:allForm:pageBlockButton1:applyEquipmentTypeId')).val('');
+                j$(escapeVfId('allPage:allForm:pageBlockButton1:applyAssetTypeListId')).val('');
+                j$(escapeVfId('allPage:allForm:pageBlockButton1:otherSelectionId')).val('');
+                clearAllSearchConditionWhenCancel();  // 鍙栨秷纭畾鍚庢竻绌烘绱㈡潯浠�   // apex:actionFunction
+            } else if (changeFlg == '3') {
+                blockme();
+                clearAllCheckedJs();
+
+                j$(escapeVfId('checker')).prop('disabled', true);
+                var productCount = j$('input#count_hidden').val();
+
+                for (var i = 0; i < productCount; i++) {
+                    var disabled = j$(escapeVfId('allPage:allForm:dataBlock:dataline_L:'+ i + ':rowCheck')).prop('checked');
+                    if (disabled == true) {
+                        j$(escapeVfId('allPage:allForm:dataBlock:dataline_L:'+ i + ':rowCheck')).attr('checked', false);
+                    }
+                }
+                j$(escapeVfId('checker')).prop('disabled', false);
+                j$(escapeVfId('allPage:allForm:pageBlockButton1:stockId')).val('');
+                j$(escapeVfId('allPage:allForm:pageBlockButton1:applyEquipmentTypeId')).val('');
+                j$(escapeVfId('allPage:allForm:pageBlockButton1:applyAssetTypeListId')).val('');
+                j$(escapeVfId('allPage:allForm:pageBlockButton1:otherSelectionId')).val('');
+                clearAllSearchConditionWhenCancel();  // 鍙栨秷纭畾鍚庢竻绌烘绱㈡潯浠�
+            }
+        }
+
+        // 褰撶敤鎴风偣鍑绘绱㈢瓑鎸夐挳鏃舵鏌etChangeFlg锛岃嫢涓簍rue鍒檃lert
+        function setChangeFlg() {
+            document.getElementById('allPage:allForm:dataBlock:changeFlg').value = 1;
+        }
+        var dataSortKey;
+        function saveAndSort(dataColumn) {
+            dataSortKey = dataColumn;
+            if (checkChangeFlg2() == '3') {
+                sortTableJs(dataSortKey);
+                dataSortKey = '';
+            }
+            return false;
+        }
+        function checkChangeFlg() {
+            var currentPageRecordCount = j$('input#count_hidden').val();
+            var allCheckedFalse = false;
+            for (var i = 0; i < currentPageRecordCount; i++) {
+                var checkBox = j$(escapeVfId('allPage:allForm:dataBlock:dataline_L:' + i + ':rowCheck'));
+                if (checkBox.prop('checked') == true) {
+                    allCheckedFalse = true;
+                }
+            }
+
+            var onlyReadFlag = j$(escapeVfId('onlyReadFlagId')).val();
+            var changeFlag = document.getElementById('allPage:allForm:dataBlock:changeFlg').value;
+            if (changeFlag == 1 && onlyReadFlag == 'false' && allCheckedFalse) {
+                if (window.confirm('鐢婚潰涓婄殑鏁版嵁鏈夊彉鍖栵紝瑕佷繚瀛樻墍鍋氱殑鍙樻洿鍚楋紵\n鐐瑰嚮 [纭畾] 淇濆瓨鎵撻挬椤规暟鎹苟妫�绱n鐐瑰嚮 [鍙栨秷] 杩斿洖涔嬪墠鐨勭粨鏋溿��')) {
+                    saveBeforeSearch();
+                    document.getElementById('allPage:allForm:dataBlock:changeFlg').value = 0;
+                    setSaveSuccessMsg();  // 淇濆瓨瀹屼簡
+                    return '1';
+                } else {
+                    return '2';
+                }
+            } else if (changeFlag == 1 && onlyReadFlag == 'true' && allCheckedFalse) {
+                if (window.confirm('澶囧搧瀛樻斁鍦伴�夐」涓庢偍鐨勬潈闄愪笉绗︼紝鎮ㄤ笉鍏锋湁淇濆瓨鏉冮檺銆俓n鐢婚潰涓婄殑鏁版嵁鏈夊彉鍖栵紝瑕佺户缁搷浣滃悧锛焅n鐐瑰嚮 [纭畾] 缁х画鎿嶄綔\n鐐瑰嚮 [鍙栨秷] 杩斿洖涔嬪墠鐨勭粨鏋溿��')) {
+                    document.getElementById('allPage:allForm:dataBlock:changeFlg').value = 0;
+                    return '3';
+                } else {
+                    return '2';
+                }
+            }
+            return '3';
+        }
+
+        function gotoInventoryResultRecord() {
+            window.open('{!$Page.InventoryResultRecord}');
+        }
+
+        function gotoInventoryReport() {
+            window.open('{!$Page.InventoryReport}');
+        }
+        function gotoConsumInventoryReport() {
+            window.open('{!$Page.InventoryReport}?isConsum=true');
+        }
+        function gotoAssetMaintain() {
+            window.open('{!$Page.AssetMaintain}');
+        }
+
+        function checkChangeFlg2() {
+            var currentPageRecordCount = j$('input#count_hidden').val();
+            var allCheckedFalse = false;
+            for (var i = 0; i < currentPageRecordCount; i++) {
+                var checkBox = j$(escapeVfId('allPage:allForm:dataBlock:dataline_L:' + i + ':rowCheck'));
+                if (checkBox.prop('checked') == true) {
+                    allCheckedFalse = true;
+                }
+            }
+
+            var onlyReadFlag = j$(escapeVfId('onlyReadFlagId')).val();
+            var changeFlag = document.getElementById('allPage:allForm:dataBlock:changeFlg').value;
+            if (changeFlag == 1 && onlyReadFlag == 'false' && allCheckedFalse) {
+                if (window.confirm('鐢婚潰涓婄殑鏁版嵁鏈夊彉鍖栵紝瑕佷繚瀛樻墍鍋氱殑鍙樻洿鍚楋紵\n鐐瑰嚮 [纭畾] 淇濆瓨鎵撻挬椤规暟鎹苟妫�绱n鐐瑰嚮 [鍙栨秷] 杩斿洖涔嬪墠鐨勭粨鏋溿��')) {
+                    saveBeforeSearch2();
+                    document.getElementById('allPage:allForm:dataBlock:changeFlg').value = 0;
+                    setSaveSuccessMsg();
+                    return '1';
+                } else {
+                    return '2';
+                }
+            } else if (changeFlag == 1 && onlyReadFlag == 'true' && allCheckedFalse) {
+                if (window.confirm('澶囧搧瀛樻斁鍦伴�夐」涓庢偍鐨勬潈闄愪笉绗︼紝鎮ㄤ笉鍏锋湁淇濆瓨鏉冮檺銆俓n鐢婚潰涓婄殑鏁版嵁鏈夊彉鍖栵紝瑕佺户缁搷浣滃悧锛焅n鐐瑰嚮 [纭畾] 缁х画鎿嶄綔\n鐐瑰嚮 [鍙栨秷] 杩斿洖涔嬪墠鐨勭粨鏋溿��')) {
+                    document.getElementById('allPage:allForm:dataBlock:changeFlg').value = 0;
+                    return '3';
+                } else {
+                    return '2';
+                }
+            }
+            return '3';
+        }
+
+        function sorTableJs2() {
+            if (dataSortKey != '' && dataSortKey != null) {
+                sortTableJs(dataSortKey);
+                dataSortKey = '';
+            }
+            return false;
+        }
+
+        // 鎺掑簭閫傜敤
+        function sortTableJs(key) {
+            blockme();
+            sortTablefunc(key);
+            return false;
+        }
+        // function checkExcessFlag() {
+        //     var excess2000Flag = j$(escapeVfId('excess2000FlagId')).val();
+            // if (excess2000Flag == 'true') {
+            //     alert('妫�绱㈡暟鎹凡瓒呰繃2000鏉★紝鏃犳硶鏄緁romQuickBarFlag绀鸿秴杩�2000鏉$殑閮ㄥ垎锛岃杩藉姞妫�绱㈡潯浠躲��');
+            // }
+        // }
+        window.onresize = windowResize;
+    </script>
+    <apex:form id="allForm">
+        <!-- 鍒ゆ柇妫�绱㈡暟閲忎笂闄�2000 -->
+        <input type="hidden" id="excess2000FlagId" value="{!excess2000Flag}"/>
+        <input type="hidden" id="isSavingSuccessId" value="{!isSavingSuccess}"/>
+        <input type="hidden" id="onlyReadFlagId" value="{!onlyReadFlag}"/>
+        <input type="hidden" id="internalAssetLocationUser" value="{!internalAssetLocationLogin}" />
+        <apex:pageBlock id="edit">
+            <!-- 淇濆瓨鎴愬姛 -->
+            <apex:actionFunction name="setSaveSuccessMsg" action="{!setSaveSuccessMsg}" />
+            <!-- 鏌ョ湅淇濇湁璁惧 -->
+            <apex:actionFunction name="checkAssetFunc" action="{!checkAssetBtn}" rerender="allForm" onComplete="unblockUI(); checkExcessFlag();">
+                <apex:param name="assertCondition" value="" />
+                <apex:param name="fromQuickBarFlag" value="" />
+            </apex:actionFunction>
+            <!-- 鍙栨秷鎸夐挳 -->
+            <apex:actionFunction name="clearAllCheckedJs" action="{!clearAllCheckedBtn}" rerender="allForm" onComplete="unblockUI();" />
+            <!-- 妫�绱㈡寜閽� -->
+            <apex:actionFunction name="searchBtnFunc" action="{!searchBtn}" rerender="allForm" onComplete="unblockUI(); checkExcessFlag();"></apex:actionFunction>
+            <!-- 鍙栨秷鏄竻绌烘绱㈠尯 -->
+            <apex:actionFunction name="clearAllSearchConditionWhenCancel" action="{!clearAllSearchConditionWhenCancel}"></apex:actionFunction>
+            <!-- 宸︿晶鎸夐挳鍖� -->
+            <!-- chenjingwu 2023.8.2 start-->
+            <apex:outputPanel layout="block" style="width: 16%; float: left;">
+                <apex:pageBlock mode="maindetail">
+                    <table style='height: 370px'>
+                        <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅鍏ㄩ儴淇濇湁璁惧" rendered="{!!allBlueFlag}" onclick="checkAssetJs('all'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle "><apex:commandButton style="background-color: silver;" value="鏌ョ湅鍏ㄩ儴淇濇湁璁惧" rendered="{!allBlueFlag}" onclick="checkAssetJs('all'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅鏈夋晥搴撳瓨" rendered="{!!consumableBlueFlag}" onclick="checkAssetJs('consumable'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton style="background-color: silver;" value="鏌ョ湅鏈夋晥搴撳瓨" rendered="{!consumableBlueFlag}" onclick="checkAssetJs('consumable'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅鍊熷嚭鍒嗛厤鏁�" rendered="{!!lendingBlueFlag}" onclick="checkAssetJs('lending'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton style="background-color: silver;" value="鏌ョ湅鍊熷嚭鍒嗛厤鏁�" rendered="{!lendingBlueFlag}" onclick="checkAssetJs('lending'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅淇悊涓繚鏈夎澶�" rendered="{!!repairingBlueFlag}" onclick="checkAssetJs('repairing'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton style="background-color: silver;" value="鏌ョ湅淇悊涓繚鏈夎澶�" rendered="{!repairingBlueFlag}" onclick="checkAssetJs('repairing'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅寰呮姤搴熶繚鏈夎澶�" rendered="{!!scrappingBlueFlag}" onclick="checkAssetJs('scrapping'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton style="background-color: silver;" value="鏌ョ湅寰呮姤搴熶繚鏈夎澶�" rendered="{!scrappingBlueFlag}" onclick="checkAssetJs('scrapping'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅宸叉姤搴熶繚鏈夎澶�" rendered="{!!scrappedBlueFlag}" onclick="checkAssetJs('scrapped'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton style="background-color: silver;" value="鏌ョ湅宸叉姤搴熶繚鏈夎澶�" rendered="{!scrappedBlueFlag}" onclick="checkAssetJs('scrapped'); return false;" /></td></tr>
+                        <!-- OLY_OCM-818 -->
+                        <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅宸叉秷鑰楃殑淇濇湁璁惧" rendered="{!!consumedBlueFlag}" onclick="checkAssetJs('consumed'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton style="background-color: silver;" value="鏌ョ湅宸叉秷鑰楃殑淇濇湁璁惧" rendered="{!consumedBlueFlag}" onclick="checkAssetJs('consumed'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅鍗冲皢鍒版湡鐨勪繚鏈夎澶�" rendered="{!!soonExpiredBlueFlag}" onclick="checkAssetJs('soonExpired'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton style="background-color: silver;" value="鏌ョ湅鍗冲皢鍒版湡鐨勪繚鏈夎澶�" rendered="{!soonExpiredBlueFlag}" onclick="checkAssetJs('soonExpired'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅宸茶繃鏈熺殑淇濇湁璁惧" rendered="{!!expiredBlueFlag}" onclick="checkAssetJs('expired'); return false;" /></td></tr>
+                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton style="background-color: silver;" value="鏌ョ湅宸茶繃鏈熺殑淇濇湁璁惧" rendered="{!expiredBlueFlag}" onclick="checkAssetJs('expired'); return false;" /></td></tr>
+                    </table>
+                </apex:pageBlock>
+            </apex:outputPanel>
+            <!-- 鍙充晶妫�绱㈠尯 -->
+            <apex:outputPanel layout="block" style="width: 83%; float: right;">
+                <apex:pageBlock mode="maindetail">
+                    <table style='width: 100%; height: 370px'>
+                        <tr>
+                            <td class="labelStyle">澶囧搧瀛樻斁鍦�</td>
+                            <td class="inputTextStyle">
+                                <apex:selectList value="{!searchB.internal_asset_location}" id="stockStorageId" size="1">
+                                    <apex:selectOptions value="{!internalAssetLocationOptionList}"/>
+                                </apex:selectList>
+                            </td>
+                            <td class="blankStyle"></td>
+                            <td class="labelStyle">澶囧搧閰嶅鏄庣粏鍨嬪彿</td>
+                            <td class="inputTextStyle"><apex:inputText value="{!searchB.fixture_Model_No}" id="fixtureModelNoId" /></td>
+                            <td class="blankStyle"></td>
+                            <td class="labelStyle">璐ф灦鍙�</td>
+                            <td class="inputTextStyle"><apex:inputText value="{!searchB.wh_location}" id="shelfNumId" /></td>
+                            <td class="blankStyle"></td>
+                            <td class="labelStyle">澶囧搧鐘舵��</td>
+                            <td class="inputTextStyle">
+                                <apex:selectList value="{!searchB.fixture_Status}" id="assetStatusId" size="1">
+                                    <apex:selectOptions value="{!assetStatusOptionList}"/>
+                                </apex:selectList>
+                            </td>
+                        </tr>
+                        <tr><td><br /><br /></td></tr>
+                        <tr>
+                            <td class="labelStyle">澶囧搧绠$悊缂栫爜</td>  <!-- 銈枫儶銈€儷鐣彿 -->
+                            <td class="inputTextStyle">
+                                <apex:inputText value="{!searchB.equipmentSet_Managment_Code}" id="stockManagementCodeId" rendered="{!equipmentSetManagmentCodeEditableFlag}" />
+                                <apex:inputText value="{!searchB.equipmentSet_Managment_Code}" id="stockManagementCodeId2" rendered="{!!equipmentSetManagmentCodeEditableFlag}" />
+                            </td>
+                            <td class="blankStyle"></td>
+                            <td class="labelStyle">鍥哄畾璧勪骇鍙�</td>
+                            <td class="inputTextStyle">
+                                <apex:inputText value="{!searchB.internal_Asset_number}" id="fixedAssetNumId" rendered="{!internalAssetNumberEditableFlag}" />
+                                <apex:inputText value="{!searchB.internal_Asset_number}" id="fixedAssetNumId2" rendered="{!!internalAssetNumberEditableFlag}" />
+                            </td>
+                            <td class="blankStyle"></td>
+                            <td class="labelStyle">鏈鸿韩鍙�</td>
+                            <td class="inputTextStyle"><apex:inputText value="{!searchB.serialNumber}" id="serialNoId" /></td>
+                            <td class="blankStyle"></td>
+                            <td class="labelStyle">鍒嗗叕鍙稿彿</td>
+                            <td class="inputTextStyle">
+                                <apex:selectList value="{!searchB.companyOfEquipment}" id="companyOfEquipment" size="1">
+                                    <apex:selectOptions value="{!companyOfEquipmentOpts}"/>
+                                </apex:selectList>
+                            </td>
+                        </tr>
+                        <tr><td><br /><br /></td></tr>
+                        <tr>
+                            <td class="labelStyle">涓讳綋/闄勫睘鍝�</td>
+                            <td class="inputTextStyle">
+                                <apex:selectList value="{!searchB.bodyOrAccessory}" id="bodyOrAccessoryId" size="1">
+                                    <apex:selectOptions value="{!bodyOrAccessoryOptionList}"/>
+                                </apex:selectList>
+                            </td>
+                            <td class="blankStyle"></td>
+                            <td class="labelStyle">浜у搧鍒嗙被</td>
+                            <td class="inputTextStyle">
+                                <apex:selectList value="{!searchB.product_category}" id="product_category" size="1">
+                                    <apex:selectOptions value="{!product_categoryOpts}"/>
+                                </apex:selectList>
+                            </td>
+                            <td class="blankStyle"></td>
+                            <td class="labelStyle">澶囧搧鍒嗙被</td>
+                            <td class="inputTextStyle">
+                                <apex:selectList value="{!searchB.equipment_Type}" id="equipment_Type" size="1">
+                                    <apex:selectOptions value="{!equipment_TypeOpts}"/>
+                                </apex:selectList>
+                            </td>
+                            <td class="blankStyle"></td>
+                            <td class="labelStyle">绠$悊绉嶇被</td>
+                            <td class="inputTextStyle">
+                                <apex:selectList value="{!searchB.manage_type}" id="manage_type" size="1">
+                                    <apex:selectOptions value="{!manage_typeOpts}"/>
+                                </apex:selectList>
+                            </td>
+                        </tr>
+                        <tr><td><br /><br /></td></tr>
+                        <tr>
+                            <td class="labelStyle">鎵�鍦ㄥ湴鍖�(鏈儴)</td>
+                            <td class="inputTextStyle">
+                                <apex:selectList value="{!searchB.salesdepartment}" id="salesdepartment" size="1">
+                                    <apex:selectOptions value="{!salesdepartmentOpts}"/>
+                                </apex:selectList>
+                            </td>
+                            <td class="blankStyle"></td>
+                            <td class="labelStyle">鎵�鍦ㄥ湴鍖�(鐪�)</td>
+                            <td class="inputTextStyle">
+                                <apex:selectList value="{!searchB.salesProvince}" id="salesProvince" size="1">
+                                    <apex:selectOptions value="{!salesProvinceopts}"/>
+                                </apex:selectList>
+                            </td>
+                            <td class="blankStyle"></td>
+                            <td class="labelStyle">娑堣�楀搧鏈夋晥鏈熻嚦</td>
+                            <td class="inputTextStyle">
+                                <apex:inputText id="consumable_Guaranteen_endStr" value="{!searchB.consumable_Guaranteen_endStr}" size="12" onfocus="DatePicker.pickDate(true, '{!$Component.consumable_Guaranteen_endStr}', false)" />
+                            </td>
+                            <td class="blankStyle"></td>
+                        </tr>
+                        <tr><td><br /><br /></td></tr>
+                        <tr>
+                            <td class="labelStyle">澶囧搧绫诲埆</td>
+                            <td class="inputTextStyle">
+                                <apex:selectList value="{!searchB.asset_loaner_category}" id="assetLoanerCategory" size="1">
+                                    <apex:selectOptions value="{!assetLoanerCategoryOpts}"/>
+                                </apex:selectList>
+                            </td>
+                            <td class="blankStyle"></td>
+                            <td class="labelStyle">鍒版湡鏃堕棿</td>
+                            <td class="inputTextStyle">
+                                <apex:selectList value="{!searchB.daysToExpired}" id="daysToExpired" size="1">
+                                    <apex:selectOptions value="{!daysToExpiredOpts}"/>
+                                </apex:selectList>
+                            </td>
+                            <td class="blankStyle"></td>
+                            <td class="blankStyle"></td>
+                            <td class="blankStyle"></td>
+                            <td class="blankStyle"></td>
+                            <td colspan="2">
+                                <apex:commandButton style="width: 28%" value="妫�绱�" onclick="searchBtnJs(); return false;" rerender="allForm" />
+                                <apex:commandButton style="width: 28%" value="鍙栨秷" onclick="cancelBtnJs(); return false;" rerender="allForm" />
+                                <apex:commandButton style="width: 36%" value="瀵煎嚭鏁版嵁" disabled="{!onlyReadFlag}" onclick="checkCsvExport(); return false;" />
+                            </td>
+                            <apex:actionFunction name="csvExprot" action="{!csvExprot}" />
+                            <script type="text/javascript">
+                                function checkCsvExport() {
+                                    var currentPageRecordCount = j$('input#count_hidden').val();
+                                    var isCheckSaveFlag = false;
+                                    for (var i = 0; i < currentPageRecordCount; i++) {
+                                        var checkBox = j$(escapeVfId('allPage:allForm:dataBlock:dataline_L:' + i + ':rowCheck'));
+                                        if (checkBox.prop('checked') == true) {
+                                            isCheckSaveFlag = true;
+                                        }
+                                    }
+                                    if (!isCheckSaveFlag) {
+                                        alert("鏈�夋嫨浠讳綍鏁版嵁锛屾棤娉曞鍑恒��");
+                                    } else {
+                                        csvExprot();
+                                    }
+                                }
+                            </script>
+                        </tr>
+                    </table>
+                </apex:pageBlock>
+            </apex:outputPanel>
+        </apex:pageBlock>
+        <!-- 璁剧疆鍖� -->
+        <apex:pageBlock id="pageBlockButton1">
+            <apex:actionFunction name="applyButton" action="{!applyBtn}" rerender="allForm" onComplete="unblockUI();" />
+            <apex:actionFunction name="sortTablefunc" action="{!sortTable}" rerender="allForm" onComplete="unblockUI(); checkExcessFlag(); return false;">
+            <!-- <apex:actionFunction name="sortTablefunc" action="{!sortTable}" rerender="allForm" onComplete="unblockUI(); return false;"> -->
+                <apex:param name="sortKey" value="" />
+            </apex:actionFunction>
+            <apex:inputHidden id="clearApplyFlagId" />
+            <table>
+                <tr>
+                    <!-- <td style="width: 2%"></td> -->
+                    <td class="">澶囧搧瀛樻斁鍦�</td>
+                    <td width="10px"></td>
+                    <td class="inputTextStyle">
+                        <apex:selectList value="{!internalAssetLocationSet}" id="stockId" size="1" rendered="{!beipincunfangdiEditableFlag}" style="margin-left: 3px;">
+                            <apex:selectOptions value="{!internalAssetDataLocationOptionList}"/>
+                        </apex:selectList>
+                        <apex:inputText disabled="true" rendered="{!!beipincunfangdiEditableFlag}" />
+                    </td>
+                    <td class="labelSettingStyle">澶囧搧鍒嗙被</td>
+                    <td class="blankStyle"></td>
+                    <td class="inputTextStyle">
+                        <apex:inputField value="{!assetSetting.Equipment_Type__c}" id="applyEquipmentTypeId" rendered="{!beipinfenleiEditableFlag}" />
+                        <apex:inputText disabled="true" rendered="{!!beipinfenleiEditableFlag}" />
+                    </td>
+                    <td class="labelSettingStyle">鍏朵粬閫夐」</td>
+                    <td class="blankStyle"></td>
+                    <td class="inputTextStyle">
+                        <apex:selectList value="{!appliedSelectOption}" id="applyAssetTypeListId" size="1" rendered="{!angecylookrole}">
+                            <apex:selectOptions value="{!appliedSelectOptionList}"/>
+                        </apex:selectList>
+                         <apex:selectList disabled="true" rendered="{!!angecylookrole}">
+                        </apex:selectList>
+                    </td>
+                    <td><apex:inputText id="otherSelectionId" rendered="{!angecylookrole}"/>
+                    <apex:inputText disabled="true" rendered="{!!angecylookrole}" /></td>
+
+                    <td class="setButtonStyle" style="padding-right: 10px;">
+                        <apex:commandButton value="閫傜敤" reRender="allForm" onclick="applyJs(); return false;" disabled="{!onlyReadFlag}" />
+                        <script type="text/javascript">
+                            // 閫傜敤鎸夐挳
+                            function applyJs() {
+                                var appliedFlag = true;
+                                var selectFlag = true;
+                                var isCheckFlag = false;
+                                var internalAssetLocation = j$(escapeVfId('{!$Component.stockId}')).val();  // 澶囧搧瀛樻斁鍦�
+                                var productCategory = j$(escapeVfId('{!$Component.applyEquipmentTypeId}')).val();  // 澶囧搧鍒嗙被
+                                var otherSelectOptionValue = j$(escapeVfId('{!$Component.otherSelectionId}')).val();  // 鍏朵粬閫夐」鍊�
+                                otherSelectOptionValue = j$.trim(otherSelectOptionValue);
+                                var otherSelectOptionValues = [];
+                                var otherSelectOptionApi = j$(escapeVfId('{!$Component.applyAssetTypeListId}')).val();  // 鍏朵粬閫夐」鐨刟pi
+                                var otherSelectOptionText = j$(escapeVfId('{!$Component.applyAssetTypeListId}')).find("option:selected").text();  // 鍏朵粬閫夐」鐨則ext
+                                if (otherSelectOptionApi != "") {
+                                    j$("td." + "col_" + otherSelectOptionApi + ".dataCellBorder1." + otherSelectOptionApi).each(function() {
+                                        otherSelectOptionValues.push(j$(this));
+                                    });
+                                }
+
+                                var internalAssetLocations = [];  // 澶囧搧瀛樻斁鍦�
+                                j$("td.col_Internal_asset_location__c.dataCellBorder1.Internal_asset_location__c").each(function() {
+                                    internalAssetLocations.push(j$(this));
+                                });
+                                var equipmentTypes = [];  // 澶囧搧鍒嗙被
+                                j$("td.col_Equipment_Type__c.dataCellBorder1.Equipment_Type__c").each(function() {
+                                    equipmentTypes.push(j$(this));
+                                });
+                                var currentPageRecordCount = j$('input#count_hidden').val();
+                                for (var i = 0; i < currentPageRecordCount; i++) {
+                                    var checkBox = j$(escapeVfId('allPage:allForm:dataBlock:dataline_L:' + i + ':rowCheck'));
+                                    if (checkBox.prop('checked') == true) {
+                                        isCheckFlag = true;
+                                        // if (internalAssetLocations[i].find("select").val() != internalAssetLocation && internalAssetLocation != '') {
+                                        if (internalAssetLocation != '' && typeof(internalAssetLocation) != "undefined") {
+                                            setChangeFlg();
+                                            internalAssetLocations[i].find("select").val(internalAssetLocation);
+                                            appliedFlag = false;
+                                        }
+                                        // if (equipmentTypes[i].find("select").val() != productCategory && productCategory != '') {
+                                        if (productCategory != '' && typeof(productCategory) != "undefined") {
+                                            setChangeFlg();
+                                            equipmentTypes[i].find("select").val(productCategory);
+                                            appliedFlag = false;
+                                        }
+                                        if (otherSelectOptionApi != '' && otherSelectOptionValue != '') {
+                                            if (typeof(otherSelectOptionValues[i].find("input").val()) != "undefined") {
+                                                if (otherSelectOptionValues[i].find("input").attr("type") == "text") {
+                                                    // if (otherSelectOptionValues[i].find("input").val() != otherSelectOptionValue) {
+                                                    setChangeFlg();
+                                                    otherSelectOptionValues[i].find("input").val(otherSelectOptionValue);
+                                                    appliedFlag = false;
+                                                    // }
+
+                                                } else if (otherSelectOptionValues[i].find("input").attr("type") == "checkbox") {
+                                                    if (otherSelectOptionValue == "true") {
+                                                        setChangeFlg();
+                                                        otherSelectOptionValues[i].find("input").attr("checked", true);
+                                                        appliedFlag = false;
+                                                    } else if (otherSelectOptionValue == "false") {
+                                                        setChangeFlg();
+                                                        otherSelectOptionValues[i].find("input").attr("checked", false);
+                                                        appliedFlag = false;
+                                                    }
+                                                }
+                                            } else if (typeof(otherSelectOptionValues[i].find("select").val()) != "undefined") {
+                                                selectFlag = false;
+
+                                                var oldOtherSelectOptionValues = otherSelectOptionValues[i].find("select").val();
+                                                setChangeFlg();
+                                                var tempvalue = otherSelectOptionValues[i].find("select").val();
+                                                otherSelectOptionValues[i].find("select").val(otherSelectOptionValue);
+                                                if (otherSelectOptionValues[i].find("select").val() == "") {  // 鑻ラ�夐」鍊兼棤鏁堬紝鍒欎负绌�
+                                                    otherSelectOptionValues[i].find("select").val(tempvalue);
+                                                    appliedFlag = true;
+                                                } else {
+                                                    appliedFlag = false;
+                                                }
+                                            }
+                                        }
+                                    }
+                                }
+                                j$(escapeVfId('allPage:allForm:pageBlockButton1:clearApplyFlagId')).val(false);
+                                // var clearApplyFlag = false;
+                                window.setTimeout(function () {
+                                    if (internalAssetLocation == '' && productCategory== '' && (otherSelectOptionText == '' || otherSelectOptionValue == '')) {  // 閫傜敤鍏ュ姏妗嗗叏涓虹┖
+                                        // alert('閫傜敤鍖鸿緭鍏ユ涓虹┖锛岃杈撳叆閫傜敤鍊笺��');
+                                        var applyMsg = '閫傜敤鍖鸿緭鍏ユ涓虹┖锛岃杈撳叆閫傜敤鍊笺��';
+                                        passApplyMsgToController(applyMsg, 'Fail');
+                                        return;
+                                    }
+                                    if (isCheckFlag == false) {
+                                        // alert('鏈嬀閫変换浣曞緟閫傜敤鏁版嵁銆�');
+                                        var applyMsg = '鏈嬀閫変换浣曞緟閫傜敤鏁版嵁銆�';
+                                        passApplyMsgToController(applyMsg, 'Fail');
+                                        return;
+                                    }
+
+                                    if (selectFlag) {
+                                        if (!appliedFlag) {
+                                            var alertMsg = "閫傜敤瀹屼簡 \r\n";
+                                            if (internalAssetLocation != '' && typeof(internalAssetLocation) != "undefined") {
+                                                var alertMsg1 = "宸插皢鎵撳嬀鏁版嵁涓殑 " + "澶囧搧瀛樻斁鍦�" + " 閫傜敤涓� " + internalAssetLocation + " \r\n";
+                                                alertMsg += alertMsg1;
+                                            }
+                                            if (productCategory != '' && typeof(productCategory) != "undefined") {
+                                                var alertMsg2 = "宸插皢鎵撳嬀鏁版嵁涓殑 " + "澶囧搧鍒嗙被" + " 閫傜敤涓� " + productCategory + " \r\n";
+                                                alertMsg += alertMsg2;
+                                            }
+                                            if (otherSelectOptionText != '' && otherSelectOptionValue != '') {
+                                                var alertMsg3 = "宸插皢鎵撳嬀鏁版嵁涓殑 " + otherSelectOptionText + " 閫傜敤涓� " + otherSelectOptionValue + " \r\n";
+                                                alertMsg += alertMsg3;
+                                            }
+                                            // alert(alertMsg);
+                                            // clearApplyFlag = true;
+                                            j$(escapeVfId('allPage:allForm:pageBlockButton1:clearApplyFlagId')).val(true);
+                                            passApplyMsgToController(alertMsg, 'Success');
+                                        }
+                                    } else {
+                                        if (!appliedFlag) {
+                                            var alertMsg = "閫傜敤瀹屼簡锛� ";
+                                            if (internalAssetLocation != '') {
+                                                var alertMsg1 = "宸插皢鎵撳嬀鏁版嵁涓殑 " + "澶囧搧瀛樻斁鍦�" + " 閫傜敤涓� " + internalAssetLocation + "銆� ";
+                                                alertMsg += alertMsg1;
+                                            }
+                                            if (productCategory != '') {
+                                                var alertMsg2 = "宸插皢鎵撳嬀鏁版嵁涓殑 " + "澶囧搧鍒嗙被" + " 閫傜敤涓� " + productCategory + "銆� ";
+                                                alertMsg += alertMsg2;
+                                            }
+                                            if (otherSelectOptionText != '' && otherSelectOptionValue != '') {
+                                                var alertMsg3 = "宸插皢鎵撳嬀鏁版嵁涓殑 " + otherSelectOptionText + " 閫傜敤涓� " + otherSelectOptionValue + "銆�";
+                                                alertMsg += alertMsg3;
+                                            }
+                                            passApplyMsgToController(alertMsg, 'Success');
+                                            j$(escapeVfId('allPage:allForm:pageBlockButton1:clearApplyFlagId')).val(true);
+                                        } else {
+                                            var alertMsg = "鍏朵粬閫夐」: " + otherSelectOptionText +"涓棤姝ら�夐」鍊�" + otherSelectOptionValue + "锛屾棤娉曟洿鏂般��";
+                                            passApplyMsgToController(alertMsg, 'Fail');
+                                        }
+                                    }
+                                }, 5);
+                            }
+
+                            function clearApplyValue() {
+                                var clearApplyValueFlag = j$(escapeVfId('allPage:allForm:pageBlockButton1:clearApplyFlagId')).val();
+                                if(clearApplyValueFlag) {
+                                    j$(escapeVfId('{!$Component.stockId}')).val('');
+                                    j$(escapeVfId('{!$Component.applyEquipmentTypeId}')).val('');
+                                    j$(escapeVfId('{!$Component.applyAssetTypeListId}')).val('');
+                                    j$(escapeVfId('{!$Component.otherSelectionId}')).val('');
+                                }
+                                j$(escapeVfId('allPage:allForm:pageBlockButton1:clearApplyFlagId')).val(false);
+                            }
+
+                            function checkSavingJs() {
+                                var isSavingSuccess = j$(escapeVfId('isSavingSuccessId')).val();
+                                // alert(isSavingSuccess);
+                                if (isSavingSuccess != 'false') {
+                                    setSaveSuccessMsg();
+                                }
+                            }
+                        </script>
+                    </td>
+                    <apex:actionFunction name="saveBeforeSearch" action="{!saveBtn}" rerender="allForm" oncomplete="unblockUI(); checkAssetFuncJs();" />
+                    <apex:actionFunction name="saveBeforeSearch2" action="{!saveBtn}" rerender="allForm" oncomplete="unblockUI(); sorTableJs2(); return false" rendered="false" />
+                    <apex:actionFunction name="passApplyMsgToController" action="{!showApplyMsg}" oncomplete="clearApplyValue(); return false;" rerender="allForm">
+                        <apex:param name="applyMsg" value="" />
+                        <apex:param name="applyMsgType" value="" />
+                    </apex:actionFunction>
+
+                    <td class="setButtonStyle" style="padding-right: 10px;"><apex:commandButton action="{!saveBtn}" value="淇濆瓨" onclick="blockme();" rerender="allForm" oncomplete="unblockUI(); checkSavingJs();" disabled="{!onlyReadFlag}" /></td>
+                    <!-- 鎵归噺鏇存柊 -->
+                    <td class="setButtonStyle"><apex:commandButton value="鎵归噺鏇存柊" onclick="openPopup(); return false;" oncomplete="refresh" disabled="{!onlyReadFlag}" /></td>
+                    <td style="width: auto"></td>
+                    <script type="text/javascript">
+                        var popupBox;
+                        var filename = "";
+                        var blobfile = "";
+
+                        popupBox = new SimpleDialog("CSVImportDialogId", false);  // 涓嶅彲鎷栧姩
+                        popupBox.createDialog();
+
+                        function openPopup() {
+                            popupBox.setTitle("瀵煎叆CSV鏂囦欢");
+                            popupBox.importContentNode(document.getElementById("{!$Component.popupBox}"));
+                            // popupBox.importContentNode(document.getElementById("popupBox"));
+                            popupBox.show(document.getElementById("{!$Component.popupBox}"));
+                        }
+
+                        function remoteLocationPost() {
+                            var fbody = document.getElementById("file_input").files[0];
+                            if (typeof fbody === "undefined") {
+                                alert("璇烽�夋嫨CSV鏂囦欢");
+                                return;
+                            } else {
+                                var reader = new FileReader();
+                                reader.readAsText(fbody);
+                                reader.onload = function(val) {
+                                    // 鍒ゆ柇CSV鏂囦欢BOM锛岃嫢鍖呭惈BOM锛屽垯鍒犻櫎銆�
+                                    if (this.result.charCodeAt(0) === 0xFEFF) {  // 濡傛灉绗竴涓瓧绗︾殑缂栫爜涓簎tf8
+                                        this.result = this.result.substr(1);  // 鍦╱tf-8缂栫爜涓紝涓変釜闅愯棌鐨勫瓧鑺� 0xEF 0xBB 0xBF琚涓轰竴涓瓧绗� EFBBBF(UTF8) FEFF(unicode) 65279
+                                    }
+                                    //this.result = this.result.substr(0, 3);
+                                    passToController(this.result);
+                                }
+                                popupBox.hide();
+                            }
+                        }
+                    </script>
+                    <apex:actionFunction name="passToController" action="{!importCSVFile}" rerender="allForm">
+                        <apex:param name="csvData" value="" />
+                    </apex:actionFunction>
+                </tr>
+            </table>
+            <apex:outputPanel style="display:none">
+                <apex:outputPanel id="popupBox" layout="block">
+                    <input type="file" id="file_input" name="attFile" accept=".csv" /><br/>
+                    <center>
+                        <input type="hidden" id="other_hidden"/>
+                        <apex:commandButton value="纭" onclick="remoteLocationPost(); return false;" style="width: 20%; margin: 20px 10px 0px 10px" />
+                        <apex:commandButton value="鍙栨秷" onclick="popupBox.hide();" style="width: 20%; margin: 20px 10px 0px 10px" />
+                    </center>
+                </apex:outputPanel>
+            </apex:outputPanel>
+            <table style="width: 100%">
+                <tr>
+                    <!-- <td style="width: 5%"></td> -->
+                    <td width="70px">鏄剧ず鏈�変腑鏁版嵁鏁伴噺</td>
+                    <!-- <td class="blankStyle"></td> -->
+                    <td class="inputTextStyle" style="padding-left: 35px;">
+                        <apex:selectList value="{!selRecordOption}" size="1" style="margin-top: 10px;margin-left: 5px;" onchange="searchBtnJs(); return false;"><apex:selectOptions value="{!limitOpts}"/></apex:selectList>
+                    </td>
+                    <td width="30px"></td>
+                    <td align="right" style="width: 130px">鍏辨绱㈠嚭 {!totalSoqlRecordNum + totalFixDataNum} 鏉℃暟鎹�</td>
+                    <td width="30px"></td>
+                    <td id="checkedNumId" align="right"  style="width: 180px">鏈〉宸查�変腑 {!totalFixDataNum} 鏉℃暟鎹�</td>
+                    <td width="10px"></td>
+                    <td id="uncheckedNumId" align="right" style="width: 153px"> 鏈〉鏈�変腑 {!totalUnfixDataNum} 鏉℃暟鎹�</td>
+                    <script>
+                        j$(function() {
+                            // 缁熻鎵撳嬀鏁伴噺
+                            var totalCheckedNum = 0;
+                            var productCount = j$('input#count_hidden').val();
+                            for (var i = 0; i < productCount; i++) {
+                                if (j$(escapeVfId('allPage:allForm:dataBlock:dataline_L:'+ i + ':rowCheck')).attr('checked')) {
+                                    totalCheckedNum ++;
+                                }
+                            }
+                            j$('#checkedNumId').text('鍏朵腑鎵撳嬀鍥哄畾鏁版嵁鐨勬暟閲忎负 ' + totalCheckedNum);
+                            var totalUncheckedNum = productCount - totalCheckedNum;
+                            j$('#uncheckedNumId').text('鏈墦鍕炬暟鎹殑鏁伴噺涓� ' + totalUncheckedNum);
+                        });
+                    </script>
+                    <td width="45px"></td>
+                    <td align="right" style="width:41px">绗� {!currPage} 椤�</td>
+                    <td width="45px"></td>
+                    <td align="right" style="width:55px">鍏� {!totalPage} 椤�</td>
+                    <td width="60px"></td>
+                    <td align="right" width="45px">
+                        <apex:commandLink action="{!firstPage}" value="棣栭〉" id="firstPg" onclick="blockme();" oncomplete="unblockUI();" reRender="allForm" style="{!IF(currPage==1,'display: none;','')}color: blue;"/>
+                        <apex:outputText value="棣栭〉" style="{!IF(currPage!=1,'display: none;','')}color: gray;"></apex:outputText>
+                    </td>
+                    <td width="10px"></td>
+                    <td align="right" width="45px">
+                        <apex:commandLink action="{!previousPage}" value="涓婁竴椤�" id="previous" onclick="blockme();" oncomplete="unblockUI();" reRender="allForm" style="{!IF(currPage==1,'display: none;','')}color: blue;"/>
+                        <apex:outputText value="涓婁竴椤�" style="{!IF(currPage!=1,'display: none;','')}color: gray;"></apex:outputText>
+                    </td>
+                    <td width="10px"></td>
+                    <td align="right" width="45px">
+                        <apex:commandLink action="{!nextPage}" value="涓嬩竴椤�" id="next" onclick="blockme();" oncomplete="unblockUI();" reRender="allForm" style="{!IF(totalPage==currPage ||totalPage == 0,'display: none;','')}color: blue;"/>
+                        <apex:outputText value="涓嬩竴椤�" style="{!IF(totalPage!=currPage && totalPage != 0,'display: none;','')}color: gray;"></apex:outputText>
+                    </td>
+                    <td width="10px"></td>
+                    <td align="right" width="45px">
+                        <apex:commandLink action="{!endPage}" value="灏鹃〉" id="endPg" onclick="blockme();" oncomplete="unblockUI();" reRender="allForm" style="{!IF(totalPage==currPage||totalPage == 0,'display: none;','')}color: blue;"/>
+                        <apex:outputText value="灏鹃〉" style="{!IF(totalPage!=currPage && totalPage != 0,'display: none;','')}color: gray;"></apex:outputText>
+                    </td>
+                    <td class="blankStyle"></td>
+                </tr>
+            </table>
+        </apex:pageBlock>
+        <apex:pageMessages id="msg"  />
+        <apex:pageBlock id="dataBlock" mode="maindetail">
+            <!-- 妫�绱㈠嚭鐨勬暟鎹暟閲� -->
+            <input type="hidden" id="count_hidden" value="{!allAssetDataListSize}"/>
+            <!-- 鏌ョ湅鍏ㄩ儴淇濇湁璁惧 -->
+            <div id="out_Div_L" style="overflow:auto">
+                <table class="list" border="1" style="border-collapse: collapse; table-layout: fixed; border-bottom-width: 0px; border-spacing: 0px; height: 40px; width: 600px;">
+                    <tr class="headerRow" style="background-color: #DCDCDC; text-align: left; vertical-align: top;">
+                        <!-- 鍏ㄩ�� -->
+                        <td style="width:20px"><input type='checkbox' onclick='selectAllJs()' id='checker' onchange='checkboxOnclick(); return false;'/></td>
+                        <apex:variable value="{!0}" var="cnt" />
+                        <apex:repeat value="{!leftLabelList}" var="t">
+                            <td class="col_{!columnLeftCssList[cnt]}" style="word-wrap:break-word">
+                                <a href="javascript:void()" onclick="saveAndSort('{!cnt + 1}'); return false;" style="text-decoration: underline;"><apex:outputText value="{!t}" /> {!sortOrderList[cnt + 1]}</a>
+                            </td>
+                            <apex:variable value="{!cnt + 1}" var="cnt" />
+                        </apex:repeat>
+                    </tr>
+                </table>
+            </div>
+            <div id="out_Div_R">
+                <table class="list" border="1" style="border-collapse: collapse; table-layout:fixed; border-bottom-width: 0px; border-spacing:0; width:2660px; height: 40px;">
+                    <tr class="headerRow" style="background-color: #DCDCDC; text-align: left; vertical-align: top;">
+                        <apex:variable value="{!0}" var="cnt" />
+                        <apex:repeat value="{!rightLabelList}" var="t">
+                            <td class="col_{!columnRightCssList[cnt]}" style="word-wrap:break-word">
+                                <apex:variable value="{!leftLabelSize + cnt}" var="cnt_order" />
+                                <a href="javascript:void()" onclick="saveAndSort('{!cnt_order + 1}'); return false;" style="text-decoration: underline;"><apex:outputText value="{!t}" /> {!sortOrderList[cnt_order + 1]}</a>
+                            </td>
+                            <apex:variable value="{!cnt + 1}" var="cnt" />
+                        </apex:repeat>
+                    </tr>
+                </table>
+            </div>
+            <div id="in_Div_L" style="overflow:hidden">
+                <table class="list" border="1" style="border-collapse:collapse;table-layout:fixed;border-bottom-width:0px;border-spacing:0;width:600px;" id="tableData_L">
+                    <apex:variable value="{!0}" var="Cnt_L" />
+                    <apex:repeat id="dataline_L" value="{!allAssetInfoList}" var="eachAssetData">
+                        <tr class="dataRow" id="tableData_L_{!Cnt_L}" onmouseover="if (window.hiOn){hiOn(this);} " onmouseout="if (window.hiOff){hiOff(this);} " onblur="if (window.hiOff){hiOff(this);}" onfocus="if (window.hiOn){hiOn(this);}">
+                            <!-- 鍏ㄩ�� -->
+                            <td class="dataCellBorder1" style="width:20px" align="center">
+                                <apex:inputCheckbox id="rowCheck" value="{!eachAssetData.isCheck}" disabled="{!IF((internalAssetLocationLogin != 'All' && eachAssetData.assetQuertResult['Internal_asset_location__c'] != internalAssetLocationLogin), true, false)}" onchange="checkboxOnclick(); return false;" />
+                                <apex:inputHidden id="canChange" />
+                            </td>
+                            <apex:variable value="{!0}" var="cnt2" />
+                            <apex:repeat id="eachdata_L" value="{!leftApiList}" var="eachLeftApi">
+                                <td class="col_{!columnLeftCssList[cnt2]} dataCellBorder1 {!eachLeftApi[0]}" style="word-wrap:break-word">
+                                    <!-- r -->
+                                    <apex:outputPanel rendered="{!(eachLeftApi.size>1 || columnLeftRWMap[eachLeftApi[0]]=='r')}" layout="none">
+                                        <!-- 鑻achLeftApi涓哄叧鑱旂殑锛屽叾api.spilt('.')鍚庤幏寰楃殑list澶т簬1 -->
+                                        <apex:outputField value="{!eachAssetData.assetQuertResult[eachLeftApi[0]]}" />
+                                    </apex:outputPanel>
+                                    <!-- w rw -->
+                                    <apex:outputPanel rendered="{!(eachLeftApi.size==1 && (columnLeftRWMap[eachLeftApi[0]]=='w' || columnLeftRWMap[eachLeftApi[0]]=='wm'))}" layout="none">
+                                        <apex:outputPanel id="internal_asset_location_id2" rendered="{!eachLeftApi[0]=='Internal_asset_location__c'}" layout="none">
+                                            <apex:selectList value="{!eachAssetData.assetQuertResult[eachLeftApi[0]]}" id="stockStorageId2" size="1" onchange="if(j$(escapeVfId('allPage:allForm:dataBlock:dataline_L:' + '{!Cnt_L}' + ':rowCheck')).attr('checked')) {setChangeFlg();}" style="width:90%">
+                                                <apex:selectOptions value="{!internalAssetDataLocationOptionList}"/>
+                                            </apex:selectList>
+                                        </apex:outputPanel>
+                                        <apex:outputPanel rendered="{!eachLeftApi[0]<>'Internal_asset_location__c'}" layout="none">
+                                            <apex:inputField value="{!eachAssetData.assetQuertResult[eachLeftApi[0]]}" onchange="if(j$(escapeVfId('allPage:allForm:dataBlock:dataline_L:' + '{!Cnt_L}' + ':rowCheck')).attr('checked')) {setChangeFlg();}"  rendered="{!angecylookrole}"/>
+                                            <!--20210702 you 1650 鍔炰簨澶勫彧璇绘潈闄� -->
+                                            <apex:outputField value="{!eachAssetData.assetQuertResult[eachLeftApi[0]]}" html-disabled="true" rendered="{!!angecylookrole}"/>
+                                        </apex:outputPanel>
+                                    </apex:outputPanel>
+                                </td>
+                                <apex:variable value="{!cnt2+1}" var="cnt2" />
+                            </apex:repeat>
+                        </tr>
+                        <apex:variable value="{!Cnt_L+1}" var="Cnt_L" />
+                    </apex:repeat>
+                </table>
+            </div>
+            <script>
+                // 缁熻鎵撳嬀鏁伴噺
+                function checkboxOnclick() {
+                    var totalCheckedNum = 0;
+                    var productCount = j$('input#count_hidden').val();
+                    for (var i = 0; i < productCount; i++) {
+                        if (j$(escapeVfId('allPage:allForm:dataBlock:dataline_L:'+ i + ':rowCheck')).attr('checked')) {
+                            totalCheckedNum ++;
+                        }
+                    }
+                    j$('#checkedNumId').text('鍏朵腑鎵撳嬀鍥哄畾鏁版嵁鏁伴噺涓� ' + totalCheckedNum);
+
+                    var totalUncheckedNum = productCount - totalCheckedNum;
+                    j$('#uncheckedNumId').text('鏈墦鍕炬暟鎹殑鏁伴噺涓� ' + totalUncheckedNum);
+                }
+            </script>
+            <div id="in_Div_R" style="overflow:auto;">
+                <table class="list" border="1" style="border-collapse:collapse;table-layout:fixed;border-bottom-width:0px;border-spacing:0;width:2660px;" id="tableData_R">
+                    <apex:variable value="{!0}" var="Cnt_R" />
+                    <apex:repeat id="dataline_R" value="{!allAssetInfoList}" var="eachAssetData">
+                        <tr id="tableData_R_{!Cnt_R}" class="dataRow" onmouseover="if (window.hiOn){hiOn(this);} " onmouseout="if (window.hiOff){hiOff(this);} " onblur="if (window.hiOff){hiOff(this);}" onfocus="if (window.hiOn){hiOn(this);}" >
+                            <apex:variable value="{!0}" var="cnt2" />
+                            <apex:repeat id="eachdata_R" value="{!rightApiList}" var="eachRightApi">
+                                <td class="col_{!columnRightCssList[cnt2]} dataCellBorder1 {!eachRightApi[0]}" style="word-wrap:break-word;min-width: 100px">
+                                    <!-- r -->
+                                    <apex:outputPanel rendered="{!(eachRightApi.size>1 || columnRightRWMap[eachRightApi[0]]=='r')}" layout="none">
+                                        <apex:outputPanel rendered="{!eachRightApi.size == 1}" layout="none">
+                                            <apex:outputField value="{!eachAssetData.assetQuertResult[eachRightApi[0]]}" />
+                                        </apex:outputPanel>
+                                        <apex:outputPanel rendered="{!eachRightApi.size > 1}" layout="none">
+                                            <apex:outputField value="{!eachAssetData.assetQuertResult[eachRightApi[0]]}" />
+                                        </apex:outputPanel>
+                                    </apex:outputPanel>
+                                    <!-- w rw -->
+                                    <apex:outputPanel rendered="{!(eachRightApi.size==1 && (columnRightRWMap[eachRightApi[0]]=='w' || columnRightRWMap[eachRightApi[0]]=='wm'))}" layout="none">
+                                        <apex:outputPanel rendered="{!eachRightApi[0]=='Equipment_Type__c'}" layout="none">
+                                            <apex:inputField id="equipment_Type__c_id2" value="{!eachAssetData.assetQuertResult[eachRightApi[0]]}" onchange="if(j$(escapeVfId('allPage:allForm:dataBlock:dataline_L:' + '{!Cnt_R}' + ':rowCheck')).attr('checked')) {setChangeFlg();}" style="width:90%" />
+                                        </apex:outputPanel>
+                                        <apex:outputPanel rendered="{!eachRightApi[0]<>'Equipment_Type__c'}" layout="none">
+                                            <apex:outputPanel rendered="{!eachRightApi.size == 1}" layout="none">
+                                                <apex:inputField value="{!eachAssetData.assetQuertResult[eachRightApi[0]]}" onchange="if(j$(escapeVfId('allPage:allForm:dataBlock:dataline_L:' + '{!Cnt_R}' + ':rowCheck')).attr('checked')) {setChangeFlg();}" rendered="{!angecylookrole}"/>
+                                                <!--20210702 you 1650 鍔炰簨澶勫彧璇绘潈闄� -->
+                                            <apex:outputField value="{!eachAssetData.assetQuertResult[eachRightApi[0]]}" html-disabled="true" rendered="{!!angecylookrole}"/> 
+                                            </apex:outputPanel>
+                                            <apex:outputPanel rendered="{!eachRightApi.size > 1}" layout="none">
+                                                <apex:outputText value="{!eachAssetData.assetQuertResult[eachRightApi[0]]}" />
+                                            </apex:outputPanel>
+                                        </apex:outputPanel>
+                                    </apex:outputPanel>
+                                </td>
+                                <apex:variable value="{!cnt2+1}" var="cnt2" />
+                            </apex:repeat>
+                        </tr>
+                        <apex:variable value="{!Cnt_R+1}" var="Cnt_R" />
+                    </apex:repeat>
+                </table>
+            </div>
+            <apex:inputHidden value="{!changeFlg}" id="changeFlg"/>
+            <script>
+                j$('div#in_Div_R').scroll(function() {
+                    j$('div#out_Div_R').scrollLeft(j$(this).scrollLeft());
+                });
+                j$('div#in_Div_R').scroll(function() {
+                    j$('div#in_Div_L').scrollTop(j$(this).scrollTop());
+                });
+                windowResize();
+            </script>
+        </apex:pageBlock>
+    </apex:form>
+</apex:page>
\ No newline at end of file
diff --git a/force-app/main/default/pages/CheckAllOlympusAssetNew.page-meta.xml b/force-app/main/default/pages/CheckAllOlympusAssetNew.page-meta.xml
new file mode 100644
index 0000000..6b52b34
--- /dev/null
+++ b/force-app/main/default/pages/CheckAllOlympusAssetNew.page-meta.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ApexPage xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>48.0</apiVersion>
+    <availableInTouch>false</availableInTouch>
+    <confirmationTokenRequired>false</confirmationTokenRequired>
+    <label>CheckAllOlympusAssetNew</label>
+</ApexPage>
diff --git a/force-app/main/default/pages/DiscountProductApplication.page b/force-app/main/default/pages/DiscountProductApplication.page
index 59cdfef..4216343 100644
--- a/force-app/main/default/pages/DiscountProductApplication.page
+++ b/force-app/main/default/pages/DiscountProductApplication.page
@@ -5,6 +5,45 @@
 <apex:includeScript value="{!URLFOR($Resource.CommonUtilJs)}"/>
 <apex:includeScript value="{!URLFOR($Resource.connection20)}"/>
 <apex:includeScript value="{!URLFOR($Resource.apex20)}"/>
+<style>
+    /*淇℃伅鎻愮ず棰滆壊*/
+body .bPageBlock .pbSubheader, .slds-vf-scope .bPageBlock .pbSubheader{
+	background-color: #08107b !important;;
+    color: #FFF !important;
+}
+body .infoM2, body .infoM3, body .infoM4, .slds-vf-scope .infoM2, .slds-vf-scope .infoM3, .slds-vf-scope .infoM4 {
+    background-color: #08107b !important;
+}
+body .message, .slds-vf-scope .message{
+    background-color: #08107b !important;
+}
+
+body .errorM2 h4,body .errorM3 h4,body .errorM4 h4,.slds-vf-scope .errorM2 h4,.slds-vf-scope .errorM3 h4,.slds-vf-scope .errorM4 h4 {
+    /* color: rgb(255, 255, 255)!important */
+    background-color: rgb(234, 0, 30)!important
+}
+
+body .errorM2,body .errorM3,body .errorM4,.slds-vf-scope .errorM2,.slds-vf-scope .errorM3,.slds-vf-scope .errorM4 {
+    background-color: rgb(234, 0, 30)!important
+}
+
+body .errorM2,body .errorM3,body .errorM4,.slds-vf-scope .errorM2,.slds-vf-scope .errorM3,.slds-vf-scope .errorM4 {
+    background-color: rgb(234, 0, 30)!important
+}
+body .warningM2,body .warningM3,body .warningM4,.slds-vf-scope .warningM2,.slds-vf-scope .warningM3,.slds-vf-scope .warningM4 {
+    background-color: rgb(254, 147, 57)!important;
+    color: rgb(24, 24, 24)!important
+}
+body .confirmM2,body .confirmM3,body .confirmM4,.slds-vf-scope .confirmM2,.slds-vf-scope .confirmM3,.slds-vf-scope .confirmM4 {
+    background-color: rgb(46, 132, 74)!important
+}
+body .pbButton{
+    text-align: left;
+}
+.message .messageText{
+    color: #FFF !important;
+}
+</style>
     <script>
 function setFocusOnLoad() {}
 function bodyOnLoad(){setFocusOnLoad();}
diff --git a/force-app/main/default/pages/InventoryIframe.page b/force-app/main/default/pages/InventoryIframe.page
index e002315..fd7e896 100644
--- a/force-app/main/default/pages/InventoryIframe.page
+++ b/force-app/main/default/pages/InventoryIframe.page
@@ -1,4 +1,4 @@
-<apex:page lightningStylesheets="true">
+<apex:page lightningStylesheets="true" title="鐩樼偣鐩稿叧">
 <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
 <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
 <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
@@ -7,44 +7,79 @@
             flex: 2;
             padding: 20px;
         }
+        .highlight {
+        background-color: yellow;
+        /* 娣诲姞浠讳綍鍏朵粬绐佸嚭鏄剧ず鏍峰紡 */
+    }
+   
+
+    .you-button {
+            background-color: #d9d8d8 !important; 
+            box-shadow: 0px 7px 2px 0px #aeacac !important;
+            transition: all .5s !important;
+            }
+
+            /* .you-button:hover {
+                background-color: #fcdc5e !important;
+            } */
+
+        .you-button:active {
+            transform: translate(0,4px) !important;
+            text-shadow: -2px 2px 2px rgb(209 132 0),
+                    -2px 2px 2px rgb(209 132 0),
+                    -2px 2px 2px rgb(209 132 0),
+                    -2px 2px 2px rgb(209 132 0),
+                    -2px 2px 2px rgb(209 132 0),
+                    -2px 2px 2px rgb(209 132 0) !important;
+            box-shadow: 0px 1px 0px 0px #aeacac !important;
+        }
+
     </style>
 <apex:form >
     <apex:actionFunction action="{!loadPage}" name="cancel" rerender="allForm" oncomplete="unblockUI();"/>
     <div class="vf-container">
         <div style="width:9%;float:left;">
             <div>
-                <apex:commandButton style="width: 99%" value="鐩樼偣" onclick="loadPage('/apex/InventoryResultRecord'); return false"/>
+                <apex:commandButton styleClass="my-button you-button" style="width: 99%" value="鐩樼偣" onclick="loadPage('/apex/InventoryResultRecord'); return false"/>
             </div>
-            <div>
-                <apex:commandButton style="width: 99%" value="澶囧搧鐩樼偣鎶ュ憡" onclick="loadPage('/apex/InventoryReport'); return false"/>
+            <div style="margin-top:10px;">
+                <apex:commandButton styleClass="my-button" style="width: 99%" value="澶囧搧鐩樼偣鎶ュ憡" onclick="loadPage('/apex/InventoryReport'); return false"/>
             </div>
-            <div>
-                <apex:commandButton style="width: 99%" value="鑰楁潗鐩樼偣鎶ュ憡" onclick="loadPage('/apex/InventoryReport?isConsum=true'); return false"/> 
+            <div style="margin-top:10px;">
+                <apex:commandButton styleClass="my-button" style="width: 99%" value="鑰楁潗鐩樼偣鎶ュ憡" onclick="loadPage('/apex/InventoryReport?isConsum=true'); return false"/> 
             </div>
-            <div>
-                <apex:commandButton style="width: 99%" value="鐩樼偣琛ㄥご" onclick="location.href = '/a3H/o'; return false"/> 
+            <div style="margin-top:10px;">
+                <apex:commandButton styleClass="my-button" style="width: 99%" value="鐩樼偣琛ㄥご" onclick="location.href = '/a3H/o'; return false"/> 
             </div>
         </div>
-        <div style="width:91%;float:right;" id="vf-content">
+        <!-- <div style="width:90%;float:right;margin-left:5px;" id="vf-content"> -->
             <!-- VF 椤甸潰鍐呭灏嗗湪姝ゅ鏄剧ず -->
-        </div>
+        <!-- </div> -->
+        <iframe src="/apex/InventoryResultRecord" id="iframepage" width="90%" style="margin-left:3px;" scrolling="auto" onload="changeFrameHeight()" frameborder="0"></iframe>
     </div>
 </apex:form>
     
 
     <script>
-        function loadPage(pageUrl) {
-
-            var vfContent = "<iframe src='" + pageUrl + "' style='width: 100%; height: 1000px; border: none;'></iframe>";
-            document.getElementById("vf-content").innerHTML = vfContent;
-            
+        function changeFrameHeight(){
+            var ifm= document.getElementById("iframepage");
+            ifm.height=document.documentElement.clientHeight-30;
         }
-
-        window.addEventListener('load', function () {
-            blockme();
-            var vfContent = "<iframe src='/apex/InventoryResultRecord' style='width: 100%; height: 1000px; border: none;'></iframe>";
-            document.getElementById("vf-content").innerHTML = vfContent;
-            unblockUI();
-        });
+        window.onresize=function(){
+            changeFrameHeight();
+        }
+        function loadPage(pageUrl) {
+            var buttons = document.getElementsByClassName("my-button");
+            console.log(buttons);
+            for (let i = 0; i < buttons.length; i++) {
+                // buttons[i].style.backgroundColor = "white";
+                buttons[i].classList.remove('you-button');
+            }
+            var clickedButton = event.target || event.srcElement; // 鑾峰彇琚偣鍑荤殑鎸夐挳
+            // clickedButton.style.backgroundColor = "silver"; // 娣诲姞绐佸嚭鏄剧ず鐨勮儗鏅鑹�
+            clickedButton.classList.add('you-button');
+            // 娣诲姞鍏朵粬绐佸嚭鏄剧ず鏍峰紡
+            document.getElementById("iframepage").src = pageUrl;   
+        }
     </script>
 </apex:page>
\ No newline at end of file
diff --git a/force-app/main/default/pages/InventoryReport.page b/force-app/main/default/pages/InventoryReport.page
index a1e9b56..38345fb 100644
--- a/force-app/main/default/pages/InventoryReport.page
+++ b/force-app/main/default/pages/InventoryReport.page
@@ -1,7 +1,7 @@
 <apex:page extensions="InventoryReportController" standardController="Inventory_Header__c" showHeader="false" sidebar="false" id="allPage" action="{!init}" tabStyle="CheckAllOlympusAsset__tab"  lightningStylesheets="true" applyHtmlTag="false">
 <apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
 <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
-<apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/>
+<apex:stylesheet value="{!URLFOR($Resource.StyleUtilColorCss)}"/>
 <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
     <style>
         .dateFormat  {
@@ -116,12 +116,24 @@
             width: 9%;
             padding: 5px;
         }
+        .labelStyle1{
+            width: 7%;
+        }
         .tdStyle-left {
             /*20220419 ljh HWAG-CAV5WX update */
             /*width: 16%;*/
             width: 11%;
             padding: 5px;
             text-align: left;
+        }
+        .tdStyle-left1{
+            width: 7.5%;
+            padding: 5px;
+            text-align: left;
+        }
+        .tdStyle-right1{
+            width: 9%;
+            padding: 5px;
         }
         .tdStyle-right {
             /*20220419 ljh HWAG-CAV5WX update */
@@ -159,9 +171,9 @@
             border:1px;
             background-color:black;
         }
-        .datePicker {
-            width: 300px;
-            height: 200px;
+        body .datePicker {
+            width: 250px;
+        /*            height: 200px;*/
         }
         /****************** 椤甸潰搴曢儴瀹℃壒娴乧ss璋冩暣 *******************/
         .bRelatedList .relatedProcessHistory .extraRow td.actionColumn .actionLink, .bRelatedList .relatedProcessHistory .extraRow td, .bRelatedList .relatedProcessHistory .extraRow th {
@@ -202,6 +214,14 @@
             width: 3px;
             top: 1px;
             bottom: 1px;
+        }
+                
+        body .pbBody table.list tr.headerRow td,body .pbBody table.list tr.headerRow th {
+            background: #f2f3f3;
+            border-width: 0 0 1px 1px;
+            border-color: #e0e3e5;
+            font-size: .9em;
+            font-weight: bold;
         }
     </style>
     <style type="text/css" media="print">
@@ -256,33 +276,54 @@
         }
         // 缁翠慨璁板綍
         function weixiu_report() {
-            window.open("{!$Label.Environment_Url}{!weixiuReportId}?pv1={!ihId}");
+            // 20230907 ljh start
+            // window.open("{!$Label.Environment_Url}{!weixiuReportId}?pv1={!ihId}");
+            window.open("{!$Label.Environment_Url}lightning/r/Report/{!weixiuReportId}/view?fv1={!ihId}");
+            // 20230907 ljh end
         }
         // 鍑哄�熻褰�
         function chujie_report() {
-            window.open("{!$Label.Environment_Url}{!chujieReportId}?pv1={!ihId}");
+            // 20230907 ljh start
+            // window.open("{!$Label.Environment_Url}{!chujieReportId}?pv1={!ihId}");
+            window.open("{!$Label.Environment_Url}lightning/r/Report/{!chujieReportId}/view?fv1={!ihId}");
+            // 20230907 ljh end
         }
         // 涓㈠け璁板綍
         function diushi_report() {
-            window.open("{!$Label.Environment_Url}{!diushiReportId}?pv1={!ihId}");
+            // 20230907 ljh start
+            // window.open("{!$Label.Environment_Url}{!diushiReportId}?pv1={!ihId}");
+            window.open("{!$Label.Environment_Url}lightning/r/Report/{!diushiReportId}/view?fv1={!ihId}");
+            // 20230907 ljh end
         }  
         <!--20210525 you 1650  start-->
         // 璋冩嫧鍑哄�熻褰�
         function transfer_chujie_report() {
-            window.open("{!$Label.Environment_Url}{!transferchujieReportId}?pv1={!ihId}");
+            // 20230907 ljh start
+            // window.open("{!$Label.Environment_Url}{!transferchujieReportId}?pv1={!ihId}");
+            window.open("{!$Label.Environment_Url}lightning/r/Report/{!transferchujieReportId}/view?fv1={!ihId}");
+            // 20230907 ljh end
         }
         // 璋冩嫧閬楀け璁板綍
         function transfer_diushi_report() {
-            window.open("{!$Label.Environment_Url}{!transferdiushiReportId}?pv1={!ihId}");
+            // 20230907 ljh start
+            // window.open("{!$Label.Environment_Url}{!transferdiushiReportId}?pv1={!ihId}");
+            window.open("{!$Label.Environment_Url}lightning/r/Report/{!transferdiushiReportId}/view?fv1={!ihId}");
+            // 20230907 ljh end
         }
         <!--20210525 you 1650  end-->
         // 鑰楁潗鍑哄�熻褰�
         function consum_chujie_report() {
-            window.open("{!$Label.Environment_Url}{!consumChujieReportId}?pv1={!ihId}");
+            // 20230907 ljh start
+            // window.open("{!$Label.Environment_Url}{!consumChujieReportId}?pv1={!ihId}");
+            window.open("{!$Label.Environment_Url}lightning/r/Report/{!consumChujieReportId}/view?fv1={!ihId}");
+            // 20230907 ljh end
         }
         // 鑰楁潗娑堣�楄褰�
         function consum_xiaohao_report() {
-            window.open("{!$Label.Environment_Url}{!consumXiaohaoReportId}?pv1={!ihId}");
+            // 20230907 ljh start
+            // window.open("{!$Label.Environment_Url}{!consumXiaohaoReportId}?pv1={!ihId}");
+            window.open("{!$Label.Environment_Url}lightning/r/Report/{!consumXiaohaoReportId}/view?fv1={!ihId}");
+            // 20230907 ljh end
         }
 
     </script>
@@ -339,7 +380,7 @@
                 <hr class="line" />
                 <table class="inventoryReportTable">
                     <tr>
-                        <td class="labelStyle">鐩樼偣鍦扮偣锛�</td>
+                        <td class="labelStyle1">鐩樼偣鍦扮偣锛�</td>
                         <td class="labelStyle">
                             <apex:outputText id="ivLocation" value="{!ihObj.Internal_asset_location__c}" />
                         </td>
@@ -351,10 +392,10 @@
                         </td>
                     </tr>
                     <tr>
-                        <td class="labelStyle">鐩樼偣鏃堕棿From锛�</td>
+                        <td class="labelStyle1">鐩樼偣鏃堕棿From锛�</td>
                         <td class="labelStyle">
                             <apex:inputField id="ivDateFrom" value="{!ihObj.Inventory_Date_From__c}"
-                                    required="{!DESC_RW1['Inventory_Date_From__c'] == 'wm'}" />
+                                    required="{!DESC_RW1['Inventory_Date_From__c'] == 'wm'}"/>
                         </td>
                         <td class="labelStyle">鐩樼偣鏃堕棿To锛�</td>
                         <td class="labelStyle">
@@ -363,7 +404,7 @@
                         </td>
                     </tr>
                     <tr>
-                        <td class="labelStyle">鐩樼偣浜哄憳锛�</td>
+                        <td class="labelStyle1">鐩樼偣浜哄憳锛�</td>
                         <td class="labelStyle" colspan="3">
                             <apex:inputField id="ivPIC" style="width: 100%;" value="{!ihObj.Inventory_Persons__c}"
                                     required="{!DESC_RW1['Inventory_Persons__c'] == 'wm'}" />
@@ -373,7 +414,7 @@
                 <hr class="line" />
                 <table class="inventoryReportTable" width="100%" >
                     <tr>
-                        <td class="tdStyle-left">鐩樼偣鎶ュ憡鎻愪氦浜猴細</td>
+                        <td class="tdStyle-left1">鐩樼偣鎶ュ憡鎻愪氦浜猴細</td>
                         <td class="tdStyle-left">
                             <apex:inputField id="ivsubmitPIC" value="{!ihObj.InventorySubmit_PIC__c}"
                                 required="{!DESC_RW1['InventorySubmit_PIC__c'] == 'wm'}" >
@@ -384,13 +425,13 @@
 </script>
                             </apex:inputField>
                         </td>
-                        <td class="tdStyle-right">鑱屼綅锛�</td>
+                        <td class="tdStyle-right1">鑱屼綅锛�</td>
                         <td class="tdStyle-left">
                             <apex:outputText id="ivsubmitPICPost" value="{!ihObj.InventorySubmit_PIC__r.Post__c}" />
                         </td>
                     </tr>
                     <tr>
-                        <td class="tdStyle-left">鐩樼偣鎶ュ憡纭浜猴細</td>
+                        <td class="tdStyle-left1">鐩樼偣鎶ュ憡纭浜猴細</td>
                         <td class="tdStyle-left">
                             <apex:inputField id="ivcheckPIC" value="{!ihObj.InventoryCheck_PIC__c}"
                                 required="{!DESC_RW1['InventoryCheck_PIC__c'] == 'wm'}" >
@@ -401,7 +442,7 @@
 </script>
                             </apex:inputField>
                         </td>
-                        <td class="tdStyle-right">鑱屼綅锛�</td>
+                        <td class="tdStyle-right1">鑱屼綅锛�</td>
                         <td class="tdStyle-left">
                             <apex:outputText id="ivcheckPICPost" value="{!ihObj.InventoryCheck_PIC__r.Post__c}" />
                         </td>
diff --git a/force-app/main/default/pages/InventoryResultRecordNew.page b/force-app/main/default/pages/InventoryResultRecordNew.page
new file mode 100644
index 0000000..805c601
--- /dev/null
+++ b/force-app/main/default/pages/InventoryResultRecordNew.page
@@ -0,0 +1,1879 @@
+<apex:page controller="InventoryResultRecordController" showHeader="false" sidebar="false" id="allPage" action="{!init}" tabStyle="CheckAllOlympusAsset__tab" lightningStylesheets="true" applyHtmlTag="false">
+<apex:stylesheet value="{!URLFOR($Resource.blockUIcss)}"/>
+<apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
+<apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
+<apex:includeScript value="{!URLFOR($Resource.instascan)}"/>
+<apex:stylesheet value="{!URLFOR($Resource.jquery_confirm, 'jquery-confirm.min.css')}"/>
+<apex:includeScript value="{!URLFOR($Resource.jquery_confirm, 'jquery-confirm.min.js')}"/>
+<apex:includeScript value="{!URLFOR($Resource.connection20)}"/>
+<apex:includeScript value="{!URLFOR($Resource.apex20)}"/>
+<apex:stylesheet value="{!URLFOR($Resource.StyleUtilCss)}"/>
+    <style>
+        .dateFormat  {
+            display: none;
+        }
+        .requiredBlock  {
+            display: none;
+        }
+        .message {
+            margin: 0px;
+            /*width: 1125px;*/
+        }
+        table {
+            table-layout: fixed;
+            border-collapse: collapse;
+        }
+        a {
+            text-decoration: none;
+        }
+        /*TODO width margin-left 杩欓噷璋冭妭瀹藉害*/
+        div#out_Div_L {
+            position: relative;
+            overflow: hidden;
+            width: 1300px;
+        }
+        div#out_Div_R {
+            position: relative;
+            overflow: hidden;
+            width: 1200px;
+            margin-left: 686px;
+        }
+
+        div#in_Div_L {
+            position: relative;
+            width: 745px;
+            height: 451px;
+        }
+        div#in_Div_R {
+            position: relative;
+            overflow: auto;
+            height: 451px;
+            margin-left: 686px;
+            margin-top: -451px;
+        }
+        div#in_Div_L td.dataCellBorder1 {
+            border-width: 1px;
+        }
+        div#in_Div_R td.dataCellBorder1 {
+            border-width: 1px;
+        }
+        /* 榛樿 */
+        table.list td {width:100px;}
+        table.list td select {width:95%;}
+        table.list td input {width:95%;}
+        table.list td textarea {
+            height:50px;
+            width:90%;
+        }
+        table.list .col_Internal_asset_location__c {width:130px;}
+        table.list .col_Salesdepartment__c {width:110px;}
+        table.list .col_SalesProvince__c {width:70px;}
+        table.list .col_Asset_loaner_category__c {width:80px;}
+        table.list .col_Fixture_Model_No_F__c {width:80px;}
+        table.list .col_CompanyOfEquipment__c {width:60px;}
+        table.list .col_Asset_name__c {width:60px;}
+        table.list .col_Internal_Asset_number__c {width:80px;}
+        table.list .col_Internal_Asset_number_key__c {width:80px;}
+
+        table.list .col_SerialNumber {width:60px;}  /*鏈鸿韩缂栧彿*/
+        table.list .col_Product_Serial_No__c {width:60px;}  /*浜у搧 + 鏈轰綋缂栫爜*/
+        table.list .col_Product_category__c {width:60px;}
+        table.list .col_Equipment_Type__c {width:120px;}
+        table.list .col_Consumable_Guaranteen_end__c {width:70px;}
+        table.list .col_Manage_type__c {width:80px;}  /*绠$悊绉嶇被*/
+        table.list .col_Loaner_accsessary__c {width:50px;}
+        table.list .col_EquipmentSet_Managment_Code__c {width:50px;}
+        table.list .col_AssetManageConfirm__c {width:50px;}
+        table.list .col_Fixture_QRCode__c {width:50px;}
+        table.list .col_WH_location__c {width:30px;}
+        table.list .col_Quantity {width:30px;}
+        table.list .col_You_Xiao_Ku_Cun__c {width:30px;}
+        table.list .col_Ji_Zhong_Guan_Li_Ku_Cun__c {width:30px;}
+        table.list .col_Out_of_wh__c {width:30px;}
+        table.list .col_Rental_Count__c {width:30px;}
+        table.list .col_Frozen_Quantity__c {width:30px;}
+        table.list .col_Abandoned_RealThing__c {width:30px;}
+        table.list .col_Abandoned_Inventory__c {width:40px;}
+        table.list .col_Repairing_Count__c {width:30px;}
+        table.list .col_Fixture_Status__c {width:30px;}
+        table.list .col_Main_OneToOne__c {width:40px;}
+
+        .navigationBarBlock {
+            width: 100%;
+        }
+        .apexp .bPageBlock.apexDefaultPageBlock .pbBody {
+            margin: 0px;
+        }
+        .checkButtonStyle input {
+            width: 100%;
+            text-align: left;
+        }
+        .searchButtonStyle {
+            width: 50%;
+        }
+        .searchButtonStyle input {
+            width: 80%;
+            background: #9BC2E6;
+        }
+        .setButtonStyle {
+            width: 8%;
+        }
+        .setButtonStyle input {
+            width: 100%;
+            background: #9BC2E6;
+        }
+        .startInventoryButtonStyle {
+            width: 12%;
+        }
+        .labelSettingStyle {
+            width: 8%;
+            text-align: right;
+        }
+        .labelStyle {
+            width: 8%;
+            text-align: left;
+        }
+        .blankStyle {
+            width: 1%;
+        }
+        .inputTextStyle {
+            width: 9%;
+        }
+        .inputTextStyle input {
+            width: 96%;
+        }
+        .inputTextStyle select {
+            width: 95%;
+        }
+        .redStyle {
+            background-color: #F00;
+        }
+        .greyStyle {
+            background-color: #AAA;
+        }
+        .blueStyle input {
+            background: #9BC2E6;
+        }
+        #pageBlockButton1 {
+            margin: 0pxt;
+        }
+
+        .overlay {
+            position: absolute;
+            top: 0;
+            left: 0;
+            padding: 10px;
+            width: 100%;
+            min-height: 100%;
+            z-index: 9;
+            background: white;
+        }
+        .jconfirm-holder {
+            float:left !important;
+        }
+        .overlay td {
+            word-break: break-all;
+        }
+        .dateFormat  {
+            display: none;
+        }
+        .requiredBlock  {
+            display: none;
+        }
+        .displayRow {
+            display: table-row;
+        }
+        .hiddenRow {
+            display: none;
+        }
+
+        table {
+            margin: 10px 0px;
+            /*float: left;*/
+            table-layout: fixed;
+            border-collapse: collapse;
+        }
+        a {
+            text-decoration: none;
+        }
+        .navigationBarBlock {
+            width: 100%;
+        }
+        .apexp .bPageBlock.apexDefaultPageBlock .pbBody {
+            margin: 0px;
+        }
+        .checkButtonStyle input {
+            width: 100%;
+            text-align: left;
+        }
+        .searchButtonStyle {
+            width: 10%;
+        }
+        .searchButtonStyle input {
+            width: 80%;
+            background: #9BC2E6;
+        }
+        /*add by rentx 20210911 start */
+        .searchButtonStyle1 {
+            width: 50%;
+        }
+        .searchButtonStyle1 input{
+            width: 80%;
+            background: #9BC2E6;
+        }
+        .model00 {
+            display:none;
+            position: fixed; /* Stay in place */
+            z-index: 20; /* Sit on top */
+            left: 0;
+            top: 0;
+            width: 100%; /* Full width */
+            height: 100%; /* Full height */
+            overflow: auto; /* Enable scroll if needed */
+        }
+        /*add by rentx 20210911 end*/
+        .setButtonStyle {
+            width: 8%;
+        }
+        .setButtonStyle input {
+            width: 100%;
+            background-color: #9BC2E6;
+        }
+        .startInventoryButtonStyle {
+            margin-left: 15%;
+            width: 12%;
+        }
+        .labelStyle {
+            width: 9%;
+        }
+        .blankStyle {
+            width: 3%;
+        }
+        .inputTextStyle {
+            width: 9%;
+        }
+        .inputTextStyle input {
+            width: 96%;
+        }
+        .inputTextStyle select {
+            width: 95%;
+        }
+        .redStyle {
+            background-color: #F00;
+        }
+        .greyStyle {
+            background-color: #AAA;
+        }
+        .blueStyle {
+            background-color: #9BC2E6;
+        }
+        .inventoryResultsTable tr td:nth-child(1) {
+            border: none;
+        }
+        .modal {
+            display:none;
+            position: fixed; /* Stay in place */
+            z-index: 10; /* Sit on top */
+            left: 0;
+            top: 0;
+            width: 100%; /* Full width */
+            height: 100%; /* Full height */
+            overflow: auto; /* Enable scroll if needed */
+            background-color: rgb(0,0,0); /* Fallback color */
+            background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
+        }
+
+        .modal2 {
+            display:none;
+            position: fixed; /* Stay in place */
+            z-index: 20; /* Sit on top */
+            left: 0;
+            top: 0;
+            width: 100%; /* Full width */
+            height: 100%; /* Full height */
+            overflow: auto; /* Enable scroll if needed */
+            /*background-color: rgb(0,0,0); /* Fallback color */*/
+            /*background-color: rgba(0,0,0,0.1); /* Black w/ opacity */*/
+        }
+
+        .modal3 {
+            display:none;
+            position: fixed; /* Stay in place */
+            z-index: 10; /* Sit on top */
+            left: 0;
+            top: 0;
+            width: 100%; /* Full width */
+            height: 100%; /* Full height */
+            overflow: auto; /* Enable scroll if needed */
+            background-color: rgb(0,0,0); /* Fallback color */
+            background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
+        }
+
+        /* Modal Content/Box */
+        .modal-content {
+            background-color: #fefefe;
+            margin: auto;
+            margin-top: 100px;
+            padding: 20px;
+            border: 1px solid #888;
+            width: 265px; /* Could be more or less, depending on screen size */
+        }
+
+        .modal-content2 {
+            background-color: #fefefe;
+            margin: auto;
+            margin-top: 110px;
+            padding: 10px;
+            border: 1px solid #888;
+            width: 265px; /* Could be more or less, depending on screen size */
+        }
+
+
+        .modal-content3 {
+            background-color: #fefefe;
+            margin: auto;
+            margin-top: 110px;
+            padding: 10px;
+            border: 1px solid #888;
+            width: 230px; /* Could be more or less, depending on screen size */
+            font-size: 18px;
+        }
+
+        .close {
+            color: #aaaaaa;
+            float: right;
+            font-size: 28px;
+            font-weight: bold;
+        }
+        .close:hover,
+        .close:focus {
+            color: #000;
+            text-decoration: none;
+            cursor: pointer;
+        }
+        #pageBlockButton1 {
+            margin: 0pxt;
+        }
+        div#in_Div_L td.dataCellBorder1 {
+            border-width: 1px;
+        }
+        div#in_Div_R td.dataCellBorder1 {
+            border-width: 1px;
+        }
+    </style>
+    <script type="text/javascript">
+        sforce.connection.sessionId = "{!$Api.Session_ID}";
+        var JANCODEMap = {};
+
+        function startjs(ele) {
+            if (j$("select[name$='bieCunFangDi']").val() == 'All') {
+                alert("璇烽�夋嫨澶囧搧瀛樻斁鍦�");
+                return;
+            }
+            blockme();
+            j$(ele).prop("disabled", true);
+            startInventory();
+        }
+        function savejs() {
+            j$("#myModal3").show();
+        }
+        function changeFullScreen(full) {
+            if (full) {
+                j$(escapeVfId('allPage:allForm:recordBlock:overlay_div')).addClass('overlay');
+                j$(escapeVfId('allPage:allForm:recordBlock:overlay_div')).show();
+                j$('#descdiv').hide();
+                j$('.inventoryResultsTable').hide();
+            } else {
+                if (hasChange == false) {
+                    j$(escapeVfId('allPage:allForm:recordBlock:overlay_div')).removeClass('overlay');
+                    j$(escapeVfId('allPage:allForm:recordBlock:overlay_div')).hide();
+                    j$('.inventoryResultsTable').show();
+                    j$('#descdiv').show();
+                } else {
+                    j$.confirm({
+                        title: '纭',
+                        content: "纭瑕佽繑鍥炴绱㈢敾闈㈠悧锛熸湭淇濆瓨鐨勬暟鎹彲鑳戒細涓㈠け",
+                        boxWidth: '80%',
+                        useBootstrap: false,
+                        buttons: {
+                            OK: function () {
+                                j$(escapeVfId('allPage:allForm:recordBlock:overlay_div')).removeClass('overlay');
+                                j$(escapeVfId('allPage:allForm:recordBlock:overlay_div')).hide();
+                                j$('.inventoryResultsTable').show();
+                                j$('#descdiv').show();
+                            },
+                            cancel: {
+                                text: '鍙栨秷', // With spaces and symbols
+                            }
+                        }
+                    });
+                }
+            }
+            hasChange = false;
+        }
+        // 妫�绱㈡寜閽�
+        function searchBtnJs() {
+            blockme();
+            searchBtnFunc();
+        }
+        function hasChangeFunc() {
+            hasChange = true;
+        }
+        function refreshJs(ele) {
+            refresh(j$(ele).val());
+        }
+        function lostGeTi(ele) {
+            j$(ele).prev().prev().prop("disabled", false);
+            hasChange = true;
+        }
+    </script>
+
+    <div id="myModal1" class="modal">
+
+      <!-- Modal content -->
+      <div class="modal-content">
+        <span class="close" onclick="stopScan()">&times;</span>
+        <p>鎵弿涓�</p>
+            <p>Code:<input type="text" id="qrcode"/></p>
+            <p id="salesdepartment_select" style="display: none">鎵�鍦ㄥ湴鍖�(鏈儴):<select></select><button onclick="checkQRCode_new(j$('input#qrcode')[0].value, 1)">纭畾</button></p>
+        <video playsinline="true" id="preview" style="width: 100%;z-index: 20;transform: scaleX(-1);margin-top: 10px;"></video>
+        鎵爜灞ュ巻锛�
+        <ul id="scanedqr" style="list-style-type: none; text-align: center;padding: 0;width: 100%; height: 100px; overflow: auto">
+        </ul>
+      </div>
+
+    </div>
+    <div id="myModal2" class="modal2">
+
+      <!-- Modal content -->
+      <div class="modal-content2">
+        <span class="close" onclick="stopScan2()">&times;</span>
+        <p>鎵弿涓�瀵逛竴闄勫睘鍝�</p>
+        <apex:outputPanel layout="block" id="repeat_panel" >
+        <ul>
+            <apex:repeat value="{!accsessaryNameList}" var="accsessary" id="accsessaryRow">
+                <li style="margin-left: -1.5em">{!accsessary}</li>
+            </apex:repeat>
+        </ul>
+        </apex:outputPanel>
+      </div>
+
+    </div>
+    <!-- //add by rentx 20210907 start -->
+    <div id="myModal0" class="model00">
+      <div class="modal-content">
+         <span class="close" onclick="stopScan00()">&times;</span>
+            <p id="salesdepartment_select1" style="display: none">鎵�鍦ㄥ湴鍖�(鏈儴):<select></select><button onclick="getCodeAndDMethod()">纭畾</button></p>
+      </div>
+
+    </div>
+    <!-- //add by rentx 20210907 end -->
+
+    <apex:form id="allForm">
+        <apex:inputHidden value="{!doneFlg}" id="doneFlg"/>
+        <div id="myModal3" class="modal3">
+
+          <!-- Modal content -->
+          <div class="modal-content3">
+            <p>璇疯緭鍏ョ洏鐐逛汉</p>
+            <span>鐩樼偣浜�1锛� </span>
+            <apex:selectList value="{!inventoryUser1}" size="1" id="inventoryUser1">
+                <apex:selectOptions value="{!InventoryUserOps}"/>
+            </apex:selectList>
+            <br/>
+            <br/>
+            <span>鐩樼偣浜�2锛� </span>
+            <apex:selectList value="{!inventoryUser2}" size="1" id="inventoryUser2">
+                <apex:selectOptions value="{!InventoryUserOps}"/>
+            </apex:selectList>
+            <br/>
+            <br/>
+            <span>鐩樼偣浜�3锛� </span>
+            <apex:selectList value="{!inventoryUser3}" size="1" id="inventoryUser3">
+                <apex:selectOptions value="{!InventoryUserOps}"/>
+            </apex:selectList>
+            <br/>
+            <br/>
+            <apex:commandButton action="{!save}" value="纭畾" reRender="allForm" onclick="blockme()" oncomplete="unblockUI();j$('#myModal3').hide();changeFullScreen(true);if(j$(escapeVfId('allPage:allForm:doneFlg')).val()=='true') alert('淇濆瓨瀹屼簡')"/>
+            <apex:commandButton style="margin-left: 60px;" value="鍙栨秷" onclick="j$('#myModal3').hide();return false;"/>
+          </div>
+
+        </div>
+        <apex:actionFunction name="startInventory" action="{!startInventory}" rerender="allForm" onComplete="unblockUI()" />
+        <!-- update by rentx 20210827 start 鑰楁潗鐩樼偣鏂规 -->
+        <!-- <apex:actionFunction name="searchBtnFunc" action="{!searchBtn}" rerender="allForm" onComplete="unblockUI();changeFullScreen(true);" /> -->
+        <apex:actionFunction name="searchBtnFunc" action="{!searchBtn}" rerender="allForm" onComplete="unblockUI();changeFullScreen(true);addHistory();" />
+        <!-- update by rentx 20210827 end 鑰楁潗鐩樼偣鏂规 -->
+        <!-- <apex:actionFunction name="checkQRCode" action="{!checkQRCode}" rerender="qrType,qrError,qrId,repeat_panel" onComplete="checkQRDone()" >
+            <apex:param name="qrcode" value="" />
+            <apex:param name="scanType" value="" />
+        </apex:actionFunction> -->
+        <apex:actionFunction name="refresh" action="{!init}" rerender="allForm" >
+            <apex:param name="cunFangDi" value="" />
+        </apex:actionFunction>
+        <!-- <apex:inputHidden value="{!qrType}" id="qrType" />
+        <apex:inputHidden value="{!qrError}" id="qrError" />
+        <apex:inputHidden value="{!qrId}" id="qrId" /> -->
+        <apex:pageBlock id="searchBlock">
+            <!-- <apex:outputPanel layout="block" style="width: 13%; float: left;">
+                <apex:pageBlock mode="maindetail">
+                    <table style='width:140px; height: 220px'>
+                        <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅鍏ㄩ儴淇濇湁璁惧" onclick="location.href='/apex/CheckAllOlympusAsset?searchType=all'; return false"/></td></tr>
+                        <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅鍦ㄥ簱鐨勪繚鏈夎澶�" onclick="location.href='/apex/CheckAllOlympusAsset?searchType=consumable'; return false" /></td></tr>
+                        <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅鍑哄�熶腑淇濇湁璁惧" onclick="location.href='/apex/CheckAllOlympusAsset?searchType=lending'; return false" /></td></tr>
+                        <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅淇悊涓繚鏈夎澶�" onclick="location.href='/apex/CheckAllOlympusAsset?searchType=repairing'; return false" /></td></tr>
+                        <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅寰呮姤搴熶繚鏈夎澶�" onclick="location.href='/apex/CheckAllOlympusAsset?searchType=scrapping'; return false" /></td></tr>
+                        <tr><td class="checkButtonStyle"><apex:commandButton value="鏌ョ湅宸叉姤搴熶繚鏈夎澶�" onclick="location.href='/apex/CheckAllOlympusAsset?searchType=scrapped'; return false" /></td></tr>
+                        <tr><td class="checkButtonStyle"><apex:commandButton style="background: #9BC2E6;" value="鐩樼偣缁撴灉璁板綍" action="{!URLFOR($Page.InventoryResultRecord)}" /></td></tr>
+                        <tr><td class="checkButtonStyle"><apex:commandButton value="鐩樼偣鎶ュ憡" action="{!URLFOR($Page.InventoryReport)}" /></td></tr>
+                    </table>
+                </apex:pageBlock>
+            </apex:outputPanel> -->
+
+            <!-- <apex:outputPanel layout="block" style="width: 14%; float: left;">
+                <apex:pageBlock mode="maindetail">
+                    <table style='width:140px;height: 120px'>
+                        <tr><td class="checkButtonStyle"><apex:commandButton value="鐩樼偣" rendered="{!!inventoryBlueFlag}" onclick="location.href='/apex/InventoryResultRecord'; return false"/></td></tr>
+                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton value="鐩樼偣" rendered="{!inventoryBlueFlag}"/></td></tr>
+                        <tr><td class="checkButtonStyle"><apex:commandButton value="澶囧搧鐩樼偣鎶ュ憡" rendered="{!!rentBlueFlag}" onclick="location.href='{!$Page.InventoryReport}'; return false" /></td></tr>
+                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton value="澶囧搧鐩樼偣鎶ュ憡" rendered="{!rentBlueFlag}"/></td></tr>
+                        <tr><td class="checkButtonStyle"><apex:commandButton value="鑰楁潗鐩樼偣鎶ュ憡" rendered="{!!consumBlueFlag}" onclick="location.href='{!$Page.InventoryReport}?isConsum=true'; return false" /></td></tr>
+                        <tr><td class="checkButtonStyle blueStyle"><apex:commandButton value="鑰楁潗鐩樼偣鎶ュ憡" rendered="{!consumBlueFlag}"/></td></tr>
+                        <tr><td></td></tr>
+                    </table>
+                </apex:pageBlock>
+            </apex:outputPanel> -->
+            <!-- 鍙充晶妫�绱㈠尯 -->
+            <apex:outputPanel layout="block">
+                <apex:pageBlock mode="maindetail" id="maindetailId">
+                    <table style='height: 120px'>
+                        <tr>
+                            <td class="labelStyle">澶囧搧瀛樻斁鍦�</td>
+                            <td class="inputTextStyle">
+                                <apex:selectList value="{!bieCunFangDi}" size="1" id="bieCunFangDi" onchange="refreshJs(this); return false;">
+                                    <apex:selectOptions value="{!bieCunFangDiOps}"/>
+                                </apex:selectList></td>
+                            <td class="blankStyle"></td>
+                            <td class="labelStyle">璐ф灦鍙�</td>
+                            <td class="inputTextStyle"><apex:inputText value="{!whLocation}" id="shelfNumId" rendered="{!angecylookrole}"/>
+                            <apex:inputText disabled="true" rendered="{!!angecylookrole}" />
+                            </td>
+                            <td class="blankStyle"></td>
+                            <td class="labelStyle">璐у尯</td>
+                            <td class="inputTextStyle"><apex:inputField value="{!id_dummy.VWH_Location__c}" id="vshelfNumId" /></td>
+                            <td class="blankStyle"></td>
+                            <td class="labelStyle">澶囧搧閰嶅鏄庣粏鍨嬪彿</td>
+                            <td class="inputTextStyle"><apex:inputText value="{!fixtureModelNo}" id="fixtureModelNoId" /></td>
+                            <td class="blankStyle"></td>
+                        </tr>
+                        <tr>
+                            <td></td>
+                            <td colspan="10">
+                                <input class="startInventoryButtonStyle blueStyle" style="margin-left: 0" type="button" value="寮�濮嬬洏鐐�" onclick="startjs(this);return false;" />
+                            </td>
+                        </tr>
+                        <!-- <tr>
+                            <td class="labelStyle">澶囧搧绠$悊缂栫爜</td>
+                            <td class="inputTextStyle"><apex:inputField value="{!assetQuery.SerialNumber}" id="stockManagementCodeId" /></td>
+                            <td class="blankStyle"></td>
+                            <td class="labelStyle">鍥哄畾璧勪骇鍙�</td>
+                            <td class="inputTextStyle"><apex:inputField value="{!assetQuery.Internal_Asset_number__c}" id="loanerAssetOrNotLoanerAssetId" /></td>
+                            <td class="blankStyle"></td>
+                            <td class="labelStyle">鏈鸿韩鍙�</td>
+                            <td class="inputTextStyle"><apex:inputField value="{!assetQuery.SerialNumber}" id="serialNoOrBatchNoId" /></td>
+                            <td class="blankStyle"></td>
+                            <td class="labelStyle">鍒嗗叕鍙稿彿</td>
+                            <td class="inputTextStyle">
+                                <apex:selectList value="{!financeBranchNo}" id="financeBranchNoId" size="1">
+                                    <apex:selectOptions value="{!financeBranchNoOptionList}"/>
+                                </apex:selectList>
+                            </td>
+                        </tr>
+                        <tr><td><br /><br /></td></tr>
+                        <tr>
+                            <td class="labelStyle">涓讳綋/闄勫睘鍝�</td>
+                            <td class="inputTextStyle">
+                                <apex:selectList value="{!bodyOrAccessory}" id="bodyOrAccessoryId" size="1">
+                                    <apex:selectOptions value="{!bodyOrAccessoryOptionList}"/>
+                                </apex:selectList>
+                            </td>
+                            <td class="blankStyle"></td>
+                            <td class="labelStyle">浜у搧鍒嗙被</td>
+                            <td class="inputTextStyle"><apex:inputField value="{!assetQuery.Product_category__c}" id="productCategoryId" /></td>
+                            <td class="blankStyle"></td>
+                            <td class="labelStyle">澶囧搧鍒嗙被</td>
+                            <td class="inputTextStyle"><apex:inputField value="{!assetQuery.Equipment_Type__c}" id="equipmentTypeId" /></td>
+                            <td class="blankStyle"></td>
+                            <td class="labelStyle">绠$悊绉嶇被</td>
+                            <td class="inputTextStyle"><apex:inputField value="{!assetQuery.Manage_type__c}" id="manageTypeId" /></td>
+                        </tr>
+                        <tr><td><br /><br /></td></tr>
+                    -->
+                        <tr>
+                            <td class="labelStyle">鎵�鍦ㄥ湴鍖�(鏈儴)</td>
+                            <td class="inputTextStyle">
+                                <apex:selectList value="{!salesdepartment}" id="salesDepartmentId" size="1">
+                                    <apex:selectOptions value="{!salesdepartmentOpts}"/>
+                                </apex:selectList>
+                            </td>
+                            <td class="blankStyle"></td>
+                            <td class="labelStyle">鎵�鍦ㄥ湴鍖�(鐪�)</td>
+                            <td class="inputTextStyle">
+                                <apex:selectList value="{!salesProvince}" id="salesProvinceId" size="1">
+                                    <apex:selectOptions value="{!salesProvinceOpts}"/>
+                                </apex:selectList>
+                            </td>
+                            <td class="blankStyle"></td>
+                            <td class="labelStyle">娑堣�楀搧鏈夋晥鏈熻嚦</td>
+                            <td class="inputTextStyle">
+                                 <apex:inputText id="consumableGuaranteenEnd" value="{!consumable_Guaranteen_endStr}" size="12" onfocus="DatePicker.pickDate(true, '{!$Component.consumableGuaranteenEnd}', false)" />
+                                 <div style="display:none;">
+                                    <apex:inputField value="{!inventoryHeader.Inventory_Start_Date__c}" />
+                                </div>
+                            </td>
+                            <td class="blankStyle"></td>
+                            <td class="labelStyle">鐩樼偣鐘舵��</td>
+                            <td class="inputTextStyle">
+                                <!-- <apex:inputText value="{!assetStatus}" id="stockStateId" /> -->
+                                <apex:selectList value="{!assetStatus}" id="assetStatusId" size="1">
+                                    <apex:selectOptions value="{!assetStatusOptionList}"/>
+                                </apex:selectList>
+                            </td>
+                            <td class="blankStyle" colspan="2">
+                                <!-- <div style="display: table-cell; width: 80px">
+                                    <apex:commandButton value="妫�绱�" onclick="searchBtnJs(); return false;" rerender="allForm" rendered="{!canDoFlg}"/>
+                                </div> -->
+                            </td>
+                        </tr>
+                        <tr><td style="height: 23px;"></td></tr>
+                        <tr>
+                            <td class="labelStyle">鐩樹簭/鐩樼泩</td>
+                            <td class="inputTextStyle">
+                                <apex:selectList value="{!inventory_Deviation}" id="Inventory_Deviation" size="1">
+                                    <apex:selectOptions value="{!inventory_DeviationOps}"/>
+                                </apex:selectList>
+                            </td>
+                            <td class="blankStyle"></td>
+                            <td class="labelStyle">鏄惁鍥哄畾璧勪骇</td>
+                            <td class="inputTextStyle">
+                                <apex:selectList value="{!internal_Asset_Flg}" id="Internal_Asset_Flg" size="1">
+                                    <apex:selectOptions value="{!internal_Asset_FlgOps}"/>
+                                </apex:selectList>
+                            </td>
+                            <td class="blankStyle"></td>
+                            <td class="blankStyle"></td>
+                            <td class="blankStyle">
+                            </td>
+                            <td class="blankStyle"></td>
+                            <!-- <td class="blankStyle"></td> -->
+                            <td class="blankStyle">
+                            </td>
+                            <td class="searchButtonStyle" colspan="2">
+                                <div style="display: table-cell; width: 80px">
+                                    <apex:commandButton value="妫�绱�" onclick="searchBtnJs(); return false;" rerender="allForm" rendered="{!canDoFlg}"/>
+                                </div>
+                            </td>
+                        </tr>
+                        <tr><td height="23px"></td></tr>
+                        <tr style="{!IF(bieCunFangDi=='涓婃捣 澶囧搧涓績' || hasConsumAsset,'','display: none;')}">
+                            <td class="labelStyle">澶囧搧绫诲埆</td>
+                            <td class="inputTextStyle">
+                                <apex:selectList value="{!assetCategory}" id="assetCategory" size="1">
+                                    <apex:selectOptions value="{!assetCategoryOptionList}"/>
+                                </apex:selectList>
+                            </td>
+                        </tr>
+                    </table>
+                </apex:pageBlock>
+            </apex:outputPanel>
+        </apex:pageBlock>
+        <apex:pageBlock id="recordBlock">
+            <div style="padding: 5px;">
+                澶囧搧鐩樼偣鎶ュ憡涔︾紪鍙凤細
+                <apex:outputText value="{!inventoryHeader.Name}"/>&nbsp;
+                鐩樼偣鍦扮偣锛� <apex:outputText value="{!inventoryHeader.Internal_asset_location__c}"/>&nbsp;
+                鐩樼偣寮�濮嬫棩锛�
+                <apex:outputtext value="{0, date, yyyy/MM/dd}">
+                    <apex:param value="{!inventoryHeader.Inventory_Start_Date__c}"></apex:param>&nbsp;
+                </apex:outputtext>
+            </div>
+            <div style="padding: 5px;{!IF(bieCunFangDi=='涓婃捣 澶囧搧涓績' || hasConsumAsset,'','display:none;')}">
+                鑰楁潗鐩樼偣鎶ュ憡涔︾紪鍙凤細
+                <apex:outputText value="{!consumInventoryHeader.Name}"/>&nbsp;
+                鐩樼偣鍦扮偣锛� <apex:outputText value="{!consumInventoryHeader.Internal_asset_location__c}"/>&nbsp;
+                鐩樼偣寮�濮嬫棩锛�
+                <apex:outputtext value="{0, date, yyyy/MM/dd}">
+                    <apex:param value="{!consumInventoryHeader.Inventory_Start_Date__c}"></apex:param>&nbsp;
+                </apex:outputtext>
+            </div>
+            <!-- 鐩樼偣缁撴灉璁板綍 -->
+            <apex:outputPanel id="message">
+                <apex:pageMessages />
+            </apex:outputPanel>
+            <apex:outputPanel layout="block">
+                <table class="inventoryResultsTable" border="1px" style="margin-right: 5%">
+                    <tr>
+                        <td class="labelStyle blueStyle">鏁翠綋杩涘睍</td>
+                        <td class="labelStyle"></td>
+                        <td class="labelStyle">鍦ㄥ簱(鍚緟鎶ュ簾)</td>
+                        <td class="labelStyle">缁翠慨涓�</td>
+                        <td class="labelStyle">鍑哄�熶腑</td>
+                        <td class="labelStyle">璋冩嫧涓�</td><!--20210520 you 1650  -->
+                        <td class="labelStyle">閬楀け</td>
+                        <td class="labelStyle">鍚堣</td>
+                    </tr>
+                    <tr>
+                        <td class="labelStyle"></td>
+                        <td class="labelStyle">鍚堣</td>
+                        <td class="labelStyle" style="border: 0px">杩涘睍鐜�:{!sumRateMap['processRate']}<apex:outputPanel rendered="{!sumRateMap['processRate'] != null}">%</apex:outputPanel></td>
+                        <td class="labelStyle" colspan="4" style="border-left: 0px">瀹炵洏鐜�:{!sumRateMap['inventoryRate']}<apex:outputPanel rendered="{!sumRateMap['inventoryRate'] != null}">%</apex:outputPanel></td>
+                    </tr>
+                    <tr>
+                        <td class="labelStyle"></td>
+                        <td class="labelStyle">搴旂洏</td>
+                        <td class="labelStyle">{!unfixAssetMap['stock']+fixAssetMap['stock']+consumAssetMap['stock']}(寰呮姤搴焮!unfixAssetMap['abandon']+fixAssetMap['abandon']+consumAssetMap['abandon']}浠�)</td>
+                        <td class="labelStyle">{!unfixAssetMap['repair']+fixAssetMap['repair']+consumAssetMap['repair']}</td>
+                        <td class="labelStyle">{!unfixAssetMap['lend']+fixAssetMap['lend']+consumAssetMap['lend']}</td>
+                        <td class="labelStyle"><!--20210520 you 1650  -->{!unfixAssetMap['transfer']+fixAssetMap['transfer']+consumAssetMap['transfer']}</td>
+                        <td class="labelStyle">{!unfixAssetMap['lost']+fixAssetMap['lost']}</td>
+                        <td class="labelStyle">{!unfixAssetMap['all']+fixAssetMap['all']+consumAssetMap['all']}</td>
+                    </tr>
+                    <tr>
+                        <td class="labelStyle"></td>
+                        <td class="labelStyle">瀹炵洏</td>
+                        <td class="labelStyle">{!unfixAssetMap['inventory']+fixAssetMap['inventory']+consumAssetMap['inventory']}</td>
+                        <td class="labelStyle">{!unfixAssetMap['repair']+fixAssetMap['repair']+consumAssetMap['repair']}</td>
+                        <td class="labelStyle">{!unfixAssetMap['lend']+fixAssetMap['lend']+consumAssetMap['lend']}</td>
+                        <td class="labelStyle">{!unfixAssetMap['transfer']+fixAssetMap['transfer']}</td><!--20210520 you 1650  -->
+                        <td class="labelStyle">{!unfixAssetMap['lost']+fixAssetMap['lost']}</td>
+                        <td class="labelStyle">{!unfixAssetMap['inventory']+fixAssetMap['inventory']+consumAssetMap['inventory']+unfixAssetMap['repair']+fixAssetMap['repair']+unfixAssetMap['lend']+fixAssetMap['lend']+consumAssetMap['lend']+unfixAssetMap['lost']+fixAssetMap['lost']+consumAssetMap['lost']}</td>
+                    </tr>
+                    <tr>
+                        <td class="labelStyle"></td>
+                        <td class="labelStyle">鐩樼泩</td>
+                        <td class="labelStyle">{!fixAssetMap['panying']+unfixAssetMap['panying']+consumAssetMap['panying']}</td>
+                        <td class="labelStyle">0</td>
+                        <td class="labelStyle">0</td><!--20210520 you 1650  -->
+                        <td class="labelStyle">0</td>
+                        <td class="labelStyle">0</td>
+                        <td class="labelStyle">{!fixAssetMap['panying']+unfixAssetMap['panying']+consumAssetMap['panying']}</td>
+                    </tr>
+                    <tr>
+                        <td class="labelStyle"></td>
+                        <td class="labelStyle">鐩樹簭</td>
+                        <td class="labelStyle">{!fixAssetMap['pankui']+unfixAssetMap['pankui']+consumAssetMap['pankui']}</td>
+                        <td class="labelStyle">0</td>
+                        <td class="labelStyle">0</td><!--20210520 you 1650  -->
+                        <td class="labelStyle">0</td>
+                        <td class="labelStyle">0</td>
+                        <td class="labelStyle">{!fixAssetMap['pankui']+unfixAssetMap['pankui']+consumAssetMap['pankui']}</td>
+                    </tr>
+                    <tr>
+                        <td class="labelStyle"></td>
+                        <td class="labelStyle">鍥哄畾璧勪骇</td>
+                        <td class="labelStyle" style="border: 0px">杩涘睍鐜�:{!fixAssetMap['percent']}<apex:outputPanel rendered="{!fixAssetMap['percent'] != null}">%</apex:outputPanel></td>
+                        <td class="labelStyle" colspan="4" style="border-left: 0px">瀹炵洏鐜�:{!fixAssetMap['percent2']}<apex:outputPanel rendered="{!fixAssetMap['percent'] != null}">%</apex:outputPanel></td>
+                    </tr>
+                    <tr>
+                        <td class="labelStyle"></td>
+                        <td class="labelStyle">搴旂洏</td>
+                        <td class="labelStyle">{!fixAssetMap['stock']}(寰呮姤搴焮!fixAssetMap['abandon']}浠�)</td>
+                        <td class="labelStyle">{!fixAssetMap['repair']}</td>
+                        <td class="labelStyle">{!fixAssetMap['lend']}</td>
+                        <td class="labelStyle">{!fixAssetMap['transfer']}</td><!--20210520 you 1650  -->
+                        <td class="labelStyle">{!fixAssetMap['lost']}</td>
+                        <td class="labelStyle">{!fixAssetMap['all']}</td>
+                    </tr>
+                    <tr>
+                        <td class="labelStyle"></td>
+                        <td class="labelStyle">瀹炵洏</td>
+                        <td class="labelStyle">{!fixAssetMap['inventory']}</td>
+                        <td class="labelStyle">{!fixAssetMap['repair']}</td>
+                        <td class="labelStyle">{!fixAssetMap['lend']}</td>
+                        <td class="labelStyle">{!fixAssetMap['transfer']}</td><!--20210520 you 1650  -->
+                        <td class="labelStyle">{!fixAssetMap['lost']}</td>
+                        <td class="labelStyle">{!fixAssetMap['inventory']+fixAssetMap['repair']+fixAssetMap['lend']+fixAssetMap['lost']}</td>
+                    </tr>
+                    <tr>
+                        <td class="labelStyle"></td>
+                        <td class="labelStyle">鐩樼泩</td>
+                        <td class="labelStyle">{!fixAssetMap['panying']}</td>
+                        <td class="labelStyle">0</td>
+                        <td class="labelStyle">0</td>
+                        <td class="labelStyle">0</td><!--20210520 you 1650  -->
+                        <td class="labelStyle">0</td>
+                        <td class="labelStyle">{!fixAssetMap['panying']}</td>
+                    </tr>
+                    <tr>
+                        <td class="labelStyle"></td>
+                        <td class="labelStyle">鐩樹簭</td>
+                        <td class="labelStyle">{!fixAssetMap['pankui']}</td>
+                        <td class="labelStyle">0</td>
+                        <td class="labelStyle">0</td>
+                        <td class="labelStyle">0</td><!--20210520 you 1650  -->
+                        <td class="labelStyle">0</td>
+                        <td class="labelStyle">{!fixAssetMap['pankui']}</td>
+                    </tr>
+                    <tr>
+                        <td class="labelStyle"></td>
+                        <td class="labelStyle">闈炲浐瀹氳祫浜�</td>
+                        <td class="labelStyle" style="border: 0px">杩涘睍鐜�:{!unfixAssetMap['percent']}<apex:outputPanel rendered="{!fixAssetMap['percent'] != null}">%</apex:outputPanel></td>
+                        <td class="labelStyle" colspan="4" style="border-left: 0px">瀹炵洏鐜�:{!unfixAssetMap['percent2']}<apex:outputPanel rendered="{!fixAssetMap['percent'] != null}">%</apex:outputPanel></td>
+                    </tr>
+                    <tr>
+                        <td class="labelStyle"></td>
+                        <td class="labelStyle">搴旂洏</td>
+                        <td class="labelStyle">{!unfixAssetMap['stock']}(寰呮姤搴焮!unfixAssetMap['abandon']}浠�)</td>
+                        <td class="labelStyle">{!unfixAssetMap['repair']}</td>
+                        <td class="labelStyle">{!unfixAssetMap['lend']}</td>
+                        <td class="labelStyle">{!unfixAssetMap['transfer']}</td><!--20210520 you 1650  -->
+                        <td class="labelStyle">{!unfixAssetMap['lost']}</td>
+                        <td class="labelStyle">{!unfixAssetMap['all']}</td>
+                    </tr>
+                    <tr>
+                        <td class="labelStyle"></td>
+                        <td class="labelStyle">瀹炵洏</td>
+                        <td class="labelStyle">{!unfixAssetMap['inventory']}</td>
+                        <td class="labelStyle">{!unfixAssetMap['repair']}</td>
+                        <td class="labelStyle">{!unfixAssetMap['lend']}</td>
+                        <td class="labelStyle">{!unfixAssetMap['transfer']}</td><!--20210520 you 1650  -->
+                        <td class="labelStyle">{!unfixAssetMap['lost']}</td>
+                        <td class="labelStyle">{!unfixAssetMap['inventory']+unfixAssetMap['repair']+unfixAssetMap['lend']+unfixAssetMap['lost']}</td>
+                    </tr>
+                    <tr>
+                        <td class="labelStyle"></td>
+                        <td class="labelStyle">鐩樼泩</td>
+                        <td class="labelStyle">{!unfixAssetMap['panying']}</td>
+                        <td class="labelStyle">0</td>
+                        <td class="labelStyle">0</td>
+                        <td class="labelStyle">0</td><!--20210520 you 1650  -->
+                        <td class="labelStyle">0</td>
+                        <td class="labelStyle">{!unfixAssetMap['panying']}</td>
+                    </tr>
+                    <tr>
+                        <td class="labelStyle"></td>
+                        <td class="labelStyle">鐩樹簭</td>
+                        <td class="labelStyle">{!unfixAssetMap['pankui']}</td>
+                        <td class="labelStyle">0</td>
+                        <td class="labelStyle">0</td>
+                        <td class="labelStyle">0</td><!--20210520 you 1650  -->
+                        <td class="labelStyle">0</td>
+                        <td class="labelStyle">{!unfixAssetMap['pankui']}</td>
+                    </tr>
+                    <tr style="{!IF(bieCunFangDi=='涓婃捣 澶囧搧涓績' || hasConsumAsset, '','display:none;')}">
+                        <td class="labelStyle"></td>
+                        <td class="labelStyle">鑰楁潗</td>
+                        <td class="labelStyle" style="border: 0px">杩涘睍鐜�:{!consumAssetMap['percent']}<apex:outputPanel rendered="{!fixAssetMap['percent'] != null}">%</apex:outputPanel></td>
+                        <td class="labelStyle" colspan="2" style="border-left: 0px">瀹炵洏鐜�:{!consumAssetMap['percent2']}<apex:outputPanel rendered="{!fixAssetMap['percent'] != null}">%</apex:outputPanel></td>
+                        <td class="labelStyle" colspan="1"></td>
+                        <td class="labelStyle" colspan="1">宸叉秷鑰�</td>
+                        <td class="labelStyle" colspan="1"></td>
+                    </tr>
+                    <tr style="{!IF(bieCunFangDi=='涓婃捣 澶囧搧涓績' || hasConsumAsset, '','display:none;')}">
+                        <td class="labelStyle"></td>
+                        <td class="labelStyle">搴旂洏</td>
+                        <td class="labelStyle">{!consumAssetMap['stock']}(寰呮姤搴焮!consumAssetMap['abandon']}浠�)</td>
+                        <td class="labelStyle"></td>
+                        <td class="labelStyle">{!consumAssetMap['lend']}</td>
+                        <td class="labelStyle"></td><!--20210520 you 1650  -->
+                        <td class="labelStyle">{!consumAssetMap['lost']}</td>
+                        <td class="labelStyle">{!consumAssetMap['all']}</td>
+                    </tr>
+                    <tr style="{!IF(bieCunFangDi=='涓婃捣 澶囧搧涓績' || hasConsumAsset, '','display:none;')}">
+                        <td class="labelStyle"></td>
+                        <td class="labelStyle">瀹炵洏</td>
+                        <td class="labelStyle">{!consumAssetMap['inventory']}</td>
+                        <td class="labelStyle"></td>
+                        <td class="labelStyle">{!consumAssetMap['lend']}</td>
+                        <td class="labelStyle"></td><!--20210520 you 1650  -->
+                        <td class="labelStyle">{!consumAssetMap['lost']}</td>
+                        <td class="labelStyle">{!consumAssetMap['inventory']+consumAssetMap['lend']+consumAssetMap['lost']}</td>
+                    </tr>
+                    <tr style="{!IF(bieCunFangDi=='涓婃捣 澶囧搧涓績' || hasConsumAsset, '','display:none;')}">
+                        <td class="labelStyle"></td>
+                        <td class="labelStyle">鐩樼泩</td>
+                        <td class="labelStyle">{!consumAssetMap['panying']}</td>
+                        <td class="labelStyle"></td>
+                        <td class="labelStyle">0</td>
+                        <td class="labelStyle"></td><!--20210520 you 1650  -->
+                        <td class="labelStyle">0</td>
+                        <td class="labelStyle">{!consumAssetMap['panying']}</td>
+                    </tr>
+                    <tr style="{!IF(bieCunFangDi=='涓婃捣 澶囧搧涓績' || hasConsumAsset, '','display:none;')}">
+                        <td class="labelStyle"></td>
+                        <td class="labelStyle">鐩樹簭</td>
+                        <td class="labelStyle">{!consumAssetMap['pankui']}</td>
+                        <td class="labelStyle"></td>
+                        <td class="labelStyle">0</td>
+                        <td class="labelStyle"></td><!--20210520 you 1650  -->
+                        <td class="labelStyle">0</td>
+                        <td class="labelStyle">{!consumAssetMap['pankui']}</td>
+                    </tr>
+                </table>
+                <div id='descdiv'>
+                    <apex:outputText value="{!descStr}" escape="false"/>
+                    <apex:outputText value="{!descSHStr}" rendered="{!bieCunFangDi=='涓婃捣 澶囧搧涓績'}" escape="false"/>
+                    <apex:outputText value="{!descNotSHStr}" rendered="{!bieCunFangDi!='涓婃捣 澶囧搧涓績'}" escape="false"/>
+                </div>
+
+            </apex:outputPanel>
+            <apex:outputPanel layout="block" id="overlay_div" style="display: none;">
+                <div style="padding: 5px;{!IF(assetCategory!='鑰楁潗','','display: none;')}">
+                    澶囧搧鐩樼偣鎶ュ憡涔︾紪鍙凤細
+                    <apex:outputText value="{!inventoryHeader.Name}"/>&nbsp;
+                    鐩樼偣鍦扮偣锛� <apex:outputText value="{!inventoryHeader.Internal_asset_location__c}"/>&nbsp;
+                    鐩樼偣寮�濮嬫棩锛�
+                    <apex:outputtext value="{0, date, yyyy/MM/dd}">
+                        <apex:param value="{!inventoryHeader.Inventory_Start_Date__c}"></apex:param>&nbsp;
+                    </apex:outputtext>
+                </div>
+                <div style="padding: 5px;{!IF(assetCategory!='澶囧搧'&& hasConsumAsset,'','display: none;')}">
+                    鑰楁潗鐩樼偣鎶ュ憡涔︾紪鍙凤細
+                    <apex:outputText value="{!consumInventoryHeader.Name}"/>&nbsp;
+                    鐩樼偣鍦扮偣锛� <apex:outputText value="{!consumInventoryHeader.Internal_asset_location__c}"/>&nbsp;
+                    鐩樼偣寮�濮嬫棩锛�
+                    <apex:outputtext value="{0, date, yyyy/MM/dd}">
+                        <apex:param value="{!consumInventoryHeader.Inventory_Start_Date__c}"></apex:param>&nbsp;
+                    </apex:outputtext>
+                </div>
+                <apex:outputPanel id="message2" layout="block" style="width: 100%">
+                    <apex:pageMessages />
+                </apex:outputPanel>
+                <div class="searchButtonStyle1" id="scanAction_div">
+                    <!-- 鑰楁潗杩芥函鏂规 妫�绱㈣�楁潗鏃� 淇敼"鎵弿"涓�"pad鎵弿" -->
+                    <div style="display: table-cell; width: 18%;">
+                        <apex:commandButton value="iPad鎵弿" rendered="{!assetCategory == '鑰楁潗'  && bieCunFangDi == '涓婃捣 澶囧搧涓績'}" onclick="qrsacn();return false"/>
+                        <apex:commandButton value="鎵弿" rendered="{!!(assetCategory == '鑰楁潗' && bieCunFangDi == '涓婃捣 澶囧搧涓績') }" onclick="qrsacn();return false"/>
+                    </div>
+                    <div style="display: table-cell; width: 13%;"><apex:commandButton value="淇濆瓨" onclick="savejs();return false"/></div>
+                    <div style="display: table-cell; width: 13%;"><apex:commandButton value="杩斿洖" onclick="changeFullScreen(false); return false"/></div>
+
+                    <!-- 鑰楁潗杩芥函鏂规 娣诲姞 "鐮佹灙鎵弿"杈撳叆妗� add by rentx 20210911 start -->
+                    <apex:outputText rendered="{!assetCategory == '鑰楁潗' && bieCunFangDi = '涓婃捣 澶囧搧涓績'}">
+                        <div style="display: table-cell; width: 19%;">
+                            <apex:commandButton onclick="document.getElementById('maqCode').focus();return false" value="鐮佹灙鎵弿" />
+                        </div>
+                        <div style="display: table-cell; width: 500px" >
+                            <input value="" autofocus="autofocus" id="maqCode" width="100%" style="background-color: #ffffff;height: 32px;" onkeypress="return onKeyPress(event)" />
+                        </div>
+                       <!--  <div style="display: table-cell;" >
+                            <div style="float: left;display: table-cell;" class="btn" >鐮佹灙鎵弿 </div>
+                            <div class="search_label" style="float: left;display: table-cell;" >
+                                <input value="" autofocus="autofocus" id="maqCode" style="background-color: #ffffff" onkeypress="return onKeyPress(event)" />  </div>
+                        </div> -->
+                    </apex:outputText>
+                    <!-- 鑰楁潗杩芥函鏂规 娣诲姞 "鐮佹灙鎵弿"杈撳叆妗� add by rentx 20210911 end -->
+
+                </div>
+                <table border="1px" style="width: 95%;" >
+                    <tr>
+                        <td class="labelStyle">鍨嬪彿</td>
+                        <td class="labelStyle">鏈鸿韩鍙�</td>
+                         <apex:outputText rendered="{!angecylookrole}"> <!-- 1650--><td class="labelStyle">璐ф灦鍙�</td></apex:outputText>
+                        <td class="labelStyle">鎵�鍦ㄥ湴鍖�(鏈儴)</td>
+                        <td class="labelStyle">璐у尯</td>
+                        <td class="labelStyle">鍦ㄥ簱鏁伴噺</td>
+                        <td class="labelStyle">鐩樼偣缁撴灉</td>
+                        <td class="labelStyle">鐩樼泩</td>
+                        <td class="labelStyle">鐩樹簭</td>
+                    </tr>
+                    <apex:repeat value="{!inventoryDetailList}" var="ivDetail" id="inventroyRow">
+                        <tr class="{!IF(assetCategory!='鑰楁潗','displayRow','hiddenRow')}">
+                            <td class="labelStyle" style="{!IF(ivDetail.OneToOne_Accsessary__c,'color:red;', IF(ivDetail.Asset_Status__c == '鍐荤粨', 'color:blue;', ''))}"><apex:outputPanel rendered="{!ivDetail.OneToOne_Accsessary__c}">鈹�</apex:outputPanel>{!ivDetail.Fixture_Model_No__c}<apex:outputPanel rendered="{!ivDetail.Asset_Status__c == '鍐荤粨'}">锛堝喕缁擄級</apex:outputPanel></td>
+                            <td class="labelStyle">{!ivDetail.Asset__r.SerialNumber}</td>
+                             <apex:outputText rendered="{!angecylookrole}"> <!-- 1650--><td class="labelStyle">{!ivDetail.WH_Location__c}</td></apex:outputText>
+                            <td class="labelStyle">{!ivDetail.Salesdepartment__c}</td>
+                            <td class="labelStyle">{!ivDetail.VWH_Location__c}</td>
+                            <td class="labelStyle">{!ivDetail.Amount__c}</td>
+                            <td class="labelStyle">
+                                <apex:outputPanel layout="none" rendered="{!ivDetail.Asset__r.Manage_type__c == '涓綋绠$悊' && ivDetail.Asset_Status__c != '鍐荤粨'}">
+                                    <apex:inputField onchange="hasChangeFunc()" html-data-qrcode="{!ivDetail.Fixture_QRCode__c}" html-data-accsessary="{!ivDetail.OneToOne_Accsessary__c}" html-data-main="{!ivDetail.OneToOne_Body__c}" html-data-mid="{!ivDetail.Main_Asset__c}"
+                                            html-disabled="true" html-data-aid="{!ivDetail.Asset__c}" html-data-frozen="{!ivDetail.Asset_Status__c == '鍐荤粨'}" html-data-bpguige="{!ivDetail.Asset__r.Product2.Packing_list_Fixture_F__c}" value="{!ivDetail.Inventory_Count__c}" style="width: 100%"/>
+                                    <apex:outputPanel layout="none" rendered="{!ivDetail.Asset__r.Manage_type__c == '涓綋绠$悊'}">
+                                        <br/>
+                                        <button onclick="lostGeTi(this);return false;">鎵嬪姩</button>
+                                    </apex:outputPanel>
+                                </apex:outputPanel>
+                                <apex:outputPanel layout="none" rendered="{!ivDetail.Asset__r.Manage_type__c == '鏁伴噺绠$悊' || ivDetail.Asset_Status__c == '鍐荤粨'}">
+                                    <apex:inputField onchange="hasChangeFunc()" html-data-qrcode="{!ivDetail.Fixture_QRCode__c}" html-data-accsessary="{!ivDetail.OneToOne_Accsessary__c}" html-data-main="{!ivDetail.OneToOne_Body__c}" html-data-mid="{!ivDetail.Main_Asset__c}"
+                                            html-data-aid="{!ivDetail.Asset__c}" html-data-frozen="{!ivDetail.Asset_Status__c == '鍐荤粨'}" html-data-bpguige="{!ivDetail.Asset__r.Product2.Packing_list_Fixture_F__c}" value="{!ivDetail.Inventory_Count__c}" style="width: 100%" />
+                                </apex:outputPanel>
+                            </td>
+                            <td class="labelStyle"><apex:outputPanel rendered="{!ivDetail.Inventory_Count__c != null && ivDetail.Inventory_Count__c - ivDetail.Amount__c > 0}">{!ivDetail.Inventory_Count__c - ivDetail.Amount__c}</apex:outputPanel></td>
+                            <td class="labelStyle"><apex:outputPanel rendered="{!ivDetail.Inventory_Count__c != null && ivDetail.Amount__c - ivDetail.Inventory_Count__c > 0}">{!ivDetail.Amount__c - ivDetail.Inventory_Count__c}</apex:outputPanel></td>
+                        </tr>
+                    </apex:repeat>
+                    <apex:repeat value="{!consumInventoryDetailList}" var="ivDetail" id="consumInventroyRow">
+
+                        <tr class="{!IF(assetCategory!='澶囧搧','displayRow','hiddenRow')}">
+                            <td class="labelStyle" style="{!IF(ivDetail.Asset_Status__c == '鍐荤粨', 'color:blue;', '')}">{!ivDetail.Fixture_Model_No__c}<apex:outputPanel rendered="{!ivDetail.Asset_Status__c == '鍐荤粨'}">锛堝喕缁擄級</apex:outputPanel></td>
+                            <td class="labelStyle">{!ivDetail.Asset__r.SerialNumber}</td>
+                            <td class="labelStyle">{!ivDetail.WH_Location__c}</td>
+                            <td class="labelStyle">{!ivDetail.Salesdepartment__c}</td>
+                            <td class="labelStyle"><!-- {!ivDetail.Id} --></td>
+                            <td class="labelStyle">{!ivDetail.Amount__c}</td>
+                            <td class="labelStyle">
+                                <apex:outputPanel layout="none" rendered="{!ivDetail.Asset__r.Manage_type__c == '涓綋绠$悊' && ivDetail.Asset_Status__c != '鍐荤粨'}">
+                                    <apex:inputField onchange="hasChangeFunc()" html-data-accsessary="false" html-data-barcode="{!ivDetail.Barcode__c}" html-data-ProductSerialNo="{!ivDetail.Asset__r.Product_Serial_No__c}" html-data-salesdepartment="{!ivDetail.Salesdepartment__c}"
+                                            html-disabled="true" html-data-qrcode="{!ivDetail.Fixture_QRCode__c}" html-data-aid="{!ivDetail.Asset__c}" html-data-frozen="{!ivDetail.Asset_Status__c == '鍐荤粨'}" html-data-bpguige="{!ivDetail.Asset__r.Product2.Packing_list_Fixture_F__c}" value="{!ivDetail.Inventory_Count__c}" style="width: 100%"/>
+                                            <!-- add by rentx 20210823 start 鑰楁潗鐩樼偣鏃惰褰昪ode -->
+                                        <apex:inputHidden value="{!ivDetail.HCCodes__c}" />
+                                            <!-- add by rentx 20210823 start 鑰楁潗鐩樼偣鏃惰褰昪ode -->
+                                    <apex:outputPanel layout="none" rendered="{!ivDetail.Asset__r.Manage_type__c == '涓綋绠$悊'}">
+                                        <br/>
+                                        <button onclick="lostGeTi(this);return false;">鎵嬪姩</button>
+                                    </apex:outputPanel>
+                                </apex:outputPanel>
+                                <apex:outputPanel layout="none" rendered="{!ivDetail.Asset__r.Manage_type__c == '鏁伴噺绠$悊' || ivDetail.Asset_Status__c == '鍐荤粨'}">
+                                    <apex:inputField onchange="hasChangeFunc()"  html-data-accsessary="false" html-data-barcode="{!ivDetail.Barcode__c}" html-data-ProductSerialNo="{!ivDetail.Asset__r.Product_Serial_No__c}" html-data-salesdepartment="{!ivDetail.Salesdepartment__c}"
+                                            html-data-qrcode="{!ivDetail.Fixture_QRCode__c}" html-data-aid="{!ivDetail.Asset__c}" html-data-frozen="{!ivDetail.Asset_Status__c == '鍐荤粨'}" html-data-bpguige="{!ivDetail.Asset__r.Product2.Packing_list_Fixture_F__c}" value="{!ivDetail.Inventory_Count__c}" style="width: 100%" />
+                                            <!-- add by rentx 20210819 start -->
+                                            <apex:inputHidden value="{!ivDetail.HCCodes__c}" />
+                                            <!-- add by rentx 20210819 start -->
+
+                                </apex:outputPanel>
+                            </td>
+                            <td class="labelStyle"><apex:outputPanel rendered="{!ivDetail.Inventory_Count__c != null && ivDetail.Inventory_Count__c - ivDetail.Amount__c > 0}">{!ivDetail.Inventory_Count__c - ivDetail.Amount__c}</apex:outputPanel></td>
+                            <td class="labelStyle"><apex:outputPanel rendered="{!ivDetail.Inventory_Count__c != null && ivDetail.Amount__c - ivDetail.Inventory_Count__c > 0}">{!ivDetail.Amount__c - ivDetail.Inventory_Count__c}</apex:outputPanel></td>
+                        </tr>
+                    </apex:repeat>
+                </table>
+            </apex:outputPanel>
+        </apex:pageBlock>
+        <!-- add by rentx 20210820 start -->
+        <hidden>
+            <input type="hidden" value="" id="tempcodeid" />
+
+            <ul id="Scancodehistory" style="list-style-type: none; text-align: center;padding: 0;width: 100%; height: 100px; overflow: auto">
+            </ul>
+            <input type="hidden" value="{!allHCCodelist}" id="allhccode" />
+        </hidden>
+        <!-- add by rentx 20210820 end -->
+
+    </apex:form>
+    <script type="text/javascript">
+        var standalone = window.navigator.standalone,
+            userAgent = window.navigator.userAgent.toLowerCase(),
+            safari = /safari/.test( userAgent ),
+            ios = /iphone|ipod|ipad/.test( userAgent ),
+            ver = '';
+        if(ios) {
+            ver = (navigator.userAgent).match(/OS (\d)?\d_\d(_\d)?/i)[0].split('_')[0].replace("OS ","");
+        }
+        let scanner = new Instascan.Scanner({ video: document.getElementById('preview'), scanPeriod: 5 ,mirror: false});
+        var scanType = 1;
+        var hasChange = false;
+        var lastMainId = '';
+
+        function filljsQR(content) {
+            var type = document.getElementById("allPage:allForm:searchBlock:maindetailId:assetCategory").value;
+            if (type == '鑰楁潗') {
+
+                //鍙兘杈撳叆鏁板瓧鍜屽瓧姣�
+                var re;
+                re = /^[a-zA-Z0-9]*$/; 
+                // re = ^[0-9A-Za-z]{8,16}$;
+                if (re.test(content) || content == '') {
+                }
+                else {
+                //涓嶅尮閰�
+                    alert('璇疯緭鍏ユ纭殑code')
+                    // console.log('璇疯緭鍏ユ纭殑code');
+                    j$( '#maqCode' ).val("");       
+                    return true;
+                }
+
+                // if (content.length == 3) {
+                var codearr = j$('#Scancodehistory')[0].getElementsByTagName('li');
+                //濡傛灉浼犺繘鏉ョ殑鏁版嵁涓�3浣� 鍒欐嫾鎺ヤ笂涓�涓壂鐨勭爜if 
+                if (codearr != null && codearr.length > 0 &&content.length == 3) {
+                    var lastCode1 = codearr[codearr.length - 1];
+                    var nowc = lastCode1.innerHTML; 
+                    //涓婃杈撳叆鐨勪篃鏄皬鐮� 鎴栬�� 涓婃杈撳叆鐨勬槸鐩�  鎴栬�呬笂娆¤緭鍏ョ殑鐮佸凡缁忓尮閰嶅ソ浜� 
+                    //涓婃杈撳叆鐨勭爜鏄ぇ鐮� 
+                    // if (nowc.substring(nowc.length - 8,nowc.length - 5) != '250' && nowc.substring(nowc.length - 7 ,nowc.length) != ' XIAOMA') {
+                    if (nowc.length == 3 || nowc.substring(nowc.length - 8,nowc.length - 5) == '250' || nowc.substring(nowc.length - 7 ,nowc.length) == ' XIAOMA' ) {
+                        alert('璇峰厛鎵弿澶х爜鍐嶆壂鎻忓皬鐮�')
+                        j$( '#maqCode' ).val("");
+                        return false;
+                    }else{
+                        codearr[codearr.length -1 ].remove();
+                        content = nowc +content + ' XIAOMA';
+                    }
+                }else{
+                    var codearr = j$('#Scancodehistory')[0].getElementsByTagName('li');
+                    //濡傛灉浼犺繘鏉ョ殑鏁版嵁涓�3浣� 鍒欐嫾鎺ヤ笂涓�涓壂鐨勭爜if 
+                    if (codearr != null && codearr.length > 0) {
+                        var lastCode1 = codearr[codearr.length - 1];
+                        var nowc = lastCode1.innerHTML; 
+                        //濡傛灉褰撳墠杈撳叆鐨勬潯鐮侀暱搴︿笉涓�3 骞朵笖涓婃杈撳叆鏉$爜涓哄ぇ鐮�
+                        if (nowc.substring(nowc.length - 8,nowc.length - 5) != '250' && nowc.substring(nowc.length - 7 ,nowc.length) != ' XIAOMA'  && nowc != 'fengedian' ) {
+                            alert('璇峰厛鎵弿澶х爜鍐嶆壂鎻忓皬鐮�')
+                            //鎻愮ず閿欒淇℃伅鐨勮瘽涔熻娓� 闃叉鍑虹幇鍘嗗彶鏁版嵁閬楃暀闂
+                            j$("#salesdepartment_select1")[0].style.display = 'none';
+                            var picklist1 = j$("#salesdepartment_select1 select")[0];
+                            j$(picklist1).empty();
+                            codearr[codearr.length -1 ].remove();
+                            j$( '#maqCode' ).val("");
+                            return false;
+                        }
+                    }
+                }
+                // }
+                //2.涓嶈兘閲嶅杈撳叆
+                var codearr0 = j$('#Scancodehistory')[0].getElementsByTagName('li');
+                //濡傛灉浼犺繘鏉ョ殑鏁版嵁涓�3浣� 鍒欐嫾鎺ヤ笂涓�涓壂鐨勭爜if 
+                var hisarr = [];
+                if (codearr0 != null) {
+                    for (var i = 0; i < codearr0.length; i++) {
+                        hisarr.push(codearr0[i].innerHTML);
+                    }
+                }
+                var uiObj0 = j$("#Scancodehistory");
+                var contentArr0 = [];
+                //
+                if (uiObj0[0] != null) {
+                    var liArr0 =  uiObj0[0].getElementsByTagName('li');  
+                    if (liArr0 != null && liArr0.length > 0 ) {
+                        for (var i = 0; i < liArr0.length; i++) {
+                            contentArr0.push(liArr0[i].innerHTML);
+                        }
+                    }  
+                }
+                if (contentArr0 != null && contentArr0.length > 0) {
+                    for (var i = 0; i < contentArr0.length; i++) {
+                        if (contentArr0[i] == content) {
+                            alert('褰撳墠鏉$爜宸茬粡鎵弿杩� 璇锋鏌ュ悗閲嶈瘯');
+                            //娓呯┖褰撳墠杈撳叆妗嗗唴瀹�
+                            j$( '#maqCode' ).val("");
+                            //鎻愮ず閿欒淇℃伅鐨勮瘽涔熻娓� 闃叉鍑虹幇鍘嗗彶鏁版嵁閬楃暀闂
+                            j$("#salesdepartment_select1")[0].style.display = 'none';
+                            var picklist1 = j$("#salesdepartment_select1 select")[0];
+                            j$(picklist1).empty();
+                            return false;
+                        }
+                        
+                    }
+                }
+            }
+            
+
+            // alert('894')
+            // alert(content);
+            console.error("==content=="+content+"=scanType=="+scanType);
+            blockme();
+            checkQRCode_new(content, scanType);
+            //add  by rentx 20210823 start 鎵爜灞ュ巻涔熷瓨涓�涓媍ode 
+            j$("#Scancodehistory").append("<li>"+content+"</li>");
+            j$("#Scancodehistory").animate({ scrollTop: j$("#Scancodehistory").prop("scrollHeight")}, 1000);
+            
+            var type = document.getElementById("allPage:allForm:searchBlock:maindetailId:assetCategory").value;
+            if (type == '鑰楁潗') {
+                var aatemp = content.substring(content.length - 7   ,content.length);
+                if (aatemp == ' XIAOMA') {
+                    var tempstr = content;
+                    //鍙栧緱鎷兼垚鐨勮鐨刢ode 
+                    content = tempstr.substring(0,tempstr.length - 7);
+                }
+            }
+            //add by rentx 20210823 end 鎵爜灞ュ巻涔熷瓨涓�涓媍ode
+            j$("#scanedqr").append("<li>"+content+"</li>");
+            j$("#scanedqr").animate({ scrollTop: j$("#scanedqr").prop("scrollHeight")}, 1000);
+        }
+        function checkQRCode_new(content, scanType) {
+            //鍖哄垎澶囧搧鍜岃�楁潗 == 鐩墠鍙湁鑰楁潗鏈夋敼鍔�
+            //add by rentx 20210813 start 
+            var type = document.getElementById("allPage:allForm:searchBlock:maindetailId:assetCategory").value;
+            var daicode = '';
+            var aatemp = content.substring(content.length - 7   ,content.length);
+            var contTemp = content;
+            var tempTanSelect = '123';
+            if (type == '鑰楁潗') {
+                //濡傛灉鎵殑鏄 鍒欑洿鎺ヨ繑鍥� 寰呮壂鍒版敼琚嬬殑灏忕爜鍚庡啀杩涜鏁伴噺鐨勭疮鍔�
+                // if (content.substring(2,3) == '0' && aatemp != ' XIAOMA') {
+                // if (content.substring(content.length - 8,content.length - 5) != '250' && aatemp != ' XIAOMA') {
+                //     j$( '#maqCode' ).val("");
+                //     unblockUI();
+                //     return;
+                // }
+                //鍒ゆ柇褰撳墠杈撳叆鐨刢ode鏄惁涓哄皬鐮� 濡傛灉鏄� 鍒欏幓鎺夊悗闈㈠姞鐨�12浣�
+                
+                if (aatemp == ' XIAOMA') {
+                    // alert(aatemp)
+                    var tempstr = content;
+                    //璇存槑鎵殑鏄皬鐮� 杩欐椂鍊欏彧瑕佸皢鍘熸潵鐨勬彁鍙栧嚭鏉ュ氨鍙互浜�
+                    // alert('Content '+content );
+                    //鎵殑鏄皬鐮� 涓嶅脊 澶х爜寮�
+                    tempTanSelect = '';
+
+                    content = tempstr.substring(0,tempstr.length - 10);
+                    //鍙栧緱鎷兼垚鐨勮鐨刢ode 
+                    daicode = tempstr.substring(0,tempstr.length - 7);
+                }
+            }
+            //add by rentx 20210813 end
+            
+
+            //rentx add guigenum at 20210812 
+            var qrType , qrError, qrId , guigenum ;
+            // QR
+            var amoutInput = j$("tr.displayRow input[data-qrcode='"+content+"']:not([data-frozen='true'])");
+            console.error("checkQRCode_new=="+amoutInput.length+"==amoutInput"+amoutInput);
+            // alert("checkQRCode_new=="+amoutInput.length+"==amoutInput"+amoutInput);
+            // // alert(JSON.tostring(amoutInput));
+            // alert(amoutInput.toString);
+            // alert(JSON.stringify(amoutInput) );
+            if (amoutInput.length > 0) {
+                console.error("QR==scanType=="+scanType);
+                if (scanType == 2) {
+                    //涓�瀵逛竴闄勫睘鍝佹壂鎻�
+                    amoutInput = amoutInput.filter("[data-accsessary='true']");
+                    if (amoutInput.length > 0) {
+                        qrType = amoutInput.prop("disabled") ? '4' : '5';
+                        qrId = lastMainId + ':' + amoutInput.data("aid");
+                        guigenum = lastMainId + ':' +amoutInput.data('bpguige');
+                    } else {
+                        qrError = "涓嶅瓨鍦ㄦ闄勫睘鍝�";
+                    }
+                } else {
+                    //闈炰竴瀵逛竴闄勫睘鍝佹壂鎻�
+                    amoutInput = amoutInput.filter("[data-accsessary='false']");
+                    console.error("3==amoutInput=="+amoutInput);
+                    if (amoutInput.length > 0) {
+                        lastMainId = '';
+                        if (amoutInput.prop("disabled")) {
+                            //鏄惁涓�瀵逛竴涓讳綋
+                            let oto_main = amoutInput.data("main");
+                            //涓綋绠$悊
+                            qrType = oto_main ? '2' : '3';
+                            if (oto_main) {
+                                lastMainId = amoutInput.data("mid");
+                            }
+                        } else {
+                            //鏁伴噺绠$悊
+                            qrType = '1';
+                        }
+                        qrId = amoutInput.data("aid");
+                        guigenum = amoutInput.data('bpguige');
+                    } else {
+                        qrError = "涓�瀵逛竴闄勫睘鍝佽鍏堟壂鎻忎富浣�";
+                    }
+                }
+            }
+            // Barcode
+            else {
+                console.error("Barcode");
+                var tracingCode = content.substr(-8);
+                if (tracingCode.indexOf('250') == 0) {
+                    content = content.slice(0, -8);
+                }
+                amoutInput = j$("tr.displayRow input[data-barcode='"+content+"']:not([data-frozen='true'])");
+                // 绗竴鏉′欢
+                if (amoutInput.length > 0) {
+                }
+                // 绗簩鏉′欢
+                else {
+                    var JANCODE = content.substr(3, 12);
+                    var GTINCODE = content.substr(3, 12);
+                    // var yyyyMMdd = "20" + content.substr(18, 6);
+                    // 鍒�2100骞� 灏遍渶瑕佷笅闈㈢殑logic浜�
+                    // var now = new Date();
+                    // var current_yyyyMMdd = now.getFullYear()
+                    //         + ("0" + (now.getMonth() + 1)).slice(-2)
+                    //         + ("0" + now.getDate()).slice(-2);
+                    // var currentYear = new Date().getFullYear();
+                    // var yyyyMMdd = Math.floor(currentYear / 100) + content.substr(18, 6);
+                    // if (yyyyMMdd < currentYear) yyyyMMdd = yyyyMMdd + 1000000;   // 浣跨敤鏈熼檺 搴旇鏄湭鏉ョ殑鏃ユ湡
+                    var result = extractDateSerial(content);
+                    var yyyyMMdd = result['yyyyMMdd'];
+                    var serial = result['serial'];
+
+                    if (JANCODEMap[JANCODE]) {
+                    } else {
+                        var query = "Select ProductCode From Product2 WHERE JANCODE__c LIKE '" + JANCODE + "%' OR Device_GTIN_2_13_F__c = '" + GTINCODE + "' LIMIT 1";
+                        var records = sforce.connection.query(query).getArray('records');
+                        if (records.length > 0) {
+                            JANCODEMap[JANCODE] = records[0].ProductCode;
+                        }
+                    }
+                    if (JANCODEMap[JANCODE]) {
+                        var content2 = JANCODEMap[JANCODE] + ":" + serial + "(" + yyyyMMdd + ")";
+                        amoutInput = j$("tr.displayRow input[data-ProductSerialNo^='"+content2+"']:not([data-frozen='true'])");
+                        // amoutInput = j$("tr.displayRow input[data-ProductSerialNo^='"+content2+"']:not([data-frozen='false'])");
+
+                    }
+                }
+                if (amoutInput.length > 0) {
+                    if(amoutInput.length > 1) {
+                        if (!standalone && !safari && ios) {
+                            let deptStr = '';
+                            let aidStr = '';
+                            amoutInput.each(function(){
+                                deptStr += this.dataset["salesdepartment"]+';'
+                                aidStr += this.dataset["aid"]+';'
+                            });
+                            // alert('1124')
+                            // var showflag = tempTanSelect == ''? : '1' : tempTanSelect
+                            // window.location.href="sfqr://selectDept?dept="+deptStr.slice(0, -1) + "&aid="+aidStr.slice(0,-1) + "&showflag="+tempTanSelect;
+                            //璋冪敤iPad鐨勬帴鍙� 浼犻�掑弬鏁� dept , aid , showflag , num  iPad鏍规嵁showflag鍒ゆ柇鏄惁寮瑰嚭閫夋嫨妗� num涓洪粯璁ょ殑鍊� 
+                            //showflag涓�1鏃� 寮瑰嚭 
+                            var showflag = tempTanSelect != '' ? '1' : tempTanSelect;
+                            // var showflag = tempTanSelect != '' ? 1 : 0;
+                            // alert(deptStr.slice(0, -1) +' deptStr')
+                            // alert(aidStr.slice(0,-1) +' aidStr')
+                            // alert('showflag'+ showflag)
+                            // alert('contTemp   '+contTemp + '   '+contTemp.length);
+                            // window.location.href="sfqr://scan";
+                            window.location.href="sfqr://selectDept?dept="+deptStr.slice(0, -1) + "&aid="+aidStr.slice(0,-1)+"&showflag="+showflag+"&code="+contTemp;
+                            // if (true) {}
+                            unblockUI();
+                            return;
+
+                        } else {
+                           /* var picklist = j$("#salesdepartment_select select")[0];
+                            if (picklist.value == "") {
+                                alert("璇烽�夋嫨澶囧搧瀛樻斁鍦�(鏈儴)");
+                                for(var i=0;i<amoutInput.length;i++) {
+                                    var option = document.createElement('option');
+                                    option.text = amoutInput[i].dataset["salesdepartment"];
+                                    picklist.appendChild(option);
+                                    j$("#salesdepartment_select")[0].style.display = 'block';
+                                }
+                                unblockUI();
+                                return;
+                            } 娉ㄩ噴byrentx*/
+
+                            var nowCode = j$( '#maqCode' ).val();
+                            var nowCode1 = j$('#qrcode').val();
+                            // alert('1062'+ nowCode + '  '+nowCode1);
+                            // alert('tempTanSelect'+ tempTanSelect);
+                            if (nowCode != '' && nowCode != 'undefined' && nowCode != null) {
+                                // alert(tempTanSelect);
+                                //鏄爜鏋緭鍏� 
+                                //璇存槑鎵殑澶х爜 闇�瑕佸睍绀鸿繖涓
+                                if (tempTanSelect != '') {
+                                    j$(".model00").show();
+                                    var picklist = j$("#salesdepartment_select1 select")[0];
+                                    if (picklist.value == "" ) {
+                                        alert("璇烽�夋嫨澶囧搧瀛樻斁鍦�(鏈儴)");
+                                        for(var i=0;i<amoutInput.length;i++) {
+                                            var option = document.createElement('option');
+                                            option.text = amoutInput[i].dataset["salesdepartment"];
+                                            picklist.appendChild(option);
+                                            j$("#salesdepartment_select1")[0].style.display = 'block';
+                                        }
+                                        j$( '#tempcodeid' ).val(contTemp);
+                                        unblockUI();
+                                        return;
+                                    }else{
+                                        for(var i=0;i<amoutInput.length;i++) {
+                                            if (amoutInput[i].dataset['salesdepartment'] == picklist.value){
+                                                amoutInput = j$(amoutInput[i]);
+                                                break;
+                                            }
+                                        }
+                                    }
+                                }
+                                
+                            }else if (nowCode1 != '' && nowCode1 != 'undefined' && nowCode1 != null) {
+                            // }else if (ios) {
+                                var picklist = j$("#salesdepartment_select select")[0];
+                                    if (picklist.value == "") {
+                                    alert("璇烽�夋嫨澶囧搧瀛樻斁鍦�(鏈儴)");
+                                    for(var i=0;i<amoutInput.length;i++) {
+                                        var option = document.createElement('option');
+                                        option.text = amoutInput[i].dataset["salesdepartment"];
+                                        picklist.appendChild(option);
+                                        j$("#salesdepartment_select")[0].style.display = 'block';
+                                    }
+                                    j$( '#tempcodeid' ).val(contTemp);
+                                    unblockUI();
+                                    return;
+                                }else{
+                                    for(var i=0;i<amoutInput.length;i++) {
+                                        if (amoutInput[i].dataset['salesdepartment'] == picklist.value){
+                                            amoutInput = j$(amoutInput[i]);
+                                            break;
+                                        }
+                                    }
+                                }
+                            }
+                            //update by rentx 20210907
+                            // else {
+                            //     alert('12222')
+                            //     for(var i=0;i<amoutInput.length;i++) {
+                            //         if (amoutInput[i].dataset['salesdepartment'] == picklist.value){
+                            //             amoutInput = j$(amoutInput[i]);
+                            //             break;
+                            //         }
+                            //     }
+                            // }
+                        }
+                    }
+                    lastMainId = '';
+                    qrType = '1';
+                    qrId = amoutInput.data("aid");
+                    guigenum = amoutInput.data('bpguige');
+                } else {
+                    qrError = "涓嶅瓨鍦ㄦ淇濇湁璁惧";
+
+                }
+            }
+            console.error("3=="+qrType+"==qrError=="+qrError+"==qrId=="+qrId);
+            // checkQRDone(qrType, qrError, qrId);
+            //濡傛灉鏄� 琚� 鐨勮瘽 榛樿鏄�1涓� 鐩墠鍙湁鑰楁潗鏈夋敼鍔�
+            if (type == '鑰楁潗') {
+                if (contTemp.substring(contTemp.length - 8,contTemp.length - 5) != '250'){
+                    guigenum = 1;
+                }
+                //add by rentx end
+
+                var tempInput;
+                if (qrType == '1') {
+                    tempInput = j$("input[data-aid='"+qrId+"']:not([data-accsessary='true']):not([data-frozen='true'])");
+                    // alert('121');
+                    //add by rentx 20210908 start
+                    moveToTop(tempInput);
+                    //add by rentx 20210908 end
+                }else if (qrType == '2') {
+                    tempInput = j$("input[data-mid='"+qrId+"']:not([data-accsessary='true']):not([data-frozen='true'])");
+                }else if (qrType == '3') {
+                    tempInput = j$("input[data-aid='"+qrId+"']:not([data-accsessary='true']):not([data-frozen='true'])");
+                    //add by rentx 20210908 start 
+                    moveToTop(tempInput);
+                    //add by rentx 20210908 end
+                }else if (qrType == '4') {
+                    //涓�瀵逛竴涓綋闄勫睘鍝�
+                    let qrsplit = qrId.split(':');
+                    tempInput = j$("input[data-mid='"+qrsplit[0]+"'][data-aid='"+qrsplit[1]+"']:not([data-frozen='true'])");
+                }else if (qrType == '5') {
+                    tempInput = j$("input[data-mid='"+qrsplit[0]+"'][data-aid='"+qrsplit[1]+"']:not([data-frozen='true'])");
+                }
+                if (tempInput != null && tempInput != '' && tempInput != 'undefined') {
+                    if (!tempInput) return;
+                    //杩欓噷鍙缃甤ode鐨勫��
+                    var aaa = tempInput.parent();
+                    var ccc = aaa[0].children[1].value;
+                    
+                    if (aatemp == ' XIAOMA') {
+                        //鍙栧緱鎷兼垚鐨勮鐨刢ode 
+                        aaa[0].children[1].value = ccc == '' ? daicode : ccc + ',' + daicode;
+                    }else{
+                        if (contTemp.substring(contTemp.length - 8,contTemp.length - 5) == '250') {
+                            aaa[0].children[1].value = ccc == '' ? daicode : ccc + ',' + content;
+                        }
+                    }
+                    
+                }
+                // aaa[0].children[1].val(ccc+','+content);
+                if (contTemp.substring(contTemp.length - 8,contTemp.length - 5) != '250' && aatemp != ' XIAOMA') {
+                    j$( '#maqCode' ).val("");
+                    unblockUI();
+                    return;
+                }
+            }
+            checkQRDone(qrType, qrError, qrId, guigenum);
+            j$("#salesdepartment_select")[0].style.display = 'none';
+            var picklist = j$("#salesdepartment_select select")[0];
+            j$(picklist).empty();
+            //add by rentx start
+            j$("#salesdepartment_select1")[0].style.display = 'none';
+            var picklist1 = j$("#salesdepartment_select1 select")[0];
+            j$(picklist1).empty();
+            //add by rentx end
+        }
+
+        //update by rentx 20210914 start 鍒ゆ柇闇�涓嶉渶瑕佽缃�� 鏄ぇ鐮佺殑璇濅笉璁剧疆 
+        // function deptDone(aid) {
+        function deptDone(aid,code) {
+            lastMainId = '';
+            // checkQRDone('1', '', aid,'');
+            checkQRDone('1', '', aid,code+'code');
+        }
+
+        function extractDateSerial(content){
+            var yyyyMMdd = '';
+            var noJancodeContent = content.slice(16);
+            var n1 = noJancodeContent.search(/17\d{6}/);
+            var n2 = noJancodeContent.slice(8).search(/17\d{6}/);
+            var m1 = noJancodeContent.search(/11\d{6}/);
+            var m2 = noJancodeContent.slice(8).search(/11\d{6}/);
+
+            var k = 0;
+            if(n1 % 8 == 0){
+                yyyyMMdd = '20'+noJancodeContent.substr(n1+2,6);
+                k += 1;
+            }
+            else if(n2 == 0) {
+                yyyyMMdd = '20'+noJancodeContent.substr(8+2,6);
+                k += 1;
+            }
+            if(m1 % 8 == 0 || m2 == 0){
+                k += 1;
+            }
+            var serial = noJancodeContent.slice(k*8+2);
+            var y = yyyyMMdd.substring(0, 4);
+            var m = yyyyMMdd.substring(4, 6);
+            var d = yyyyMMdd.substring(6);
+            // 00琛ㄧず鏈堟湯
+            if(d == '00'){
+                d = '' + (new Date(y, m, d)).getDate();
+            }
+            yyyyMMdd = y + m + d;
+            return {'yyyyMMdd':yyyyMMdd, 'serial':serial};
+        }
+
+        function promptDone(type, code1, code2, amount) {
+            var asstype = document.getElementById("allPage:allForm:searchBlock:maindetailId:assetCategory").value;
+            
+            if (type == "1") {
+                var amoutInput = j$("input[data-aid='"+code1+"']:not([data-accsessary='true']):not([data-frozen='true'])");
+                if (!amoutInput) return;
+                //鍒ゆ柇amount瀵逛笉瀵�
+                //add by rentx 鍚屼竴璁惧鏁伴噺绱姞
+                // amoutInput.val(parseInt(amount) || 0);
+                amoutInput.val(parseInt(amount) || '');
+
+                moveToTop(amoutInput);
+            } else {                
+                var amoutInput = j$("input[data-mid='"+code1+"'][data-aid='"+code2+"']:not([data-frozen='true'])");
+                if (!amoutInput) return;
+                // amoutInput.val(parseInt(amount) || 0);
+                amoutInput.val(parseInt(amount) || '');
+                amoutInput.parents("tr:first").css('background', 'lightgray');
+            }
+        }
+
+        function checkQRDone(qrType, qrError, qrId,guigenum) {
+            unblockUI();
+            var type = document.getElementById("allPage:allForm:searchBlock:maindetailId:assetCategory").value;
+            // var qrType = document.getElementById("allPage:allForm:qrType").value
+            // var qrError = document.getElementById("allPage:allForm:qrError").value;
+            // var qrId = document.getElementById("allPage:allForm:qrId").value
+            if (qrError) {
+                alert(qrError);
+                //add by rentx 20210827 start
+                //娓呯┖褰撳墠杈撳叆妗嗗唴瀹�
+                j$( '#maqCode' ).val("");
+                // //鍒犻櫎涓婁釜鏉$爜
+                var uiObj = j$("#Scancodehistory");
+                if (uiObj[0] != null) {
+                    var liArr =  uiObj[0].getElementsByTagName('li');
+                    liArr[liArr.length-1].remove();
+                }
+                //add by rentx 20210827 end
+  
+                return;
+            }
+            if (qrType == '1') {
+                //鏁伴噺绠$悊
+                //update by rentx 20210910 start 鎺塱OS浠g爜鏃剁洿鎺ヤ紶绱姞鍚庣殑鍊�
+
+                // if (!standalone && !safari && ios) {
+                //     window.location.href="sfqr://prompt?type=1&qrId="+qrId;
+                // } else {
+                //     var amount = prompt("鏁伴噺绠$悊澶囧搧璇疯緭鍏ユ暟閲�", guigenum);
+                //     amoutInput.val(parseInt(amount) || 0); 
+                //     moveToTop(amoutInput);
+                // }
+                var allnum;
+                var amoutInput = j$("input[data-aid='"+qrId+"']:not([data-accsessary='true']):not([data-frozen='true'])");
+                if (!amoutInput) return;
+
+                //add by rentx 20210914 start
+                //鍒ゆ柇guigenum鏄笉鏄笂娆′紶鍏ョ殑code
+                var guigestr = guigenum.toString();
+                if (guigestr != '' && guigestr.substring(guigestr.length - 4,guigestr.length) == 'code') {
+                    //鎴帀鍚�4浣嶅彇鍓嶉潰鐨刢ode鍚�
+                    guigestr = guigestr.substring(0,guigestr.length-4);
+                    if (guigestr.substring(guigestr.length - 8,guigestr.length - 5) == '250') {
+                        guigenum = amoutInput.data('bpguige');
+                    }else if (guigestr.substring(guigestr.length - 7 ,guigestr.length) == ' XIAOMA') {
+                        guigenum = 1;
+                    }else{
+                        //璇存槑鏄洅 杩欐椂缃《鍗冲彲
+                        guigenum = 0;
+                    }
+                }
+                // if (guigestr.substring(guigestr.length - 4,guigestr.length) == 'code') {
+                //     //璇存槑鏄�変腑浜嗚惀涓氭湰閮ㄥ悗鎺夌殑 闇�瑕佸垽鏂槸鐩掕繕鏄釜 骞朵笖
+                //     if (code != '') {
+                        
+
+                //     }
+                // }
+                //add by rentx 20210914 end
+
+                //add by rentx 鍚屼竴璁惧鏁伴噺绱姞
+                if (type == '鑰楁潗') {
+                    // var nownum = parseInt(amoutInput.val()) || 0;
+                    var nownum = parseInt(amoutInput.val()) || '';
+                    allnum = nownum + parseInt(guigenum);
+                    // amoutInput.val(parseInt(guigenum) + nownum || 0 );
+                }else{
+                    // alert('1438888')
+                    // amoutInput.val(parseInt(amount) || 0);       
+
+                    var amount = prompt("鏁伴噺绠$悊澶囧搧璇疯緭鍏ユ暟閲�", "1");
+                    allnum = amoutInput.val(parseInt(amount) || 0);
+                }
+
+                if (!standalone && !safari && ios) {
+                    // alert('num  '+allnum)
+                    //update by rentx 20210909 start 璋僫OS浠g爜鏃� 鍒ゆ柇鏄惁涓鸿�楁潗 
+                    // window.location.href="sfqr://prompt?type=1&qrId="+qrId + "&num="+allnum+"&cotype="+type;
+                    if (type == '鑰楁潗') {
+                        window.location.href="sfqr://prompt?type=1&qrId="+qrId + "&num="+allnum+"&cotype="+0;
+                    }else{
+                        window.location.href="sfqr://prompt?type=1&qrId="+qrId + "&num="+allnum+"&cotype="+1;
+                    }
+                    //update by rentx 20210909 end 璋僫OS浠g爜鏃� 鍒ゆ柇鏄惁涓鸿�楁潗 
+                } else {
+                    amoutInput.val(allnum);
+                    moveToTop(amoutInput);
+                }
+            } else if (qrType == '2') {
+                //涓�瀵逛竴涓讳綋
+                var amoutInput = j$("input[data-mid='"+qrId+"']:not([data-accsessary='true']):not([data-frozen='true'])");
+                if (!amoutInput) return;
+                amoutInput.val(1);
+                // moveToTop(amoutInput);
+                moveToTopR(amoutInput.parents("tr:first"));
+                amoutInput.parents("tr:first").css('background', 'lightgray');
+                j$("html, body").animate({ scrollTop: 0 }, "fast");
+                scanType = 2;
+                if (!standalone && !safari && ios) {
+                    window.location.href="sfqr://accsessaryScan";
+                } else {
+                    j$(".modal2").show();
+                }
+            } else if (qrType == '3') {
+                //涓綋绠$悊
+                var amoutInput = j$("input[data-aid='"+qrId+"']:not([data-accsessary='true']):not([data-frozen='true'])");
+                if (!amoutInput) return;
+                amoutInput.val(1);
+                moveToTop(amoutInput);
+            } else if (qrType == '4') {
+                //涓�瀵逛竴涓綋闄勫睘鍝�
+                let qrsplit = qrId.split(':');
+                var amoutInput = j$("input[data-mid='"+qrsplit[0]+"'][data-aid='"+qrsplit[1]+"']:not([data-frozen='true'])");
+                if (!amoutInput) return;
+                amoutInput.val(1);
+                amoutInput.parents("tr:first").css('background', 'lightgray');
+                // moveToTop(amoutInput);
+            } else if (qrType == '5') {
+                //涓�瀵逛竴鏁伴噺闄勫睘鍝�
+                let qrsplit = qrId.split(':');
+                //update byr entx 20210910 start 
+                /*if (!standalone && !safari && ios) {
+                    window.location.href="sfqr://prompt?type=2&mid="+qrsplit[0]+"&aid="+qrsplit[1];
+                } else {
+                    var amount = prompt("鏁伴噺绠$悊澶囧搧璇疯緭鍏ユ暟閲�", guigenum);
+                    amoutInput.val(parseInt(amount) || 0); 
+                    amoutInput.parents("tr:first").css('background', 'lightgray');
+                }*/
+                //add start == by rentx 
+                var allnum;
+                var amoutInput = j$("input[data-mid='"+qrsplit[0]+"'][data-aid='"+qrsplit[1]+"']:not([data-frozen='true'])");
+                if (!amoutInput) return;
+                //add by rentx 鍚屼竴璁惧鏁伴噺绱姞
+                if (type == '鑰楁潗') {
+                    // var nownum = parseInt(amoutInput.val()) || 0;
+                    var nownum = parseInt(amoutInput.val()) || '';
+                    allnum = nownum + parseInt(guigenum);
+                    // amoutInput.val(parseInt(guigenum) + nownum || 0 );
+                }else{
+                    // amoutInput.val(parseInt(amount) || 0);       
+                    var nownum = parseInt(amoutInput.val()) || '';
+                    allnum = nownum;                 
+                }
+
+                if (!standalone && !safari && ios) {
+                    if (type == '鑰楁潗') {
+                        window.location.href="sfqr://prompt?type=2&mid="+qrsplit[0]+"&aid="+qrsplit[1]+"&num="+allnum+"&cotype="+0;
+                    }else {
+                        window.location.href="sfqr://prompt?type=2&mid="+qrsplit[0]+"&aid="+qrsplit[1]+"&num="+allnum+"&cotype="+1;
+                    }
+                } else {
+                    amoutInput.val(allnum);
+                    //update by rentx 鏁伴噺绱姞 end
+                    amoutInput.parents("tr:first").css('background', 'lightgray');
+                }
+                //add by rentx end-----==
+
+                // moveToTop(amoutInput);
+            }
+        }
+        function moveToTopR(row) {
+            if (row.next().find('input[data-accsessary = "true"]').length > 0) {
+                moveToTopR(row.next());
+            }
+            let toprow = row.parent().children('tr:first');
+            row.insertAfter(toprow);
+        }
+        function moveToTop(obj) {
+            let row = obj.parents("tr:first");
+            let toprow = row.parent().children('tr:first');
+            row.css('background', 'lightgray');
+            row.insertAfter(toprow);
+            j$("html, body").animate({ scrollTop: 0 }, "fast");
+            //add by rentx 20210812 start 娓呯┖杈撳叆妗嗙殑淇℃伅
+            j$( '#maqCode' ).val("");
+        }
+
+        scanner.addListener('scan', function (content) {
+            // alert("1000");
+            filljsQR(content)
+        });
+
+        function qrsacn() {
+            if (!standalone && !safari && ios) {
+                window.location.href="sfqr://scan";
+                // alert('pad');
+            } else {
+                // alert('娴忚鍣�');
+                j$(".modal").show();
+                Instascan.Camera.getCameras().then(function (cameras) {
+                  if (cameras.length > 0) {
+                    if (ver >= 13) {
+                        scanner.start(cameras[1]);
+                    } else {
+                        scanner.start(cameras[0]);
+                    }
+                  } else {
+                    console.error('No cameras found.');
+                  }
+                }).catch(function (e) {
+                  console.error(e);
+                });
+            }
+        }
+
+        function stopScan() {
+            scanner.stop().then(function () {
+                j$(".modal").hide();
+            });
+            //娉ㄩ噴 by rentx 20210812 start 
+            var type = document.getElementById("allPage:allForm:searchBlock:maindetailId:assetCategory").value;
+            if (type != '鑰楁潗') {
+                j$("#scanedqr").children().remove();
+                j$("#salesdepartment_select")[0].style.display = 'none';
+                var picklist = j$("#salesdepartment_select select")[0];
+                j$(picklist).empty();
+
+                j$("#salesdepartment_select1")[0].style.display = 'none';
+                var picklist1 = j$("#salesdepartment_select1 select")[0];
+                j$(picklist1).empty();
+            }
+            // amoutInput.val(parseInt(amount) || 0);
+            //add by rentx 鍚屼竴璁惧鏁伴噺绱姞
+            // j$("#scanedqr").children().remove();
+            // j$("#salesdepartment_select")[0].style.display = 'none';
+            // var picklist = j$("#salesdepartment_select select")[0];
+            // j$(picklist).empty();
+            //娉ㄩ噴by rentx 20210812 end
+        }
+
+        function stopScan2() {
+            j$(".modal2").hide();
+            j$( '#qrcode' ).unbind();
+            scanType = 1;
+        }
+
+        j$(document).ready(function(){
+            j$( '#qrcode' ).unbind();
+            j$( '#qrcode' ).keypress( function ( e ) {
+                // alert(e.which)
+                if ( e.which == 13 ) {
+                    // alert('1579')
+                    console.error("ready=="+j$( '#qrcode' ).val());
+                    // alert('1479')
+                    filljsQR(j$( '#qrcode' ).val());
+                    return false;
+                }
+            });
+        });
+
+        //鑰楁潗杩芥函鏂规 add by rentx 20210812 start
+        //1. 鎵�鏈夌殑淇敼鍙拡瀵逛笂娴� 澶囧搧涓績 鑰楁潗 閮ㄥ垎
+        //1.1 鎵弿鍙樹负IPAD鎵弿 
+        //1.2 鏂板杈撳叆妗嗙爜鏋緭鍏� 璇ヨ緭鍏ユ缁戝畾鐮佹灙
+        //1.3 鐮佹灙杈撳叆鍚�  
+            //2.1 鍖哄垎 鐩� 鍜� 琚�  鐩� -> 杈撳叆鏉$爜鍚�8浣嶄互250寮�澶� 
+            //2.2 鐩掔殑涓暟涓轰骇鍝佷笂鐨勫鍝佽鏍�  琚嬬殑涓暟榛樿1
+            //2.3 鐢ㄦ埛鎵爜鐐瑰嚮淇濆瓨鍚� 闇�瑕佸皢瀵瑰簲鐨刢ode淇濆瓨鍒板搴旂殑鏄庣粏涓�
+            //3.3 鍘婚噸 鍖呮嫭涔嬪墠鐨勫凡淇濆瓨鐨刢ode
+        function onKeyPress(e) {
+            // alert('111111111111111111');
+            // alert( j$( '#maqCode' ).val())
+
+            var keyCode = null;
+        
+            if(e.which)
+                keyCode = e.which;
+            else if(e.keyCode)
+                keyCode = e.keyCode;
+        
+            if(keyCode == 13) {
+                //鎷垮埌褰撳墠杈撳叆code
+                var nowCode = j$( '#maqCode' ).val();
+                filljsQR(nowCode);
+                nowCode = '';
+                return false;
+            }
+            return true;
+        }
+
+        function addHistory() {
+            j$("#maqCode").focus();
+            // body...
+            var allHCCodestr = j$( '#allhccode' ).val();
+            if (allHCCodestr.length != 0) {
+                //娣诲姞鍒板巻鍙蹭腑
+                var arrlist = allHCCodestr.substring(1,allHCCodestr.length - 1).split(',');
+                for (var i = 0; i < arrlist.length; i++) {
+                    j$("#Scancodehistory").append("<li>"+arrlist[i]+"</li>");
+                }
+                j$("#Scancodehistory").append("<li>fengedian</li>");
+            }
+
+        }
+
+        function getCodeAndDMethod() {
+            // alert('1590')
+            // body...
+            j$("#maqCode").focus();
+            var nowCode = j$( '#tempcodeid' ).val();
+            checkQRCode_new(nowCode,1);
+            j$(".model00").hide();
+            scanType = 1;
+            // //鐐圭‘瀹氱殑鏃跺�欓渶瑕佸垽鏂涓嶈娓�  1.鎵殑鏄ぇ鐮佺殑璇濅笉鑳芥竻 鎵殑鏄皬鐮佹垨鑰呮槸鐩掑彲浠ユ竻
+            if (nowCode.substring(nowCode.length - 7   ,nowCode.length) == ' XIAOMA' || nowCode.substring(nowCode.length - 8,nowCode.length - 5) == '250') {
+                j$("#salesdepartment_select1")[0].style.display = 'none';
+                var picklist1 = j$("#salesdepartment_select1 select")[0];
+                j$(picklist1).empty();
+            }
+        }
+
+        function stopScan00() {
+            j$(".model00").hide();
+        }
+
+        
+
+
+        //鍙湁涓婃捣澶囧搧涓績鐨勬湁涓嬫媺妗�(涓嬫媺妗嗛粯璁よ�楁潗) 1.1 鍏朵粬榛樿涓鸿�楁潗涓斾笉鍙紪杈�  
+        //鑾峰彇椤甸潰涓婄幇鍦ㄩ�変腑鐨勫鍝佸瓨鏀惧湴
+        /*var aaa = document.getElementById("allPage:allForm:searchBlock:maindetailId:bieCunFangDi").value;
+        if (aaa == '涓婃捣 澶囧搧涓績') {
+            //鑾峰彇澶囧搧绫诲埆涓嬫媺妗� 璁剧疆榛樿涓嬫媺妗嗙殑鍊间负"鑰楁潗"
+            document.getElementById("allPage:allForm:searchBlock:maindetailId:assetCategory").value = '鑰楁潗';
+        }else{
+            document.getElementById("allPage:allForm:searchBlock:maindetailId:assetCategory").value = '澶囧搧';
+            document.getElementById("allPage:allForm:searchBlock:maindetailId:assetCategory").disabled = true;
+
+        }*/
+        //鑰楁潗杩芥函鏂规 add by rentx 20210812 end
+
+    </script>
+</apex:page>
\ No newline at end of file
diff --git a/force-app/main/default/pages/InventoryResultRecordNew.page-meta.xml b/force-app/main/default/pages/InventoryResultRecordNew.page-meta.xml
new file mode 100644
index 0000000..d1d2971
--- /dev/null
+++ b/force-app/main/default/pages/InventoryResultRecordNew.page-meta.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ApexPage xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>57.0</apiVersion>
+    <availableInTouch>false</availableInTouch>
+    <confirmationTokenRequired>false</confirmationTokenRequired>
+    <label>InventoryResultRecordNew</label>
+</ApexPage>
diff --git a/force-app/main/default/pages/MaintenanceProductData.page b/force-app/main/default/pages/MaintenanceProductData.page
index 0f53402..12b55ae 100644
--- a/force-app/main/default/pages/MaintenanceProductData.page
+++ b/force-app/main/default/pages/MaintenanceProductData.page
@@ -4,6 +4,43 @@
 <apex:includeScript value="{!URLFOR($Resource.PleaseWaitDialog)}"/>
 <apex:includeScript value="{!URLFOR($Resource.CommonUtilJs)}"/>
 <style type="text/css">
+/*淇℃伅鎻愮ず棰滆壊*/
+body .bPageBlock .pbSubheader, .slds-vf-scope .bPageBlock .pbSubheader{
+	background-color: #08107b !important;;
+    color: #FFF !important;
+}
+body .infoM2, body .infoM3, body .infoM4, .slds-vf-scope .infoM2, .slds-vf-scope .infoM3, .slds-vf-scope .infoM4 {
+    background-color: #08107b !important;
+}
+body .message, .slds-vf-scope .message{
+    background-color: #08107b !important;
+}
+
+body .errorM2 h4,body .errorM3 h4,body .errorM4 h4,.slds-vf-scope .errorM2 h4,.slds-vf-scope .errorM3 h4,.slds-vf-scope .errorM4 h4 {
+    /* color: rgb(255, 255, 255)!important */
+    background-color: rgb(234, 0, 30)!important
+}
+
+body .errorM2,body .errorM3,body .errorM4,.slds-vf-scope .errorM2,.slds-vf-scope .errorM3,.slds-vf-scope .errorM4 {
+    background-color: rgb(234, 0, 30)!important
+}
+
+body .errorM2,body .errorM3,body .errorM4,.slds-vf-scope .errorM2,.slds-vf-scope .errorM3,.slds-vf-scope .errorM4 {
+    background-color: rgb(234, 0, 30)!important
+}
+body .warningM2,body .warningM3,body .warningM4,.slds-vf-scope .warningM2,.slds-vf-scope .warningM3,.slds-vf-scope .warningM4 {
+    background-color: rgb(254, 147, 57)!important;
+    color: rgb(24, 24, 24)!important
+}
+body .confirmM2,body .confirmM3,body .confirmM4,.slds-vf-scope .confirmM2,.slds-vf-scope .confirmM3,.slds-vf-scope .confirmM4 {
+    background-color: rgb(46, 132, 74)!important
+}
+body .pbButton{
+    text-align: left;
+}
+.message .messageText{
+    color: #FFF !important;
+}
     .bPageBlock .detailList .dataCol{
     width:100%
     }
@@ -908,8 +945,8 @@
                 <apex:outputPanel layout="none" rendered="{!IF(RecordTypeName = 'GuranteePrice'|| RecordTypeName ='GuranteeMain', false,true)}">
                 <tr>
                     <td align="right" style="width: 100px;">绗�1鍒嗙被</td>
-                    <td>
-                        <apex:selectList id="Category1" value="{!category1}" size="1">
+                    <td align="right" style="width: 110px;">
+                        <apex:selectList style="width: 100px" id="Category1" value="{!category1}" size="1">
                             <apex:selectOption itemValue="" itemLabel="-鏃�-"/>
                             <apex:selectOption itemValue="GI" itemLabel="GI"/>
                             <apex:selectOption itemValue="ET" itemLabel="ET"/>
@@ -920,13 +957,13 @@
                         </apex:selectList>
                     </td>
                     <td align="right" style="width: 100px;" >绗�2鍒嗙被</td>
-                    <td><apex:inputText id="Category2" value="{!category2}" style="width:100px"/></td>
+                    <td align="right" style="width: 110px;"><apex:inputText id="Category2" value="{!category2}" style="width:100px"/></td>
                     <td align="right" style="width: 100px;" >绗�3鍒嗙被</td>
-                    <td><apex:inputText id="Category3" value="{!category3}" style="width:100px"/></td>
+                    <td align="right" style="width: 110px;"><apex:inputText id="Category3" value="{!category3}" style="width:100px"/></td>
                     <td align="right" style="width: 100px;" >绗�4鍒嗙被</td>
-                    <td><apex:inputText id="Category4" value="{!category4}" style="width:100px"/></td>
+                    <td align="right" style="width: 110px;"><apex:inputText id="Category4" value="{!category4}" style="width:100px"/></td>
                     <td align="right" style="width: 100px;" >绗�5鍒嗙被</td>
-                    <td><apex:inputText id="Category5" value="{!category5}" style="width:100px"/></td>
+                    <td align="right" style="width: 110px;"><apex:inputText id="Category5" value="{!category5}" style="width:100px"/></td>
                     <!-- <td colspan="10"></td> -->
                     <!-- <td align="right"></td>     -->
                 </tr>
@@ -939,19 +976,20 @@
                 <tr>
                     <td align="right" style="width: 100px;">浜у搧鍚嶇О</td>
                     <!-- ProductDateSearch -->
-                    <td><apex:inputText id="CateName" value="{!searchCateName}" style="width:100px"/></td>
+                    <td align="right" style="width: 110px;"><apex:inputText id="CateName" value="{!searchCateName}" style="width:100px"/></td>
                     <td align="right" style="width: 100px;">浜у搧缂栫爜</td>
-                    <td><apex:inputText id="ProductCodeExt" value="{!searchProductCodeExt}" style="width:100px"/></td>
+                    <td align="right" style="width: 110px;"><apex:inputText id="ProductCodeExt" value="{!searchProductCodeExt}" style="width:100px"/></td>
                     <apex:outputPanel layout="none" rendered="{!IF(RecordTypeName = 'GuranteePrice'|| RecordTypeName ='GuranteeMain', true,false)}">
                     <td align="right" style="width: 100px;">澶氬勾淇濅慨绫诲瀷</td>
-                    <td>
-                        <apex:selectList id="GuranteeType" value="{!searchGuranteeType}" size="1">
+                    <td align="right" style="width: 110px;">
+                        <apex:selectList style="width:100px" id="GuranteeType" value="{!searchGuranteeType}" size="1">
                             <apex:selectOption itemValue="" itemLabel="-鏃�-"/>
                             <apex:selectOption itemValue="甯傚満" itemLabel="甯傚満"/>
                             <apex:selectOption itemValue="鏈嶅姟" itemLabel="鏈嶅姟"/>
                         </apex:selectList>
                     </td>
                     </apex:outputPanel>
+                    <td style="width: 30px;"></td>
                     <!-- <td colspan="{!IF(RecordTypeName = 'GuranteePrice'|| RecordTypeName ='GuranteeMain', 12,12)}"></td> -->
                     <!-- <td align="right"></td> -->
                     <td colspan="2" align="right"><apex:commandButton value="浜у搧鎼滅储" style="width: 100px;" onclick="searchProductJs();return false;" reRender="mpdDetailsSection" /></td>
@@ -1025,12 +1063,12 @@
                 <apex:outputPanel layout="none" rendered="{!IF(RecordTypeName = 'GuranteeMain',true , false)}">
                 <tr>
                     <td>
-                        <apex:selectList id="GuranteeMain1"  size="1">
+                        <apex:selectList style="width:100px" id="GuranteeMain1"  size="1">
                             <apex:selectOptions value="{!GuranteeTypeOps}"/>
                         </apex:selectList>
                     </td>
                     <td>
-                        <apex:selectList id="GuranteeMain2"  size="1">
+                        <apex:selectList style="width:100px" id="GuranteeMain2"  size="1">
                             <apex:selectOptions value="{!EntendGuranteePeriodOps}"/>
                         </apex:selectList>
                     </td>
@@ -1045,6 +1083,10 @@
                         </span>
                     </td>
                     <td><input type="checkbox" id="GuranteeMain8" /></td>
+                    <td></td>
+                    <td></td>
+                    <td></td>
+                    <td></td>
                     <!-- <td></td>
                     <td>
                         <input  name="Intra_Trade_Service_RMB" id="GuranteeMain5" size="20" type="number" value="" disabled="true" />
@@ -1076,13 +1118,13 @@
                 <tr>
 
                     <td>
-                        <input name="RepairListPriceLevelA"  id="RepairInfo1" size="10" type="number" value="" style="width:100px;" />
+                        <input name="RepairListPriceLevelA"  id="RepairInfo1" size="10" type="number" value="" style="width:100px;height:32px" />
                     </td>
                     <td>
-                        <input name="RepairListPriceLevelB"  id="RepairInfo2" size="10" type="number" value="" style="width:100px;"/>
+                        <input name="RepairListPriceLevelB"  id="RepairInfo2" size="10" type="number" value="" style="width:100px;height:32px"/>
                     </td>
                     <td>
-                        <input name="RepairListPriceLevelC"  id="RepairInfo3" size="10" type="number" value="" style="width:100px;"/>
+                        <input name="RepairListPriceLevelC"  id="RepairInfo3" size="10" type="number" value="" style="width:100px;height:32px"/>
                     </td>
                     <td>
                         <input type="checkbox"   id="RepairInfo4" />
@@ -1091,7 +1133,7 @@
                         <input name="Repair_Product_Code"  id="RepairInfo5" size="20" type="text" value="" style="width:100px;"/>
                     </td>
                     <td>
-                        <input name="Maintenance_Price_Year"  id="RepairInfo6" size="20" type="number" style="width:100px;"/>
+                        <input name="Maintenance_Price_Year"  id="RepairInfo6" size="20" type="number" style="width:100px;height:32px"/>
                     </td>
                     <td>
                         <span class="dateInput dateOnlyInput">
@@ -1100,32 +1142,32 @@
                     </td>
                     <!-- LJPH-C6A3DF 銆愬鎵樸�� 銆愰噸瑕併�戜骇鍝佷富鏁版嵁涓鍔犳湇鍔$敤浜у搧鍒嗙被 liuyan 20210908 Star -->
                     <td>
-                        <apex:selectList id="RepairInfo8"  size="1">
+                        <apex:selectList style="width: 100%" id="RepairInfo8"  size="1">
                             <apex:selectOptions value="{!CanRepairOps}"/>
                         </apex:selectList>
                     </td>
                     <td>
-                        <apex:selectList id="RepairInfo9"  size="1">
+                        <apex:selectList style="width: 100%" id="RepairInfo9"  size="1">
                             <apex:selectOptions value="{!ServiceCategory1}"/>
                         </apex:selectList>
                     </td>
                     <td>
-                        <apex:selectList id="RepairInfo10"  size="1">
+                        <apex:selectList style="width: 100%" id="RepairInfo10"  size="1">
                             <apex:selectOptions value="{!ServiceCategory2}"/>
                         </apex:selectList>
                     </td>
                     <td>
-                        <apex:selectList id="RepairInfo11"  size="1">
+                        <apex:selectList style="width: 100%" id="RepairInfo11"  size="1">
                             <apex:selectOptions value="{!ServiceCategory3}"/>
                         </apex:selectList>
                     </td>
                     <td>
-                        <apex:selectList id="RepairInfo12"  size="1">
+                        <apex:selectList style="width: 100%" id="RepairInfo12"  size="1">
                             <apex:selectOptions value="{!ServiceCategory4}"/>
                         </apex:selectList>
                     </td>
                     <td>
-                        <apex:selectList id="RepairInfo13"  size="1">
+                        <apex:selectList style="width: 100%" id="RepairInfo13"  size="1">
                             <apex:selectOptions value="{!ServiceCategory5}"/>
                         </apex:selectList>
                     </td>
@@ -1159,7 +1201,7 @@
                         <apex:inputField id="EquipmentInfo5" value="{!EquipmentInfo[0].Default_Fixture_Arrival_Product__c}"/>
                     </td>
                     <td>
-                        <apex:selectList id="EquipmentInfo6"  size="1">
+                        <apex:selectList id="EquipmentInfo6"  size="1" style="width: 100%">
                             <apex:selectOptions value="{!DefaultFixtureArrivalProcessOps}"/>
                         </apex:selectList>
                     </td>
diff --git a/force-app/main/default/pages/MaintenanceProductData.page-meta.xml b/force-app/main/default/pages/MaintenanceProductData.page-meta.xml
index c5a5e1c..dfa3561 100644
--- a/force-app/main/default/pages/MaintenanceProductData.page-meta.xml
+++ b/force-app/main/default/pages/MaintenanceProductData.page-meta.xml
@@ -1,6 +1,6 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <ApexPage xmlns="http://soap.sforce.com/2006/04/metadata">
-    <apiVersion>48.0</apiVersion>
+    <apiVersion>56.0</apiVersion>
     <availableInTouch>false</availableInTouch>
     <confirmationTokenRequired>false</confirmationTokenRequired>
     <label>MaintenanceProductData</label>
diff --git a/force-app/main/default/pages/PCLLostReportPageLwc.page b/force-app/main/default/pages/PCLLostReportPageLwc.page
new file mode 100644
index 0000000..2e3b4c2
--- /dev/null
+++ b/force-app/main/default/pages/PCLLostReportPageLwc.page
@@ -0,0 +1,36 @@
+<apex:page lightningStylesheets="true">
+    <apex:includeLightning />
+
+    <div id="vfContainer"></div>
+    <script>
+        init();
+        function init(){
+            var oppId = getParam('oppId');
+            var pageStatus = getParam('pageStatus');
+            var lostType = getParam('lostType');
+            var lostReportId = getParam('reportId');
+            $Lightning.use("c:PCLLostReportPageLwcAura", function() {
+            $Lightning.createComponent(
+                "c:lexPCLLostReportPage",
+                {
+                    "oppId": oppId, // 鏇挎崲涓烘偍瑕佷紶閫掔殑鍙傛暟鍊�
+                    "pageStatus": pageStatus,
+                    "lostType": lostType,
+                    "reportId": lostReportId
+                },
+                "vfContainer",
+                function(cmp) {
+                }
+            );
+            });
+        }
+        function getParam(paramName) {
+        paramValue = "", isFound = !1;
+        if (this.location.search.indexOf("?") == 0 && this.location.search.indexOf("=") > 1) {
+            arrSource = decodeURI(this.location.search).substring(1, this.location.search.length).split("&"), i = 0;
+            while (i < arrSource.length && !isFound) arrSource[i].indexOf("=") > 0 && arrSource[i].split("=")[0].toLowerCase() == paramName.toLowerCase() && (paramValue = arrSource[i].split("=")[1], isFound = !0), i++
+                }
+        return paramValue == "" && (paramValue = null), paramValue;
+        }
+    </script>
+</apex:page>
\ No newline at end of file
diff --git a/force-app/main/default/pages/PCLLostReportPageLwc.page-meta.xml b/force-app/main/default/pages/PCLLostReportPageLwc.page-meta.xml
new file mode 100644
index 0000000..c133641
--- /dev/null
+++ b/force-app/main/default/pages/PCLLostReportPageLwc.page-meta.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<ApexPage xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>54.0</apiVersion>
+    <availableInTouch>false</availableInTouch>
+    <confirmationTokenRequired>false</confirmationTokenRequired>
+    <label>PCLLostReportPageLwc</label>
+</ApexPage>
diff --git a/force-app/main/default/pages/QLMAttachmentPreview1.page b/force-app/main/default/pages/QLMAttachmentPreview1.page
index e7b795d..15be2e4 100644
--- a/force-app/main/default/pages/QLMAttachmentPreview1.page
+++ b/force-app/main/default/pages/QLMAttachmentPreview1.page
@@ -73,7 +73,7 @@
       <!-- 鏍囬 -->
       <div style="height: 40px;background-color:#0f218b;width: 100%;text-align: center;">
           <h1 style="color: white;font-size: 24px;">
-              鏌ョ湅闄勪欢
+              鏌ョ湅鏂囦欢
           </h1>
       </div>
 
diff --git a/force-app/main/default/pages/SolApproval.page b/force-app/main/default/pages/SolApproval.page
index 407458f..4bd9546 100644
--- a/force-app/main/default/pages/SolApproval.page
+++ b/force-app/main/default/pages/SolApproval.page
@@ -1,38 +1,40 @@
 <apex:page sidebar="true" standardController="Solution_Programme__c" lightningStylesheets="true">
    <!-- <apex:relatedList list="ProcessSteps" ></apex:relatedList>-->
     <apex:includeScript value="{!URLFOR($Resource.jquery183minjs)}"/>
-    <script type="text/javascript">
-       $(function(){
-            
-           //娣诲姞鏂版寜閽殣钘忚�佹寜閽�
-           // alert($('input[name="piSubmit"]').val());
-           if($('input[name="piSubmit"]').val()=='Submit for Approval')
-           {            
-                   // ($('input[name="piSubmit"]').hide()).parent().append($('input[name="submit_for_approval"]'));
-                   //  $('input[name="piSubmit"]').next().hide();
-            }
-            else
-            {
-                  // alert($('input[name="piSubmit"]').val());
-                  //   $('input[name="submit_for_approval"]').hide();
-                    //鏇挎崲HistoryList涓殑瀹℃壒閾炬帴
-                   var SolId = ('{!Solution_Programme__c.Id}').substring(0,15);
-                   var ApprovalListID = SolId + '_RelatedProcessHistoryList_body';
-                   // alert(ApprovalListID);
-                   var Approvalprocessdiv=document.getElementById(ApprovalListID);
-                   // alert(Approvalprocessdiv.getAttribute('class'));
-                   if(Approvalprocessdiv!=null)
-                   {
-                       var originalHTML=Approvalprocessdiv.innerHTML;
-                       var newHtml=originalHTML.replace('/p/process/ProcessInstanceWorkitemWizardStageManager?','/apex/ProcessInstance?SolId='+SolId+'&');
-                       Approvalprocessdiv.innerHTML=newHtml;
-                   }else{
-                   		var originalHTML=Approvalprocessdiv.innerHTML;
-                   		var newHtml=originalHTML.replace('/apex','');
-                   		Approvalprocessdiv.innerHTML=newHtml;
-                   }
-            }
-       });
+    <script type="text/javascript">   
+       document.addEventListener("DOMContentLoaded", function(event) {
+            $(function(){
+                
+                //娣诲姞鏂版寜閽殣钘忚�佹寜閽�
+                // alert($('input[name="piSubmit"]').val());
+                if($('input[name="piSubmit"]').val()=='Submit for Approval')
+                {            
+                        // ($('input[name="piSubmit"]').hide()).parent().append($('input[name="submit_for_approval"]'));
+                        //  $('input[name="piSubmit"]').next().hide();
+                }
+                else
+                {
+                    // alert($('input[name="piSubmit"]').val());
+                    //   $('input[name="submit_for_approval"]').hide();
+                        //鏇挎崲HistoryList涓殑瀹℃壒閾炬帴
+                        var SolId = ('{!Solution_Programme__c.Id}').substring(0,15);
+                        var ApprovalListID = SolId + '_RelatedProcessHistoryList_body';
+                        // alert(ApprovalListID);
+                        var Approvalprocessdiv=document.getElementById(ApprovalListID);
+                        // alert(Approvalprocessdiv.getAttribute('class'));
+                        if(Approvalprocessdiv!=null)
+                        {
+                            var originalHTML=Approvalprocessdiv.innerHTML;
+                            var newHtml=originalHTML.replace('/p/process/ProcessInstanceWorkitemWizardStageManager?','/apex/ProcessInstance?SolId='+SolId+'&');
+                            Approvalprocessdiv.innerHTML=newHtml;
+                        }else{
+                                var originalHTML=Approvalprocessdiv.innerHTML;
+                                var newHtml=originalHTML.replace('/apex','');
+                                Approvalprocessdiv.innerHTML=newHtml;
+                        }
+                }
+            });
+        });
     </script>
     <apex:detail relatedList="true" title="true"/>
 </apex:page>
\ No newline at end of file
diff --git a/force-app/main/default/pages/SpecialPrice.page b/force-app/main/default/pages/SpecialPrice.page
index 7490c9d..902a28a 100644
--- a/force-app/main/default/pages/SpecialPrice.page
+++ b/force-app/main/default/pages/SpecialPrice.page
@@ -5,6 +5,45 @@
 <apex:includeScript value="{!URLFOR($Resource.CommonUtilJs)}"/>
 <apex:includeScript value="{!URLFOR($Resource.connection20)}"/>
 <apex:includeScript value="{!URLFOR($Resource.apex20)}"/>
+<style>
+    /*淇℃伅鎻愮ず棰滆壊*/
+body .bPageBlock .pbSubheader, .slds-vf-scope .bPageBlock .pbSubheader{
+	background-color: #08107b !important;;
+    color: #FFF !important;
+}
+body .infoM2, body .infoM3, body .infoM4, .slds-vf-scope .infoM2, .slds-vf-scope .infoM3, .slds-vf-scope .infoM4 {
+    background-color: #08107b !important;
+}
+body .message, .slds-vf-scope .message{
+    background-color: #08107b !important;
+}
+
+body .errorM2 h4,body .errorM3 h4,body .errorM4 h4,.slds-vf-scope .errorM2 h4,.slds-vf-scope .errorM3 h4,.slds-vf-scope .errorM4 h4 {
+    /* color: rgb(255, 255, 255)!important */
+    background-color: rgb(234, 0, 30)!important
+}
+
+body .errorM2,body .errorM3,body .errorM4,.slds-vf-scope .errorM2,.slds-vf-scope .errorM3,.slds-vf-scope .errorM4 {
+    background-color: rgb(234, 0, 30)!important
+}
+
+body .errorM2,body .errorM3,body .errorM4,.slds-vf-scope .errorM2,.slds-vf-scope .errorM3,.slds-vf-scope .errorM4 {
+    background-color: rgb(234, 0, 30)!important
+}
+body .warningM2,body .warningM3,body .warningM4,.slds-vf-scope .warningM2,.slds-vf-scope .warningM3,.slds-vf-scope .warningM4 {
+    background-color: rgb(254, 147, 57)!important;
+    color: rgb(24, 24, 24)!important
+}
+body .confirmM2,body .confirmM3,body .confirmM4,.slds-vf-scope .confirmM2,.slds-vf-scope .confirmM3,.slds-vf-scope .confirmM4 {
+    background-color: rgb(46, 132, 74)!important
+}
+body .pbButton{
+    text-align: left;
+}
+.message .messageText{
+    color: #FFF !important;
+}
+</style>
 <script>
 // window.sfdcPage.appendToOnloadQueue(function() { calonLoad() });
 function onLoad() {
diff --git a/force-app/main/default/pages/SubAuthorizedCreate.page b/force-app/main/default/pages/SubAuthorizedCreate.page
index 123f80c..0a7bf67 100644
--- a/force-app/main/default/pages/SubAuthorizedCreate.page
+++ b/force-app/main/default/pages/SubAuthorizedCreate.page
@@ -14,7 +14,7 @@
                 str += '&CF00N10000008qp8Z_lkid='+getParam('CF00N10000008qp8Z_lkid');
             }
             str += '&nooverride=1';
-            window.open(str,'_self');
+            window.location.href = str;
         }
         function getParam(paramName) {
             paramValue = "", isFound = !1;
diff --git a/force-app/main/default/pages/TenderAttachment.page b/force-app/main/default/pages/TenderAttachment.page
index ca9d429..93cd937 100644
--- a/force-app/main/default/pages/TenderAttachment.page
+++ b/force-app/main/default/pages/TenderAttachment.page
@@ -58,7 +58,7 @@
     <input id="btn2" type="button" value="缂╁皬" onclick="ImageChange('j_id0:testImg',false)" />
     <br/>  -->
      <div style="height: 40px;background-color:#0f218b;width: 100%; ">
-        <h1 style="color: white;margin-left: 45%;font-size: 24px;">鏌ョ湅闄勪欢</h1>
+        <h1 style="color: white;margin-left: 45%;font-size: 24px;">鏌ョ湅鏂囦欢</h1>
       </div>
         <div id="pandiv" style="margin-left: 24%; margin-top: 6%; text-align: center;">
             <apex:image alt="姝ゅ鐨勫浘鍍忔弿杩�" id="testImg" value="" style="display: none;">
@@ -88,7 +88,7 @@
         <script>
             //鎺ユ敹url涓婄殑鍙傛暟
             var queryVal=GetQueryValue('id');
-            var url='/servlet/servlet.FileDownload?file='+queryVal; 
+            var url='/sfc/servlet.shepherd/version/download/'+queryVal; 
             //20201221 liying end
             //document.getElementById("j_id0:testImg").value=url;
             //js鍔ㄦ�佽祴鍊�
@@ -266,14 +266,14 @@
              mouseDownLocation = windowToCanvas(canvas, event.clientX, event.clientY);
              if (isPointInImageArea(mouseDownLocation)) {
               isMouseDown = true;
-              document.title = '鏌ョ湅闄勪欢';
+              document.title = '鏌ョ湅鏂囦欢';
              }
             }
             /**榧犳爣寮硅捣*/
             document.body.onmouseup = function() {
              isMouseDown = false;
              canvas.style.cursor = "default";
-             document.title = '鏌ョ湅闄勪欢';
+             document.title = '鏌ョ湅鏂囦欢';
             }
             /**榧犳爣绉诲姩*/
             pandiv.onmousemove = function(event) {
diff --git a/force-app/main/default/triggers/ContentDocumentLink.trigger b/force-app/main/default/triggers/ContentDocumentLink.trigger
index 466cff4..c185284 100644
--- a/force-app/main/default/triggers/ContentDocumentLink.trigger
+++ b/force-app/main/default/triggers/ContentDocumentLink.trigger
@@ -1,8 +1,6 @@
-trigger ContentDocumentLink on ContentDocumentLink (before insert,after insert,before delete,after delete, before update, after update) {
+trigger ContentDocumentLink on ContentDocumentLink (before insert,after insert,after delete, before update, after update) {
     List<String> rentalIds = new List<String>();
     List<String> attIds = new List<String>();
-    List<String> rentaldelIds = new List<String>();
-    List<String> attdelIds = new List<String>();
     List<String> rentalApplyIds = new List<String>();
     List<String> accIds = new List<String>();
     //20221014 yc 鍖婚櫌瀹℃壒浼樺寲 start
@@ -10,7 +8,6 @@
     //20221014 yc 鍖婚櫌瀹℃壒浼樺寲 end
     // LHJ CHAN-BCLD4P 20190618 Start
     List<String> specIds = new List<String>();
-    List<String> specDelIds = new List<String>();
     // LHJ CHAN-BCLD4P 20190618 End
 
     // MZY SWAG-BXXBKA  2021-02-19 start
@@ -50,13 +47,17 @@
 
     //CHAN-BCNCRB ---XHL----End-----
     if (Trigger.isAfter && Trigger.isInsert) {
+        List<Id> idList = new List<Id>();
         for (ContentDocumentLink link : Trigger.new) {
-            ContentVersion version = [select Id,Title from ContentVersion where ContentDocumentId =: link.ContentDocumentId];
+            idList.add(link.ContentDocumentId);
+        }
+        List<ContentVersion> version = [select Id,Title from ContentVersion where ContentDocumentId in: idList];
+        for (ContentDocumentLink link : Trigger.new) {
             //if (att.Name.toUpperCase() == '鍚堝悓涔�.PDF' && String.valueOf(att.ParentId).startsWith('a0t')) {
             // 娣讳粯銇椼仧濂戠磩鏇搞伄銉曘偂銈ゃ儷鍚嶃伅鎸囧畾銇с亶銇亜
             if (String.valueOf(link.LinkedEntityId).startsWith('a2K')) {
                 rentalIds.add(link.LinkedEntityId);
-                attIds.add(version.Id);
+                attIds.add(version[0].Id);
             }
             if (String.valueOf(link.LinkedEntityId).startsWith('a0t')) {
                 rentalApplyIds.add(link.LinkedEntityId); 
@@ -69,6 +70,7 @@
                 accAppIds.add(link.LinkedEntityId);
             }
             //20221014 yc 鍖婚櫌瀹℃壒浼樺寲 end
+            System.debug(link.LinkedEntityId +'闄堜含姝�');
             if(String.valueOf(link.LinkedEntityId).startsWith(System.Label.Oppor_sepKey)){
                 OpporFileIds.add(link.LinkedEntityId);
             }
@@ -81,7 +83,7 @@
             // MZY SWAG-BXXBKA  2021-02-19 start 
             if(String.valueOf(link.LinkedEntityId).startsWith('a3E')){
                 opdIds.add(link.LinkedEntityId);
-                opdMap.put(link.LinkedEntityId,version.Title);
+                opdMap.put(link.LinkedEntityId,version[0].Title);
              }
             // MZY SWAG-BXXBKA  2021-02-19 end
 
@@ -96,10 +98,10 @@
             if(parentLabel.equals('Rental_Apply_Fault__c')){
                 rentalApplyFaultIds.add(link.LinkedEntityId);
                 if(trentalImages.containskey(link.LinkedEntityId)){
-                    trentalImages.get(link.LinkedEntityId).add(version.Id);
+                    trentalImages.get(link.LinkedEntityId).add(version[0].Id);
                 }else{
                     List<Id> temp = new List<Id>();
-                    temp.add(version.Id);
+                    temp.add(version[0].Id);
                     trentalImages.put(link.LinkedEntityId,temp);
                 }
             }
@@ -165,13 +167,6 @@
     //2023-2-10  sx澶囧搧 澶囧搧妫�娴嬪垎鏋愭姤鍛� end
 
 
-    if (rentaldelIds.size() > 0) {
-        List<Consumable_accessories_invoice__c> rentaldelList = new List<Consumable_accessories_invoice__c>();
-        for (Consumable_accessories_invoice__c ra : [select Id from Consumable_accessories_invoice__c where Invoice_code__c in :rentaldelIds and Attachment_ID__c in :attdelIds]) {
-            rentaldelList.add(ra);
-        }
-        ControllerUtil.delConsumableAccessoriesInvoiceSet(rentaldelList);
-    }
     
     if (rentalIds.size() > 0) {
         List<Consumable_order__c> rentalList = new List<Consumable_order__c>();
@@ -272,7 +267,12 @@
             //20221207 lt 鍖婚櫌瀹℃壒浼樺寲 end
             
         }
-        if (updAccAppList.size() > 0) update updAccAppList;
+        try {
+            if (updAccAppList.size() > 0) update updAccAppList; 
+        } catch (Exception e) {
+            linkList[0].addError(e.getMessage());
+        }
+        
     }
     //20221014 yc 鍖婚櫌瀹℃壒浼樺寲 end
 
@@ -354,12 +354,13 @@
     if(Trigger.isInsert){
         for(ContentDocumentLink link : Trigger.new){
             if(OpporFileUndeleteMap.containsKey(link.LinkedEntityId)){
-                ContentDocument doc = [select Id from ContentDocument where Id =: link.ContentDocumentId];
-                doc.addError('澶囪揣宸插鎵癸紝涓嶅彲鍒犻櫎闄勪欢');
+                // ContentDocument doc = [select Id from ContentDocument where Id =: link.ContentDocumentId];
+                link.addError('澶囪揣宸插鎵癸紝涓嶅彲鍒犻櫎闄勪欢');
                 // link.addError('澶囪揣宸插鎵癸紝涓嶅彲鍒犻櫎闄勪欢');
-
+                System.debug(Trigger.isBefore+'闄堜含姝�');
                 return;
             }else{
+                System.debug(Trigger.isBefore+'姝�');
                 DeleteReIds.add(link.LinkedEntityId);
             }
         }
@@ -403,7 +404,10 @@
                 ofc.Last_upload_user__c = OppordeleteReUserMap.get(ofc.id);
                 System.debug(ofc+'233333333');
             }
-            update reDateList;
+            if(Trigger.isInsert && Trigger.isAfter){
+                update reDateList;
+            }
+            
         }
     }else{
         List<Opportunity_File__c> reDateList = [select id,Last_upload_time__c,
@@ -513,16 +517,11 @@
         }                                            
     }
     // DB202304087063 SFDC绯荤粺闄勪欢涓婁紶鑷姩閫氱煡鍔熻兘寮�鍙戦渶姹� start
-    if (Trigger.isInsert && Trigger.isAfter && false) {
-        AttachmentReQisHandler handler = new AttachmentReQisHandler();
-        handler.run();
+    if (Trigger.isInsert && Trigger.isAfter) {
+            NotetoPdfHandler handler = new NotetoPdfHandler();
+            handler.run();
     }
     // DB202304087063 SFDC绯荤粺闄勪欢涓婁紶鑷姩閫氱煡鍔熻兘寮�鍙戦渶姹� end
-
-
-
-
-
 
 
 
diff --git a/force-app/main/default/triggers/ContentDocumentTrigger.trigger b/force-app/main/default/triggers/ContentDocumentTrigger.trigger
index c61899d..807b2a5 100644
--- a/force-app/main/default/triggers/ContentDocumentTrigger.trigger
+++ b/force-app/main/default/triggers/ContentDocumentTrigger.trigger
@@ -1,55 +1,82 @@
 trigger ContentDocumentTrigger on ContentDocument (before delete) {
-    List<String> rentalIds = new List<String>();
-    List<String> attIds = new List<String>();
+    if((!Test.isRunningTest())&&UserInfo.getUserId()==System.Label.ByPassTrigger){
+        return;
+    }
+    System.debug('enter ContentDocumentTrigger');
     List<String> rentaldelIds = new List<String>();
     List<String> attdelIds = new List<String>();
-    List<String> rentalApplyIds = new List<String>();
-    List<String> accIds = new List<String>();
-    //20221014 yc 鍖婚櫌瀹℃壒浼樺寲 start
-    List<String> accAppIds = new List<String>();
-    //20221014 yc 鍖婚櫌瀹℃壒浼樺寲 end
     // LHJ CHAN-BCLD4P 20190618 Start
-    List<String> specIds = new List<String>();
     List<String> specDelIds = new List<String>();
     // LHJ CHAN-BCLD4P 20190618 End
-
-    // MZY SWAG-BXXBKA  2021-02-19 start
-    List<String> opdIds = new List<String>();
-    Map<String,String> opdMap = new Map<String,String>();
-    // MZY SWAG-BXXBKA  2021-02-19 end
 
     List<String> OpporFileIds = new List<String>();
     Map<String,String> OpporFileUndeleteMap = new Map<String,String>();
     List<String> DeleteReIds = new List<String>();
     Map<String,String> OppordeleteReUserMap = new Map<String,String>();
     Map<String,Datetime> OppordeleteReTimeMap = new Map<String,Datetime>();
-    //CHAN-BCNCRB ---XHL----Start-----
-    List<String> opportunity_FileIds = new List<String>();
 
-    List<String> opportunityFileOrderIds = new List<String>();
     List<String> oFOrderIds = new List<String>();
     Map<String,Boolean> oFOrderIdMap = new Map<String,Boolean>();
 
     // sx 20230210start 澶囧搧鍊熷嚭鐢宠鏁呴殰鎶ュ憡闄勪欢鎻愬彇
-    List<String> rentalApplyFaultIds = new List<String>();
-    Map<String,List<Id>> trentalImages = new Map<String,List<Id>>();
     List<String> rentaldeleteApplyFaultIds = new List<String>();
     Map<String,List<Id>> deleteImages = new Map<String,List<Id>>();
     // sx 20230210end 澶囧搧鍊熷嚭鐢宠鏁呴殰鎶ュ憡闄勪欢鎻愬彇
+
+
+    //deloitte-zhj 鍙戠エ闄勪欢鍒犻櫎 20230901 start
+    String invoiceStart = System.Label.invoiceStart;
+    List<String> rentaldelIdsZhj = new List<String>();
+    List<String> attdelIdsZhj = new List<String>();
+
+    if (Trigger.isBefore && Trigger.isDelete) {
+        for (ContentDocument cd : Trigger.old) {
+            System.debug('cd.Id = ' + cd.Id);
+            List<ContentDocumentLink> cdlList = [SELECT id, LinkedEntityId FROM ContentDocumentLink WHERE ContentDocumentId = :cd.Id];
+            System.debug('cdlList = ' + cdlList);
+            System.debug('cd.Id = ' + cd.Id);
+            for (ContentDocumentLink cdl : cdlList) {
+                if (String.valueOf(cdl.LinkedEntityId).startsWith(invoiceStart)) {
+                    System.debug('String.valueOf(cdl.LinkedEntityId).startsWith(invoiceStart)');
+                    rentaldelIdsZhj.add(cdl.LinkedEntityId);
+                    attdelIdsZhj.add(cd.Id);
+                }
+            }
+        }
+    }
+    if (rentaldelIdsZhj.size() > 0) {
+        System.debug('rentaldelIdsZhj = ' + rentaldelIdsZhj);
+        System.debug('attdelIdsZhj = ' + attdelIdsZhj);
+        List<Consumable_accessories_invoice__c> rentaldelList = new List<Consumable_accessories_invoice__c>();
+        for (Consumable_accessories_invoice__c ra : [
+            SELECT Id
+            FROM Consumable_accessories_invoice__c
+            WHERE Invoice_code__c IN :rentaldelIdsZhj AND Attachment_ID__c IN :attdelIdsZhj
+        ]) {
+            rentaldelList.add(ra);
+        }
+        System.debug('rentaldelList = ' + rentaldelList);
+        ControllerUtil.delConsumableAccessoriesInvoiceSet(rentaldelList);
+    }
+    //deloitte-zhj 鍙戠エ闄勪欢鍒犻櫎 20230901 end
 
     //CHAN-BCNCRB ---XHL----End-----
    
     if (Trigger.isBefore && Trigger.isDelete) {
         // List<Attachment> attDeleteList = new List<Attachment>();
         List<ContentDocumentLink> conDeleteList = new List<ContentDocumentLink>();
+        List<Id> idList = new List<Id>();
         for (ContentDocument doc : Trigger.old) {
-            List<ContentDocumentLink> link = [select LinkedEntityId from ContentDocumentLink where ContentDocumentId =: doc.Id limit 1];
+            idList.add(doc.Id);
+        }
+        List<ContentDocumentLink> link = [select LinkedEntityId from ContentDocumentLink where ContentDocumentId in: idList limit 1];
+        List<ContentVersion> version = [select Id from ContentVersion where ContentDocumentId in: idList];
+        for (ContentDocument doc : Trigger.old) {
             //if (att.Name.toUpperCase() == '鍚堝悓涔�.PDF' && String.valueOf(att.ParentId).startsWith('a0t')) {
             // 娣讳粯銇椼仧濂戠磩鏇搞伄銉曘偂銈ゃ儷鍚嶃伅鎸囧畾銇с亶銇亜
-            ContentVersion version = [select Id from ContentVersion where ContentDocumentId =: doc.Id];
             if (String.valueOf(link[0].LinkedEntityId).startsWith('a2K')) {
                 rentaldelIds.add(link[0].LinkedEntityId);
-                attdelIds.add(version.Id);
+                attdelIds.add(version[0].Id);
             }
             if(String.valueOf(link[0].LinkedEntityId).startsWith(System.Label.Oppor_sepKey)){
                 OpporFileIds.add(link[0].LinkedEntityId);
@@ -69,11 +96,11 @@
             if(parentLabel.equals('Rental_Apply_Fault__c')){
                 rentaldeleteApplyFaultIds.add(link[0].LinkedEntityId);
                 conDeleteList.add(link[0]);
-                if(deleteImages.containskey(version.Id)){
-                    deleteImages.get(link[0].LinkedEntityId).add(version.Id);
+                if(deleteImages.containskey(version[0].Id)){
+                    deleteImages.get(link[0].LinkedEntityId).add(version[0].Id);
                 }else{
                     List<Id> temp = new List<Id>();
-                    temp.add(version.Id);
+                    temp.add(version[0].Id);
                     deleteImages.put(link[0].LinkedEntityId,temp);
                 }
             }
@@ -82,10 +109,10 @@
         //2023-2-10  sx澶囧搧 澶囧搧妫�娴嬪垎鏋愭姤鍛� start
         List<Rental_Apply_Fault__c> rafList = [SELECT Id, Name FROM Rental_Apply_Fault__c WHERE Id IN: rentaldeleteApplyFaultIds AND (status__c = '宸插彂閫�' OR status__c = '宸插弽棣�')];
         for (Rental_Apply_Fault__c raf : rafList) {
-            for (ContentDocumentLink link : conDeleteList) {
-                if (link.LinkedEntityId == raf.Id) {
-                    ContentDocument doc = [select Id from ContentDocument where Id =: link.ContentDocumentId];
-                    doc.addError('闈炶崏妗堜腑鐨勬娴嬪垎鏋愭姤鍛婁笉鍏佽鍒犻櫎宸蹭笂浼犵殑鏁呴殰鍥剧墖');
+            for (ContentDocumentLink link1 : conDeleteList) {
+                if (link1.LinkedEntityId == raf.Id) {
+                    // ContentDocument doc = [select Id from ContentDocument where Id =: link.ContentDocumentId];
+                    link1.addError('闈炶崏妗堜腑鐨勬娴嬪垎鏋愭姤鍛婁笉鍏佽鍒犻櫎宸蹭笂浼犵殑鏁呴殰鍥剧墖');
                 }
             }
         }
@@ -96,22 +123,6 @@
 
     //20221207 lt 鍖婚櫌瀹℃壒浼樺寲 start
     //2023-2-10  sx澶囧搧 澶囧搧妫�娴嬪垎鏋愭姤鍛� start
-    if(rentalApplyFaultIds.size() > 0){
-        List<Rental_Apply_Fault__c> renList = [SELECT Id,AttachmentId1__c,AttachmentId2__c from Rental_Apply_Fault__c where Id in :rentalApplyFaultIds];
-
-        system.debug('updrentalApplyFaultList====='+renList);
-        for(Rental_Apply_Fault__c ren : renList){
-            if(trentalImages.containskey(ren.Id)){ 
-                if (ren.AttachmentId1__c == null) {
-                    ren.AttachmentId1__c = trentalImages.get(ren.id)[0];
-                } else if(ren.AttachmentId2__c == null) {
-                    ren.AttachmentId2__c = trentalImages.get(ren.id)[0];
-                }
-            }
-        }
-        system.debug('updrentalApplyFaultList====='+renList);
-        UPDATE renList;
-    }
 
     if(rentaldeleteApplyFaultIds.size() > 0){
         List<Rental_Apply_Fault__c> renList = [SELECT Id,AttachmentId1__c,AttachmentId2__c from Rental_Apply_Fault__c where Id in :rentaldeleteApplyFaultIds];
@@ -142,157 +153,7 @@
         ControllerUtil.delConsumableAccessoriesInvoiceSet(rentaldelList);
     }
     
-    if (rentalIds.size() > 0) {
-        List<Consumable_order__c> rentalList = new List<Consumable_order__c>();
-        for (Consumable_order__c ra : [select Id from Consumable_order__c where Id in :rentalIds]) {
-            ra.Consumable_pdf_insert_day__c = Date.today();
-            ra.Order_Attachment__c = attIds[0];
-            //ra.Order_status__c = '褰曞叆瀹屾垚';
-            //ra.Contract_pdf_updated__c = true;
-            rentalList.add(ra);
-        }
-        ControllerUtil.updRentalApplyList(rentalList);
-    }
-     if (rentalApplyIds.size() > 0) {
-        List<Rental_Apply__c> rentalApplyList = new List<Rental_Apply__c>();
-        for (Rental_Apply__c ra : [select Id from Rental_Apply__c where Id in :rentalApplyIds]) {
-            ra.Contract_pdf_update_day__c = Date.today();
-            ra.Contract_pdf_updated__c = true;
-            rentalApplyList.add(ra);
-        }
-        ControllerUtil.updRentalApplyList(rentalApplyList);
-    }
-
-    if (accIds.size() > 0) {
-        Map<String, String> attMap = new Map<String, String>();
-        // List<Attachment> attList = [select Id, ParentId from Attachment where ParentId = :accIds order by ParentId];
-        List<ContentDocumentLink> linkList = [select LinkedEntityId from ContentDocumentLink where LinkedEntityId =: accIds order by LinkedEntityId];
-        for (ContentDocumentLink link : linkList) {
-            attMap.put(link.LinkedEntityId, link.LinkedEntityId);
-        }
-        List<Account> updAccList = new List<Account>();
-
-        //20221207 lt 鍖婚櫌瀹℃壒浼樺寲 start
-        List<Account> accList = [select id,Name,
-                                                         Is_Active__c
-                                               from Account
-                                               where id in:accIds ];
-        //20221207 lt 鍖婚櫌瀹℃壒浼樺寲 end
-
-        for (String accid : accIds) {
-            if(accList.size() > 0){
-                // Account acc = new Account(Id = accid);
-                //20221207 lt 鍖婚櫌瀹℃壒浼樺寲 start
-                for(Account acc : accList){                    
-
-                    if(Trigger.isDelete && (Trigger.isBefore || Trigger.isAfter)){
-                        for(ContentDocument doc : Trigger.old){
-                            // if(attMap.containsKey(att.ParentID) && acc.Is_Active__c != '鑽夋涓�'){
-                            if(acc.Is_Active__c != '鑽夋涓�'){
-                                doc.addError('闈炶崏妗堜腑锛岄檮浠朵笉鍏佽鍒犻櫎銆�');
-                
-                                return;
-                            }
-                        }
-                    }
-                    acc.Is_upload_file__c = attMap.containsKey(accid);
-                    updAccList.add(acc);
-                }
-            }
-            //20221207 lt 鍖婚櫌瀹℃壒浼樺寲 end
-        }
-
-        // for (String accid : accIds) {
-        //     Account acc = new Account(Id = accid);
-        //     acc.Is_upload_file__c = attMap.containsKey(accid);
-        //     updAccList.add(acc);
-        // }
-        if (updAccList.size() > 0) update updAccList;
-    }
-
-    //20221014 yc 鍖婚櫌瀹℃壒浼樺寲 start
-    if (accAppIds.size() > 0) {
-        Map<String, String> attMap = new Map<String, String>();
-        // List<Attachment> attList = [select Id, ParentId from Attachment where ParentId = :accAppIds order by ParentId];
-        List<ContentDocumentLink> linkList = [select LinkedEntityId from ContentDocumentLink where LinkedEntityId =: accAppIds order by LinkedEntityId];
-        for (ContentDocumentLink link : linkList) {
-            attMap.put(link.LinkedEntityId, link.LinkedEntityId);
-        }
-        List<Account_Delay_Apply__c> updAccAppList = new List<Account_Delay_Apply__c>();
-        
-        //20221207 lt 鍖婚櫌瀹℃壒浼樺寲 start
-        List<Account_Delay_Apply__c> adaList = [select id,Name,
-                                                         Is_Active__c
-                                               from Account_Delay_Apply__c 
-                                               where id in:accAppIds ];
-        //20221207 lt 鍖婚櫌瀹℃壒浼樺寲 end
-
-        for (String accappid : accAppIds) {
-            if(adaList.size() > 0){
-                // Account_Delay_Apply__c accapp = new Account_Delay_Apply__c(Id = accappid);
-                //20221207 lt 鍖婚櫌瀹℃壒浼樺寲 start
-                
-                for(Account_Delay_Apply__c accapp : adaList){                    
-                    if(Trigger.isDelete){
-                        for(ContentDocument doc : Trigger.old){
-                            // if(attMap.containsKey(att.ParentID) && accapp.Is_Active__c != '鑽夋涓�'){
-                            if(accapp.Is_Active__c != '鑽夋涓�'){
-                                doc.addError('闈炶崏妗堜腑锛岄檮浠朵笉鍏佽鍒犻櫎銆�');
-                
-                                return;
-                            }
-                        }
-                    }
-                    accapp.Is_upload_file__c = attMap.containsKey(accappid);
-                    updAccAppList.add(accapp);
-                }
-                
-            }
-            
-            //20221207 lt 鍖婚櫌瀹℃壒浼樺寲 end
-            
-        }
-        if (updAccAppList.size() > 0) update updAccAppList;
-    }
-    //20221014 yc 鍖婚櫌瀹℃壒浼樺寲 end
-
-    // LHJ CHAN-BCLD4P 20190618 Start
-    if (specIds.size() > 0) {
-        
-        Map<String, String> attMap = new Map<String, String>();
-        // List<Attachment> attList = [select Id, ParentId from Attachment where ParentId = :specIds order by ParentId];
-        List<ContentDocumentLink> linkList = [select LinkedEntityId from ContentDocumentLink where LinkedEntityId =: specIds order by LinkedEntityId];
-        for (ContentDocumentLink link : linkList) {
-            attMap.put(link.LinkedEntityId, link.LinkedEntityId);
-        }
-        List<OpportunitySpecialApply__c> updSpecList = new List<OpportunitySpecialApply__c>();
-        for (String specId : specIds) {
-            OpportunitySpecialApply__c spec = new OpportunitySpecialApply__c(Id = specId);
-            spec.Is_upload_file__c = attMap.containsKey(specId);
-            updSpecList.add(spec);
-        }
-        if (updSpecList.size() > 0) update updSpecList;
-    }
-    // LHJ CHAN-BCLD4P 20190618 End
     
-    // MZY SWAG-BXXBKA  2021-02-19 start
-    System.debug('SWAG-BXXBKA start');
-    if (opdIds.size()>0) {
-        List<OPDPlan__c> updateOPDs = new List<OPDPlan__c>();
-
-        OPDPlan__c tempOPD = new OPDPlan__c();
-        for (String i :opdIds ) {
-            tempOPD.id = i;
-            tempOPD.AttachmentCertificate__c = opdMap.get(i);
-            updateOPDs.add(tempOPD);
-        }
-        System.debug('涓存椂OPD :'+tempOPD);
-        if (updateOPDs.size()>0){
-            update updateOPDs;
-        }
-    }
-    System.debug('SWAG-BXXBKA end');
-    // MZY SWAG-BXXBKA  2021-02-19 end
 
     if(OpporFileIds.size()>0){
         List<Opportunity_File__c> OpporList = [select id,Last_upload_time__c,
@@ -323,8 +184,12 @@
 
 
     if(Trigger.isDelete && Trigger.isBefore){
+        List<Id> idList = new List<Id>();
         for(ContentDocument doc : Trigger.old){
-            List<ContentDocumentLink> link = [select LinkedEntityId from ContentDocumentLink where ContentDocumentId =: doc.Id];
+            idList.add(doc.Id);
+        }
+        List<ContentDocumentLink> link = [select LinkedEntityId from ContentDocumentLink where ContentDocumentId in: idList];
+        for(ContentDocument doc : Trigger.old){
             if(OpporFileUndeleteMap.containsKey(link[0].LinkedEntityId)){
                 doc.addError('澶囪揣宸插鎵癸紝涓嶅彲鍒犻櫎闄勪欢');
                 return;
@@ -333,10 +198,15 @@
         }
     }
     if(Trigger.isDelete && Trigger.isAfter){
+        List<Id> idList = new List<Id>();
         for(ContentDocument doc : Trigger.old){
-            List<ContentDocumentLink> link = [select LinkedEntityId from ContentDocumentLink where ContentDocumentId =: doc.Id];
+            idList.add(doc.Id);
+        }
+        List<ContentDocumentLink> link = [select LinkedEntityId from ContentDocumentLink where ContentDocumentId in: idList];
+        for(ContentDocument doc : Trigger.old){
+            // List<ContentDocumentLink> link = [select LinkedEntityId from ContentDocumentLink where ContentDocumentId =: doc.Id];
             if(OpporFileUndeleteMap.containsKey(link[0].LinkedEntityId)){
-                doc.addError('澶囪揣宸插鎵癸紝涓嶅彲鍒犻櫎闄勪欢');
+                link[0].addError('澶囪揣宸插鎵癸紝涓嶅彲鍒犻櫎闄勪欢');
                 return;
             }else{
                 DeleteReIds.add(link[0].LinkedEntityId);
@@ -403,72 +273,6 @@
         }
     }
     
-
-    //CHAN-BCNCRB ---XHL----Start-----
-    if (opportunity_FileIds.size() > 0) {
-        List<Opportunity_File__c> opporList = [select id,Last_upload_time__c,
-                                                            Is_Locked__c,
-                                                            Last_upload_user__c,
-                                                            Stock_apply_time__c,
-                                                            Oppor_File_Stage__c
-                                                        from Opportunity_File__c 
-                                                        where id in:opportunity_FileIds And Oppor_File_Stage__c = 'G'];
-        List<String>  ofIds = new  List<String>();                                              
-        if (opporList.size() > 0) {
-
-            for (Opportunity_File__c oppf : opporList) {
-                ofIds.add(oppf.Id);
-            }
-
-            if (ofIds.size() > 0 ) {
-                //  List<Attachment> atcList = [select id,ParentId,createddate,createdbyid from Attachment where ParentId in:ofIds];
-                List<ContentDocumentLink> linkList = [select ContentDocumentId from ContentDocumentLink where LinkedEntityId in: ofIds];
-
-                List<Id> idList = new List<Id>();
-                for (ContentDocumentLink link : linkList) {
-                    idList.add(link.ContentDocumentId);
-                }
-                List<ContentDocument> docList = [select Id from ContentDocument where Id in: idList];
-                if (docList.size() > 0) {
-                    delete docList;
-                }
-            }
-           
-            
-        }
-    }
-    //CHAN-BCNCRB ---XHL----End-----
-    
-
-    if (opportunityFileOrderIds.size() > 0) {
-        List<OpportunityFileOrder__c> ofoList = [select id,
-                                                            OpporFileStage__c
-                                                        from OpportunityFileOrder__c 
-                                                        where Id in:opportunityFileOrderIds And OpporFileStage__c = 'G'];
-        List<String>  ofoIds = new  List<String>();                                              
-        if (ofoList.size() > 0) {
-
-            for (OpportunityFileOrder__c ofo : ofoList) {
-                ofoIds.add(ofo.Id);
-            }
-
-            if (ofoIds.size() > 0 ) {
-                //  List<Attachment> atcList = [select id,ParentId,createddate,createdbyid from Attachment where ParentId in:ofoIds];
-                List<ContentDocumentLink> linkList = [select ContentDocumentId from ContentDocumentLink where LinkedEntityId in:ofoIds];
-
-                List<Id> idList = new List<Id>();
-                for (ContentDocumentLink link : linkList) {
-                    idList.add(link.ContentDocumentId);
-                }
-                List<ContentDocument> docList = [select Id from ContentDocument where Id in: idList];
-                if (docList.size() > 0) {
-                    delete docList;
-                }
-            }
-           
-            
-        }
-    }
 
     if (oFOrderIdMap.size() > 0) {
 

--
Gitblit v1.9.1