| | |
| | | public Boolean addFlag { get; private set; }//敏感地址使用标记 |
| | | public String qrcode { get; private set; } |
| | | public String barcode { get; private set; } |
| | | // 20220413 ljh 抬头显示 add start |
| | | public String AgencyAddressName { get; private set; } |
| | | public Boolean isAgencyOrCenter { get; private set; } |
| | | public String AgencyOrCenterAddress { get; private set; } |
| | | // 20220413 ljh 抬头显示 add end |
| | | |
| | | public FixtureRentalPDFController() { |
| | | pageNum = Integer.valueOf(ApexPages.currentPage().getParameters().get('page')); |
| | | rentalApplyIdIMG = ApexPages.currentPage().getParameters().get('raid'); |
| | |
| | | //新建一页 |
| | | |
| | | PDFInfo info = new PDFInfo(new Rental_Apply__c(),New List<Rental_Apply_Equipment_Set_Detail__c>()); |
| | | // 20220413 ljh 抬头显示 update start |
| | | //20201120 LJH OCSM_BP5-61 update start |
| | | // if(!IsShowLU){ |
| | | // if(!IsMain){ |
| | | // info.isAgencyOrCenter = true;//办事处 |
| | | // info.AgencyAddressName = '请将备品回寄至'; |
| | | // info.AgencyAddressName += ApplyHeadShow.ToAgency__c == null ? '' : ApplyHeadShow.ToAgency__c; |
| | | // info.AgencyAddressName += '办事处'; |
| | | // info.AgencyOrCenterAddress = AgencyAddressIdMap.get(ApplyHeadShow.Id); |
| | | // }else{ |
| | | // info.isAgencyOrCenter = false;//备品中心 |
| | | // info.AgencyOrCenterAddress = centerAddressInfo; |
| | | // } |
| | | // }else{ |
| | | // info.isAgencyOrCenter = false;//备品中心 |
| | | // info.AgencyOrCenterAddress = centerAddressInfo; |
| | | // } |
| | | //20201120 LJH OCSM_BP5-61 update end |
| | | if(!IsShowLU){ |
| | | if(!IsMain){ |
| | | info.isAgencyOrCenter = true;//办事处 |
| | | info.AgencyAddressName = '请将备品回寄至'; |
| | | info.AgencyAddressName += ApplyHeadShow.ToAgency__c == null ? '' : ApplyHeadShow.ToAgency__c; |
| | | info.AgencyAddressName += '办事处'; |
| | | info.AgencyOrCenterAddress = AgencyAddressIdMap.get(ApplyHeadShow.Id); |
| | | isAgencyOrCenter = true;//办事处 |
| | | AgencyAddressName = '请将备品回寄至'; |
| | | AgencyAddressName += ApplyHeadShow.ToAgency__c == null ? '' : ApplyHeadShow.ToAgency__c; |
| | | AgencyAddressName += '办事处'; |
| | | AgencyOrCenterAddress = AgencyAddressIdMap.get(ApplyHeadShow.Id); |
| | | }else{ |
| | | info.isAgencyOrCenter = false;//备品中心 |
| | | info.AgencyOrCenterAddress = centerAddressInfo; |
| | | isAgencyOrCenter = false;//备品中心 |
| | | AgencyOrCenterAddress = centerAddressInfo; |
| | | } |
| | | }else{ |
| | | info.isAgencyOrCenter = false;//备品中心 |
| | | info.AgencyOrCenterAddress = centerAddressInfo; |
| | | isAgencyOrCenter = false;//备品中心 |
| | | AgencyOrCenterAddress = centerAddressInfo; |
| | | } |
| | | //20201120 LJH OCSM_BP5-61 update end |
| | | // 20220413 ljh 抬头显示 update end |
| | | integer PageCut = 0; |
| | | if (PageAllNum>=7) { |
| | | PageAllNum=7; |
| | |
| | | // Data Bean |
| | | class PDFInfo { |
| | | public String eSetName { get; private set; } //备品中心管理单号 |
| | | public String AgencyAddressName { get; private set; } //回寄地址 20201123 LJH OCSM_BP5-61 add |
| | | public Boolean isAgencyOrCenter { get; private set; } //备品中心?办事处 20201123 LJH OCSM_BP5-61 add |
| | | public String AgencyOrCenterAddress { get; private set; }//20201124 LJH OCSM_BP5-61 add |
| | | // 20220413 ljh 抬头显示 update start |
| | | // public String AgencyAddressName { get; private set; } //回寄地址 20201123 LJH OCSM_BP5-61 add |
| | | // public Boolean isAgencyOrCenter { get; private set; } //备品中心?办事处 20201123 LJH OCSM_BP5-61 add |
| | | // public String AgencyOrCenterAddress { get; private set; }//20201124 LJH OCSM_BP5-61 add |
| | | // 20220413 ljh 抬头显示 update end |
| | | public String requestOwner { get; private set; } //申请人 |
| | | public String salesDept { get; private set; } //所属本部 |
| | | public String workPlace { get; private set; } //所属办事处 |