示例#1
0
 /// <summary>
 /// update a info object already stored in the database
 /// </summary>
 /// <param name="info"></param>
 public void UpdateFlexMLS_List(FlexMLS_ListInfo info)
 {
     //check we have some content to update
     if (info.YearBuilt != string.Empty)
     {
         DataProvider.Instance().UpdateFlexMLS_List(info.ModuleId, info.ItemId, info.YearBuilt, info.CreatedByUser);
     }
 }
示例#2
0
        /// <summary>
        /// imports a module from an xml file
        /// </summary>
        /// <param name="ModuleID"></param>
        /// <param name="Content"></param>
        /// <param name="Version"></param>
        /// <param name="UserID"></param>
        public void ImportModule(int ModuleID, string Content, string Version, int UserID)
        {
            XmlNode infos = DotNetNuke.Common.Globals.GetContent(Content, "FlexMLS_Lists");

            foreach (XmlNode info in infos.SelectNodes("FlexMLS_List"))
            {
                FlexMLS_ListInfo FlexMLS_ListInfo = new FlexMLS_ListInfo();
                FlexMLS_ListInfo.ModuleId      = ModuleID;
                FlexMLS_ListInfo.YearBuilt     = info.SelectSingleNode("content").InnerText;
                FlexMLS_ListInfo.CreatedByUser = UserID;

                AddFlexMLS_List(FlexMLS_ListInfo);
            }
        }