Пример #1
0
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// adds an object to the database
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <param name="objATI_CompAdmin">The ATI_CompAdminInfo object</param>
 /// <history>
 /// </history>
 /// -----------------------------------------------------------------------------
 public void AddATI_CompAdmin(ATI_CompAdminInfo objATI_CompAdmin)
 {
     if (objATI_CompAdmin.Content.Trim() != "")
     {
         DataProvider.Instance().AddATI_CompAdmin(objATI_CompAdmin.ModuleId, objATI_CompAdmin.Content, objATI_CompAdmin.CreatedByUser);
     }
 }
Пример #2
0
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// adds an object to the database
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <param name="objATI_CompAdmin">The ATI_CompAdminInfo object</param>
 /// <history>
 /// </history>
 /// -----------------------------------------------------------------------------
 public void AddATI_CompAdmin(ATI_CompAdminInfo objATI_CompAdmin)
 {
     if (objATI_CompAdmin.Content.Trim() != "")
     {
         DataProvider.Instance().AddATI_CompAdmin(objATI_CompAdmin.ModuleId, objATI_CompAdmin.Content, objATI_CompAdmin.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_CompAdmins = Globals.GetContent(Content, "ATI_CompAdmins");

            foreach (XmlNode xmlATI_CompAdmin in xmlATI_CompAdmins.SelectNodes("ATI_CompAdmin"))
            {
                ATI_CompAdminInfo objATI_CompAdmin = new ATI_CompAdminInfo();

                objATI_CompAdmin.ModuleId      = ModuleID;
                objATI_CompAdmin.Content       = xmlATI_CompAdmin.SelectSingleNode("content").InnerText;
                objATI_CompAdmin.CreatedByUser = UserId;
                AddATI_CompAdmin(objATI_CompAdmin);
            }
        }
Пример #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_CompAdmins = Globals.GetContent(Content, "ATI_CompAdmins");

            foreach (XmlNode xmlATI_CompAdmin in xmlATI_CompAdmins.SelectNodes("ATI_CompAdmin"))
            {
                ATI_CompAdminInfo objATI_CompAdmin = new ATI_CompAdminInfo();

                objATI_CompAdmin.ModuleId = ModuleID;
                objATI_CompAdmin.Content = xmlATI_CompAdmin.SelectSingleNode("content").InnerText;
                objATI_CompAdmin.CreatedByUser = UserId;
                AddATI_CompAdmin(objATI_CompAdmin);
            }
        }