Exemplo n.º 1
0
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// adds an object to the database
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <param name="objATI_Feedback">The ATI_FeedbackInfo object</param>
 /// <history>
 /// </history>
 /// -----------------------------------------------------------------------------
 public void AddATI_Feedback(ATI_FeedbackInfo objATI_Feedback)
 {
     if (objATI_Feedback.Content.Trim() != "")
     {
         DataProvider.Instance().AddATI_Feedback(objATI_Feedback.ModuleId, objATI_Feedback.Content, objATI_Feedback.CreatedByUser);
     }
 }
Exemplo n.º 2
0
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// adds an object to the database
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <param name="objATI_Feedback">The ATI_FeedbackInfo object</param>
 /// <history>
 /// </history>
 /// -----------------------------------------------------------------------------
 public void AddATI_Feedback(ATI_FeedbackInfo objATI_Feedback)
 {
     if (objATI_Feedback.Content.Trim() != "")
     {
         DataProvider.Instance().AddATI_Feedback(objATI_Feedback.ModuleId, objATI_Feedback.Content, objATI_Feedback.CreatedByUser);
     }
 }
Exemplo 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_Feedbacks = Globals.GetContent(Content, "ATI_Feedbacks");

            foreach (XmlNode xmlATI_Feedback in xmlATI_Feedbacks.SelectNodes("ATI_Feedback"))
            {
                ATI_FeedbackInfo objATI_Feedback = new ATI_FeedbackInfo();

                objATI_Feedback.ModuleId      = ModuleID;
                objATI_Feedback.Content       = xmlATI_Feedback.SelectSingleNode("content").InnerText;
                objATI_Feedback.CreatedByUser = UserId;
                AddATI_Feedback(objATI_Feedback);
            }
        }
Exemplo n.º 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_Feedbacks = Globals.GetContent(Content, "ATI_Feedbacks");

            foreach (XmlNode xmlATI_Feedback in xmlATI_Feedbacks.SelectNodes("ATI_Feedback"))
            {
                ATI_FeedbackInfo objATI_Feedback = new ATI_FeedbackInfo();

                objATI_Feedback.ModuleId = ModuleID;
                objATI_Feedback.Content = xmlATI_Feedback.SelectSingleNode("content").InnerText;
                objATI_Feedback.CreatedByUser = UserId;
                AddATI_Feedback(objATI_Feedback);
            }
        }