| | |
| | | Event insertTarget = new Event(); |
| | | |
| | | ApexPages.StandardController sc = new ApexPages.standardController( insertTarget); |
| | | SimpleEventRegisterController target = new SimpleEventRegisterController( sc); |
| | | //SimpleEventRegisterController target = new SimpleEventRegisterController( sc); |
| | | |
| | | target.targetEvent.Subject = 'test'; //主题 |
| | | /*target.targetEvent.Subject = 'test'; //主题 |
| | | target.targetEvent.StartDateTime = Datetime.now().addDays(1); //开始日期 |
| | | target.targetEvent.DurationInMinutes = 60; //持续时间 |
| | | target.targetEvent.Activity_Type2__c = '病院'; //拜访区分 |
| | | target.targetEvent.Activity_PurposeFSE__c = '客户培训'; //拜访目的 |
| | | target.targetEvent.OPDPlan_Flag__c = true ; //OPD计划 |
| | | target.targetEvent.Location = dep.Name; //科室 |
| | | target.init(); |
| | | target.targetEvent.Location = dep.Name; //科室*/ |
| | | //target.init(); |
| | | //2020/10/29 MZY start |
| | | Map<String,String> tempMap = new Map<String,String>(); |
| | | tempMap.put('GI-290镜子', '1'); |
| | | tempMap.put('EU-ME2', '2'); |
| | | tempMap.put('OTV-S300', '4'); |
| | | target.planProducts = tempMap; //计划出借备品 |
| | | target.targetEvent.noOpp_Reason__c = 'HCP对应'; //无询价申请理由 |
| | | //target.planProducts = tempMap; //计划出借备品 |
| | | //target.targetEvent.noOpp_Reason__c = 'HCP对应'; //无询价申请理由 |
| | | //2020/10/29 MZY end |
| | | target.init(); |
| | | //target.init(); |
| | | // target.saveAndNew(); |
| | | //2020/10/30 mzy start |
| | | insert target.targetEvent; |
| | | //insert target.targetEvent; |
| | | // target.saveOPDPlan(target.targetEvent); |
| | | //2020/10/30 mzy end |
| | | /** |