protected override void OnCompleted(LoginCode code, string arguments, string UserId) { if (IsManual && WebWindow != null) { WebWindow.Close(); WebWindow = null; } base.OnCompleted(code, arguments, UserId); }
protected void CloseWebWindow(WebWindow wnd) { if (wnd != null) { wnd.Dispatcher.Invoke((Action)(() => { wnd.Close(); })); } }
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; } }
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; } }