From 9b197b7fac92278fb591ea8f4942c7d5687cb5ce Mon Sep 17 00:00:00 2001
From: 李金换 <lijinhuan@prec-tech.com>
Date: 星期一, 28 三月 2022 18:01:22 +0800
Subject: [PATCH] LJPH-C8FB4P【委托】配合PBI设备覆盖率的数据准备0328
---
force-app/main/default/classes/NewAndEditQISController.cls | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
diff --git a/force-app/main/default/classes/NewAndEditQISController.cls b/force-app/main/default/classes/NewAndEditQISController.cls
index 83f7535..899961a 100644
--- a/force-app/main/default/classes/NewAndEditQISController.cls
+++ b/force-app/main/default/classes/NewAndEditQISController.cls
@@ -1,8 +1,24 @@
global with sharing class NewAndEditQISController extends NewAndEditBaseController{
+ public String Input_Required_Field_Msg{set;get;}
public NewAndEditQISController(ApexPages.StandardController controller) {
+ Input_Required_Field_Msg = Label.Input_Required_Field_Msg;
List<String> fieldList = new List<String>(Schema.getGlobalDescribe().get('QIS_Report__c').getDescribe().fields.getMap().keyset());
controller.addFields(fieldList);
Init(controller.getRecord());
+
+
+
+ //Updated by Chen Yanan 20220323 Start
+ String contactId = controller.getRecord().Id;
+ if(contactId == null){
+ Map<string,string> mso = ApexPages.currentPage().getParameters();
+ system.debug('mso='+mso);
+ if(mso.containsKey('CF00N10000002FHFK_lkid')){
+ controller.getRecord().put('Name', '*');
+ }
+ }
+ system.debug('controller.getRecord()='+controller.getRecord());
+ //Updated by Chen Yanan 20220323 End
}
@RemoteAction
--
Gitblit v1.9.1