예제 #1
0
        void client_GetPerformanceRewardSetWithPagingCompleted(object sender, GetPerformanceRewardSetWithPagingCompletedEventArgs e)
        {
            List <T_HR_PERFORMANCEREWARDSET> list = new List <T_HR_PERFORMANCEREWARDSET>();

            if (e.Error == null)
            {
                if (e.Result != null)
                {
                    list = e.Result.ToList();
                }
                DtGrid.ItemsSource  = list;
                dataPager.PageCount = e.pageCount;
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
            }

            loadbar.Stop();
        }
예제 #2
0
        void client_GetPerformanceRewardSetWithPagingCompleted(object sender, GetPerformanceRewardSetWithPagingCompletedEventArgs e)
        {
            List<T_HR_PERFORMANCEREWARDSET> list = new List<T_HR_PERFORMANCEREWARDSET>();
            if (e.Error == null)
            {
                if (e.Result != null)
                {
                    list = e.Result.ToList();
                }
                DtGrid.ItemsSource = list;
                dataPager.PageCount = e.pageCount;
            }
            else
            {
                Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message));
            }

            loadbar.Stop();
        }