public static string DeleteEnergyProcessRecordById(string myRecordItemId, string myFileClassify)
        {
            if (mUserId != "")
            {
                ///////////////////////////删除所有已上传的控件/////////////////////////

                DataTable m_FilePathInfoTable = FileUploader.GetFileInfo("", myRecordItemId, myFileClassify);
                bool      DeleteFileSuccess   = true;
                if (m_FilePathInfoTable != null)
                {
                    for (int i = 0; i < m_FilePathInfoTable.Rows.Count; i++)                   //删除所有文件
                    {
                        string m_FileItemId        = m_FilePathInfoTable.Rows[i]["FileItemId"].ToString();
                        string m_FilePath          = m_FilePathInfoTable.Rows[i]["FilePath"].ToString();
                        int    m_DeleteFileSuccess = FileUploader.DeleteFileInfo(m_FileItemId, myFileClassify, m_FilePath);
                        if (m_DeleteFileSuccess != 1)
                        {
                            DeleteFileSuccess = false;
                        }
                    }
                    if (DeleteFileSuccess == true)
                    {
                        ///////////////////////////删除记录本身/////////////////////////////////

                        int m_EnergyProcessRecordText = ExperienceInformation.Service.EnergyProcessNote.EnergyProcessRecord.DeleteEnergyProcessRecordById(myRecordItemId);
                        int m_Result = m_EnergyProcessRecordText > 0 ? 1 : m_EnergyProcessRecordText;
                        return(m_Result.ToString());
                    }
                    else
                    {
                        return("文件删除失败!");
                    }
                }
                else
                {
                    return("文件删除失败!");
                }
            }
            else
            {
                return("非法的用户操作!");
            }
        }
 public static string DeleteOperationGuideById(string myPostOperationKnowledgeId)
 {
     if (mUserId != "")
     {
         ///////////////////////////删除所有已上传的控件/////////////////////////
         string    m_FileClassify      = "PostOperationGuide";
         DataTable m_FilePathInfoTable = FileUploader.GetFileInfo("", myPostOperationKnowledgeId, m_FileClassify);
         bool      DeleteFileSuccess   = true;
         if (m_FilePathInfoTable != null)
         {
             for (int i = 0; i < m_FilePathInfoTable.Rows.Count; i++)                   //删除所有文件
             {
                 string m_FileItemId        = m_FilePathInfoTable.Rows[i]["FileItemId"].ToString();
                 string m_FilePath          = m_FilePathInfoTable.Rows[i]["FilePath"].ToString();
                 int    m_DeleteFileSuccess = FileUploader.DeleteFileInfo(m_FileItemId, m_FileClassify, m_FilePath);
                 if (m_DeleteFileSuccess != 1)
                 {
                     DeleteFileSuccess = false;
                 }
             }
             if (DeleteFileSuccess == true)
             {
                 ///////////////////////////删除记录本身/////////////////////////////////
                 int m_PostOperationGuideText = ExperienceInformation.Service.OperationGuide.PostOperationGuide.DeleteOperationGuideById(myPostOperationKnowledgeId);
                 int m_Result = m_PostOperationGuideText > 0 ? 1 : m_PostOperationGuideText;
                 return(m_Result.ToString());
             }
             else
             {
                 return("文件删除失败!");
             }
         }
         else
         {
             return("文件删除失败!");
         }
     }
     else
     {
         return("非法的用户操作!");
     }
 }