| | |
| | | public with sharing class LeadIntentionController { |
| | | public List<PCLInfo> pclInfos { get; set; } |
| | | public without sharing class LeadIntentionController { |
| | | public List<PCLInfo> pclInfos { get; set; } |
| | | |
| | | /*****************検索用******************/ |
| | | |
| | |
| | | public String[] sortOrder { get; set; } |
| | | public String[] columus = new String[]{'Contact_Name__c', 'Hospital_Name__c', 'Department_Class__c', 'Company__c', 'Status__c' |
| | | ,'Request1__c', 'Inquiry_No__c', 'Phone__c', 'Email__c', 'Cancel_Reason__c' |
| | | ,'Opp_Name_Search__c', 'Opportunity_Division__c', 'LeadSource__c', 'Campaign__c' |
| | | ,'Opp_Name_Search__c', 'Opportunity_Division__c', 'LeadSource__c', 'Campaign__c' |
| | | ,'Urgent__c', 'Request_Detail__c','Contact_Id__c','Hospital_ID__c','Department_ID__c','Opp_Name_Search_ID__c' |
| | | ,'Campaign_ID__c','Id','Name','Family_Name__c','Last_Name__c','Reasons_options__c','Product1__c' |
| | | }; |
| | |
| | | private String soqlForMoneyWithoutSort = null; |
| | | |
| | | private static Integer searchLimit = 1000; |
| | | public String staticResource {get; set;} |
| | | public String awsDataIds {get; set;} |
| | | public LeadIntentionController() { |
| | | |
| | | pclInfos = new List<PCLInfo>(); |
| | |
| | | |
| | | isActiveFormula = '有效'; |
| | | |
| | | staticResource = JSON.serialize(PIHelper.getPIIntegrationInfo('Inquiry_form__c')); |
| | | } |
| | | |
| | | public PageReference init() { |
| | |
| | | } |
| | | soqlWithoutSort = this.makeSoql(false, accSearch, ownerSearch, |
| | | text, condition, value, text2, condition2, value2, text3, condition3, value3); |
| | | String soql = soqlWithoutSort + ' order by CreatedDate desc limit ' + Integer.valueOf(limits); |
| | | String soql = soqlWithoutSort + ' order by CreatedDate desc limit ' + Integer.valueOf(limits); |
| | | |
| | | soqlForMoneyWithoutSort = this.makeSoql(true, accSearch, ownerSearch, |
| | | text, condition, value, text2, condition2, value2, text3, condition3, value3); |
| | | String soqlForMoney = soqlForMoneyWithoutSort + ' order by CreatedDate desc limit ' + Integer.valueOf(System.Label.TotalLimit); |
| | | String soqlForMoney = soqlForMoneyWithoutSort + ' order by CreatedDate desc limit ' + Integer.valueOf(System.Label.TotalLimit); |
| | | System.debug('soqlWithoutSort:' + soqlWithoutSort); |
| | | system.debug('aaaaaaaaaa'+soql); |
| | | system.debug('bbbbbbb:'+soqlForMoney); |
| | |
| | | System.debug('最后取得:'+pclInfos.size()); |
| | | pclCount = pclInfos.size(); |
| | | ApexPages.addmessage(new ApexPages.message(ApexPages.severity.INFO, '取得最近的 ' + pclCount + ' 条数据')); |
| | | |
| | | |
| | | List<String> a = new List<String>(); |
| | | for(Inquiry_form__c ifc : queryList){ |
| | | a.add(ifc.AWS_Data_Id__c); |
| | | } |
| | | awsDataIds = JSON.serialize(a); |
| | | return null; |
| | | } |
| | | |
| | |
| | | List<Inquiry_form__c> updateInquiryform = new List<Inquiry_form__c>(); |
| | | Inquiry_form__c inquiryForm = new Inquiry_form__c(); |
| | | inquiryForm.Id = inquiryformId; |
| | | inquiryForm.Status__c = '不需要'; |
| | | inquiryForm.Status__c = '02.不需要'; |
| | | //不需要的时候 的确认日期 |
| | | system.debug('ccccccc:'+opp_ID); |
| | | inquiryForm.Confirmation_Date__c = Date.toDay(); |
| | |
| | | system.debug('输出的值为:'+oi.reasonFlg); |
| | | if (oi.reasonFlg == '1') { |
| | | oi.reasonFlg = '0'; |
| | | oi.rec.Status__c = '不需要'; |
| | | oi.rec.Status__c = '02.不需要'; |
| | | oi.rec.Reasons_options__c=batchReason; |
| | | oi.rec.Cancel_Reason__c = batchReason; |
| | | oi.rec.Confirmation_Date__c = Date.toDay(); |
| | |
| | | + ' Opp_Name_Search__c, Opportunity_Division__c, LeadSource__c, Campaign__c,' |
| | | + ' Urgent__c, Request_Detail__c ,Contact_Id__c,Hospital_ID__c,Department_ID__c,Opp_Name_Search_ID__c,' |
| | | + 'Campaign_ID__c,Last_Name__c,Family_Name__c,Name,Reasons_options__c,' |
| | | + 'Product1__c,Confirmation_Date__c' |
| | | + 'Product1__c,Confirmation_Date__c,AWS_Data_Id__c' |
| | | //,Lead_link__c |
| | | + ' from Inquiry_form__c where Id != null ' |
| | | + ' from Inquiry_form__c where Id != null '; |
| | | //2021-11-24 mzy 共通平台项目-首页修改 start |
| | | //只查询所有人是当前用户的产品咨询单 |
| | | + ' And OwnerId = \''+UserInfo.getUserId()+'\''; |
| | | //+ ' And OwnerId = \''+UserInfo.getUserId()+'\'' |
| | | //2021-11-24 mzy 共通平台项目-首页修改 end |
| | | |
| | | //状态只显示未跟进 |