예제 #1
0
        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)));
        }
예제 #2
0
        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);
        }
예제 #3
0
 public TFCodeDeadline GetTheCodeDeadline()
 {
     return(TheUow.FindObject <TFCodeDeadline>(CriteriaOperator.Parse("g_ID = ?", g_CodeDeadlineID)));
 }
예제 #4
0
 public TFTaskCycleConfig GetTheTaskCycleConfig()
 {
     return(TheUow.FindObject <TFTaskCycleConfig>(CriteriaOperator.Parse("g_ID = ?", g_TaskCycleConfigGuid)));
 }
예제 #5
0
 public TFNode GetTheBelongNode()
 {
     return(TheUow.FindObject <TFNode>(CriteriaOperator.Parse("g_OwnTaskGuid = ?", g_ID)));
 }
예제 #6
0
 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)));
 }
예제 #8
0
 public TFNode GetTheFormerNode()
 {
     return(TheUow.FindObject <TFNode>(CriteriaOperator.Parse("g_ID = ?", g_FormerNodeGuid)));
 }
예제 #9
0
 public TFCodeNode GetTheCodeNode()
 {
     return(string.IsNullOrEmpty(s_CodeNodeCode) ? null : TheUow.FindObject <TFCodeNode>(CriteriaOperator.Parse("s_Code = ?", s_CodeNodeCode)));
 }