Example #1
0
 private void InitEvent()
 {
     client = new SmtOADocumentAdminClient();
     client.GetLendingListByLendingIdCompleted += new EventHandler<GetLendingListByLendingIdCompletedEventArgs>(client_GetLendingListByLendingIdCompleted);
     client.AddArchivesReturnCompleted += new EventHandler<AddArchivesReturnCompletedEventArgs>(client_AddArchivesReturnCompleted);
     client.GetLendingListByLendingIdAsync(lendingID);
 }
Example #2
0
 private void InitEvent()
 {
     client = new SmtOADocumentAdminClient();
     client.GetLendingListByLendingIdCompleted += new EventHandler <GetLendingListByLendingIdCompletedEventArgs>(client_GetLendingListByLendingIdCompleted);
     client.AddArchivesReturnCompleted         += new EventHandler <AddArchivesReturnCompletedEventArgs>(client_AddArchivesReturnCompleted);
     client.GetLendingListByLendingIdAsync(lendingID);
 }
Example #3
0
 private void InitData()
 {
     if (!string.IsNullOrEmpty(lendingID))
     {
         client.GetLendingListByLendingIdAsync(lendingID);
     }
 }
Example #4
0
 private void client_AddArchivesReturnCompleted(object sender, AddArchivesReturnCompletedEventArgs e)
 {
     RefreshUI(RefreshedTypes.ProgressBar);
     try
     {
         if (e.Error == null)
         {
             if (e.Result == "")
             {
                 //HtmlPage.Window.Alert("归还档案成功!");
                 if (GlobalFunction.IsSaveAndClose(refreshType))
                 {
                     Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("RETRUNSUCCESSED", "ARCHIVE"));
                 }
                 else
                 {
                     client.GetLendingListByLendingIdAsync(lendingID);
                 }
                 RefreshUI(refreshType);
             }
             else
             {
                 //HtmlPage.Window.Alert(e.Result);
                 Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Result));
             }
         }
         else
         {
             //RefreshUI(RefreshedTypes.ProgressBar);
             Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message);
         }
     }
     catch (Exception ex)
     {
         //HtmlPage.Window.Alert(ex.ToString());
         //RefreshUI(RefreshedTypes.ProgressBar);
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString());
     }
 }