Esempio n. 1
0
        void client_GetPerformanceEmployeeAllPagingCompleted(object sender, GetPerformanceEmployeeAllPagingCompletedEventArgs e)
        {
            List <V_PERFORMANCERECORD> tmp = new List <V_PERFORMANCERECORD>();

            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();
                }
                dtgPerformance.ItemsSource     = tmp;
                dataPagerPerformance.PageCount = e.pageCount;
                //dpGrid.PageSize = 20;
                //PagedCollectionView pager = new PagedCollectionView(tmp);
                //dtgPerformance.ItemsSource = pager;
                //dataProjectPager.PageCount = e.;
            }
        }
Esempio n. 2
0
 void client_GetPerformanceEmployeeAllPagingCompleted(object sender, GetPerformanceEmployeeAllPagingCompletedEventArgs e)
 {
     List<V_PERFORMANCERECORD> tmp = new List<V_PERFORMANCERECORD>();
     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();
         }
         dtgPerformance.ItemsSource = tmp;
         dataPagerPerformance.PageCount = e.pageCount;
         //dpGrid.PageSize = 20;
         //PagedCollectionView pager = new PagedCollectionView(tmp);
         //dtgPerformance.ItemsSource = pager;
         //dataProjectPager.PageCount = e.;
     }
 }