| | |
| | | List<Account> aList = selectAccount(aId); |
| | | |
| | | if(reportId != null && reportId != ''){ |
| | | List<Report__c> rList = [select id, Daily_Report__c, RecordTypeId, Event_Id__c, Hospital_Department__c, Department_Class_Ref__c, Hospital_Reference__c, Date__c, Practitioner1__c, Practitioner2__c, Practitioner3__c, Practitioner4__c, Practitioner5__c, Comment__c from Report__c where id =:reportId]; |
| | | //kk p课题需要 实施人5从查找变为文本字段 |
| | | // List<Report__c> rList = [select id, Daily_Report__c, RecordTypeId, Event_Id__c, Hospital_Department__c, Department_Class_Ref__c, Hospital_Reference__c, Date__c, Practitioner1__c, Practitioner2__c, Practitioner3__c, Practitioner4__c, Practitioner5__c, Comment__c from Report__c where id =:reportId]; |
| | | List<Report__c> rList = [select id, Daily_Report__c, RecordTypeId, Event_Id__c, Hospital_Department__c, Department_Class_Ref__c, Hospital_Reference__c, Date__c, Practitioner1__c, Practitioner2__c, Practitioner3__c, Practitioner4__c, Comment__c from Report__c where id =:reportId]; |
| | | if (rList.size() > 0) { |
| | | return rList.get(0).id; |
| | | } |
| | |
| | | if(visitor4 != null && visitor4 != ''){ |
| | | r.Practitioner4__c = visitor4; |
| | | } |
| | | if(visitor5 != null && visitor5 != ''){ |
| | | r.Practitioner5__c = visitor5; |
| | | } |
| | | // if(visitor5 != null && visitor5 != ''){ |
| | | // r.Practitioner5__c = visitor5; |
| | | // } |
| | | r.Comment__c = description; |
| | | upsert r; |
| | | |
| | |
| | | if(reportId != null && reportId != ''){ |
| | | //康康p课题需要修改字段类型 后续跟进(Opportunity5__c变为文本类型字段) |
| | | // List<Report__c> rList = [select id, Daily_Report__c, RecordTypeId, Event_Id__c, Hospital_Department__c, Department_Class_Ref__c, Hospital_Reference__c, Date__c, Practitioner1__c, Practitioner2__c, Practitioner3__c, Practitioner4__c, Practitioner5__c, Opportunity1__c, Opportunity2__c, Opportunity3__c, Opportunity4__c, Opportunity5__c from Report__c where id =:reportId]; |
| | | // if(rList.size() > 0){ |
| | | // return rList.get(0).id; |
| | | // } |
| | | List<Report__c> rList = [select id, Daily_Report__c, RecordTypeId, Event_Id__c, Hospital_Department__c, Department_Class_Ref__c, Hospital_Reference__c, Date__c, Practitioner1__c, Practitioner2__c, Practitioner3__c, Practitioner4__c, Opportunity1__c, Opportunity2__c, Opportunity3__c, Opportunity4__c, Opportunity5__c from Report__c where id =:reportId]; |
| | | if(rList.size() > 0){ |
| | | return rList.get(0).id; |
| | | } |
| | | } |
| | | |
| | | Report__c r = new Report__c(); |
| | |
| | | if(visitor4 != null && visitor4 != ''){ |
| | | r.Practitioner4__c = visitor4; |
| | | } |
| | | if(visitor5 != null && visitor5 != ''){ |
| | | r.Practitioner5__c = visitor5; |
| | | } |
| | | // if(visitor5 != null && visitor5 != ''){ |
| | | // r.Practitioner5__c = visitor5; |
| | | // } |
| | | |
| | | List<String> oppIdList = new List<String>(); |
| | | if(opp1 != null && opp1 != ''){ |
| | |
| | | if(opp4 != null && opp4 != ''){ |
| | | r.Opportunity4__c = opp4; |
| | | } |
| | | // if(opp5 != null && opp5 != ''){ |
| | | // r.Opportunity5__c = opp5; |
| | | // } |
| | | if(opp5 != null && opp5 != ''){ |
| | | r.Opportunity5__c = opp5; |
| | | } |
| | | r.Opportunity_Situation__c = '引合発生'; |
| | | } |
| | | else{ |
| | |
| | | List<Account> aList = selectAccount(aId); |
| | | |
| | | if(reportId != null && reportId != ''){ |
| | | List<Report__c> rList = [select id, Daily_Report__c, RecordTypeId, Event_Id__c, Hospital_Department__c, Department_Class_Ref__c, Hospital_Reference__c, Date__c, Practitioner1__c, Practitioner2__c, Practitioner3__c, Practitioner4__c, Practitioner5__c, From__c, To__c, Location__c from Report__c where id =:reportId]; |
| | | // List<Report__c> rList = [select id, Daily_Report__c, RecordTypeId, Event_Id__c, Hospital_Department__c, Department_Class_Ref__c, Hospital_Reference__c, Date__c, Practitioner1__c, Practitioner2__c, Practitioner3__c, Practitioner4__c, Practitioner5__c, From__c, To__c, Location__c from Report__c where id =:reportId]; |
| | | List<Report__c> rList = [select id, Daily_Report__c, RecordTypeId, Event_Id__c, Hospital_Department__c, Department_Class_Ref__c, Hospital_Reference__c, Date__c, Practitioner1__c, Practitioner2__c, Practitioner3__c, Practitioner4__c, From__c, To__c, Location__c from Report__c where id =:reportId]; |
| | | if(rList.size() > 0){ |
| | | return rList.get(0).id; |
| | | } |
| | |
| | | if(visitor4 != null && visitor4 != ''){ |
| | | r.Practitioner4__c = visitor4; |
| | | } |
| | | if(visitor5 != null && visitor5 != ''){ |
| | | r.Practitioner5__c = visitor5; |
| | | } |
| | | // if(visitor5 != null && visitor5 != ''){ |
| | | // r.Practitioner5__c = visitor5; |
| | | // } |
| | | if(sTime != null && sTime != ''){ |
| | | //sTime = sTime.substring(0,16); |
| | | r.From__c = datetime.parse(sTime); |
| | |
| | | List<Account> aList = selectAccount(aId); |
| | | |
| | | if(reportId != null && reportId != ''){ |
| | | List<Report__c> rList = [select id, Daily_Report__c, RecordTypeId, Event_Id__c, Hospital_Department__c, Department_Class_Ref__c, Hospital_Reference__c, Date__c, Practitioner1__c, Practitioner2__c, Practitioner3__c, Practitioner4__c, Practitioner5__c, Comment__c from Report__c where id =:reportId]; |
| | | // List<Report__c> rList = [select id, Daily_Report__c, RecordTypeId, Event_Id__c, Hospital_Department__c, Department_Class_Ref__c, Hospital_Reference__c, Date__c, Practitioner1__c, Practitioner2__c, Practitioner3__c, Practitioner4__c, Practitioner5__c, Comment__c from Report__c where id =:reportId]; |
| | | List<Report__c> rList = [select id, Daily_Report__c, RecordTypeId, Event_Id__c, Hospital_Department__c, Department_Class_Ref__c, Hospital_Reference__c, Date__c, Practitioner1__c, Practitioner2__c, Practitioner3__c, Practitioner4__c, Comment__c from Report__c where id =:reportId]; |
| | | if(rList.size() > 0){ |
| | | return rList.get(0).id; |
| | | } |
| | |
| | | List<Account> aList = selectAccount(aId); |
| | | |
| | | if(reportId != null && reportId != ''){ |
| | | List<Report__c> rList = [select id, Daily_Report__c, RecordTypeId, Event_Id__c, Hospital_Department__c, Department_Class_Ref__c, Hospital_Reference__c, Date__c, Practitioner1__c, Practitioner2__c, Practitioner3__c, Practitioner4__c, Practitioner5__c, Comment__c from Report__c where id =:reportId]; |
| | | // List<Report__c> rList = [select id, Daily_Report__c, RecordTypeId, Event_Id__c, Hospital_Department__c, Department_Class_Ref__c, Hospital_Reference__c, Date__c, Practitioner1__c, Practitioner2__c, Practitioner3__c, Practitioner4__c, Practitioner5__c, Comment__c from Report__c where id =:reportId]; |
| | | List<Report__c> rList = [select id, Daily_Report__c, RecordTypeId, Event_Id__c, Hospital_Department__c, Department_Class_Ref__c, Hospital_Reference__c, Date__c, Practitioner1__c, Practitioner2__c, Practitioner3__c, Practitioner4__c, Comment__c from Report__c where id =:reportId]; |
| | | if(rList.size() > 0){ |
| | | return rList.get(0).id; |
| | | } |