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
32
33
34
35
36
37
38
39
40
41
42
@isTest
private class TestMockTrigger {
    static testMethod void TestMockTriggerProcess(){
        TrackConsumableSalesForecast__c testTrack = new TrackConsumableSalesForecast__c();
        testTrack.Type__c = 'ENG';
        testTrack.SnapshotMonth__c =Date.valueOf('2023-01-01');
        testTrack.HospitalName__c='tets';
        testTrack.BillLostWarning__c = 2;
        testTrack.HospitalAndCategory2__c='sada';
        testTrack.LastShipmentDate__c = Date.valueOf('2023-01-01');
        insert testTrack;
 
        TrackConsumableSalesForecast__c testTrack2 = new TrackConsumableSalesForecast__c();
        testTrack2.Type__c = 'ET';
        testTrack2.SnapshotMonth__c =Date.valueOf('2023-07-01');
        testTrack2.HospitalName__c='tetds';
        testTrack2.BillLostWarning__c = 2;
        testTrack2.LastShipmentDate__c = Date.valueOf('2023-07-01');
 
        insert testTrack2;
 
        // Resource_Writeoff_Evidence__c test5 = new Resource_Writeoff_Evidence__c();
        // insert test5;
        
        // PO__c test8 = new PO__c();
        // test8.PO_Num__c = '12412';
        // insert test8;
        // Resource_Standard__c rs = new Resource_Standard__c();
        // insert rs;
        // Resource_Standard_Detail__c rsd = new Resource_Standard_Detail__c();
        // rsd.Resource__c = rs.Id;
        // insert rsd;
        
        // Resource_Release_Record__c test7 = new Resource_Release_Record__c();
        // insert test7;
 
        // Resource_Release_Record_Detail__c test6 = new Resource_Release_Record_Detail__c();
        // test6.Resource_Release_Record__c = test7.Id;
        // test6.Resource_Detail__c = rsd.Id;
        // insert test6;
    }   
}