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/InspectCheckController.cls | 42 +++++++++++++++++++++++++++---------------
1 files changed, 27 insertions(+), 15 deletions(-)
diff --git a/force-app/main/default/classes/InspectCheckController.cls b/force-app/main/default/classes/InspectCheckController.cls
index 7746764..dd74e19 100644
--- a/force-app/main/default/classes/InspectCheckController.cls
+++ b/force-app/main/default/classes/InspectCheckController.cls
@@ -12,6 +12,22 @@
return JSON.serialize(arrays);
}
+ @AuraEnabled
+ public static Boolean cannotModifyIsRelateProject(String Id){
+ Boolean cannotModify = false;
+ String profileIds = System.Label.Tender_IsnotRelated_ModifyDisable;
+ System.debug('---lt123绠�妗d---'+UserInfo.getProfileId());
+ // 鍒ゆ柇褰撳墠鐢ㄦ埛绠�妗�
+ if (profileIds.contains(UserInfo.getProfileId())) {
+ // 鑾峰彇鎷涙爣椤圭洰 鍒ゆ柇鐩稿叧鎬�
+ Tender_information__c tender = [select Id, IsRelateProject__c from Tender_information__c where Id = :Id];
+ if (tender != null && '鏄�'.equals(tender.IsRelateProject__c)) {
+ cannotModify = true;
+ }
+ }
+ return cannotModify;
+ }
+
//鎷涙姇鏍囬」鐩垪琛ㄥ瓧娈� irrelevantReasons__c 鎵�鏈夌殑鍊�
@AuraEnabled
@@ -28,7 +44,14 @@
return JsonData;
}
-
+ //20220913 you SWAG-CJ3DS5 start
+ //鎷涙姇鏍囬」鐩垪琛ㄥ瓧娈� irresponsibleReason__c 鎵�鏈夌殑鍊�
+ @AuraEnabled
+ public static string GetproInvolvedManual(){
+ String JsonData = CommonUtils.GetSelectedValues( Tender_information__c.proInvolvedManual__c.getDescribe());
+ return JsonData;
+ }
+//20220913 you SWAG-CJ3DS5 end
// 浜у搧绫�
@@ -48,24 +71,14 @@
//淇濆瓨鏁版嵁 JSONData 鏄� 鎷涙姇鏍囬」鐩� 瀵硅薄鐨� json鏍煎紡鐨勫��
@AuraEnabled
public static string SaveData(String JsonData,String Id,String checkboxValue){
- System.debug('1234567890123');
try{
Tender_information__c temp = (Tender_information__c)JSON.deserialize(JsonData,Tender_information__c.class);
- // System.debug('temp=='+temp);
- // System.debug('----1----'+temp.InfoOwner__c+'=====2===='+temp.SP_assistant__c);
- // List<String> Apilist = new List<String>{'01210000000QezeAAC','01210000000QezjAAC','01210000000QezoAAC','01210000000QeztAAC'};
- // System.debug('=====1-----'+temp.department_selection__c);
- // List<String> tenDepartList = temp.department_selection__c.split(';');
- // if(tenDepartList.contains('01210000000QezeAAC')
- // || tenDepartList.contains('01210000000QezjAAC')
- // || tenDepartList.contains('01210000000QezoAAC')
- // || tenDepartList.contains('01210000000QeztAAC')){
- // System.debug('=====-----'+temp.department_selection__c);
- // temp.InfoOwner__c = temp.SP_assistant__c;
- // }
+ System.debug('temp=='+temp);
+
StaticParameter.EscapeOtherUpdateTenOwner = false;
update temp;
StaticParameter.EscapeOtherUpdateTenOwner = true;
+
//String assvale=AssignValuesToOwner(Id,checkboxValue);
}catch(Exception ex)
{
@@ -82,7 +95,6 @@
//if (temp.IsBid__c == '鍚�') {
temp.NotBidApprovalStatus__c = '鑽夋涓�';
temp.ownerid = UserInfo.getUserId();
-
//}else{
// temp.NotBidApprovalStatus__c = null;
// temp.irresponsibleReasonOther__c = null;
--
Gitblit v1.9.1