/// ----------------------------------------------------------------------------- /// <summary> /// adds an object to the database /// </summary> /// <remarks> /// </remarks> /// <param name="objATI_Friends">The ATI_FriendsInfo object</param> /// <history> /// </history> /// ----------------------------------------------------------------------------- public void AddATI_Friends(ATI_FriendsInfo objATI_Friends) { if (objATI_Friends.Content.Trim() != "") { DataProvider.Instance().AddATI_Friends(objATI_Friends.ModuleId, objATI_Friends.Content, objATI_Friends.CreatedByUser); } }
/// ----------------------------------------------------------------------------- /// <summary> /// adds an object to the database /// </summary> /// <remarks> /// </remarks> /// <param name="objATI_Friends">The ATI_FriendsInfo object</param> /// <history> /// </history> /// ----------------------------------------------------------------------------- public void AddATI_Friends(ATI_FriendsInfo objATI_Friends) { if (objATI_Friends.Content.Trim() != "") { DataProvider.Instance().AddATI_Friends(objATI_Friends.ModuleId, objATI_Friends.Content, objATI_Friends.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_Friendss = Globals.GetContent(Content, "ATI_Friendss"); foreach (XmlNode xmlATI_Friends in xmlATI_Friendss.SelectNodes("ATI_Friends")) { ATI_FriendsInfo objATI_Friends = new ATI_FriendsInfo(); objATI_Friends.ModuleId = ModuleID; objATI_Friends.Content = xmlATI_Friends.SelectSingleNode("content").InnerText; objATI_Friends.CreatedByUser = UserId; AddATI_Friends(objATI_Friends); } }
/// ----------------------------------------------------------------------------- /// <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_Friendss = Globals.GetContent(Content, "ATI_Friendss"); foreach (XmlNode xmlATI_Friends in xmlATI_Friendss.SelectNodes("ATI_Friends")) { ATI_FriendsInfo objATI_Friends = new ATI_FriendsInfo(); objATI_Friends.ModuleId = ModuleID; objATI_Friends.Content = xmlATI_Friends.SelectSingleNode("content").InnerText; objATI_Friends.CreatedByUser = UserId; AddATI_Friends(objATI_Friends); } }