Exemplo n.º 1
0
 private void InitData()
 {
     if (!string.IsNullOrEmpty(archiveID))
     {
         client.GetArchivesByIdAsync(archiveID);
     }
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 3
0
 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);
 }
Exemplo n.º 4
0
 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());
     }
 }