From 51f6dc7bc93a89c97ebc17e8c908f7f6be6566dc Mon Sep 17 00:00:00 2001
From: 黄千龙 <huangqianlong@prec-tech.com>
Date: 星期三, 12 四月 2023 09:38:42 +0800
Subject: [PATCH] 黄千龙提交按钮20230412
---
force-app/main/default/classes/QISReportController.cls | 62 +++++++++++++++++++++++++++++++
1 files changed, 62 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/classes/QISReportController.cls b/force-app/main/default/classes/QISReportController.cls
index c778eac..3b375e1 100644
--- a/force-app/main/default/classes/QISReportController.cls
+++ b/force-app/main/default/classes/QISReportController.cls
@@ -351,6 +351,68 @@
return re;
}
+ //OCSM涓嶈鎶ュ憡
+ @AuraEnabled
+ public static InitData initForlexOCSMNoToReportLightingButton (String recordId){
+ InitData res = new initData();
+ try{
+ QIS_Report__c report = [SELECT id ,OCSMAdministrativeReportNumber__c,OCSMAdministrativeReportDate__c,Aware_date__c FROM QIS_Report__c WHERE Id = :recordId LIMIT 1];
+ res.Id = report.Id;
+ res.oCSMAdministrativeReportNumber = report.OCSMAdministrativeReportNumber__c;
+ res.oCSMAdministrativeReportDate = report.OCSMAdministrativeReportDate__c;
+ res.Awaredate = report.Aware_date__c;
+ System.debug(LoggingLevel.INFO, '*** res: ' + res);
+ }catch(Exception e){
+ System.debug(LoggingLevel.INFO, '*** e: ' + e);
+ }
+ return res;
+ }
+ @AuraEnabled
+ public static String updateQisForlexOCSMNoToReportLighting (String recordId){
+ String re = '鎴愬姛';
+ QIS_Report__c report = [SELECT id FROM QIS_Report__c WHERE Id = :recordId LIMIT 1];
+ try{
+ QIS_Report__c rac = new QIS_Report__c();
+ rac.id = recordId;
+ rac.OCSMAdministrativeReportStatus__c = '鏃犻渶鎶ュ憡';
+ update rac;
+ }catch(Exception e){
+ System.debug(LoggingLevel.INFO, '*** e: ' + e);
+ re = e.getMessage();
+ }
+ return re;
+ }
+ //OCSM瑕佹姤鍛�
+ @AuraEnabled
+ public static InitData initForlexOCSMToReportLightingButton (String recordId){
+ InitData res = new initData();
+ try{
+ QIS_Report__c report = [SELECT id ,OCSMAdministrativeReportStatus__c,Aware_date__c FROM QIS_Report__c WHERE Id = :recordId LIMIT 1];
+ res.Id = report.Id;
+ res.oCSMAdministrativeReportStatus = report.OCSMAdministrativeReportStatus__c;
+ res.Awaredate = report.Aware_date__c;
+ System.debug(LoggingLevel.INFO, '*** res: ' + res);
+ }catch(Exception e){
+ System.debug(LoggingLevel.INFO, '*** e: ' + e);
+ }
+ return res;
+ }
+
+ @AuraEnabled
+ public static String updateQisForlexOCSMToReportLighting (String recordId){
+ String re = '鎴愬姛';
+ QIS_Report__c report = [SELECT id FROM QIS_Report__c WHERE Id = :recordId LIMIT 1];
+ try{
+ QIS_Report__c rac = new QIS_Report__c();
+ rac.id = recordId;
+ rac.OCSMAdministrativeReportStatus__c = '寰呮姤鍛�';
+ update rac;
+ }catch(Exception e){
+ System.debug(LoggingLevel.INFO, '*** e: ' + e);
+ re = e.getMessage();
+ }
+ return re;
+ }
public class InitData{
@AuraEnabled
public String Id;
--
Gitblit v1.9.1