/// ----------------------------------------------------------------------------- /// <summary> /// adds an object to the database /// </summary> /// <remarks> /// </remarks> /// <param name="objATI_Photos">The ATI_PhotosInfo object</param> /// <history> /// </history> /// ----------------------------------------------------------------------------- public void AddATI_Photos(ATI_PhotosInfo objATI_Photos) { if (objATI_Photos.Content.Trim() != "") { DataProvider.Instance().AddATI_Photos(objATI_Photos.ModuleId, objATI_Photos.Content, objATI_Photos.CreatedByUser); } }
/// ----------------------------------------------------------------------------- /// <summary> /// adds an object to the database /// </summary> /// <remarks> /// </remarks> /// <param name="objATI_Photos">The ATI_PhotosInfo object</param> /// <history> /// </history> /// ----------------------------------------------------------------------------- public void AddATI_Photos(ATI_PhotosInfo objATI_Photos) { if (objATI_Photos.Content.Trim() != "") { DataProvider.Instance().AddATI_Photos(objATI_Photos.ModuleId, objATI_Photos.Content, objATI_Photos.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_Photoss = Globals.GetContent(Content, "ATI_Photoss"); foreach (XmlNode xmlATI_Photos in xmlATI_Photoss.SelectNodes("ATI_Photos")) { ATI_PhotosInfo objATI_Photos = new ATI_PhotosInfo(); objATI_Photos.ModuleId = ModuleID; objATI_Photos.Content = xmlATI_Photos.SelectSingleNode("content").InnerText; objATI_Photos.CreatedByUser = UserId; AddATI_Photos(objATI_Photos); } }
/// ----------------------------------------------------------------------------- /// <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_Photoss = Globals.GetContent(Content, "ATI_Photoss"); foreach (XmlNode xmlATI_Photos in xmlATI_Photoss.SelectNodes("ATI_Photos")) { ATI_PhotosInfo objATI_Photos = new ATI_PhotosInfo(); objATI_Photos.ModuleId = ModuleID; objATI_Photos.Content = xmlATI_Photos.SelectSingleNode("content").InnerText; objATI_Photos.CreatedByUser = UserId; AddATI_Photos(objATI_Photos); } }