/// -----------------------------------------------------------------------------
 /// <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);
     }
 }
Esempio n. 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);
     }
 }
Esempio n. 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);
            }
        }
        /// -----------------------------------------------------------------------------
        /// <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);
            }
        }