Exemplo n.º 1
0
        void clientFBA_GetMonthlyBudgetAnalysisListByPagingCompleted(object sender, GetMonthlyBudgetAnalysisListByPagingCompletedEventArgs e)
        {
            loadbar.Stop();
            if (e.Error == null)
            {
                ObservableCollection <V_MonthlyBudgetAnalysis> entList = new ObservableCollection <V_MonthlyBudgetAnalysis>();
                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);
            }
        }
Exemplo n.º 2
0
        void clientFBA_GetMonthlyBudgetAnalysisListByPagingCompleted(object sender, GetMonthlyBudgetAnalysisListByPagingCompletedEventArgs e)
        {
            loadbar.Stop();
            if (e.Error == null)
            {
                ObservableCollection<V_MonthlyBudgetAnalysis> entList = new ObservableCollection<V_MonthlyBudgetAnalysis>();
                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);
            }
        }