public void ExtractRelation(IfDataStrategy DataReader, MainDataSet dataset) { //UserRoles[1:n] this.usrGroups.Clear(); List <string> groups = DataReader.GetDNodesBySNodeandEdgeType(this.Name, this.Type, "BelongTo"); foreach (string group in groups) { this.usrGroups.Add(dataset.GetGroupItem(group)); } List <string> tasks; //SubmitTasks[1:n] this.taskSubmit.Clear(); tasks = DataReader.GetDNodesBySNodeandEdgeType(this.Name, this.Type, "Submit"); foreach (string taskname in tasks) { this.taskSubmit.Add(dataset.GetTaskItem(taskname)); } //HandleTasks[1:n] this.taskHandle.Clear(); tasks = DataReader.GetDNodesBySNodeandEdgeType(this.Name, this.Type, "Handle"); foreach (string taskname in tasks) { this.taskHandle.Add(dataset.GetTaskItem(taskname)); } }
public void UpdateRelation(IfDataStrategy DataReader, MainDataSet dataset) { //Users[1:n] this.users.Clear(); List <string> sUsers = DataReader.GetDNodesBySNodeandEdgeType(this.Name, this.Type, "Include"); foreach (string username in sUsers) { this.users.Add(dataset.GetUserItem(username)); } //ProcedureStep[1:n] this.procedureSteps.Clear(); List <string> sSteps = DataReader.GetDNodesBySNodeandEdgeType(this.Name, this.Type, "InCharge"); foreach (string stepname in sSteps) { this.procedureSteps.Add(dataset.GetStepItem(stepname)); } }
public void ExtractRelation(IfDataStrategy DataReader, MainDataSet dataset) { this.user.ExtractRelation(DataReader, dataset); //InferiorUsers[1:n] List <string> inferiors = DataReader.GetDNodesBySNodeandEdgeType(this.Name, this.Type, "Inferior"); foreach (string username in inferiors) { this.uInferiors.Add(dataset.GetUserItem(username)); } }
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(); }