Exemplo n.º 1
0
        public virtual void testGetResourceID()
        {
            JDFMedia m    = (JDFMedia)ri.appendResource(ElementName.MEDIA);
            string   name = ri.getResourceID();

            Assert.AreEqual(m.getID(), name);
        }
Exemplo n.º 2
0
        ///
        ///	 <summary> * initializes this node to a given ICS version
        ///	 *  </summary>
        ///	 * <param name="icsLevel"> the level to init to (1,2 or 3) </param>
        ///
        public override void init()
        {
            initColsFromParent();
            initAmountsFromParent();
            if (partIDKeys == null)
            {
                partIDKeys = new VString("SignatureName SheetName Side Separation", null);
            }

            // put level methods?

            int ncols = getNCols();

            while (cols.Count > ncols && ncols > 0)
            {
                cols.RemoveAt(ncols);
            }

            if (icsLevel < 0)
            {
                return;
            }

            string icsTag = "MISCPS_L" + icsLevel + "-" + theVersion.getName();

            theNode.appendAttribute(AttributeName.ICSVERSIONS, icsTag, null, " ", true);
            if (!theNode.hasAttribute(AttributeName.DESCRIPTIVENAME))
            {
                theNode.setDescriptiveName("MISCPS Golden Ticket Example Job - version: " + JDFAudit.software());
            }

            if (!grayBox)
            {
                theNode.setType(EnumType.ConventionalPrinting);
            }
            initColorantControl();
            initConventionalPrintingParams();
            JDFMedia m = initPaperMedia();

            initPlateXM(EnumUsage.Input);
            initDevice(thePreviousNode);
            JDFComponent c = initOutputComponent();

            initInk();
            base.init();
            initPreview();
            setActivePart(vParts, true);
            theStatusCounter.setTrackWaste(c.getID(), true);
            theStatusCounter.setTrackWaste(m.getID(), true);
        }