private void GetFilePath() { // 根据稿件ID或者流程日志ID得到稿件路径 long CIDParam = 0; if (!string.IsNullOrEmpty(Request.QueryString["CID"])) { CIDParam = TypeParse.ToLong(Request.QueryString["CID"], 0); } // 日志ID long FlowLogID = 0; if (!string.IsNullOrEmpty(Request.QueryString["FlowID"])) { FlowLogID = TypeParse.ToLong(Request.QueryString["FlowID"], 0); } if (CIDParam > 0) { IContributionFacadeService cService = ServiceContainer.Instance.Container.Resolve <IContributionFacadeService>(); // 得到稿件路径 ContributionInfoQuery cQuery = new ContributionInfoQuery(); cQuery.JournalID = SiteConfig.SiteID; cQuery.CID = CIDParam; _filePath = cService.GetContributionAttachment(cQuery); } else if (FlowLogID > 0) { IFlowFacadeService flowService = ServiceContainer.Instance.Container.Resolve <IFlowFacadeService>(); // 附件路径 FlowLogQuery logQuery = new FlowLogQuery(); logQuery.JournalID = SiteConfig.SiteID; logQuery.FlowLogID = FlowLogID; _filePath = flowService.GetFlowLogAttachment(logQuery); } }