Example #1
0
 /// -----------------------------------------------------------------------------
 /// <summary>
 /// adds an object to the database
 /// </summary>
 /// <remarks>
 /// </remarks>
 /// <param name="objSF_QuantificationReport">The SF_QuantificationReportInfo object</param>
 /// <history>
 /// </history>
 /// -----------------------------------------------------------------------------
 public void AddSF_QuantificationReport(SF_QuantificationReportInfo objSF_QuantificationReport)
 {
     if (objSF_QuantificationReport.Content.Trim() != "")
     {
         DataProvider.Instance().AddSF_QuantificationReport(objSF_QuantificationReport.ModuleId, objSF_QuantificationReport.Content, objSF_QuantificationReport.CreatedByUser);
     }
 }
Example #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_QuantificationReports = Globals.GetContent(Content, "SF_QuantificationReports");

            foreach (XmlNode xmlSF_QuantificationReport in xmlSF_QuantificationReports.SelectNodes("SF_QuantificationReport"))
            {
                SF_QuantificationReportInfo objSF_QuantificationReport = new SF_QuantificationReportInfo();

                objSF_QuantificationReport.ModuleId      = ModuleID;
                objSF_QuantificationReport.Content       = xmlSF_QuantificationReport.SelectSingleNode("content").InnerText;
                objSF_QuantificationReport.CreatedByUser = UserId;
                AddSF_QuantificationReport(objSF_QuantificationReport);
            }
        }