/// ----------------------------------------------------------------------------- /// <summary> /// adds an object to the database /// </summary> /// <remarks> /// </remarks> /// <param name="objATI_NikePlus">The ATI_NikePlusInfo object</param> /// <history> /// </history> /// ----------------------------------------------------------------------------- public void AddATI_NikePlus(ATI_NikePlusInfo objATI_NikePlus) { if (objATI_NikePlus.Content.Trim() != "") { DataProvider.Instance().AddATI_NikePlus(objATI_NikePlus.ModuleId, objATI_NikePlus.Content, objATI_NikePlus.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_NikePluss = Globals.GetContent(Content, "ATI_NikePluss"); foreach (XmlNode xmlATI_NikePlus in xmlATI_NikePluss.SelectNodes("ATI_NikePlus")) { ATI_NikePlusInfo objATI_NikePlus = new ATI_NikePlusInfo(); objATI_NikePlus.ModuleId = ModuleID; objATI_NikePlus.Content = xmlATI_NikePlus.SelectSingleNode("content").InnerText; objATI_NikePlus.CreatedByUser = UserId; AddATI_NikePlus(objATI_NikePlus); } }