internal static string GetDfsFsId() { DfsSet dfsSet = DfsSetUtils.GetMainDfsSet(); bool flag = dfsSet == null; if (flag) { throw new Exception("主文档服务器【DFSMAIN】没有进行配置!"); } return(dfsSet.FsId); }
internal static string GenDfsPath(double fileId) { DfsSet dfsSet = DfsSetUtils.GetMainDfsSet(); bool flag = dfsSet == null; if (flag) { throw new Exception("主文档服务器【DFSMAIN】没有进行配置!"); } string result = string.Empty; long dfsFileName = (long)fileId; string partPath = string.Format("{0:X6}", dfsFileName); return(Path.Combine(dfsSet.PathLocation, partPath.Substring(4, 2), partPath.Substring(2, 2), dfsFileName.ToString())); }