コード例 #1
0
ファイル: StandingBook.xaml.cs プロジェクト: jjg0519/OA
        void clientFBA_GetStandingBookListByPagingCompleted(object sender, GetStandingBookListByPagingCompletedEventArgs e)
        {
            loadbar.Stop();
            if (e.Error == null)
            {
                ObservableCollection <V_StandingBook> entList = new ObservableCollection <V_StandingBook>();
                if (e.Result != null)
                {
                    entList = e.Result;
                }

                dgQueryResult.ItemsSource = entList;
                dataPager.PageCount       = e.pageCount;
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), "读取数据失败!" + e.Error.Message);
            }
        }
コード例 #2
0
ファイル: StandingBook.xaml.cs プロジェクト: JuRogn/OA
        void clientFBA_GetStandingBookListByPagingCompleted(object sender, GetStandingBookListByPagingCompletedEventArgs e)
        {
            loadbar.Stop();
            if (e.Error == null)
            {
                ObservableCollection<V_StandingBook> entList = new ObservableCollection<V_StandingBook>();
                if (e.Result != null)
                {
                    entList = e.Result;
                }

                dgQueryResult.ItemsSource = entList;
                dataPager.PageCount = e.pageCount;
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), "读取数据失败!" + e.Error.Message);
            }
        }