/// ----------------------------------------------------------------------------- /// <summary> /// adds an object to the database /// </summary> /// <remarks> /// </remarks> /// <param name="objSF_UserChangePassword">The SF_UserChangePasswordInfo object</param> /// <history> /// </history> /// ----------------------------------------------------------------------------- public void AddSF_UserChangePassword(SF_UserChangePasswordInfo objSF_UserChangePassword) { if (objSF_UserChangePassword.Content.Trim() != "") { DataProvider.Instance().AddSF_UserChangePassword(objSF_UserChangePassword.ModuleId, objSF_UserChangePassword.Content, objSF_UserChangePassword.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 xmlSF_UserChangePasswords = Globals.GetContent(Content, "SF_UserChangePasswords"); foreach (XmlNode xmlSF_UserChangePassword in xmlSF_UserChangePasswords.SelectNodes("SF_UserChangePassword")) { SF_UserChangePasswordInfo objSF_UserChangePassword = new SF_UserChangePasswordInfo(); objSF_UserChangePassword.ModuleId = ModuleID; objSF_UserChangePassword.Content = xmlSF_UserChangePassword.SelectSingleNode("content").InnerText; objSF_UserChangePassword.CreatedByUser = UserId; AddSF_UserChangePassword(objSF_UserChangePassword); } }