From d8dc84a3d56df839895f1c417a4d9cbee763d262 Mon Sep 17 00:00:00 2001
From: 高章伟 <gaozhangwei@prec-tech.com>
Date: 星期五, 03 三月 2023 14:50:59 +0800
Subject: [PATCH] gzw 测试环境代码更新
---
force-app/main/default/classes/ProcessInstanceSolController.cls | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/force-app/main/default/classes/ProcessInstanceSolController.cls b/force-app/main/default/classes/ProcessInstanceSolController.cls
index ccc7812..6a7742f 100644
--- a/force-app/main/default/classes/ProcessInstanceSolController.cls
+++ b/force-app/main/default/classes/ProcessInstanceSolController.cls
@@ -6,11 +6,14 @@
public string Comments {get;set;}
public string ApprovalAction {get;set;}
public PageReference redirectPage;
+ //public String testlink {get; set;}
//鍒濆鍖�
public ProcessInstanceSolController()
{
+ // testlink = ApexPages.currentPage().getParameters().get('testlink'); //褰撳墠鑺傜偣鍚嶅瓧
processId = ApexPages.currentPage().getParameters().get('id'); //鑾峰彇褰撳墠鐨勫伐浣滄祦ID
SolId = ApexPages.currentPage().getParameters().get('SolId'); //鑾峰彇褰撳墠case ID
+ system.debug(processId+'==ceshi==='+SolId);
objSol = [select Name,Confirmation_Result__c,Remarks__c,ProcessOfApproval__c from Solution_Programme__c where id =:SolId]; //鑾峰彇褰撳墠Opp瀵硅薄涓轰簡鍚庨潰鏇存柊comments鍜孯eson
redirectPage = new PageReference('/'+SolId);
}
@@ -23,10 +26,10 @@
{
//system.debug('ApprovalAction:'+this.ApprovalAction);
// User nextapprover =[select Id from User where username = 'yinghai_guo_neo@sina.com'];//鏂板缓绔嬩竴涓猳bject 骞秏apping鍏崇郴
- if(ApprovalAction == 'Reject'){
+ /**if(ApprovalAction == 'Reject'){
ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR, '璇峰~鍐欏弽棣堢粨鏋滐紝骞舵寜瀹℃壒鎸夐挳'));
return null;
- }
+ }**/
if(objSol.Confirmation_Result__c == null){
ApexPages.addmessage(new ApexPages.message(ApexPages.severity.ERROR, '鎵瑰噯涔嬪墠蹇呴』濉啓鍙嶉缁撴灉锛�'));
return null;
--
Gitblit v1.9.1