Ejemplo n.º 1
0
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// adds an object to the database
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <param name="objSF_ManageOrganisations">The SF_ManageOrganisationsInfo object</param>
 /// <history>
 /// </history>
 /// -----------------------------------------------------------------------------
 public void AddSF_ManageOrganisations(SF_ManageOrganisationsInfo objSF_ManageOrganisations)
 {
     if (objSF_ManageOrganisations.Content.Trim() != "")
     {
         DataProvider.Instance().AddSF_ManageOrganisations(objSF_ManageOrganisations.ModuleId, objSF_ManageOrganisations.Content, objSF_ManageOrganisations.CreatedByUser);
     }
 }
Ejemplo n.º 2
0
        /// -----------------------------------------------------------------------------
        /// <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_ManageOrganisationss = Globals.GetContent(Content, "SF_ManageOrganisationss");

            foreach (XmlNode xmlSF_ManageOrganisations in xmlSF_ManageOrganisationss.SelectNodes("SF_ManageOrganisations"))
            {
                SF_ManageOrganisationsInfo objSF_ManageOrganisations = new SF_ManageOrganisationsInfo();

                objSF_ManageOrganisations.ModuleId      = ModuleID;
                objSF_ManageOrganisations.Content       = xmlSF_ManageOrganisations.SelectSingleNode("content").InnerText;
                objSF_ManageOrganisations.CreatedByUser = UserId;
                AddSF_ManageOrganisations(objSF_ManageOrganisations);
            }
        }