From 6be68288146f38a6e99e5237870aa0709c98ee60 Mon Sep 17 00:00:00 2001
From: KKbes <1620284052@qq.com>
Date: 星期三, 26 七月 2023 16:03:48 +0800
Subject: [PATCH] 学会和客户人员

---
 force-app/main/default/aura/lexUpdateTimeReplyAura/lexUpdateTimeReplyAura.css          |    2 
 force-app/main/default/aura/lexCopyPIContarctAura/lexCopyPIContarctAura.cmp            |   10 +
 force-app/main/default/aura/lexCopyPIContarctAura/lexCopyPIContarctAura.cmp-meta.xml   |    5 
 force-app/main/default/aura/lexUpdateTimeReplyAura/lexUpdateTimeReplyAura.cmp          |   10 +
 force-app/main/default/aura/lexUpdateTimeReplyAura/lexUpdateTimeReplyAuraHelper.js     |    5 
 force-app/main/default/aura/lexCopyPIContarctAura/lexCopyPIContarctAura.css            |    2 
 force-app/main/default/aura/lexUpdateTimeReplyAura/lexUpdateTimeReplyAura.cmp-meta.xml |    5 
 force-app/main/default/lwc/lexUpdateTimeReply/lexUpdateTimeReply.js-meta.xml           |   11 +
 force-app/main/default/lwc/lexSendToComPlat/lexSendToComPlat.js                        |   70 ++++++++++
 force-app/main/default/aura/lexSendToComPlatAura/lexSendToComPlatAura.cmp-meta.xml     |    5 
 force-app/main/default/lwc/lexSendToComPlat/lexSendToComPlat.js-meta.xml               |   11 +
 force-app/main/default/lwc/lexSendToComPlat/lexSendToComPlat.html                      |    5 
 force-app/main/default/aura/lexSendToComPlatAura/lexSendToComPlatAuraController.js     |    5 
 force-app/main/default/lwc/lexCampaignMember/lexCampaignMember.html                    |    5 
 force-app/main/default/classes/LexMeetingCostsController.cls-meta.xml                  |    4 
 force-app/main/default/aura/lexUpdateTimeReplyAura/lexUpdateTimeReplyAuraController.js |    5 
 force-app/main/default/aura/lexCampaignMemberAura/lexCampaignMemberAuraController.js   |    5 
 force-app/main/default/aura/lexCampaignMemberAura/lexCampaignMemberAuraHelper.js       |    5 
 force-app/main/default/aura/lexCopyPIContarctAura/lexCopyPIContarctAuraHelper.js       |    5 
 force-app/main/default/aura/lexSendToComPlatAura/lexSendToComPlatAura.css              |    2 
 force-app/main/default/aura/lexSendToComPlatAura/lexSendToComPlatAura.cmp              |   10 +
 force-app/main/default/classes/LexMeetingCostsController.cls                           |    1 
 force-app/main/default/lwc/lexUpdateTimeReply/lexUpdateTimeReply.js                    |   90 ++++++++++++
 force-app/main/default/aura/lexCopyPIContarctAura/lexCopyPIContarctAuraController.js   |    5 
 force-app/main/default/lwc/lexCampaignMember/lexCampaignMember.js                      |   40 +++++
 force-app/main/default/aura/lexCampaignMemberAura/lexCampaignMemberAura.cmp            |   10 +
 force-app/main/default/lwc/lexCopyPIContarct/lexCopyPIContarct.js-meta.xml             |   11 +
 force-app/main/default/lwc/lexCopyPIContarct/lexCopyPIContarct.html                    |    5 
 force-app/main/default/lwc/lexUpdateTimeReply/lexUpdateTimeReply.html                  |    5 
 force-app/main/default/aura/lexCampaignMemberAura/lexCampaignMemberAura.css            |    2 
 force-app/main/default/lwc/lexCopyPIContarct/lexCopyPIContarct.js                      |   37 +++++
 force-app/main/default/lwc/lexCampaignMember/lexCampaignMember.js-meta.xml             |   11 +
 force-app/main/default/aura/lexSendToComPlatAura/lexSendToComPlatAuraHelper.js         |    5 
 force-app/main/default/aura/lexCampaignMemberAura/lexCampaignMemberAura.cmp-meta.xml   |    5 
 34 files changed, 411 insertions(+), 3 deletions(-)

