예제 #1
0
        ///
        ///	 * <param name="icsLevel"> </param>
        ///
        protected internal override JDFNodeInfo initNodeInfo()
        {
            JDFNodeInfo ni = base.initNodeInfo();

            if (theParentNode == null)
            {
                JDFEmployee emp = ni.appendEmployee();
                emp.setPersonalID("personalID1");
                emp.setRoles(new VString("CSR", null));
                if (returnURL != null)
                {
                    ni.setTargetRoute(returnURL);
                }

                if (jmfICSLevel >= 1 && misICSLevel >= 2 || misURL != null)
                {
                    JDFJMF jmf = ni.appendJMF();
                    jmf.setSenderID("MISGTSender");
                    JDFQuery q = jmf.appendQuery(EnumType.Status);
                    q.setID(q.getID() + (System.DateTime.Now.Ticks - 621355968000000000) / 10000 % 100000);

                    //ORIGINAL LINE: final JDFStatusQuParams statusQuParams = q.appendStatusQuParams();
                    JDFStatusQuParams statusQuParams = q.appendStatusQuParams();
                    statusQuParams.setJobID(theNode.getJobID(true));
                    statusQuParams.setJobPartID(theNode.getJobPartID(false));
                    statusQuParams.setJobDetails(EnumJobDetails.Brief);

                    //ORIGINAL LINE: final JDFSubscription subscription = q.appendSubscription();
                    JDFSubscription subscription = q.appendSubscription();
                    subscription.setRepeatTime(600);
                    subscription.setURL(misURL == null ? "http://MIS.printer.com/JMFSignal" : misURL);
                }
            }
            return(ni);
        }