示例#1
0
 public Element.Files.InFile GetRelateInFile()
 {
     if (s_RelatedObjectType != "CameFileOfficial")
     {
         return(null);
     }
     return(TheUow.GetObjectByKey <DataEntities.Element.Files.InFile>(n_RelatedObjectID));
 }
示例#2
0
 public object GetTheRelatedObject()
 {
     if (s_RelatedObjectType == "Common")
     {
         return(TheUow.GetObjectByKey <CodeOrganizationCommon>(n_RelatedObjectID));
     }
     if (s_RelatedObjectType == "Agency")
     {
         return(TheUow.GetObjectByKey <CodeAgencyInfo>(n_RelatedObjectID));
     }
     return(null);
 }
示例#3
0
 public object GetTheRelatedObject()
 {
     if (s_RelatedObjectType == "Case")
     {
         return(TheUow.GetObjectByKey <Case.BasicCase>(n_RelatedObjectID));
     }
     if (s_RelatedObjectType == "CameFileOfficial")
     {
         return(TheUow.GetObjectByKey <Element.Files.InFile>(n_RelatedObjectID));
     }
     return(null);
 }
示例#4
0
 public Case.BasicCase GetRelatedCase()
 {
     Case.BasicCase baseCase = null;
     if (s_RelatedObjectType == "Case")
     {
         baseCase = TheUow.GetObjectByKey <Case.BasicCase>(n_RelatedObjectID);
     }
     if (baseCase == null)
     {
         var inFile = GetRelateInFile();
         if (inFile != null)
         {
             baseCase = inFile.TheMainCase;
         }
     }
     return(baseCase);
 }
示例#5
0
        /// <summary>
        /// 获取本链所有相关文件IDS(直接关联的来文及其附件+任务输出参数中的来文)
        /// </summary>
        /// <returns></returns>
        public List <string> GetInFileIdsOfTheTaskChain()
        {
            var lst = new List <string>();

            //1. 直接关联的来文及其附件
            if (s_RelatedObjectType == "CameFileOfficial")
            {
                var relateMainInFile = TheUow.GetObjectByKey <DataEntities.Element.Files.InFile>(n_RelatedObjectID);
                if (relateMainInFile != null)
                {
                    lst.Add(relateMainInFile.n_FileID.ToString());
                    var attachInFiles = new XPCollection <DataEntities.Element.Files.InFile>(TheUow, CriteriaOperator.Parse("n_ParentID = ?", relateMainInFile.n_FileID));
                    foreach (InFile attachInFile in attachInFiles)
                    {
                        lst.Add(attachInFile.n_FileID.ToString());
                    }
                }
            }
            //2. 本任务链输出参数相关来文
            var paramsInFiles = new XPCollection <TFTaskParameter>(TheUow, CriteriaOperator.Parse("g_TaskChainID = ? AND s_ParaType = 'InFile'", g_ID));

            foreach (TFTaskParameter paramsInFile in paramsInFiles)
            {
                if (!string.IsNullOrWhiteSpace(paramsInFile.s_ParaValue))
                {
                    lst.Add(paramsInFile.s_ParaValue);
                }
            }
            //3. 新案来文
            var relateCaseId = GetRelateCaseID();

            if (relateCaseId > 0)
            {
                var lstNewFileInCase = new XPCollection <FileInCase>(TheUow, CriteriaOperator.Parse("TheFile.s_IsNewCaseInFile = 'Y' AND TheCase.n_CaseID = ?", relateCaseId));
                foreach (FileInCase fileInCase in lstNewFileInCase)
                {
                    lst.Add(fileInCase.TheFile.n_FileID.ToString());
                }
            }
            return(lst);
        }
