| | |
| | | //2021-10-20 mzy 任务管理改善 start |
| | | private Boolean IsGeneratePlan; //是否生成计划 |
| | | //2021-10-20 mzy 任务管理改善 end |
| | | //Add By Li Jun 20220224 for PIPL start |
| | | public String idVisitor1PI{set;get;} |
| | | public String idVisitor2PI{set;get;} |
| | | public String staticResource {get; set;} |
| | | public String contactAWSIds{set;get;} |
| | | //Add By Li Jun 20220224 for PIPL end |
| | | public SimpleEventRegisterController(ApexPages.StandardController controller) { |
| | | this.isHospital = true; |
| | | this.isAgent = false; |
| | |
| | | System.debug('-----:inputDatetime=' + inputDatetime); |
| | | this.targetEvent.StartDateTime = inputDatetime; |
| | | } |
| | | //Add by Li Jun 20220303 for PIPL Start |
| | | PIHelper.PIIntegration piIntegration = PIHelper.getPIIntegrationInfo('Contact'); |
| | | staticResource = JSON.serialize(piIntegration); |
| | | system.debug('static resource:'+JSON.serialize(staticResource)); |
| | | //Add by Li Jun 20220303 for PIPL End |
| | | } |
| | | |
| | | public void init() { |
| | |
| | | //2021-07-28 mzy SWAG-C4YB9J 事件页面优化 今天的事件 如果已经生成报告一览,则不允许进行取消和延期操作 end |
| | | allDisable = true; |
| | | } |
| | | //Add By Li Jun for PIPL 20220303 Start |
| | | List<String> conAWSIds = new List<String>(); |
| | | Set<String> contactIdsForReport = new Set<String>(); |
| | | List<String> visitorList = new List<String>{'Visitor1_ID__c','Visitor2_ID__c','Visitor3_ID__c','Visitor4_ID__c','Visitor5_ID__c'}; |
| | | for(String visitorValue:visitorList){ |
| | | if(String.isNotEmpty((String)targetEvent.get(visitorValue))&&String.isNotBlank((String)targetEvent.get(visitorValue))){ |
| | | contactIdsForReport.add((String)targetEvent.get(visitorValue)); |
| | | } |
| | | } |
| | | List<Contact> conListForReport = new List<Contact>([select id,AWS_Data_Id__c from Contact where id in:contactIdsForReport and AWS_Data_Id__c!='']); |
| | | for(Contact con:conListForReport){ |
| | | conAWSIds.add(con.AWS_Data_Id__c); |
| | | } |
| | | contactAWSIds = JSON.serialize(conAWSIds); |
| | | system.debug('Contact AWSIDs:'+contactAWSIds); |
| | | //Add By Li Jun for PIPL 20220303 End |
| | | } |
| | | //20210324 zh WLIG-BX3DQ5 【委托】Outlook日历和SFDC日历同步 end |
| | | if (targetEvent.OPDPlan_Flag__c) { |