Exemplo n.º 1
0
        void client_GetPerformanceDetailEmployeeAllPagingCompleted(object sender, GetPerformanceDetailEmployeeAllPagingCompletedEventArgs e)
        {
            List <V_PERFORMANCERECORDDETAIL> tmp = new List <V_PERFORMANCERECORDDETAIL>();

            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)
                {
                    tmp = e.Result.ToList();
                }
                dtgPerformanceDetail.ItemsSource = tmp;
                dataPagerDetail.PageCount        = e.pageCount;
                //dpGrid3.PageSize = 20;
                //PagedCollectionView pager = new PagedCollectionView(tmp);
                //dtgPerformanceDetail.ItemsSource = pager;
                //dataProjectPager.PageCount = e.;
            }
            loadbar.Stop();
        }
Exemplo n.º 2
0
 void client_GetPerformanceDetailEmployeeAllPagingCompleted(object sender, GetPerformanceDetailEmployeeAllPagingCompletedEventArgs e)
 {
     List<V_PERFORMANCERECORDDETAIL> tmp = new List<V_PERFORMANCERECORDDETAIL>();
     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)
         {
             tmp = e.Result.ToList();
         }
         dtgPerformanceDetail.ItemsSource = tmp;
         dataPagerDetail.PageCount = e.pageCount;
         //dpGrid3.PageSize = 20;
         //PagedCollectionView pager = new PagedCollectionView(tmp);
         //dtgPerformanceDetail.ItemsSource = pager;
         //dataProjectPager.PageCount = e.;
     }
     loadbar.Stop();
 }