Exemple #1
0
        ///
        ///	 * <param name="bag"> </param>
        ///	 * <returns> JDFResourceAudit the generated audit </returns>
        ///
        public virtual JDFResourceAudit setResourceAudit(AmountBag bag, EnumReason reason)
        {
            JDFAuditPool ap = m_Node.getCreateAuditPool();

            JDFResourceAudit ra = ap.addResourceAudit(null);

            ra.setContentsModified(false);
            ra.setReason(reason);

            LinkAmount la = getLinkAmount(bag.refID);

            ra.copyElement(la.getResourceAuditLink(bag), null);
            ra.setPartMapVector(m_vPartMap);

            return(ra);
        }