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

            foreach (XmlNode xmlATI_AdminTools in xmlATI_AdminToolss.SelectNodes("ATI_AdminTools"))
            {
                ATI_AdminToolsInfo objATI_AdminTools = new ATI_AdminToolsInfo();

                objATI_AdminTools.ModuleId      = ModuleID;
                objATI_AdminTools.Content       = xmlATI_AdminTools.SelectSingleNode("content").InnerText;
                objATI_AdminTools.CreatedByUser = UserId;
                AddATI_AdminTools(objATI_AdminTools);
            }
        }
Ejemplo n.º 4
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 xmlATI_AdminToolss = Globals.GetContent(Content, "ATI_AdminToolss");

            foreach (XmlNode xmlATI_AdminTools in xmlATI_AdminToolss.SelectNodes("ATI_AdminTools"))
            {
                ATI_AdminToolsInfo objATI_AdminTools = new ATI_AdminToolsInfo();

                objATI_AdminTools.ModuleId = ModuleID;
                objATI_AdminTools.Content = xmlATI_AdminTools.SelectSingleNode("content").InnerText;
                objATI_AdminTools.CreatedByUser = UserId;
                AddATI_AdminTools(objATI_AdminTools);
            }
        }