コード例 #1
0
        void client_PensionDetailPagingCompleted(object sender, PensionDetailPagingCompletedEventArgs e)
        {
            List <T_HR_PENSIONDETAIL> list = new List <T_HR_PENSIONDETAIL>();

            if (e.Error != null && e.Error.Message != "")
            {
                //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
                ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"),
                                               Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
            }
            else
            {
                if (e.Result != null)
                {
                    list = e.Result.ToList();
                }
                DtGrid.ItemsSource  = list;
                dataPager.PageCount = e.pageCount;
            }
            ToolBar.btnRefresh.IsEnabled = true;
            loadbar.Stop();
        }
コード例 #2
0
ファイル: PensionDetail.xaml.cs プロジェクト: JuRogn/OA
 void client_PensionDetailPagingCompleted(object sender, PensionDetailPagingCompletedEventArgs e)
 {
     List<T_HR_PENSIONDETAIL> list = new List<T_HR_PENSIONDETAIL>();
     if (e.Error != null && e.Error.Message != "")
     {
         //Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
         ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"),
                        Utility.GetResourceStr("CONFIRM"), MessageIcon.Error);
     }
     else
     {
         if (e.Result != null)
         {
             list = e.Result.ToList();
         }
         DtGrid.ItemsSource = list;
         dataPager.PageCount = e.pageCount;
     }
     ToolBar.btnRefresh.IsEnabled = true;
     loadbar.Stop();
 }