Пример #1
0
 /// <summary>
 /// 获取借阅记录
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void client_GetLendingListByLendingIdCompleted(object sender, GetLendingListByLendingIdCompletedEventArgs e)
 {
     try
     {
         if (e.Result != null)
         {
             lendingArchives = e.Result.ToList().First();
             if (actionFlag == DataActionFlag.SubmitFlow)
             {
                 actionFlag = DataActionFlag.SubmitComplete;
                 //SumbitFlow();
                 return;
             }
             if (action == Action.AUDIT)
             {
                 //audit.XmlObject = DataObjectToXml<T_OA_LENDARCHIVES>.ObjListToXml(lendingArchives, "OA");
             }
             this.txtTitle.Text      = lendingArchives.T_OA_ARCHIVES.ARCHIVESTITLE;
             this.txtCompany.Text    = Utility.GetCompanyName(lendingArchives.T_OA_ARCHIVES.COMPANYID);
             this.sDate.SelectedDate = lendingArchives.STARTDATE;
             this.eDate.SelectedDate = lendingArchives.PLANENDDATE;
             //BindAduitInfo();
             if (FormTypeAction == FormTypes.Resubmit)
             {
                 lendingArchives.CHECKSTATE = Convert.ToInt32(CheckStates.UnSubmit).ToString();
             }
             RefreshUI(RefreshedTypes.AuditInfo);
             RefreshUI(RefreshedTypes.All);
         }
     }
     catch (Exception ex)
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.Message.ToString());
     }
 }
Пример #2
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());
     }
 }
Пример #3
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());
     }
 }
Пример #4
0
 private void client_GetLendingListByLendingIdCompleted(object sender, GetLendingListByLendingIdCompletedEventArgs e)
 {
     try
     {
         if (e.Result != null)
         {
             lendingArchives         = e.Result.ToList().First();
             this.txtTitle.Text      = lendingArchives.T_OA_ARCHIVES.ARCHIVESTITLE;
             this.txtCompany.Text    = Utility.GetCompanyName(lendingArchives.T_OA_ARCHIVES.COMPANYID);
             this.sDate.SelectedDate = lendingArchives.STARTDATE;
             this.eDate.SelectedDate = lendingArchives.PLANENDDATE;
             BindAduitInfo();
         }
     }
     catch (Exception ex)
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.Message.ToString());
     }
 }
Пример #5
0
 private void client_GetLendingListByLendingIdCompleted(object sender, GetLendingListByLendingIdCompletedEventArgs e)
 {
     try
     {
         if (e.Result != null)
         {
             lendingArchives = e.Result.ToList().First();
             this.txtTitle.Text = lendingArchives.T_OA_ARCHIVES.ARCHIVESTITLE;
             this.txtCompany.Text = Utility.GetCompanyName(lendingArchives.T_OA_ARCHIVES.COMPANYID);
             this.sDate.SelectedDate = lendingArchives.STARTDATE;
             this.eDate.SelectedDate = lendingArchives.PLANENDDATE;
             BindAduitInfo();
         }
     }
     catch (Exception ex)
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.Message.ToString());
     }
 }
Пример #6
0
 /// <summary>
 /// 获取借阅记录
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void client_GetLendingListByLendingIdCompleted(object sender, GetLendingListByLendingIdCompletedEventArgs e)
 {
     try
     {
         if (e.Result != null)
         {
             lendingArchives = e.Result.ToList().First();
             if (actionFlag == DataActionFlag.SubmitFlow)
             {
                 actionFlag = DataActionFlag.SubmitComplete;
                 //SumbitFlow();
                 return;
             }
             if (action == Action.AUDIT)
             {
                 //audit.XmlObject = DataObjectToXml<T_OA_LENDARCHIVES>.ObjListToXml(lendingArchives, "OA"); 
                 
             }
             this.txtTitle.Text = lendingArchives.T_OA_ARCHIVES.ARCHIVESTITLE;
             this.txtCompany.Text = Utility.GetCompanyName(lendingArchives.T_OA_ARCHIVES.COMPANYID);
             this.sDate.SelectedDate = lendingArchives.STARTDATE;
             this.eDate.SelectedDate = lendingArchives.PLANENDDATE;
             //BindAduitInfo();
             if (FormTypeAction == FormTypes.Resubmit)
             {
                 lendingArchives.CHECKSTATE = Convert.ToInt32(CheckStates.UnSubmit).ToString();
             }
             RefreshUI(RefreshedTypes.AuditInfo);
             RefreshUI(RefreshedTypes.All);
         }
     }
     catch (Exception ex)
     {
         Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.Message.ToString());
     }
 }