示例#6
0
        public TFCodeTaskChain GetTheCodeTaskChain()
        {
            var codeTaskChain = TheUow.GetObjectByKey <TFCodeTaskChain>(g_CodeTaskChainGuid);

            if (codeTaskChain != null)
            {
                return(codeTaskChain);
            }
            var belongNode = GetTheBelongNode();

            if (belongNode == null)
            {
                return(codeTaskChain);
            }
            var codeNode = belongNode.GetTheCodeNode();

            if (codeNode != null)
            {
                codeTaskChain = codeNode.GetTheOwnCodeTaskChain();
            }
            return(codeTaskChain);
        }
示例#7
0
 public TFTask GetTask()
 {
     return(TheUow.GetObjectByKey <TFTask>(g_TaskID));
 }
示例#8
0
 public TFCodeAction GetTheCodeAction()
 {
     return(TheUow.GetObjectByKey <TFCodeAction>(n_CodeActionID));
 }
示例#9
0
 public TFCodeTaskUrgency GetTheTaskUrgency()
 {
     return(TheUow.GetObjectByKey <TFCodeTaskUrgency>(n_UrgencyID));
 }
 public TFCodeWorkItem GetTheCodeWorkItem()
 {
     return(TheUow.GetObjectByKey <TFCodeWorkItem>(n_CodeWorkItemID));
 }
示例#11
0
 public TRRemindMode GetTheRemindMode()
 {
     return(TheUow.GetObjectByKey <TRRemindMode>(g_RemindModeID));
 }
示例#12
0
 public TFCodeDeadline GetTheCodeDeadline()
 {
     return(TheUow.GetObjectByKey <TFCodeDeadline>(g_CodeDeadlineID));
 }
 public TFCodeTask GetTheCodeTask()
 {
     return(TheUow.GetObjectByKey <TFCodeTask>(g_CodeTaskGuid));
 }
示例#14
0
 public TFCodeBaseDate GetTheCodeBaseDate()
 {
     return(TheUow.GetObjectByKey <TFCodeBaseDate>(n_CodeBaseDateID));
 }
示例#15
0
 public TFCodeNode GetTheCodeNodeTo()
 {
     return(TheUow.GetObjectByKey <TFCodeNode>(g_ToNodeGuid));
 }
示例#16
0
 public TFCodeNode GetTheCodeNodeFrom()
 {
     return(TheUow.GetObjectByKey <TFCodeNode>(g_FromNodeGuid));
 }
示例#17
0
 public TFCodeTaskChain GetTheOwnCodeTaskChain()
 {
     return(s_Type == "C" ? TheUow.GetObjectByKey <TFCodeTaskChain>(g_OwnCodeTaskChainGuid) : null);
 }
示例#18
0
 public TFCodeTask GetTheOwnCodeTask()
 {
     return(s_Type == "T" ? TheUow.GetObjectByKey <TFCodeTask>(g_OwnCodeTaskGuid) : null);
 }
示例#19
0
 public TFCodeDemandType GetTheCodeDemandType()
 {
     return(TheUow.GetObjectByKey <TFCodeDemandType>(n_CodeDemandTypeID));
 }
示例#20
0
 public CodeFee GetTheCodeFee()
 {
     return(n_CodeFeeID <= 0 ? null : TheUow.GetObjectByKey <CodeFee>(n_CodeFeeID));
 }
示例#21
0
 public TRRemind GetTheRemind()
 {
     return(TheUow.GetObjectByKey <TRRemind>(g_RemindID));
 }
示例#22
0
 public TFCodeTaskChainType GetCodeTaskChainType()
 {
     return(TheUow.GetObjectByKey <TFCodeTaskChainType>(n_TaskChainTypeID));
 }
示例#23
0
 public CodeOrganization GetTheParentCodeOrganization()
 {
     return(TheUow.GetObjectByKey <CodeOrganization>(n_ParentID));
 }
 public TFCodeTaskChain GetTheCodeTaskChain()
 {
     return(TheUow.GetObjectByKey <TFCodeTaskChain>(g_CodeTaskChainGuid));
 }
示例#25
0
 public TFTaskChain GetTaskChain()
 {
     return(TheUow.GetObjectByKey <TFTaskChain>(g_TaskChainID));
 }