예제 #1
0
 /// ----------------------------------------------------------------------------- 
 /// <summary> 
 /// saves an object to the database 
 /// </summary> 
 /// <remarks> 
 /// </remarks> 
 /// <param name="objQuickDocs">The QuickDocsInfo object</param> 
 /// <history> 
 /// </history> 
 /// ----------------------------------------------------------------------------- 
 public void UpdateQuickDocs(QuickDocsInfo objQuickDocs)
 {
     if (objQuickDocs.Content.Trim() != "")
     {
         DataProvider.Instance().UpdateQuickDocs(objQuickDocs.ModuleId, objQuickDocs.ItemId, objQuickDocs.Content, objQuickDocs.CreatedByUser);
     }
 }
예제 #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 xmlQuickDocss = Globals.GetContent(Content, "QuickDocss");
     foreach (XmlNode xmlQuickDocs in xmlQuickDocss.SelectNodes("QuickDocs"))
     {
         QuickDocsInfo objQuickDocs = new QuickDocsInfo();
         objQuickDocs.ModuleId = ModuleID;
         objQuickDocs.Content = xmlQuickDocs.SelectSingleNode("content").InnerText;
         objQuickDocs.CreatedByUser = UserId;
         AddQuickDocs(objQuickDocs);
     }
 }