| | |
| | | controller.checkIraiUser(); |
| | | controller.Back(); |
| | | |
| | | //lt start |
| | | //经销商、联系人、用户信息 |
| | | List<RecordType> rectCo = [select Id from RecordType where IsActive = true and SobjectType = 'Account' and Name = '販売店']; |
| | | if (rectCo.size() == 0) { |
| | | return; |
| | | } |
| | | |
| | | //经销商、联系人、用户信息 |
| | | Account myAccount1 = new Account(name='Testaccount001', |
| | | Dealer_discount__c =20, |
| | | Ban_On_Use_Date__c = Date.today().addDays(1), |
| | | Business_Paper_Expiration_Date__c = Date.today().addDays(1), |
| | | Tax_Practice_Expiration_Date__c = Date.today().addDays(1), |
| | | Medical_Equipment_Expiration_Date__c = Date.today().addDays(1), |
| | | RecordTypeId = rectCo[0].Id); |
| | | insert myAccount1; |
| | | //lt end |
| | | |
| | | // 从潜在客户新建 |
| | | Lead lead1 = new Lead(); |
| | | lead1.LastName = 'test'; |
| | | lead1.Company = 'test'; |
| | | lead1.Hospital_Name__c = myAccount1.Id; //lt |
| | | |
| | | insert lead1; |
| | | |
| | | PageReference page1 = new PageReference('/apex/NewQuoteIrai?leadid=' + lead1.Id); |