| | |
| | | private static void testTestCase() { |
| | | // Test data setup |
| | | //新建电子签收单 |
| | | map<string, eSignForm__c> eSFMap = new Map<string, eSignForm__c>(); |
| | | map <string, eSignForm__c> eSFMap = new map <string, eSignForm__c>(); |
| | | eSignForm__c eSignForm = new eSignForm__c(); |
| | | eSignForm.Name = '::测试电子签收单'; |
| | | eSignForm.DNName__c = '112233'; |
| | |
| | | sad.EsignTestAccount__c = true; |
| | | sad.ReturnMark__c = false; |
| | | |
| | | list<Statu_Achievements_DN__c> DNList = new List<Statu_Achievements_DN__c>(); |
| | | list<Statu_Achievements_DN__c> DNList = new list<Statu_Achievements_DN__c>(); |
| | | DNList.add(sad); |
| | | |
| | | List<RecordType> rectCo = [SELECT Id FROM RecordType WHERE IsActive = TRUE AND SobjectType = 'Account' AND Name = '病院']; |
| | | List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '病院']; |
| | | if (rectCo.size() == 0) { |
| | | return; |
| | | } |
| | | List<RecordType> rectSct = [ |
| | | SELECT Id |
| | | FROM RecordType |
| | | WHERE IsActive = TRUE AND SobjectType = 'Account' AND Name = '戦略科室分類 呼吸科' |
| | | ]; |
| | | List<RecordType> rectSct = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '戦略科室分類 呼吸科']; |
| | | if (rectSct.size() == 0) { |
| | | return; |
| | | } |
| | | List<RecordType> rectDpt = [SELECT Id FROM RecordType WHERE IsActive = TRUE AND SobjectType = 'Account' AND Name = '診療科 消化科']; |
| | | List<RecordType> rectDpt = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '診療科 消化科']; |
| | | if (rectDpt.size() == 0) { |
| | | return; |
| | | } |
| | |
| | | depart.Hospital__c = company.Id; |
| | | upsert depart; |
| | | |
| | | RecordType rectOpp = [ |
| | | SELECT id |
| | | FROM RecordType |
| | | WHERE IsActive = TRUE AND SobjectType = 'Opportunity' AND DeveloperName = 'Opportunity' |
| | | ]; |
| | | |
| | | RecordType rectOpp = [select id from RecordType where IsActive = true and SobjectType = 'Opportunity' and DeveloperName = 'Opportunity' ]; |
| | | Opportunity opp = new Opportunity( |
| | | Name = 'testOpp1', |
| | | StageName = '引合', |