diff --git a/force-app/main/default/aura/lexCampaignMemberAura/lexCampaignMemberAura.cmp b/force-app/main/default/aura/lexCampaignMemberAura/lexCampaignMemberAura.cmp
new file mode 100644
index 0000000..1d54a57
--- /dev/null
+++ b/force-app/main/default/aura/lexCampaignMemberAura/lexCampaignMemberAura.cmp
@@ -0,0 +1,10 @@
+<aura:component implements="flexipage:availableForAllPageTypes,force:lightningQuickActionWithoutHeader,force:hasRecordId,lightning:actionOverride,lightning:isUrlAddressable" access="global"> 
+    <aura:attribute name="recordId" type="String" />
+    <aura:handler name="render" value="{!this}"  action="{!c.closeModal}" />
+    <aura:attribute name="isDoneRendering" type="Boolean" default="false"/>
+    <div class="exampleHolder">
+
+        <c:lexCampaignMember recordId="{!v.recordId}" />
+        
+    </div>
+</aura:component>
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexCampaignMemberAura/lexCampaignMemberAura.cmp-meta.xml b/force-app/main/default/aura/lexCampaignMemberAura/lexCampaignMemberAura.cmp-meta.xml
new file mode 100644
index 0000000..632b900
--- /dev/null
+++ b/force-app/main/default/aura/lexCampaignMemberAura/lexCampaignMemberAura.cmp-meta.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<AuraDefinitionBundle xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>54.0</apiVersion>
+    <description>A Lightning Component Bundle</description>
+</AuraDefinitionBundle>
diff --git a/force-app/main/default/aura/lexCampaignMemberAura/lexCampaignMemberAura.css b/force-app/main/default/aura/lexCampaignMemberAura/lexCampaignMemberAura.css
new file mode 100644
index 0000000..a5839d4
--- /dev/null
+++ b/force-app/main/default/aura/lexCampaignMemberAura/lexCampaignMemberAura.css
@@ -0,0 +1,2 @@
+.THIS {
+}
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexCampaignMemberAura/lexCampaignMemberAuraController.js b/force-app/main/default/aura/lexCampaignMemberAura/lexCampaignMemberAuraController.js
new file mode 100644
index 0000000..bb1e8ab
--- /dev/null
+++ b/force-app/main/default/aura/lexCampaignMemberAura/lexCampaignMemberAuraController.js
@@ -0,0 +1,5 @@
+({
+	myAction : function(component, event, helper) {
+		
+	}
+})
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexCampaignMemberAura/lexCampaignMemberAuraHelper.js b/force-app/main/default/aura/lexCampaignMemberAura/lexCampaignMemberAuraHelper.js
new file mode 100644
index 0000000..24be77e
--- /dev/null
+++ b/force-app/main/default/aura/lexCampaignMemberAura/lexCampaignMemberAuraHelper.js
@@ -0,0 +1,5 @@
+({
+	helperMethod : function() {
+		
+	}
+})
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexCopyPIContarctAura/lexCopyPIContarctAura.cmp b/force-app/main/default/aura/lexCopyPIContarctAura/lexCopyPIContarctAura.cmp
new file mode 100644
index 0000000..b7270f4
--- /dev/null
+++ b/force-app/main/default/aura/lexCopyPIContarctAura/lexCopyPIContarctAura.cmp
@@ -0,0 +1,10 @@
+<aura:component implements="flexipage:availableForAllPageTypes,force:lightningQuickActionWithoutHeader,force:hasRecordId,lightning:actionOverride,lightning:isUrlAddressable" access="global"> 
+    <aura:attribute name="recordId" type="String" />
+    <aura:handler name="render" value="{!this}"  action="{!c.closeModal}" />
+    <aura:attribute name="isDoneRendering" type="Boolean" default="false"/>
+    <div class="exampleHolder">
+
+        <c:lexCopyPIContarct recordId="{!v.recordId}" />
+        
+    </div>
+</aura:component>
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexCopyPIContarctAura/lexCopyPIContarctAura.cmp-meta.xml b/force-app/main/default/aura/lexCopyPIContarctAura/lexCopyPIContarctAura.cmp-meta.xml
new file mode 100644
index 0000000..632b900
--- /dev/null
+++ b/force-app/main/default/aura/lexCopyPIContarctAura/lexCopyPIContarctAura.cmp-meta.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<AuraDefinitionBundle xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>54.0</apiVersion>
+    <description>A Lightning Component Bundle</description>
+</AuraDefinitionBundle>
diff --git a/force-app/main/default/aura/lexCopyPIContarctAura/lexCopyPIContarctAura.css b/force-app/main/default/aura/lexCopyPIContarctAura/lexCopyPIContarctAura.css
new file mode 100644
index 0000000..a5839d4
--- /dev/null
+++ b/force-app/main/default/aura/lexCopyPIContarctAura/lexCopyPIContarctAura.css
@@ -0,0 +1,2 @@
+.THIS {
+}
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexCopyPIContarctAura/lexCopyPIContarctAuraController.js b/force-app/main/default/aura/lexCopyPIContarctAura/lexCopyPIContarctAuraController.js
new file mode 100644
index 0000000..bb1e8ab
--- /dev/null
+++ b/force-app/main/default/aura/lexCopyPIContarctAura/lexCopyPIContarctAuraController.js
@@ -0,0 +1,5 @@
+({
+	myAction : function(component, event, helper) {
+		
+	}
+})
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexCopyPIContarctAura/lexCopyPIContarctAuraHelper.js b/force-app/main/default/aura/lexCopyPIContarctAura/lexCopyPIContarctAuraHelper.js
new file mode 100644
index 0000000..24be77e
--- /dev/null
+++ b/force-app/main/default/aura/lexCopyPIContarctAura/lexCopyPIContarctAuraHelper.js
@@ -0,0 +1,5 @@
+({
+	helperMethod : function() {
+		
+	}
+})
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexSendToComPlatAura/lexSendToComPlatAura.cmp b/force-app/main/default/aura/lexSendToComPlatAura/lexSendToComPlatAura.cmp
new file mode 100644
index 0000000..1233165
--- /dev/null
+++ b/force-app/main/default/aura/lexSendToComPlatAura/lexSendToComPlatAura.cmp
@@ -0,0 +1,10 @@
+<aura:component implements="flexipage:availableForAllPageTypes,force:lightningQuickActionWithoutHeader,force:hasRecordId,lightning:actionOverride,lightning:isUrlAddressable" access="global"> 
+    <aura:attribute name="recordId" type="String" />
+    <aura:handler name="render" value="{!this}"  action="{!c.closeModal}" />
+    <aura:attribute name="isDoneRendering" type="Boolean" default="false"/>
+    <div class="exampleHolder">
+S
+        <c:lexSendToComPlat recordId="{!v.recordId}" />
+        
+    </div>
+</aura:component>
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexSendToComPlatAura/lexSendToComPlatAura.cmp-meta.xml b/force-app/main/default/aura/lexSendToComPlatAura/lexSendToComPlatAura.cmp-meta.xml
new file mode 100644
index 0000000..632b900
--- /dev/null
+++ b/force-app/main/default/aura/lexSendToComPlatAura/lexSendToComPlatAura.cmp-meta.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<AuraDefinitionBundle xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>54.0</apiVersion>
+    <description>A Lightning Component Bundle</description>
+</AuraDefinitionBundle>
diff --git a/force-app/main/default/aura/lexSendToComPlatAura/lexSendToComPlatAura.css b/force-app/main/default/aura/lexSendToComPlatAura/lexSendToComPlatAura.css
new file mode 100644
index 0000000..a5839d4
--- /dev/null
+++ b/force-app/main/default/aura/lexSendToComPlatAura/lexSendToComPlatAura.css
@@ -0,0 +1,2 @@
+.THIS {
+}
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexSendToComPlatAura/lexSendToComPlatAuraController.js b/force-app/main/default/aura/lexSendToComPlatAura/lexSendToComPlatAuraController.js
new file mode 100644
index 0000000..bb1e8ab
--- /dev/null
+++ b/force-app/main/default/aura/lexSendToComPlatAura/lexSendToComPlatAuraController.js
@@ -0,0 +1,5 @@
+({
+	myAction : function(component, event, helper) {
+		
+	}
+})
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexSendToComPlatAura/lexSendToComPlatAuraHelper.js b/force-app/main/default/aura/lexSendToComPlatAura/lexSendToComPlatAuraHelper.js
new file mode 100644
index 0000000..24be77e
--- /dev/null
+++ b/force-app/main/default/aura/lexSendToComPlatAura/lexSendToComPlatAuraHelper.js
@@ -0,0 +1,5 @@
+({
+	helperMethod : function() {
+		
+	}
+})
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexUpdateTimeReplyAura/lexUpdateTimeReplyAura.cmp b/force-app/main/default/aura/lexUpdateTimeReplyAura/lexUpdateTimeReplyAura.cmp
new file mode 100644
index 0000000..a4afe8a
--- /dev/null
+++ b/force-app/main/default/aura/lexUpdateTimeReplyAura/lexUpdateTimeReplyAura.cmp
@@ -0,0 +1,10 @@
+<aura:component implements="flexipage:availableForAllPageTypes,force:lightningQuickActionWithoutHeader,force:hasRecordId,lightning:actionOverride,lightning:isUrlAddressable" access="global"> 
+    <aura:attribute name="recordId" type="String" />
+    <aura:handler name="render" value="{!this}"  action="{!c.closeModal}" />
+    <aura:attribute name="isDoneRendering" type="Boolean" default="false"/>
+    <div class="exampleHolder">
+
+        <c:lexUpdateTimeReply recordId="{!v.recordId}" />
+        
+    </div>
+</aura:component>
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexUpdateTimeReplyAura/lexUpdateTimeReplyAura.cmp-meta.xml b/force-app/main/default/aura/lexUpdateTimeReplyAura/lexUpdateTimeReplyAura.cmp-meta.xml
new file mode 100644
index 0000000..632b900
--- /dev/null
+++ b/force-app/main/default/aura/lexUpdateTimeReplyAura/lexUpdateTimeReplyAura.cmp-meta.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<AuraDefinitionBundle xmlns="http://soap.sforce.com/2006/04/metadata">
+    <apiVersion>54.0</apiVersion>
+    <description>A Lightning Component Bundle</description>
+</AuraDefinitionBundle>
diff --git a/force-app/main/default/aura/lexUpdateTimeReplyAura/lexUpdateTimeReplyAura.css b/force-app/main/default/aura/lexUpdateTimeReplyAura/lexUpdateTimeReplyAura.css
new file mode 100644
index 0000000..a5839d4
--- /dev/null
+++ b/force-app/main/default/aura/lexUpdateTimeReplyAura/lexUpdateTimeReplyAura.css
@@ -0,0 +1,2 @@
+.THIS {
+}
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexUpdateTimeReplyAura/lexUpdateTimeReplyAuraController.js b/force-app/main/default/aura/lexUpdateTimeReplyAura/lexUpdateTimeReplyAuraController.js
new file mode 100644
index 0000000..bb1e8ab
--- /dev/null
+++ b/force-app/main/default/aura/lexUpdateTimeReplyAura/lexUpdateTimeReplyAuraController.js
@@ -0,0 +1,5 @@
+({
+	myAction : function(component, event, helper) {
+		
+	}
+})
\ No newline at end of file
diff --git a/force-app/main/default/aura/lexUpdateTimeReplyAura/lexUpdateTimeReplyAuraHelper.js b/force-app/main/default/aura/lexUpdateTimeReplyAura/lexUpdateTimeReplyAuraHelper.js
new file mode 100644
index 0000000..24be77e
--- /dev/null
+++ b/force-app/main/default/aura/lexUpdateTimeReplyAura/lexUpdateTimeReplyAuraHelper.js
@@ -0,0 +1,5 @@
+({
+	helperMethod : function() {
+		
+	}
+})
\ No newline at end of file
diff --git a/force-app/main/default/classes/LexMeetingCostsController.cls b/force-app/main/default/classes/LexMeetingCostsController.cls
index 0e9257b..a3a748b 100644
--- a/force-app/main/default/classes/LexMeetingCostsController.cls
+++ b/force-app/main/default/classes/LexMeetingCostsController.cls
@@ -14,6 +14,7 @@
     }
 
 
