Exemplo n.º 1
0
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// adds an object to the database
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <param name="objSF_ManageEvents">The SF_ManageEventsInfo object</param>
 /// <history>
 /// </history>
 /// -----------------------------------------------------------------------------
 public void AddSF_ManageEvents(SF_ManageEventsInfo objSF_ManageEvents)
 {
     if (objSF_ManageEvents.Content.Trim() != "")
     {
         DataProvider.Instance().AddSF_ManageEvents(objSF_ManageEvents.ModuleId, objSF_ManageEvents.Content, objSF_ManageEvents.CreatedByUser);
     }
 }
Exemplo 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_ManageEventss = Globals.GetContent(Content, "SF_ManageEventss");

            foreach (XmlNode xmlSF_ManageEvents in xmlSF_ManageEventss.SelectNodes("SF_ManageEvents"))
            {
                SF_ManageEventsInfo objSF_ManageEvents = new SF_ManageEventsInfo();

                objSF_ManageEvents.ModuleId      = ModuleID;
                objSF_ManageEvents.Content       = xmlSF_ManageEvents.SelectSingleNode("content").InnerText;
                objSF_ManageEvents.CreatedByUser = UserId;
                AddSF_ManageEvents(objSF_ManageEvents);
            }
        }