@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,'延期报告');
|
|
|
}
|
}
|