Пример #1
0
 protected override void OnCompleted(LoginCode code, string arguments, string UserId)
 {
     if (IsManual && WebWindow != null)
     {
         WebWindow.Close();
         WebWindow = null;
     }
     base.OnCompleted(code, arguments, UserId);
 }
Пример #2
0
 protected void CloseWebWindow(WebWindow wnd)
 {
     if (wnd != null)
     {
         wnd.Dispatcher.Invoke((Action)(() =>
         {
             wnd.Close();
         }));
     }
 }
Пример #3
0
 public void UpdateArticle(string KBaseArticleGuid, string KBaseArticleId, string ArticleTitle, string ArticleWriter, string ArticleType, string ArticleLevel, string ArticleContent, string ArticlePoint, string Keyword1, string Keyword2, string Keyword3, string StartDate, string AbolishDate, string SessionID)
 {
     try
     {
         sql = KnowledgeArticleSql.UpdateAticleSql(KBaseArticleGuid, KBaseArticleId, ArticleTitle, ArticleWriter, ArticleType, ArticleLevel, ArticleContent, ArticlePoint, Keyword1, Keyword2, Keyword3, StartDate, AbolishDate, SessionID);
         db.executeInsert(sql);
         WebWindow.alert("ÎÄÕÂÐ޸ijɹ¦!");
         WebWindow.Close();
     }
     catch (Exception Err)
     {
         ErrorLog.LogInsert(Err.Message, "CS/KnowledgeBase/ArticleEditRule", SessionID);
         return;
     }
 }
Пример #4
0
 public void AddArticle(string KBaseArticleGuid, string KBaseArticleId, string ArticleTitle, string ArticleWriter, string ArticleType, string ArticleLevel, string ArticleContent, string ArticlePoint, string Keyword1, string Keyword2, string Keyword3, string StartDate, string AbolishDate, string StaffId)
 {
     try
     {
         //string StrDateTime = GetInformation.GetCurrentDataTime();
         sql = KnowledgeArticleSql.AddAticleSql(KBaseArticleGuid, KBaseArticleId, ArticleTitle, ArticleWriter, ArticleType, ArticleLevel, ArticleContent, ArticlePoint, Keyword1, Keyword2, Keyword3, StartDate, AbolishDate, StaffId);
         db.executeInsert(sql);
         WebWindow.alert("文章添加成功!");
         WebWindow.Close();
     }
     catch (Exception Err)
     {
         ErrorLog.LogInsert(Err.Message, "CS/KnowledgeBase/ArticleAddRule", StaffId);
         WebWindow.alert("文章内容过多!");
         return;
     }
 }