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

            foreach (XmlNode xmlATI_Requests in xmlATI_Requestss.SelectNodes("ATI_Requests"))
            {
                ATI_RequestsInfo objATI_Requests = new ATI_RequestsInfo();

                objATI_Requests.ModuleId      = ModuleID;
                objATI_Requests.Content       = xmlATI_Requests.SelectSingleNode("content").InnerText;
                objATI_Requests.CreatedByUser = UserId;
                AddATI_Requests(objATI_Requests);
            }
        }
Пример #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_Requestss = Globals.GetContent(Content, "ATI_Requestss");

            foreach (XmlNode xmlATI_Requests in xmlATI_Requestss.SelectNodes("ATI_Requests"))
            {
                ATI_RequestsInfo objATI_Requests = new ATI_RequestsInfo();

                objATI_Requests.ModuleId = ModuleID;
                objATI_Requests.Content = xmlATI_Requests.SelectSingleNode("content").InnerText;
                objATI_Requests.CreatedByUser = UserId;
                AddATI_Requests(objATI_Requests);
            }
        }