liuyn
2024-03-11 a87f1c3df03078814ee97ad0c8ac200a232419e9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
@isTest
public with sharing class LexOpdCommitApprovalControllerTest {
    @isTest
    static  void testmethod1(){
        OPDPlan__c opd = new OPDPlan__c();
        opd.Status__c = '草案中';
        opd.OPDPlan_ImplementDate__c = Date.today().addDays(5);
        opd.NoOpp_Reason__c = 'HCP对应';
        opd.OPDType__c = '科室';
 
        insert opd;
        CancelPostponePlan__c cpp = new CancelPostponePlan__c();
        //2021-01-20 mzy add   OPD计划取消延期 审批 通过后更新【OPD计划实施日期temp】   
        cpp.RecordTypeId = '01210000000gQyL';
        //2021-01-20 mzy  add   OPD计划取消延期 审批 通过后更新【OPD计划实施日期temp】  
        cpp.Status__c = '取消';
        cpp.cancelReasonCombobox__c='手术取消';//2021/02/07 liying  SWAG-BXVDPJ
        cpp.cancelReason__c = 'Test';
        cpp.CancelOPDPlan__c = opd.Id;
        cpp.if_HaveRental_Apply__c = false;
        insert cpp;
 
        LexOpdCommitApprovalController.init('123');
        LexOpdCommitApprovalController.init(cpp.Id);
        LexOpdCommitApprovalController.newUpdateCancelPostponePlan(cpp.Id,'取消');
        LexOpdCommitApprovalController.newUpdateCancelPostponePlan('111xxxx','取消');
        LexOpdCommitApprovalController.newUpdateCancelPostponePlan(cpp.Id,'延期报告');
 
 
    }
}