| | |
| | | @isTest |
| | | private class RentalApplyShareHandlerTest { |
| | | @TestSetup |
| | | static void makeData(){ |
| | | TestDataUtility.CreatePIPolicyConfiguration(); |
| | | } |
| | | static Account createHospital( String hospitalName) { |
| | | StaticParameter.EscapeNFM001AgencyContractTrigger = true; |
| | | StaticParameter.EscapeNFM001Trigger = true; |
| | |
| | | update ra1; |
| | | |
| | | strategicDep[0].OwnerId = user[1].Id; |
| | | strategicDep[0].Department_Class_Label__c = '其他'; |
| | | update strategicDep; |
| | | // strategicDep[0].Department_Class_Label__c = '其他'; |
| | | update strategicDep;//RecordType.Name == Parent.Department_Class_Label__c |
| | | |
| | | ra1.Strategic_dept__c = strategicDep[0].Id; |
| | | update ra1; |
| | |
| | | oPDPlan0.Status__c = '计划中'; |
| | | oPDPlan0.OPDPlan_ImplementDate__c = Date.today(); |
| | | oPDPlan0.NoOpp_Reason__c = 'HCP对应'; |
| | | oPDPlan0.OPDType__c = '事件'; |
| | | insert oPDPlan0; |
| | | Rental_Apply__c raObj = new Rental_Apply__c(); |
| | | raObj.Name = 'testra'; |
| | | raObj.Product_category__c = 'GI'; |
| | | raObj.Demo_purpose1__c = '维修代用'; |
| | | raObj.Demo_purpose1__c = '其他'; |
| | | raObj.demo_purpose2__c = FixtureUtil.raDemo_purpose2MAP.get('baoxiuyonghu'); |
| | | raObj.direct_send__c = '医疗机构'; |
| | | raObj.Loaner_received_staff__c = '王五'; |
| | |
| | | raObj.Request_shipping_day__c = Date.toDay(); // 希望到货日 |
| | | raObj.Phone_number__c = '1234567890'; |
| | | raObj.OPDPlan__c = oPDPlan0.Id; |
| | | raObj.demo_purpose2__c = '试用(无询价)'; |
| | | raObj.demo_purpose2__c = 'CFDA注册用于测试'; |
| | | insert raObj; |
| | | |
| | | OPDPlan__c oPDPlan0Clone = new OPDPlan__c(); |