| | |
| | | public with sharing class CampaignCreateController { |
| | | public List<AdjudicationData> AdjudicationDataList{ get; set; } |
| | | // public List<AdjudicationData> AdjudicationDataList{ get; set; } |
| | | public AdjudicationData AdjudicationDataobj{ get; set; } |
| | | public boolean hasError { get; set; } |
| | | public String MeetingApprovedName{ get; set; } |
| | | // public String MeetingApprovedName{ get; set; } |
| | | public String flag{ get; set; } |
| | | public String CampaignTheme{ get; set; } |
| | | private String RecordTypeId{ get; set; } |
| | |
| | | // 默认选中 |
| | | ad.cam.IF_Approved__c = true; |
| | | // AdjudicationDataList.add(ad); |
| | | AdjudicationDataobj=ad; |
| | | AdjudicationDataobj = ad; |
| | | return null; |
| | | } else{ |
| | | String buildUrl = skipBuildPage(); |
| | |
| | | MeetingApprovedIdList.add(AdjudicationDataobj.cam.Meeting_Approved_No__c); |
| | | } |
| | | List<Application_for_Conference_Adjudication__c> MeetingApprovedList = |
| | | [select Id, Name, StartDate__c, EndDate__c, BudgetType__c, OfficeCategory__c, MeetingType__c, WorkshopPlace__c, |
| | | [select Id, Name, StartDate__c, EndDate__c, Implementation_Purpose1__c, OfficeCategory__c, MeetingType__c, WorkshopPlace__c, |
| | | HostName__c, CooperatorCompany__c, ConveningParticipantsNum__c, ExpectedOlympusAttendance__c,ExpectedHcpAttendance__c, |
| | | SponsorshipCategory__c, IsPaidToSponsor__c, ActivityTypeName__c, Type_of_adjudication_meeting__c |
| | | from Application_for_Conference_Adjudication__c where Id = :MeetingApprovedIdList]; |
| | |
| | | system.debug('123321+++++++===='+AdjudicationDataobj.cam.IF_Approved__c); |
| | | if(AdjudicationDataobj.cam != null){ |
| | | if(AdjudicationDataobj.cam.IF_Approved__c || String.isNotBlank(AdjudicationDataobj.cam.Meeting_Approved_No__c)){ |
| | | url += '&00N1m000005tHDi=1'; |
| | | url += NFMUtil.isSandbox() ? '&00N1m000005tHDi=1' : '&00N10000009HBVs=1'; |
| | | }else{ |
| | | url += '&00N1m000005tHDi=0'; |
| | | url += NFMUtil.isSandbox() ? '&00N1m000005tHDi=0' : '&00N10000009HBVs=0'; |
| | | } |
| | | } |
| | | if(AdjudicationDataobj.cam != null && String.isNotBlank(AdjudicationDataobj.cam.Meeting_Approved_No__c)){ |
| | |
| | | if(String.isNotBlank(String.valueOf(mam.EndDate__c))){ |
| | | url += '&cpn6=' + String.valueOf(mam.EndDate__c).replace('-','/'); |
| | | } |
| | | if(String.isNotBlank(mam.BudgetType__c)){ |
| | | url += '&00N100000098OEy=' + mam.BudgetType__c; |
| | | if(String.isNotBlank(mam.Implementation_Purpose1__c)){ |
| | | url += '&00N100000098OEy=' + mam.Implementation_Purpose1__c; |
| | | } |
| | | if(String.isNotBlank(mam.OfficeCategory__c)){ |
| | | url += '&00N10000006pwAg=' + mam.OfficeCategory__c; |
| | |
| | | url += '&00N10000008ptmP=' + mam.ConveningParticipantsNum__c; |
| | | } |
| | | if(String.isNotBlank(String.valueOf(mam.ExpectedOlympusAttendance__c))){ |
| | | url += '&00N1m00000652oO=' + mam.ExpectedOlympusAttendance__c; |
| | | url += (NFMUtil.isSandbox() ? '&00N1m00000652oO=' : '&00N10000009HBYD=') + mam.ExpectedOlympusAttendance__c; |
| | | } |
| | | //预计参会HCP人数、赞助类别、赞助款项是否支付给主办方、活动形式 |
| | | if(String.isNotBlank(String.valueOf(mam.ExpectedHcpAttendance__c))){ |
| | | url += '&00N1m00000652oT=' + mam.ExpectedHcpAttendance__c; |
| | | url += (NFMUtil.isSandbox() ? '&00N1m00000652oT=' : '&00N10000009HBY8=') + mam.ExpectedHcpAttendance__c; |
| | | } |
| | | if(String.isNotBlank(mam.SponsorshipCategory__c)){ |
| | | url += '&00N1m000006fdGn=' + mam.SponsorshipCategory__c; |
| | | url += (NFMUtil.isSandbox() ? '&00N1m000006fdGn=' : '&00N10000009HBYI=') + mam.SponsorshipCategory__c; |
| | | } |
| | | if(String.isNotBlank(mam.IsPaidToSponsor__c)){ |
| | | url += '&00N1m000006fcjJ=' + mam.IsPaidToSponsor__c; |
| | | url += (NFMUtil.isSandbox() ? '&00N1m000006fcjJ=' : '&00N10000009HBYN=') + mam.IsPaidToSponsor__c; |
| | | } |
| | | if(String.isNotBlank(mam.Type_of_adjudication_meeting__c)){ |
| | | url += '&00N1m00000652jY=' + mam.Type_of_adjudication_meeting__c; |
| | | } |
| | | url += (NFMUtil.isSandbox() ? '&00N1m00000652jY=' : '&00N10000009HBY3=') + mam.Type_of_adjudication_meeting__c; |
| | | } |
| | | } |
| | | // } |
| | | PageReference pg = new PageReference(url); |