| | |
| | | public with sharing class loanerArrangedEmailController { |
| | | |
| | | |
| | | |
| | | public loanerArrangedEmailController() { |
| | | } |
| | | public with sharing class LoanerArrangedEmailController { |
| | | |
| | | @AuraEnabled |
| | | public static InitData init(String recordId) { |
| | |
| | | if( rac.Campaign__c != null ){ |
| | | //获取学会对象 |
| | | Campaign camp = [select Id, Status, Rental_Apply_Flag__c,IF_Approved__c,Approved_Status__c, Meeting_Approved_No__c from Campaign where id = :rac.Campaign__c]; |
| | | res.CampaignId = camp.Id; |
| | | res.CampaignStatus = camp.Status; |
| | | res.IFApproved = camp.IF_Approved__c; |
| | | res.MeetingApprovedNo = camp.Meeting_Approved_No__c; |
| | | res.ApprovedStatus = camp.Approved_Status__c; |
| | | res.campaignId = camp.Id; |
| | | res.campaignStatus = camp.Status; |
| | | res.iFApproved = camp.IF_Approved__c; |
| | | res.meetingApprovedNo = camp.Meeting_Approved_No__c; |
| | | res.approvedStatus = camp.Approved_Status__c; |
| | | } |
| | | res.Id = recordId; |
| | | res.RaStatus = rac.Status__c; |
| | | res.WeiAssignedCnt = Integer.valueOf(rac.Wei_Assigned_Cnt__c); |
| | | res.AssignedNotShipment = Integer.valueOf(rac.Assigned_Not_Shipment__c); |
| | | res.DemoPurpose1 = rac.Demo_purpose1__c; |
| | | res.ContractPdfUpdated = rac.Contract_pdf_updated__c; |
| | | res.RepairId = rac.Repair__c; |
| | | res.RepairFinalInspectionDateF = rac.Repair_Final_Inspection_Date_F__c; |
| | | res.RCReturnToOffice = rac.RC_return_to_office__c; |
| | | res.StatusList = status; |
| | | res.id = recordId; |
| | | res.raStatus = rac.Status__c; |
| | | res.weiAssignedCnt = Integer.valueOf(rac.Wei_Assigned_Cnt__c); |
| | | res.assignedNotShipment = Integer.valueOf(rac.Assigned_Not_Shipment__c); |
| | | res.demoPurpose1 = rac.Demo_purpose1__c; |
| | | res.contractPdfUpdated = rac.Contract_pdf_updated__c; |
| | | res.repairId = rac.Repair__c; |
| | | res.repairFinalInspectionDateF = rac.Repair_Final_Inspection_Date_F__c; |
| | | res.rCReturnToOffice = rac.RC_return_to_office__c; |
| | | res.statusList = status; |
| | | } |
| | | catch (Exception e) { |
| | | System.debug(LoggingLevel.INFO, '****e:' + e); |
| | |
| | | |
| | | public class InitData{ |
| | | @AuraEnabled |
| | | public String Id; |
| | | public String id; |
| | | @AuraEnabled |
| | | public String CampaignStatus; //学会状态 |
| | | public String campaignStatus; //学会状态 |
| | | @AuraEnabled |
| | | public String CampaignId; //学会Id |
| | | public String campaignId; //学会Id |
| | | @AuraEnabled |
| | | public String RaStatus; //备品借出申请状态 |
| | | public String raStatus; //备品借出申请状态 |
| | | @AuraEnabled |
| | | public Integer WeiAssignedCnt; //未分配件数 Wei_Assigned_Cnt__c |
| | | public Integer weiAssignedCnt; //未分配件数 Wei_Assigned_Cnt__c |
| | | @AuraEnabled |
| | | public Integer AssignedNotShipment; //已分配未出库指示 Assigned_Not_Shipment__c |
| | | public Integer assignedNotShipment; //已分配未出库指示 Assigned_Not_Shipment__c |
| | | @AuraEnabled |
| | | public String DemoPurpose1; //使用目的1 Demo_purpose1__c |
| | | public String demoPurpose1; //使用目的1 Demo_purpose1__c |
| | | @AuraEnabled |
| | | public Boolean ContractPdfUpdated; //合同书已上传 Contract_pdf_updated__c |
| | | public Boolean contractPdfUpdated; //合同书已上传 Contract_pdf_updated__c |
| | | @AuraEnabled |
| | | public String RepairId; //学会.修理Id |
| | | public String repairId; //学会.修理Id |
| | | @AuraEnabled |
| | | public Date RepairFinalInspectionDateF; //修理最终检测日F Repair_Final_Inspection_Date_F__c |
| | | public Date repairFinalInspectionDateF; //修理最终检测日F Repair_Final_Inspection_Date_F__c |
| | | @AuraEnabled |
| | | public Date RCReturnToOffice; //RC修理品返送日 RC_return_to_office__c |
| | | public Date rCReturnToOffice; //RC修理品返送日 RC_return_to_office__c |
| | | @AuraEnabled |
| | | public Boolean IFApproved; //学会.是否需要申请决裁 |
| | | public Boolean iFApproved; //学会.是否需要申请决裁 |
| | | @AuraEnabled |
| | | public String MeetingApprovedNo; //学会.会议决裁编码 |
| | | public String meetingApprovedNo; //学会.会议决裁编码 |
| | | @AuraEnabled |
| | | public String ApprovedStatus; //学会.决裁状态 Approved_Status__c |
| | | public String approvedStatus; //学会.决裁状态 Approved_Status__c |
| | | @AuraEnabled |
| | | public List<String> StatusList; |
| | | public List<String> statusList; |
| | | } |
| | | } |