| | |
| | | @isTest |
| | | private class TenderDeleteLwcControllerTest { |
| | | static testMethod void testMethod1() { |
| | | ControllerUtil.EscapeNFM001Trigger = true; |
| | | StaticParameter.EscapeNFM001Trigger = true; |
| | | StaticParameter.EscapeNFM001AgencyContractTrigger = true; |
| | | StaticParameter.EscapeNFM001AgencyContractTrigger2 = true; |
| | | StaticParameter.EscapeOppandStaTrigger = true; |
| | | List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '病院' Limit 1]; |
| | | if (rectCo.size() == 0) { |
| | | return; |
| | |
| | | TenInfo1.Name = 'QLMTEST08111057-02'; |
| | | TenInfo1.RecordTypeId=rectDpts[0].Id; |
| | | TenInfo1.InfoTitle__c = '招标项目1'; |
| | | TenInfo1.subInfoType__c='1-1:意见征集'; // 20221018 ljh SWAG-CKB9NR add |
| | | insert TenInfo1; |
| | | |
| | | TenInfo.Name = '2345'; |
| | |
| | | TenInfo.RecordTypeId=rectDpts[0].Id; |
| | | TenInfo.InfoTitle__c = '招标项目2'; |
| | | TenInfo.TenderManageCode__c ='123'; |
| | | TenInfo.subInfoType__c='1-1:意见征集'; // 20221018 ljh SWAG-CKB9NR add |
| | | insert TenInfo; |
| | | |
| | | //List<Tender_Opportunity_Link__c> BlinksList = [select Opportunity__c from Tender_Opportunity_Link__c where Tender_information__c = :BTen.Id]; |