+
     @AuraEnabled
     public static groupmember  judgeMumber(String UserId){
         groupmember res =new groupmember();
diff --git a/force-app/main/default/classes/LexMeetingCostsController.cls-meta.xml b/force-app/main/default/classes/LexMeetingCostsController.cls-meta.xml
index 0212e63..d75b058 100644
--- a/force-app/main/default/classes/LexMeetingCostsController.cls-meta.xml
+++ b/force-app/main/default/classes/LexMeetingCostsController.cls-meta.xml
@@ -1,7 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <ApexClass xmlns="http://soap.sforce.com/2006/04/metadata">
-    
     <apiVersion>51.0</apiVersion>
     <status>Active</status>
-
-</ApexClass>
\ No newline at end of file
+</ApexClass>
diff --git a/force-app/main/default/lwc/lexCampaignMember/lexCampaignMember.html b/force-app/main/default/lwc/lexCampaignMember/lexCampaignMember.html
new file mode 100644
index 0000000..c444cc3
--- /dev/null
+++ b/force-app/main/default/lwc/lexCampaignMember/lexCampaignMember.html
@@ -0,0 +1,5 @@
+<template>
+    <div class="Attachment" 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/lexCampaignMember/lexCampaignMember.js b/force-app/main/default/lwc/lexCampaignMember/lexCampaignMember.js
new file mode 100644
index 0000000..b403186
--- /dev/null
+++ b/force-app/main/default/lwc/lexCampaignMember/lexCampaignMember.js
@@ -0,0 +1,40 @@
+import { LightningElement, track, wire,api } from 'lwc';
+import { CurrentPageReference } from "lightning/navigation";
+import { CloseActionScreenEvent } from 'lightning/actions';
+import { ShowToastEvent } from 'lightning/platformShowToastEvent';
+export default class lexCampaignMember extends LightningElement {
+	@api recordId;
+	IsLoading=true;
+	Campaign;
+
+	@wire(CurrentPageReference)
+    getStateParameters(currentPageReference) {
+        if (currentPageReference) {
+          const urlValue = currentPageReference.state.recordId;
+          if (urlValue) {
+            let str = `${urlValue}`;
+            this.recordId = str;
+          }
+        }
+    }
+
+    connectedCallback(){
+        this.CampaignMember().then(result => {
+            this.IsLoading=false;
+          	this.dispatchEvent(new CloseActionScreenEvent());
+        }).catch(error => {
+			const eventInItError = new ShowToastEvent({
+	           	message:
+	            error.message,
+	            variant : 'error'
+        	});
+        	this.dispatchEvent(eventInItError);
+        });
+    }
+
+    async CampaignMember (){
+    	console.log(this.recordId);
+    	window.open("/apex/CampaignMember?id=" + this.recordId,'CampaignMember','height=400,width=890,top=0,left=0,toolbar=no,menubar=no,scrollbars=yes,resizable=no,location=no,status=no');
+    }
+
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexCampaignMember/lexCampaignMember.js-meta.xml b/force-app/main/default/lwc/lexCampaignMember/lexCampaignMember.js-meta.xml
new file mode 100644
index 0000000..c439d77
--- /dev/null
+++ b/force-app/main/default/lwc/lexCampaignMember/lexCampaignMember.js-meta.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexCampaignMember">
+    <apiVersion>51.0</apiVersion>
+    <isExposed>true</isExposed>
+    <targets>
+        <target>lightning__RecordPage</target>
+        <target>lightning__AppPage</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/lexCopyPIContarct/lexCopyPIContarct.html b/force-app/main/default/lwc/lexCopyPIContarct/lexCopyPIContarct.html
new file mode 100644
index 0000000..c444cc3
--- /dev/null
+++ b/force-app/main/default/lwc/lexCopyPIContarct/lexCopyPIContarct.html
@@ -0,0 +1,5 @@
+<template>
+    <div class="Attachment" 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/lexCopyPIContarct/lexCopyPIContarct.js b/force-app/main/default/lwc/lexCopyPIContarct/lexCopyPIContarct.js
new file mode 100644
index 0000000..9036254
--- /dev/null
+++ b/force-app/main/default/lwc/lexCopyPIContarct/lexCopyPIContarct.js
@@ -0,0 +1,37 @@
+import { LightningElement, track, wire,api } from 'lwc';
+import { CurrentPageReference } from "lightning/navigation";
+import { CloseActionScreenEvent } from 'lightning/actions';
+import { ShowToastEvent } from 'lightning/platformShowToastEvent';
+export default class lexCopyPIContarct extends LightningElement {
+	@api recordId;
+	IsLoading=true;
+
+	@wire(CurrentPageReference)
+    getStateParameters(currentPageReference) {
+        if (currentPageReference) {
+          const urlValue = currentPageReference.state.recordId;
+          if (urlValue) {
+            let str = `${urlValue}`;
+            this.recordId = str;
+          }
+        }
+    }
+
+    connectedCallback(){
+        this.CopyPI().then(result => {
+            this.IsLoading=false;
+          	this.dispatchEvent(new CloseActionScreenEvent());
+        }).catch(error => {
+			const eventInItError = new ShowToastEvent({
+	           	message:
+	            error.message,
+	            variant : 'error'
+        	});
+        	this.dispatchEvent(eventInItError);
+        });
+    }
+
+    async CopyPI(){
+    	window.location.href = '/'+this.recordId+'/e?newclone=1';	
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexCopyPIContarct/lexCopyPIContarct.js-meta.xml b/force-app/main/default/lwc/lexCopyPIContarct/lexCopyPIContarct.js-meta.xml
new file mode 100644
index 0000000..002c363
--- /dev/null
+++ b/force-app/main/default/lwc/lexCopyPIContarct/lexCopyPIContarct.js-meta.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexCopyPIContarct">
+    <apiVersion>51.0</apiVersion>
+    <isExposed>true</isExposed>
+    <targets>
+        <target>lightning__RecordPage</target>
+        <target>lightning__AppPage</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/lexSendToComPlat/lexSendToComPlat.html b/force-app/main/default/lwc/lexSendToComPlat/lexSendToComPlat.html
new file mode 100644
index 0000000..c444cc3
--- /dev/null
+++ b/force-app/main/default/lwc/lexSendToComPlat/lexSendToComPlat.html
@@ -0,0 +1,5 @@
+<template>
+    <div class="Attachment" 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/lexSendToComPlat/lexSendToComPlat.js b/force-app/main/default/lwc/lexSendToComPlat/lexSendToComPlat.js
new file mode 100644
index 0000000..60d11fc
--- /dev/null
+++ b/force-app/main/default/lwc/lexSendToComPlat/lexSendToComPlat.js
@@ -0,0 +1,70 @@
+import { LightningElement, track, wire,api } from 'lwc';
+import { ShowToastEvent } from 'lightning/platformShowToastEvent';
+import { CurrentPageReference } from "lightning/navigation";
+import { CloseActionScreenEvent } from 'lightning/actions';
+const event1 = new ShowToastEvent({
+	            	message:
+	                "璇ユ椿鍔ㄤ俊鎭凡缁忓湪鏅烘収鍖荤枟,鏃犳硶閲嶅鍙戦��!",
+	                variant : 'error'
+});
+
+const event2 = new ShowToastEvent({
+	            	message:
+	                "鍙戦�佹垚鍔燂紝璇峰湪鏅烘収鍖荤枟涓煡鐪�!",
+	                variant : 'success'
+});
+import init  from '@salesforce/apex/LexSubmitCampaignController.initSendToComPlat';
+import SendToComPlatUpdate  from '@salesforce/apex/LexSubmitCampaignController.SendToComPlatUpdate';
+export default class lexSendToComPlat extends LightningElement {
+	@api recordId;
+	IsLoading=true;
+	Campaign;
+
+
+	@wire(CurrentPageReference)
+    getStateParameters(currentPageReference) {
+        if (currentPageReference) {
+          const urlValue = currentPageReference.state.recordId;
+          if (urlValue) {
+            let str = `${urlValue}`;
+            this.recordId = str;
+          }
+        }
+    }
+
+    connectedCallback(){
+        init({
+            recordId: this.recordId
+        }).then(result => {
+            if (result != null) {
+                this.Campaign = result;
+                console.log(this.Campaign);
+                this.SendToComPlat().then(result=>{
+               	this.IsLoading=false;
+            	this.dispatchEvent(new CloseActionScreenEvent());
+            });
+            }
+        }).catch(error => {
+			const eventInItError = new ShowToastEvent({
+	           	message:
+	            error.message,
+	            variant : 'error'
+        	});
+        	this.dispatchEvent(eventInItError);
+        });
+
+    }
+
+    async SendToComPlat(){
+		var IF_Submit__c = this.Campaign.IF_Submit__c;
+		if (IF_Submit__c == '1') {
+			this.dispatchEvent(event1);
+			return;
+		}
+		var result = await SendToComPlatUpdate({Id : this.Campaign.Id , IF_Submit  : true});
+		if(result == "success"){
+			this.dispatchEvent(event2);
+			location.reload();
+		}    	
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexSendToComPlat/lexSendToComPlat.js-meta.xml b/force-app/main/default/lwc/lexSendToComPlat/lexSendToComPlat.js-meta.xml
new file mode 100644
index 0000000..9afaac6
--- /dev/null
+++ b/force-app/main/default/lwc/lexSendToComPlat/lexSendToComPlat.js-meta.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexSendToComPlat">
+    <apiVersion>51.0</apiVersion>
+    <isExposed>true</isExposed>
+    <targets>
+        <target>lightning__RecordPage</target>
+        <target>lightning__AppPage</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/lexUpdateTimeReply/lexUpdateTimeReply.html b/force-app/main/default/lwc/lexUpdateTimeReply/lexUpdateTimeReply.html
new file mode 100644
index 0000000..c444cc3
--- /dev/null
+++ b/force-app/main/default/lwc/lexUpdateTimeReply/lexUpdateTimeReply.html
@@ -0,0 +1,5 @@
+<template>
+    <div class="Attachment" 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/lexUpdateTimeReply/lexUpdateTimeReply.js b/force-app/main/default/lwc/lexUpdateTimeReply/lexUpdateTimeReply.js
new file mode 100644
index 0000000..35cfe5f
--- /dev/null
+++ b/force-app/main/default/lwc/lexUpdateTimeReply/lexUpdateTimeReply.js
@@ -0,0 +1,90 @@
+import { LightningElement, track, wire,api } from 'lwc';
+import { getRecord } from 'lightning/uiRecordApi';
+import USER_ID from '@salesforce/user/Id';
+import USERPROFILE_ID from '@salesforce/schema/User.ProfileId';
+import { ShowToastEvent } from 'lightning/platformShowToastEvent';
+import { CurrentPageReference } from "lightning/navigation";
+import { CloseActionScreenEvent } from 'lightning/actions';
+const event1 = new ShowToastEvent({
+	            	message:
+	                "瀹℃壒鍓嶈鐐瑰嚮缂栬緫鎸夐挳淇敼鏃堕棿銆�",
+	                variant : 'error'
+});
+const event2 = new ShowToastEvent({
+	            	message:
+	                "璇剧▼瀹岀粨鍚庝笉鑳戒慨鏀规椂闂淬��",
+	                variant : 'error'
+});
+import init  from '@salesforce/apex/LexSubmitCampaignController.initUpdateTimeReply';
+import getProfileIdByName  from '@salesforce/apex/LexMeetingCostsController.getProfileIdByName';
+export default class lexUpdateTimeReply extends LightningElement {
+
+	@api recordId;
+	IsLoading=true;
+	Campaign;
+	currentUserProfileId;
+
+	@wire(CurrentPageReference)
+    getStateParameters(currentPageReference) {
+        if (currentPageReference) {
+          const urlValue = currentPageReference.state.recordId;
+          if (urlValue) {
+            let str = `${urlValue}`;
+            this.recordId = str;
+          }
+        }
+    }
+
+	@wire(getRecord, { recordId: USER_ID, fields: [USERPROFILE_ID]}) 
+    userDetails({error, data}) {
+        if (data) {
+        	this.currentUserProfileId =data.fields.ProfileId.value;
+        	console.log(data.fields);          
+        } else if (error) {
+            this.error = error ;
+        }
+    }
+
+
+
+    connectedCallback(){
+        init({
+            recordId: this.recordId
+        }).then(result => {
+            if (result != null) {
+                this.Campaign = result;
+                console.log(this.Campaign);
+                this.UpdateTimeReply().then(result=>{
+               	this.IsLoading=false;
+            	this.dispatchEvent(new CloseActionScreenEvent());
+            });
+            }
+        }).catch(error => {
+			const eventInItError = new ShowToastEvent({
+	           	message:
+	            error.message,
+	            variant : 'error'
+        	});
+        	this.dispatchEvent(eventInItError);
+        });
+
+    }
+
+    async UpdateTimeReply(){
+    	var ProfileId= await getProfileIdByName({Name : "绯荤粺绠$悊鍛�"}); 
+		var cstatus = this.Campaign.Status_Service__c;
+		var Service = this.Campaign.ServiceDesignDep__c;
+		if (cstatus =='寮�鐝澶囦腑' || cstatus =='寮�鐝腑' || Service == USER_ID ||
+		this.currentUserProfileId == ProfileId
+		){
+			window.open("/apex/DateModify?id=" + this.Campaign.Id,'鏃堕棿淇敼鐢宠椤甸潰','height=500, width=900, top=0, left=0');
+		} else if(cstatus =='鍟嗚皥涓�') {
+			this.dispatchEvent(event1);
+			return;
+		}
+		else {
+			this.dispatchEvent(event2);
+			return;
+		}
+    }
+}
\ No newline at end of file
diff --git a/force-app/main/default/lwc/lexUpdateTimeReply/lexUpdateTimeReply.js-meta.xml b/force-app/main/default/lwc/lexUpdateTimeReply/lexUpdateTimeReply.js-meta.xml
new file mode 100644
index 0000000..ecc966a
--- /dev/null
+++ b/force-app/main/default/lwc/lexUpdateTimeReply/lexUpdateTimeReply.js-meta.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LightningComponentBundle xmlns="http://soap.sforce.com/2006/04/metadata" fqn="lexUpdateTimeReply">
+    <apiVersion>51.0</apiVersion>
+    <isExposed>true</isExposed>
+    <targets>
+        <target>lightning__RecordPage</target>
+        <target>lightning__AppPage</target>
+        <target>lightning__HomePage</target>
+        <target>lightning__RecordAction</target>
+    </targets>
+</LightningComponentBundle>
\ No newline at end of file

--
Gitblit v1.9.1