public Result NewQaFolder(string qaFolderName, string account)
        {
            var result = new Result();

            try
            {
                var pcbEntities = new PCBEntities();
                var count       = pcbEntities.PCB_QAFolderTB.Count <PCB_QAFolderTB>(p => p.QAFolderName == qaFolderName && p.CreateAccount == account);
                if (count > 0)
                {
                    result.IsOK        = false;
                    result.Description = "改目录名称已经存在,请重新命名";
                    return(result);
                }
                var dir = @ParameterAPI.GetConfig("ShareQAFile").ConfigValue + @"\\" + account + @"\\" + qaFolderName;
                if (!Directory.Exists(dir))
                {
                    Directory.CreateDirectory(dir);
                }
                //byte[] coverPhoto = Convert.FromBase64String(fileData);
                //MemoryStream ms = new MemoryStream(coverPhoto);
                //Bitmap bmp = new Bitmap(ms);

                var pcbQaFolderTb = new PCB_QAFolderTB
                {
                    QAFolderID     = System.Guid.NewGuid(),
                    QAFolderName   = qaFolderName,
                    CreateAccount  = account,
                    CreateDateTime = DateTime.Now
                };



                pcbEntities.AddToPCB_QAFolderTB(pcbQaFolderTb);
                result.IsOK = Convert.ToBoolean(pcbEntities.SaveChanges());
                if (!result.IsOK)
                {
                    result.Description = "创建失败";
                    Directory.Delete(dir, true);
                    return(result);
                }
                result.Description = "创建成功";
            }
            catch (Exception ex)
            {
                LogHelper.WriteLog(GetType()).Info(ex.StackTrace);
                result.IsOK        = false;
                result.Description = ex.Message;
            }
            return(result);
        }