public Element.Files.InFile GetRelateInFile() { if (s_RelatedObjectType != "CameFileOfficial") { return(null); } return(TheUow.GetObjectByKey <DataEntities.Element.Files.InFile>(n_RelatedObjectID)); }
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); }
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); }
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); }
/// <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); }
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); }
public TFTask GetTask() { return(TheUow.GetObjectByKey <TFTask>(g_TaskID)); }
public TFCodeAction GetTheCodeAction() { return(TheUow.GetObjectByKey <TFCodeAction>(n_CodeActionID)); }
public TFCodeTaskUrgency GetTheTaskUrgency() { return(TheUow.GetObjectByKey <TFCodeTaskUrgency>(n_UrgencyID)); }
public TFCodeWorkItem GetTheCodeWorkItem() { return(TheUow.GetObjectByKey <TFCodeWorkItem>(n_CodeWorkItemID)); }
public TRRemindMode GetTheRemindMode() { return(TheUow.GetObjectByKey <TRRemindMode>(g_RemindModeID)); }
public TFCodeDeadline GetTheCodeDeadline() { return(TheUow.GetObjectByKey <TFCodeDeadline>(g_CodeDeadlineID)); }
public TFCodeTask GetTheCodeTask() { return(TheUow.GetObjectByKey <TFCodeTask>(g_CodeTaskGuid)); }
public TFCodeBaseDate GetTheCodeBaseDate() { return(TheUow.GetObjectByKey <TFCodeBaseDate>(n_CodeBaseDateID)); }
public TFCodeNode GetTheCodeNodeTo() { return(TheUow.GetObjectByKey <TFCodeNode>(g_ToNodeGuid)); }
public TFCodeNode GetTheCodeNodeFrom() { return(TheUow.GetObjectByKey <TFCodeNode>(g_FromNodeGuid)); }
public TFCodeTaskChain GetTheOwnCodeTaskChain() { return(s_Type == "C" ? TheUow.GetObjectByKey <TFCodeTaskChain>(g_OwnCodeTaskChainGuid) : null); }
public TFCodeTask GetTheOwnCodeTask() { return(s_Type == "T" ? TheUow.GetObjectByKey <TFCodeTask>(g_OwnCodeTaskGuid) : null); }
public TFCodeDemandType GetTheCodeDemandType() { return(TheUow.GetObjectByKey <TFCodeDemandType>(n_CodeDemandTypeID)); }
public CodeFee GetTheCodeFee() { return(n_CodeFeeID <= 0 ? null : TheUow.GetObjectByKey <CodeFee>(n_CodeFeeID)); }
public TRRemind GetTheRemind() { return(TheUow.GetObjectByKey <TRRemind>(g_RemindID)); }
public TFCodeTaskChainType GetCodeTaskChainType() { return(TheUow.GetObjectByKey <TFCodeTaskChainType>(n_TaskChainTypeID)); }
public CodeOrganization GetTheParentCodeOrganization() { return(TheUow.GetObjectByKey <CodeOrganization>(n_ParentID)); }
public TFCodeTaskChain GetTheCodeTaskChain() { return(TheUow.GetObjectByKey <TFCodeTaskChain>(g_CodeTaskChainGuid)); }
public TFTaskChain GetTaskChain() { return(TheUow.GetObjectByKey <TFTaskChain>(g_TaskChainID)); }