| | |
| | | return JSON.serialize(arrays); |
| | | } |
| | | |
| | | @AuraEnabled |
| | | public static Boolean cannotModifyIsRelateProject(String Id){ |
| | | Boolean cannotModify = false; |
| | | String profileIds = System.Label.Tender_IsnotRelated_ModifyDisable; |
| | | System.debug('---lt123简档Id---'+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 |
| | |
| | | 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 |
| | | |
| | | |
| | | // 产品类 |
| | |
| | | //保存数据 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) |
| | | { |
| | |
| | | //if (temp.IsBid__c == '否') { |
| | | temp.NotBidApprovalStatus__c = '草案中'; |
| | | temp.ownerid = UserInfo.getUserId(); |
| | | |
| | | //}else{ |
| | | // temp.NotBidApprovalStatus__c = null; |
| | | // temp.irresponsibleReasonOther__c = null; |