/// <summary>
        /// 修改信息
        /// </summary>
        /// <param name="dorrList">LNQ数据集</param>
        public void Update(FM_DestroyLogList destroyList)
        {
            DepotManagementDataContext ctx = CommentParameter.DepotDataContext;

            var varData = from a in ctx.FM_DestroyLogList
                          where a.FileID == destroyList.FileID
                          select a;

            if (varData.Count() != 1)
            {
                throw new Exception("错误信息");
            }
            else
            {
                FM_DestroyLogList lnqTemp = varData.Single();

                if (lnqTemp.Approver == null && lnqTemp.ApproverTime == null)
                {
                    lnqTemp.FileID       = destroyList.FileID;
                    lnqTemp.CoverFile    = destroyList.CoverFile;
                    lnqTemp.Copies       = destroyList.Copies;
                    lnqTemp.DestroyWay   = destroyList.DestroyWay;
                    lnqTemp.Proposer     = BasicInfo.LoginName;
                    lnqTemp.ProposerTime = ServerTime.Time;
                }
                else
                {
                    throw new Exception("已批准的记录不能被修改");
                }
            }

            ctx.SubmitChanges();
        }
        /// <summary>
        /// 销毁
        /// </summary>
        /// <param name="fileID">文件ID</param>
        public void Destroy(int fileID)
        {
            DepotManagementDataContext ctx = CommentParameter.DepotDataContext;

            var varData = from a in ctx.FM_DestroyLogList
                          where a.FileID == fileID
                          select a;

            if (varData.Count() != 1)
            {
                throw new Exception("数据错误");
            }
            else
            {
                FM_DestroyLogList lnqTemp = varData.Single();

                if (lnqTemp.Approver != null && lnqTemp.ApproverTime != null &&
                    lnqTemp.DestroyPersonnel == null && lnqTemp.DestroyTime == null)
                {
                    lnqTemp.DestroyPersonnel = BasicInfo.LoginName;
                    lnqTemp.DestroyTime      = ServerTime.Time;

                    m_serverBasicInfo.OperatorFTPSystemFile(ctx, lnqTemp.FileID, 0);
                }
                else
                {
                    throw new Exception("记录流程错误,请重新确认");
                }
            }

            ctx.SubmitChanges();
        }
        /// <summary>
        /// 添加信息
        /// </summary>
        /// <param name="dorrList">LNQ数据集</param>
        public void Add(FM_DestroyLogList destroyList)
        {
            DepotManagementDataContext ctx = CommentParameter.DepotDataContext;

            FM_DestroyLogList lnqTemp = new FM_DestroyLogList();

            lnqTemp.FileID       = destroyList.FileID;
            lnqTemp.CoverFile    = destroyList.CoverFile;
            lnqTemp.Copies       = destroyList.Copies;
            lnqTemp.DestroyWay   = destroyList.DestroyWay;
            lnqTemp.Proposer     = BasicInfo.LoginName;
            lnqTemp.ProposerTime = ServerTime.Time;

            ctx.FM_DestroyLogList.InsertOnSubmit(lnqTemp);

            ctx.SubmitChanges();
        }