public virtual void testMISCPProductGrayBoxBrochure()
        {
            VJDFAttributeMap vMap = new VJDFAttributeMap();

            for (int i = 0; i < 5; i++)
            {
                string          sheetName = i == 0 ? "Cover" : "Body" + i;
                JDFAttributeMap map       = new JDFAttributeMap();
                map.put(EnumPartIDKey.SignatureName, "Sig1");
                map.put(EnumPartIDKey.SheetName, sheetName);
                map.put(EnumPartIDKey.Side, "Front");
                vMap.Add(new JDFAttributeMap(map));
                map.put(EnumPartIDKey.Side, "Back");
                vMap.Add(new JDFAttributeMap(map));
            }

            MISCPGoldenTicket cpGoldenTicket = new MISCPGoldenTicket(1, null, 2, 2, true, vMap);

            cpGoldenTicket.nCols[0]  = cpGoldenTicket.nCols[1] = 6;
            cpGoldenTicket.workStyle = EnumWorkStyle.WorkAndTurn;

            ProductGoldenTicket pgt = new ProductGoldenTicket(0, EnumVersion.Version_1_3, 0, 0);

            pgt.assign(null);
            pgt.createHDCity();
            JDFNode node   = pgt.getNode();
            JDFNode nodeCP = node.addJDFNode(EnumType.ProcessGroup);

            cpGoldenTicket.assign(nodeCP);
            cpGoldenTicket.good  = 1000;
            cpGoldenTicket.waste = 90;

            cpGoldenTicket.partsAtOnce = 2;
            BaseGoldenTicketTest.write3GTFiles(this, cpGoldenTicket, "MISCPS_ProductGrayBox");
        }
        public virtual void testMISPreImpositionPreparation()
        {
            for (int i = 0; i < 4; i++)
            {
                MISPreGoldenTicket goldenTicket = new MISPreGoldenTicket(1, null, 2, 2, vMap);
                goldenTicket.bStripping = i % 2 == 1;
                goldenTicket.nCols[0]   = goldenTicket.nCols[1] = 4;
                goldenTicket.workStyle  = EnumWorkStyle.WorkAndTurn;
                goldenTicket.setCategory(MISPreGoldenTicket.MISPRE_IMPOSITIONPREPARATION);

                JDFNode nodePre = null;
                if (i < 2)
                {
                    ProductGoldenTicket pgt = new ProductGoldenTicket(0, EnumVersion.Version_1_3, 0, 0);
                    pgt.assign(null);
                    pgt.createHDCity();
                    JDFNode node = pgt.getNode();
                    nodePre = node.addJDFNode(EnumType.ProcessGroup);
                }
                else
                {
                    // nop
                }

                goldenTicket.assign(nodePre);
                BaseGoldenTicketTest.write3GTFiles(this, goldenTicket, "MISPre_" + (i < 2 ? "GB_" : "") + "ImpositionPreparation" + (goldenTicket.bStripping ? "Strip" : ""));
            }
        }
