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