private void InitData() { if (!string.IsNullOrEmpty(archiveID)) { client.GetArchivesByIdAsync(archiveID); } }
private void InitEvent() { client = new SmtOADocumentAdminClient(); client.GetArchivesByIdCompleted += new EventHandler<GetArchivesByIdCompletedEventArgs>(client_GetArchivesByIdCompleted); client.GetArchivesByIdAsync(archiveID); //client.GetLendingListByLendingIdCompleted += new EventHandler<GetLendingListByLendingIdCompletedEventArgs>(client_GetLendingListByLendingIdCompleted); //client.GetArchivesByIdCompleted += new EventHandler<GetArchivesByIdCompletedEventArgs>(client_GetArchivesByIdCompleted); //client.GetLendingListByLendingIdAsync(archiveID); }
private void InitEvent() { client = new SmtOADocumentAdminClient(); client.GetArchivesByIdCompleted += new EventHandler <GetArchivesByIdCompletedEventArgs>(client_GetArchivesByIdCompleted); client.GetArchivesByIdAsync(archiveID); //client.GetLendingListByLendingIdCompleted += new EventHandler<GetLendingListByLendingIdCompletedEventArgs>(client_GetLendingListByLendingIdCompleted); //client.GetArchivesByIdCompleted += new EventHandler<GetArchivesByIdCompletedEventArgs>(client_GetArchivesByIdCompleted); //client.GetLendingListByLendingIdAsync(archiveID); }
private void client_GetLendingListByLendingIdCompleted(object sender, GetLendingListByLendingIdCompletedEventArgs e) { try { if (e.Result != null) { client.GetArchivesByIdAsync(e.Result[0].T_OA_ARCHIVES.ARCHIVESID); } } catch (Exception ex) { //HtmlPage.Window.Alert(ex.ToString()); Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), ex.ToString()); } }