序时簿界面的附件控制

    技术2022-07-10  150

    /** * 附件管理 */ public void actionAttachment_actionPerformed(ActionEvent e) throws Exception { //checkSelected(); ArrayList ids = getSelectedIdValues(); if(ids == null || ids.size() != 1){ MsgBox.showConfirm2("请选择一行数据编辑!"); SysUtil.abort(); } String id = (String)ids.get(0); BreedingContractInfo bInfo = BreedingContractFactory.getRemoteInstance().getBreedingContractInfo(new ObjectUuidPK(id)); Boolean flag = true; //审批中 和 已审批的单据不能修改附件 if(BillStatus.approved.equals(bInfo.getBillStatus()) || BillStatus.processed.equals(bInfo.getBillStatus()) ){ flag = false; } AttachmentClientManager acm = AttachmentManagerFactory.getClientManager(); String boID = getSelectedKeyValue(); checkSelected(); if (boID == null) { return; } AttachmentUIContextInfo info = new AttachmentUIContextInfo(); info.setBoID(boID); info.setCode(""); info.setEdit(flag); info.setListener(createAttatchListener("HEAD")); acm.showAttachmentListUIByBoID(this, info); }

     

    Processed: 0.010, SQL: 9