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

            foreach (XmlNode xmlATI_RecipeSearch in xmlATI_RecipeSearchs.SelectNodes("ATI_RecipeSearch"))
            {
                ATI_RecipeSearchInfo objATI_RecipeSearch = new ATI_RecipeSearchInfo();

                objATI_RecipeSearch.ModuleId      = ModuleID;
                objATI_RecipeSearch.Content       = xmlATI_RecipeSearch.SelectSingleNode("content").InnerText;
                objATI_RecipeSearch.CreatedByUser = UserId;
                AddATI_RecipeSearch(objATI_RecipeSearch);
            }
        }
コード例 #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_RecipeSearchs = Globals.GetContent(Content, "ATI_RecipeSearchs");

            foreach (XmlNode xmlATI_RecipeSearch in xmlATI_RecipeSearchs.SelectNodes("ATI_RecipeSearch"))
            {
                ATI_RecipeSearchInfo objATI_RecipeSearch = new ATI_RecipeSearchInfo();

                objATI_RecipeSearch.ModuleId = ModuleID;
                objATI_RecipeSearch.Content = xmlATI_RecipeSearch.SelectSingleNode("content").InnerText;
                objATI_RecipeSearch.CreatedByUser = UserId;
                AddATI_RecipeSearch(objATI_RecipeSearch);
            }
        }