예제 #1
0
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// adds an object to the database
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <param name="objATI_Fitness">The ATI_FitnessInfo object</param>
 /// <history>
 /// </history>
 /// -----------------------------------------------------------------------------
 public void AddATI_Fitness(ATI_FitnessInfo objATI_Fitness)
 {
     if (objATI_Fitness.Content.Trim() != "")
     {
         DataProvider.Instance().AddATI_Fitness(objATI_Fitness.ModuleId, objATI_Fitness.Content, objATI_Fitness.CreatedByUser);
     }
 }
예제 #2
0
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// adds an object to the database
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <param name="objATI_Fitness">The ATI_FitnessInfo object</param>
 /// <history>
 /// </history>
 /// -----------------------------------------------------------------------------
 public void AddATI_Fitness(ATI_FitnessInfo objATI_Fitness)
 {
     if (objATI_Fitness.Content.Trim() != "")
     {
         DataProvider.Instance().AddATI_Fitness(objATI_Fitness.ModuleId, objATI_Fitness.Content, objATI_Fitness.CreatedByUser);
     }
 }
예제 #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_Fitnesss = Globals.GetContent(Content, "ATI_Fitnesss");

            foreach (XmlNode xmlATI_Fitness in xmlATI_Fitnesss.SelectNodes("ATI_Fitness"))
            {
                ATI_FitnessInfo objATI_Fitness = new ATI_FitnessInfo();

                objATI_Fitness.ModuleId      = ModuleID;
                objATI_Fitness.Content       = xmlATI_Fitness.SelectSingleNode("content").InnerText;
                objATI_Fitness.CreatedByUser = UserId;
                AddATI_Fitness(objATI_Fitness);
            }
        }
예제 #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_Fitnesss = Globals.GetContent(Content, "ATI_Fitnesss");

            foreach (XmlNode xmlATI_Fitness in xmlATI_Fitnesss.SelectNodes("ATI_Fitness"))
            {
                ATI_FitnessInfo objATI_Fitness = new ATI_FitnessInfo();

                objATI_Fitness.ModuleId = ModuleID;
                objATI_Fitness.Content = xmlATI_Fitness.SelectSingleNode("content").InnerText;
                objATI_Fitness.CreatedByUser = UserId;
                AddATI_Fitness(objATI_Fitness);
            }
        }