Пример #1
0
        public void ExtractRelation(IfDataStrategy DataReader, MainDataSet dataset)
        {
            //TaskType
            Record record = DataReader.GetDNodeBySNodeandEdgeType(this.Name, this.Type, "Binding");

            this.taskType = dataset.GetTypeItem(record.Name);
            //ProcedureSteps
            this.procedureSteps.Clear();
            List <string> steps = DataReader.GetDNodesBySNodeandEdgeType(this.Name, this.Type, "Include");

            foreach (string stepname in steps)
            {
                this.procedureSteps.Add(dataset.GetStepItem(stepname));
            }
            procedureSteps.Sort();
        }
Пример #2
0
        public void ExtractRelation(IfDataStrategy DataReader, MainDataSet dataset)
        {
            Record record;

            //TaskType[1:1]
            record = DataReader.GetDNodeBySNodeandEdgeType(this.Name, this.Type, "SetType");
            this.task.BusinessType = dataset.GetTypeItem(record.Name);
            //Sumitter[1:1]
            record = DataReader.GetDNodeBySNodeandEdgeType(this.Name, this.Type, "Submitter");
            this.task.Submitter = dataset.GetUserItem(record.Name);
            //Handler[1:1]
            record            = DataReader.GetDNodeBySNodeandEdgeType(this.Name, this.Type, "Handler");
            this.task.Handler = dataset.GetUserItem(record.Name);
            //Priority[1:1]
            record           = DataReader.GetDNodeBySNodeandEdgeType(this.Name, this.Type, "SetPriority");
            this.task.QLevel = dataset.GetQlevelItem(record.Name);
            UpdatePriority();
        }