コード例 #1
0
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// adds an object to the database
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <param name="objATI_BugReporter">The ATI_BugReporterInfo object</param>
 /// <history>
 /// </history>
 /// -----------------------------------------------------------------------------
 public void AddATI_BugReporter(ATI_BugReporterInfo objATI_BugReporter)
 {
     if (objATI_BugReporter.Content.Trim() != "")
     {
         DataProvider.Instance().AddATI_BugReporter(objATI_BugReporter.ModuleId, objATI_BugReporter.Content, objATI_BugReporter.CreatedByUser);
     }
 }
コード例 #2
0
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// adds an object to the database
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <param name="objATI_BugReporter">The ATI_BugReporterInfo object</param>
 /// <history>
 /// </history>
 /// -----------------------------------------------------------------------------
 public void AddATI_BugReporter(ATI_BugReporterInfo objATI_BugReporter)
 {
     if (objATI_BugReporter.Content.Trim() != "")
     {
         DataProvider.Instance().AddATI_BugReporter(objATI_BugReporter.ModuleId, objATI_BugReporter.Content, objATI_BugReporter.CreatedByUser);
     }
 }
コード例 #3
0
        /// -----------------------------------------------------------------------------
        /// <summary>
        /// ImportModule implements the IPortable ImportModule Interface
        /// </summary>
        /// <remarks>
        /// </remarks>
        /// <param name="ModuleID">The Id of the module to be imported</param>
        /// <param name="Content">The content to be imported</param>
        /// <param name="Version">The version of the module to be imported</param>
        /// <param name="UserId">The Id of the user performing the import</param>
        /// <history>
        /// </history>
        /// -----------------------------------------------------------------------------
        public void ImportModule(int ModuleID, string Content, string Version, int UserId)
        {
            XmlNode xmlATI_BugReporters = Globals.GetContent(Content, "ATI_BugReporters");

            foreach (XmlNode xmlATI_BugReporter in xmlATI_BugReporters.SelectNodes("ATI_BugReporter"))
            {
                ATI_BugReporterInfo objATI_BugReporter = new ATI_BugReporterInfo();

                objATI_BugReporter.ModuleId      = ModuleID;
                objATI_BugReporter.Content       = xmlATI_BugReporter.SelectSingleNode("content").InnerText;
                objATI_BugReporter.CreatedByUser = UserId;
                AddATI_BugReporter(objATI_BugReporter);
            }
        }
コード例 #4
0
        /// -----------------------------------------------------------------------------
        /// <summary>
        /// ImportModule implements the IPortable ImportModule Interface
        /// </summary>
        /// <remarks>
        /// </remarks>
        /// <param name="ModuleID">The Id of the module to be imported</param>
        /// <param name="Content">The content to be imported</param>
        /// <param name="Version">The version of the module to be imported</param>
        /// <param name="UserId">The Id of the user performing the import</param>
        /// <history>
        /// </history>
        /// -----------------------------------------------------------------------------
        public void ImportModule(int ModuleID, string Content, string Version, int UserId)
        {
            XmlNode xmlATI_BugReporters = Globals.GetContent(Content, "ATI_BugReporters");

            foreach (XmlNode xmlATI_BugReporter in xmlATI_BugReporters.SelectNodes("ATI_BugReporter"))
            {
                ATI_BugReporterInfo objATI_BugReporter = new ATI_BugReporterInfo();

                objATI_BugReporter.ModuleId = ModuleID;
                objATI_BugReporter.Content = xmlATI_BugReporter.SelectSingleNode("content").InnerText;
                objATI_BugReporter.CreatedByUser = UserId;
                AddATI_BugReporter(objATI_BugReporter);
            }
        }