From 4677a6d223f3c3576123f55c4b28a149c4b9322a Mon Sep 17 00:00:00 2001 From: 付煜 <fuyu3103346691@163.com> Date: 星期三, 23 三月 2022 15:40:18 +0800 Subject: [PATCH] 周报提交 --- force-app/main/default/classes/WeeklyReportCmp.cls | 15 ++++++++++++++- 1 files changed, 14 insertions(+), 1 deletions(-) diff --git a/force-app/main/default/classes/WeeklyReportCmp.cls b/force-app/main/default/classes/WeeklyReportCmp.cls index c2caf98..b7787c5 100644 --- a/force-app/main/default/classes/WeeklyReportCmp.cls +++ b/force-app/main/default/classes/WeeklyReportCmp.cls @@ -6,6 +6,7 @@ @AuraEnabled public List<Map<String,String>> doctorList{get;set;} // PIPL update Yin Mingjie 21/02/2022 start @AuraEnabled public Map<String,String> awsurl{get;set;} + @AuraEnabled public Map<String,String> contactawsurl{get;set;} // PIPL update Yin Mingjie 21/02/2022 end public WeeklyReportCmp() { } @@ -78,6 +79,9 @@ Map<String,String> space = new Map<String,String>(); space.put('label', ''); space.put('value', ''); + // PIPL update Yin Mingjie 21/02/2022 start + space.put('awsid', ''); + // PIPL update Yin Mingjie 21/02/2022 end space.put('selected', 'true'); tmp.add(space); @@ -87,6 +91,9 @@ Map<String,String> om = new Map<String,String>(); om.put('label', var.Name); om.put('value', var.Id); + // PIPL update Yin Mingjie 21/02/2022 start + om.put('awsid', var.AWS_Data_Id__c); + // PIPL update Yin Mingjie 21/02/2022 end om.put('selected', 'false'); tmp.add(om); } @@ -149,6 +156,7 @@ //System.debug('allselectlist is ' + this.allselectlist); this.awsurl = getAwsurl('Agency_Contact__c');// 20220222 PI鏀归�� by Bright + this.contactawsurl = getAwsurl('Contact');// 20220222 PI鏀归�� by Bright } @@ -250,7 +258,10 @@ @AuraEnabled public static List<Agency_Hospital_Link__c> getHospitalList(String hospital_name) { hospital_name = '%' + hospital_name.trim() + '%'; - return [select Hospital_Name_readonly__c, Id, Hospital__c from Agency_Hospital_Link__c where Hospital_Name_readonly__c like :hospital_name and Agency_Campaign_Obj__c = true]; + system.debug('hospital_name+++'+hospital_name); + List<Agency_Hospital_Link__c> ahllist = [select Hospital_Name_readonly__c, Id, Hospital__c from Agency_Hospital_Link__c where Hospital_Name_readonly__c like :hospital_name and Agency_Campaign_Obj__c = true]; + system.debug('Agency_Campaign_Obj__c+++'+ahllist); + return ahllist; } @RemoteAction @@ -409,6 +420,7 @@ if (Department_Cateogy != '') { agency_report.Department_Cateogy__c = Department_Cateogy; } if (Purpose_Type != '') { agency_report.Purpose_Type__c = Purpose_Type; } //SWAG-CBX68C fy 銆愬鎵樸�慏AMS绯荤粺鍛ㄦ姤妯″潡鍐呭闇�姹傚鍔� start + system.debug('SupportNeedsc+++==++==='+SupportNeedsc); if (SupportNeedsc != '') { agency_report.SupportNeeds__c = SupportNeedsc; } //SWAG-CBX68C fy 銆愬鎵樸�慏AMS绯荤粺鍛ㄦ姤妯″潡鍐呭闇�姹傚鍔� end if (Agency_Report_Header != '') { agency_report.Agency_Report_Header__c = Agency_Report_Header; } @@ -540,6 +552,7 @@ // 閫卞牨銉囥兗銈裤倰鍙栧緱 Date week = Date.valueOf(date_str); this.reports = LightningUtil.selectAgencyReport(week, person_str); + System.debug('this.reports+++'+this.reports); } @RemoteAction -- Gitblit v1.9.1