public void initExhibits() throws Throwable { if (prmtContext != null) { cmplncItemEt = prmtContext.getParentCmplncItemEt(); consntOrder = cmplncItemEt.getConsentOrder(); cmplncItemId = consntOrder.getCmplncItemId(); prmtNo = prmtContext.getOffclPrmtId(); seqNo = prmtContext.getSeqNo(); if (prmtNo == 0) { srchCmplncItemId = cmplncItemId; } if (prmtNo == 0) prmtNo = null; if (seqNo == 0) seqNo = null; // selectedExhibit = new ConsntOrdExhbt(); // selectedExhibit.setExhbtTpCd(82L); if ((!constOrdAction.isCurDocOwner() && consntOrder.getStgCd() != 1540) || consntOrder.getStgCd() == 1541) { disableButtons = true; } else { disableButtons = false; } if (this.getCid() == null) { cid = (String) getReqParamMap().get("_cid"); } if (this.getScanFileNm() != null && !this.getScanFileNm().equals("")) { try { String path = this.getScanFileNm().trim(); this.addFileAsExhibit(null, path); setUploadDocs(true); setUploadFilesFlag(false); } catch (Exception e) { e.printStackTrace(); } this.setScanFileNm(null); editFlag = false; } // setting the list for ordering this.exhibitsList(consntOrder.getConsntOrdExhbts()); } }