| | |
| | | Body = EncodingUtil.base64Decode('test') |
| | | ); |
| | | insert att3; |
| | | delete att3; |
| | | //delete att3; |
| | | |
| | | Rental_Apply__c rentalApply = new Rental_Apply__c(); |
| | | // '引当完了' -> 已批准 |
| | |
| | | rentalApply.Hope_Lonaer_date_Num__c = 6; |
| | | insert rentalApply; |
| | | |
| | | Attachment att4 = new Attachment( |
| | | Name = 'ORDER-123456.pdf', |
| | | parentId = rentalApply.Id, |
| | | Body = EncodingUtil.base64Decode('test') |
| | | ); |
| | | insert att4; |
| | | delete att4; |
| | | // Attachment att4 = new Attachment( |
| | | // Name = 'ORDER-123456.pdf', |
| | | // parentId = rentalApply.Id, |
| | | // Body = EncodingUtil.base64Decode('test') |
| | | // ); |
| | | // insert att4; |
| | | // delete att4; |
| | | |
| | | Consumable_order__c co = new Consumable_order__c(); |
| | | insert co; |
| | | // Consumable_order__c co = new Consumable_order__c(); |
| | | // insert co; |
| | | |
| | | Attachment att5 = new Attachment( |
| | | Name = 'ORDER-123456.pdf', |
| | | parentId = co.Id, |
| | | Body = EncodingUtil.base64Decode('test') |
| | | ); |
| | | insert att5; |
| | | // Attachment att5 = new Attachment( |
| | | // Name = 'ORDER-123456.pdf', |
| | | // parentId = co.Id, |
| | | // Body = EncodingUtil.base64Decode('test') |
| | | // ); |
| | | // insert att5; |
| | | //delete att5; |
| | | |
| | | System.Test.stopTest(); |
| | |
| | | |
| | | |
| | | //新建询价时,赋值招投标项目,打上标识 |
| | | Opportunity opp2 = new Opportunity( |
| | | Name = 'test opp1', |
| | | StageName = '引合', |
| | | CurrencyIsoCode = 'USD', |
| | | CloseDate = Date.today(), |
| | | AccountId = depart.Id, |
| | | Closing_Bid_Date__c = Date.today().addDays(-5), |
| | | Hospital__c = company.Id, |
| | | Competitor__c = 'A' |
| | | //,Bidding_Project_Name_Bid__c = te1.Id //lt 20220316 |
| | | ); |
| | | insert opp2; |
| | | // Opportunity opp2 = new Opportunity( |
| | | // Name = 'test opp1', |
| | | // StageName = '引合', |
| | | // CurrencyIsoCode = 'USD', |
| | | // CloseDate = Date.today(), |
| | | // AccountId = depart.Id, |
| | | // Closing_Bid_Date__c = Date.today().addDays(-5), |
| | | // Hospital__c = company.Id |
| | | // // ,Competitor__c = 'A' |
| | | // //,Bidding_Project_Name_Bid__c = te1.Id //lt 20220316 |
| | | // ); |
| | | // insert opp2; |
| | | |
| | | |
| | | System.Test.stopTest(); |