void client_GetEmployeeAddSumWithPagingCompleted(object sender, GetEmployeeAddSumWithPagingCompletedEventArgs e) { List <T_HR_EMPLOYEEADDSUM> list = new List <T_HR_EMPLOYEEADDSUM>(); if (e.Error != null) { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } else { if (e.Result != null) { list = e.Result.ToList(); foreach (var item in list) { item.DEALYEAR = item.DEALYEAR + "年" + item.DEALMONTH + "月"; } } DtGrid.ItemsSource = list; dataPager.PageCount = e.pageCount; } loadbar.Stop(); }
void client_GetEmployeeAddSumWithPagingCompleted(object sender, GetEmployeeAddSumWithPagingCompletedEventArgs e) { List<T_HR_EMPLOYEEADDSUM> list = new List<T_HR_EMPLOYEEADDSUM>(); if (e.Error != null) { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } else { if (e.Result != null) { list = e.Result.ToList(); foreach (var item in list) { item.DEALYEAR = item.DEALYEAR + "年" + item.DEALMONTH + "月"; } } DtGrid.ItemsSource = list; dataPager.PageCount = e.pageCount; } loadbar.Stop(); }