/// ----------------------------------------------------------------------------- /// <summary> /// adds an object to the database /// </summary> /// <remarks> /// </remarks> /// <param name="objATI_Comps">The ATI_CompsInfo object</param> /// <history> /// </history> /// ----------------------------------------------------------------------------- public void AddATI_Comps(ATI_CompsInfo objATI_Comps) { if (objATI_Comps.Content.Trim() != "") { DataProvider.Instance().AddATI_Comps(objATI_Comps.ModuleId, objATI_Comps.Content, objATI_Comps.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_Compss = Globals.GetContent(Content, "ATI_Compss"); foreach (XmlNode xmlATI_Comps in xmlATI_Compss.SelectNodes("ATI_Comps")) { ATI_CompsInfo objATI_Comps = new ATI_CompsInfo(); objATI_Comps.ModuleId = ModuleID; objATI_Comps.Content = xmlATI_Comps.SelectSingleNode("content").InnerText; objATI_Comps.CreatedByUser = UserId; AddATI_Comps(objATI_Comps); } }