| | |
| | | Sales_Method__c, Fund_Basis__c, OwnerId, Wholesale_Price__c, Lead_No__c,Inquiry_Num__c,CreatedDate,CreatedById, |
| | | Tender_information__c, Agency_Opportunity__c, SI_PromoteInquiry__c |
| | | , Contact_Name__r.AccountId //2022-6-20 yjk 增加联系人的科室查询 |
| | | ,ET_Check__c //SWAG-CKDATG fy 【委托】【OBSAP-报价委托】报价委托项目改善1 |
| | | from Lead where id =: this.leadId]; |
| | | this.SI_Flg = this.lead.SI_PromoteInquiry__c; |
| | | // 診療科選択リストの取得(条件:病院=リード情報の病院名称) |
| | |
| | | RecordType rect = [select id from RecordType where IsActive = true and SobjectType = 'Opportunity' and Name =: Opptype limit 1]; |
| | | opp.RecordTypeId = rect.id; |
| | | // opp.Opportunity_Category__c = opp.Account.Department_Class_Wd__c; |
| | | opp.Opportunity_Category__c = dept.Department_Class_Wd__c; |
| | | //SWAG-CKDATG fy 【委托】【OBSAP-报价委托】报价委托项目改善1 start |
| | | // opp.Opportunity_Category__c = dept.Department_Class_Wd__c; |
| | | opp.Opportunity_Category__c = this.lead.ET_Check__c ? 'ET' : dept.Department_Class_Wd__c; |
| | | opp.Opp_order_Type__c = this.lead.ET_Check__c ? 'ET' : null; |
| | | //SWAG-CKDATG fy 【委托】【OBSAP-报价委托】报价委托项目改善1 end |
| | | System.debug('this.lead.Hospital_Name__c:'+this.lead.Hospital_Name__c); |
| | | System.debug('this.lead.LeadSource:'+this.lead.LeadSource); |
| | | System.debug('this.lead.Other_Society__c:'+this.lead.Other_Society__c); |