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

            foreach (XmlNode xmlATI_Routes in xmlATI_Routess.SelectNodes("ATI_Routes"))
            {
                ATI_RoutesInfo objATI_Routes = new ATI_RoutesInfo();

                objATI_Routes.ModuleId      = ModuleID;
                objATI_Routes.Content       = xmlATI_Routes.SelectSingleNode("content").InnerText;
                objATI_Routes.CreatedByUser = UserId;
                AddATI_Routes(objATI_Routes);
            }
        }
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_Routess = Globals.GetContent(Content, "ATI_Routess");

            foreach (XmlNode xmlATI_Routes in xmlATI_Routess.SelectNodes("ATI_Routes"))
            {
                ATI_RoutesInfo objATI_Routes = new ATI_RoutesInfo();

                objATI_Routes.ModuleId = ModuleID;
                objATI_Routes.Content = xmlATI_Routes.SelectSingleNode("content").InnerText;
                objATI_Routes.CreatedByUser = UserId;
                AddATI_Routes(objATI_Routes);
            }
        }