Ejemplo n.º 1
0
        public override MID processPackage(string package)
        {
            if (base.isCorrectType(package))
            {
                this.HeaderData = base.processHeader(package);
                this.JobData    = new JobDatas().getJobDataFromPackage(package);
                return(this);
            }

            return(this.nextTemplate.processPackage(package));
        }
Ejemplo n.º 2
0
            public JobDatas getJobDataFromPackage(string package)
            {
                this.processFields(package);
                JobDatas jobData = new JobDatas();

                this.JobID       = this.fields[(int)Fields.JOB_ID].ToInt32();
                this.JobName     = this.fields[(int)Fields.JOB_NAME].ToString();
                this.ForcedOrder = (ForcedOrders)this.fields[(int)Fields.FORCED_ORDER].ToInt32();
                this.MaxTimeForFirstTightening = this.fields[(int)Fields.MAX_TIME_FOR_FIRST_TIGHTENING].ToInt32();
                this.MaxTimeToCompleteJob      = this.fields[(int)Fields.MAX_TIME_TO_COMPLETE_JOB].ToInt32();
                this.JobBatchMode          = (JobBatchModes)this.fields[(int)Fields.JOB_BATCH_MODE].ToInt32();
                this.LockAtJobDone         = this.fields[(int)Fields.LOCK_AT_JOB_DONE].ToBoolean();
                this.UseLineControl        = this.fields[(int)Fields.USE_LINE_CONTROL].ToBoolean();
                this.RepeatJob             = this.fields[(int)Fields.REPEAT_JOB].ToBoolean();
                this.ToolLoosening         = (ToolLoosenings)this.fields[(int)Fields.TOOL_LOOSENING].ToInt32();
                this.Reserved              = (Reserveds)this.fields[(int)Fields.RESERVED].ToInt32();
                this.NumberOfParameterSets = this.fields[(int)Fields.NUMBER_OF_PARAMETER_SETS].ToInt32();

                jobData.JobList = new Jobs().getJobsFromPackage(package.Substring(89));
                return(jobData);
            }