public TFCodeNodeRelation GetTheTriggerCodeNodeRelation(TFNode parentNode) { var parentCodeNode = parentNode.GetTheCodeNode(); var codeNode = GetTheCodeNode(); return(TheUow.FindObject <TFCodeNodeRelation>(CriteriaOperator.Parse("g_FromNodeGuid = ? And g_ToNodeGuid = ?", parentCodeNode.g_ID, codeNode.g_ID))); }
public TFNode GetTheBelongNode() { CriteriaOperator criteriaOperator = CriteriaOperator.Parse("s_Type = 'C' And g_OwnTaskChainGuid = ?", g_ID); var node = TheUow.FindObject <TFNode>(criteriaOperator); if (node != null) { return(node); } node = TheUow.GetObjectsInTransaction(TheUow.GetClassInfo <TFNode>(), criteriaOperator, false).Cast <TFNode>().FirstOrDefault(); return(node); }
public TFCodeDeadline GetTheCodeDeadline() { return(TheUow.FindObject <TFCodeDeadline>(CriteriaOperator.Parse("g_ID = ?", g_CodeDeadlineID))); }
public TFTaskCycleConfig GetTheTaskCycleConfig() { return(TheUow.FindObject <TFTaskCycleConfig>(CriteriaOperator.Parse("g_ID = ?", g_TaskCycleConfigGuid))); }
public TFNode GetTheBelongNode() { return(TheUow.FindObject <TFNode>(CriteriaOperator.Parse("g_OwnTaskGuid = ?", g_ID))); }
public TFNode GetTheStartNode() { return(TheUow.FindObject <TFNode>(CriteriaOperator.Parse("g_TaskChainGuid = ? And s_Type = 'S'", g_ID))); }
public TFCodeWorkItem GetTheCodeWorkItem() { return(TheUow.FindObject <TFCodeWorkItem>(CriteriaOperator.Parse("n_ID = ?", n_CodeWorkItemID))); }
public TFNode GetTheFormerNode() { return(TheUow.FindObject <TFNode>(CriteriaOperator.Parse("g_ID = ?", g_FormerNodeGuid))); }
public TFCodeNode GetTheCodeNode() { return(string.IsNullOrEmpty(s_CodeNodeCode) ? null : TheUow.FindObject <TFCodeNode>(CriteriaOperator.Parse("s_Code = ?", s_CodeNodeCode))); }