| | |
| | | if (rectDpt.size() == 0) { |
| | | return; |
| | | } |
| | | Account hp = new Account(RecordTypeId = rectHp[0].Id, Name = 'SoakupTestHp', OwnerId = hpOwner.Id); |
| | | Account hp = new Account(RecordTypeId = rectHp[0].Id, Name = 'SoakupTestHp', OwnerId = hpOwner.Id,Speciality_Type__c = '综合医院'); |
| | | insert hp; |
| | | Account dc = [select Id, Name, RecordType_DeveloperName__c, Account2__c from Account where ParentId = :hp.Id and RecordType_DeveloperName__c = 'Department_Class_GI']; |
| | | Account dpt = new Account(RecordTypeId = rectDpt[0].Id); |
| | |
| | | System.Test.setCurrentPage(page); |
| | | System.Test.StartTest(); |
| | | BatchSelectRepairPageController br = new BatchSelectRepairPageController(); |
| | | StaticParameter.ContentDocumentLink = false; |
| | | br.init(); |
| | | Repair__c repair01 = [SELECT Id,Status2__c,Name,Incharge_Staff__c,SAP_Service_Repair_No__c,Aware_date2__c,State_Hospital__c,SerialNumber__c,work_location_select__c,FSE_ApplyForRepair_Day__c,On_site_repair__c,Aware_date__c FROM Repair__c LIMIT 1]; |
| | | br.RevalInfo.repair = repair01; |
| | |
| | | List<Repair__c> repList = new List<Repair__c>(); |
| | | repList.add(repair01); |
| | | BatchSelectRepairPageController.generateAttachment(repList); |
| | | |
| | | System.Test.StopTest(); |
| | | |
| | | } |