Beispiel #3
0
        public virtual void testProductCreateHDCity()
        {
            pgt = new ProductGoldenTicket(0, EnumVersion.Version_1_3, 0, 0);
            pgt.assign(null);
            pgt.createHDCity();
            JDFNode node = pgt.getNode();

            node.getOwnerDocument_JDFElement().write2File(sm_dirTestDataTemp + "HDCity.jdf", 2, false);
            node.setJobID("6917");
            Assert.IsTrue(node.isValid(EnumValidationLevel.Complete));
        }
        public virtual void testMIPreComplex()
        {
            for (int i = 0; i < 4; i++)
            {
                for (int ii = 0; ii < 2; ii++)
                {
                    bool bExpand            = ii == 0;
                    ProductGoldenTicket pgt = new ProductGoldenTicket(0, EnumVersion.Version_1_3, 0, 0);
                    pgt.assign(null);
                    pgt.createHDCity();
                    JDFNode node = pgt.getNode();

                    JDFNode            nodePre      = node.addJDFNode(EnumType.ProcessGroup);
                    MISPreGoldenTicket goldenTicket = new MISPreGoldenTicket(1, null, 2, 2, null);
                    goldenTicket.nCols[0]       = goldenTicket.nCols[1] = 4;
                    goldenTicket.workStyle      = EnumWorkStyle.WorkAndTurn;
                    goldenTicket.bExpandGrayBox = bExpand;

                    goldenTicket.setCategory(MISPreGoldenTicket.MISPRE_PREPRESSPREPARATION);
                    goldenTicket.assign(nodePre);
                    pgt.addKid(goldenTicket);

                    MISPreGoldenTicket goldenTicket2 = new MISPreGoldenTicket(goldenTicket, vMap);
                    goldenTicket2.bStripping     = i % 2 == 1;
                    goldenTicket2.bExpandGrayBox = bExpand;

                    JDFNode nodeImp = node.addJDFNode(EnumType.ProcessGroup);
                    goldenTicket2.setCategory(MISPreGoldenTicket.MISPRE_IMPOSITIONPREPARATION);
                    goldenTicket2.assign(nodeImp);
                    pgt.addKid(goldenTicket2);

                    MISPreGoldenTicket goldenTicket3 = new MISPreGoldenTicket(goldenTicket2, null);
                    JDFNode            nodeRIP       = node.addJDFNode(EnumType.ProcessGroup);
                    goldenTicket3.bExpandGrayBox = bExpand;
                    goldenTicket3.setCategory(i < 2 ? MISPreGoldenTicket.MISPRE_IMPOSITIONRIPING : MISPreGoldenTicket.MISPRE_PLATEMAKING);
                    goldenTicket3.assign(nodeRIP);
                    pgt.addKid(goldenTicket3);

                    if (i < 2)
                    {
                        MISPreGoldenTicket goldenTicket4 = new MISPreGoldenTicket(goldenTicket3, null);
                        JDFNode            nodePlateSet  = node.addJDFNode(EnumType.ProcessGroup);
                        goldenTicket4.setCategory(MISPreGoldenTicket.MISPRE_PLATESETTING);
                        goldenTicket4.assign(nodePlateSet);
                        pgt.addKid(goldenTicket4);
                    }

                    BaseGoldenTicketTest.write3GTFiles(this, pgt, "MISPre_ComplexPlate" + (i >= 2 ? "Making" : "Setting") + (goldenTicket2.bStripping ? "Strip" : "") + (bExpand ? "Expand" : ""));
                }
            }
        }
        public virtual void testMISPreContentCreation()
        {
            MISPreGoldenTicket goldenTicket = new MISPreGoldenTicket(1, null, 2, 2, vMap);

            goldenTicket.nCols[0]  = goldenTicket.nCols[1] = 4;
            goldenTicket.workStyle = EnumWorkStyle.WorkAndTurn;
            goldenTicket.setCategory(MISPreGoldenTicket.MISPRE_CONTENTCREATION);

            ProductGoldenTicket pgt = new ProductGoldenTicket(0, EnumVersion.Version_1_3, 0, 0);

            pgt.assign(null);
            pgt.createHDCity();
            JDFNode node    = pgt.getNode();
            JDFNode nodePre = node.addJDFNode(EnumType.ProcessGroup);

            goldenTicket.assign(nodePre);
            BaseGoldenTicketTest.write3GTFiles(this, goldenTicket, "MISPre_ContentCreation");
        }
Beispiel #6
0
        public virtual void createMultiLabels()
        {
            theNode.setDescriptiveName("Multi Label Product");
            JDFDeliveryIntent diBig = initDeliveryIntent(0);

            theNode.removeResource(ElementName.CUSTOMERINFO, 0);

            ProductGoldenTicket gtLabel1 = new ProductGoldenTicket(0, EnumVersion.Version_1_3, 0, 0);
            JDFNode             n1       = theNode.addProduct();

            gtLabel1.assign(n1);
            addKid(gtLabel1);

            gtLabel1.initCustomerInfo("Johann", "ReweEinkäufer", "Rewe", "Mineralwasser label");
            initMediaIntent(n1, 24.4, EnumSpanCoatings.Coated, "38DL247 38");
            JDFLayoutIntent li = initLayoutIntent(n1, 92, 28.3, 1, 1);

            initColorIntent(n1, 6, 0, null);
            initOutputComponent(n1, li, "Label");
            JDFDeliveryIntent di = gtLabel1.initDeliveryIntent(5000);

            diBig.moveElement(di.getDropIntent(0), null);
            gtLabel1.getNode().removeResource("DeliveryIntent", 0);

            ProductGoldenTicket gtLabel2 = new ProductGoldenTicket(0, EnumVersion.Version_1_3, 0, 0);

            JDFNode n2 = theNode.addProduct();

            gtLabel2.assign(n2);
            addKid(gtLabel2);

            gtLabel2.initCustomerInfo("Franzi", "KulmbachEinkäufer", "Kulmbach", "Weissbier label");
            initMediaIntent(n2, 24.4, EnumSpanCoatings.Coated, "38DL247 38");
            li            = initLayoutIntent(n2, 11.4, 5, 1, 1);
            gtLabel2.cols = new VString("Green Gold Black Yellow Gold Thermo", null);
            gtLabel2.initColorIntent(n2, 6, 0, null);
            initOutputComponent(n2, li, "Label");
            di = gtLabel2.initDeliveryIntent(10000);
            diBig.moveElement(di.getDropIntent(0), null);
            gtLabel2.getNode().removeResource("DeliveryIntent", 0);
        }