Ejemplo n.º 1
0
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// adds an object to the database
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <param name="objSF_DonationDetails">The SF_DonationDetailsInfo object</param>
 /// <history>
 /// </history>
 /// -----------------------------------------------------------------------------
 public void AddSF_DonationDetails(SF_DonationDetailsInfo objSF_DonationDetails)
 {
     if (objSF_DonationDetails.Content.Trim() != "")
     {
         DataProvider.Instance().AddSF_DonationDetails(objSF_DonationDetails.ModuleId, objSF_DonationDetails.Content, objSF_DonationDetails.CreatedByUser);
     }
 }
Ejemplo n.º 2
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 xmlSF_DonationDetailss = Globals.GetContent(Content, "SF_DonationDetailss");

            foreach (XmlNode xmlSF_DonationDetails in xmlSF_DonationDetailss.SelectNodes("SF_DonationDetails"))
            {
                SF_DonationDetailsInfo objSF_DonationDetails = new SF_DonationDetailsInfo();

                objSF_DonationDetails.ModuleId      = ModuleID;
                objSF_DonationDetails.Content       = xmlSF_DonationDetails.SelectSingleNode("content").InnerText;
                objSF_DonationDetails.CreatedByUser = UserId;
                AddSF_DonationDetails(objSF_DonationDetails);
            }
        }