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

            foreach (XmlNode xmlATI_Modal in xmlATI_Modals.SelectNodes("ATI_Modal"))
            {
                ATI_ModalInfo objATI_Modal = new ATI_ModalInfo();

                objATI_Modal.ModuleId      = ModuleID;
                objATI_Modal.Content       = xmlATI_Modal.SelectSingleNode("content").InnerText;
                objATI_Modal.CreatedByUser = UserId;
                AddATI_Modal(objATI_Modal);
            }
        }
예제 #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_Modals = Globals.GetContent(Content, "ATI_Modals");

            foreach (XmlNode xmlATI_Modal in xmlATI_Modals.SelectNodes("ATI_Modal"))
            {
                ATI_ModalInfo objATI_Modal = new ATI_ModalInfo();

                objATI_Modal.ModuleId = ModuleID;
                objATI_Modal.Content = xmlATI_Modal.SelectSingleNode("content").InnerText;
                objATI_Modal.CreatedByUser = UserId;
                AddATI_Modal(objATI_Modal);
            }
        }