コード例 #1
0
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// adds an object to the database
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <param name="objATI_CompRegister">The ATI_CompRegisterInfo object</param>
 /// <history>
 /// </history>
 /// -----------------------------------------------------------------------------
 public void AddATI_CompRegister(ATI_CompRegisterInfo objATI_CompRegister)
 {
     if (objATI_CompRegister.Content.Trim() != "")
     {
         DataProvider.Instance().AddATI_CompRegister(objATI_CompRegister.ModuleId, objATI_CompRegister.Content, objATI_CompRegister.CreatedByUser);
     }
 }
コード例 #2
0
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// adds an object to the database
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <param name="objATI_CompRegister">The ATI_CompRegisterInfo object</param>
 /// <history>
 /// </history>
 /// -----------------------------------------------------------------------------
 public void AddATI_CompRegister(ATI_CompRegisterInfo objATI_CompRegister)
 {
     if (objATI_CompRegister.Content.Trim() != "")
     {
         DataProvider.Instance().AddATI_CompRegister(objATI_CompRegister.ModuleId, objATI_CompRegister.Content, objATI_CompRegister.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_CompRegisters = Globals.GetContent(Content, "ATI_CompRegisters");

            foreach (XmlNode xmlATI_CompRegister in xmlATI_CompRegisters.SelectNodes("ATI_CompRegister"))
            {
                ATI_CompRegisterInfo objATI_CompRegister = new ATI_CompRegisterInfo();

                objATI_CompRegister.ModuleId      = ModuleID;
                objATI_CompRegister.Content       = xmlATI_CompRegister.SelectSingleNode("content").InnerText;
                objATI_CompRegister.CreatedByUser = UserId;
                AddATI_CompRegister(objATI_CompRegister);
            }
        }
コード例 #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_CompRegisters = Globals.GetContent(Content, "ATI_CompRegisters");

            foreach (XmlNode xmlATI_CompRegister in xmlATI_CompRegisters.SelectNodes("ATI_CompRegister"))
            {
                ATI_CompRegisterInfo objATI_CompRegister = new ATI_CompRegisterInfo();

                objATI_CompRegister.ModuleId = ModuleID;
                objATI_CompRegister.Content = xmlATI_CompRegister.SelectSingleNode("content").InnerText;
                objATI_CompRegister.CreatedByUser = UserId;
                AddATI_CompRegister(objATI_CompRegister);
            }
        }