Ejemplo n.º 1
0
        internal static string GetDfsFsId()
        {
            DfsSet dfsSet = DfsSetUtils.GetMainDfsSet();
            bool   flag   = dfsSet == null;

            if (flag)
            {
                throw new Exception("主文档服务器【DFSMAIN】没有进行配置!");
            }
            return(dfsSet.FsId);
        }
Ejemplo n.º 2
0
        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()));
        }