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

            foreach (XmlNode xmlATI_FitnessStats in xmlATI_FitnessStatss.SelectNodes("ATI_FitnessStats"))
            {
                ATI_FitnessStatsInfo objATI_FitnessStats = new ATI_FitnessStatsInfo();

                objATI_FitnessStats.ModuleId      = ModuleID;
                objATI_FitnessStats.Content       = xmlATI_FitnessStats.SelectSingleNode("content").InnerText;
                objATI_FitnessStats.CreatedByUser = UserId;
                AddATI_FitnessStats(objATI_FitnessStats);
            }
        }
        /// -----------------------------------------------------------------------------
        /// <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_FitnessStatss = Globals.GetContent(Content, "ATI_FitnessStatss");

            foreach (XmlNode xmlATI_FitnessStats in xmlATI_FitnessStatss.SelectNodes("ATI_FitnessStats"))
            {
                ATI_FitnessStatsInfo objATI_FitnessStats = new ATI_FitnessStatsInfo();

                objATI_FitnessStats.ModuleId = ModuleID;
                objATI_FitnessStats.Content = xmlATI_FitnessStats.SelectSingleNode("content").InnerText;
                objATI_FitnessStats.CreatedByUser = UserId;
                AddATI_FitnessStats(objATI_FitnessStats);
            }
        }