/// <summary>
        /// 查看
        /// </summary>
        /// <param name="guid"></param>
        /// <param name="type"></param>
        public static void File_Look(Guid guid, CE_CommunicationMode type)
        {
            try
            {
                DepotManagementDataContext ctx = CommentParameter.DepotDataContext;

                var varData = from a in ctx.FM_FilePath
                              where a.FileUnique == guid
                              select a;

                if (varData.Count() == 1)
                {
                    FM_FilePath   tempPath = varData.Single();
                    string        temp     = System.Environment.GetEnvironmentVariable("TEMP");
                    DirectoryInfo info     = new DirectoryInfo(temp);
                    string        guidFile = (Guid.NewGuid()).ToString() + "\\";
                    string        filePath = info.FullName + "\\" + guidFile + tempPath.FileUnique + tempPath.FileType;

                    if (type == CE_CommunicationMode.Socket)
                    {
                        FileServiceSocket serverSocket = new FileServiceSocket(GlobalObject.GlobalParameter.FTPServerIP,
                                                                               GlobalObject.GlobalParameter.FTPServerAdvancedUser,
                                                                               GlobalObject.GlobalParameter.FTPServerAdvancedPassword);
                        serverSocket.Download(varData.Single().FilePath, filePath);
                    }
                    else if (type == CE_CommunicationMode.FTP)
                    {
                        FileServiceFTP serverFTP = new FileServiceFTP(GlobalObject.GlobalParameter.FTPServerIP,
                                                                      GlobalObject.GlobalParameter.FTPServerAdvancedUser,
                                                                      GlobalObject.GlobalParameter.FTPServerAdvancedPassword);
                        serverFTP.Download(varData.Single().FilePath, filePath);
                    }

                    System.Diagnostics.Process.Start(filePath);
                }
                else
                {
                    throw new Exception("文件唯一编码重复");
                }
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }
        /// <summary>
        /// 文件下载
        /// </summary>
        /// <param name="guid">文件唯一编码</param>
        /// <param name="systemPath">系统路径</param>
        /// <param name="type">操作文件访问方式</param>
        public static void File_DownLoad(Guid guid, string systemPath, CE_CommunicationMode type)
        {
            try
            {
                DepotManagementDataContext ctx = CommentParameter.DepotDataContext;

                var varData = from a in ctx.FM_FilePath
                              where a.FileUnique == guid
                              select a;

                if (varData.Count() == 0)
                {
                    throw new Exception("文件不存在");
                }
                else if (varData.Count() == 1)
                {
                    if (type == CE_CommunicationMode.Socket)
                    {
                        FileServiceSocket serverSocket = new FileServiceSocket(GlobalObject.GlobalParameter.FTPServerIP,
                                                                               GlobalObject.GlobalParameter.FTPServerAdvancedUser,
                                                                               GlobalObject.GlobalParameter.FTPServerAdvancedPassword);
                        serverSocket.Download(varData.Single().FilePath, systemPath + varData.Single().FileType);
                    }
                    else if (type == CE_CommunicationMode.FTP)
                    {
                        FileServiceFTP serverFTP = new FileServiceFTP(GlobalObject.GlobalParameter.FTPServerIP,
                                                                      GlobalObject.GlobalParameter.FTPServerAdvancedUser,
                                                                      GlobalObject.GlobalParameter.FTPServerAdvancedPassword);
                        serverFTP.Download(varData.Single().FilePath, systemPath + varData.Single().FileType);
                    }
                }
                else
                {
                    throw new Exception("文件唯一编码重复");
                }
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }