void client_EmployeeInsurancePagingCompleted(object sender, EmployeeInsurancePagingCompletedEventArgs e) { List <T_HR_EMPLOYEEINSURANCE> list = new List <T_HR_EMPLOYEEINSURANCE>(); 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) { list = e.Result.ToList(); } DtGrid.ItemsSource = list; dataPager.PageCount = e.pageCount;; } ToolBar.btnRefresh.IsEnabled = true; loadbar.Stop(); }
/// <summary> /// 保险 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void Client_EmployeeInsurancePagingCompleted(object sender, EmployeeInsurancePagingCompletedEventArgs e) { ListEmployeeInsurance = null; if (e.Error != null && e.Error.Message != string.Empty) { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERRORINFO"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } else { if (e.Result != null) { ListEmployeeInsurance = e.Result.ToList(); } DtInsurance.ItemsSource = ListEmployeeInsurance; dataPagerInsurance.PageCount = e.pageCount; ; } }
void client_EmployeeInsurancePagingCompleted(object sender, EmployeeInsurancePagingCompletedEventArgs e) { List<T_HR_EMPLOYEEINSURANCE> list = new List<T_HR_EMPLOYEEINSURANCE>(); 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) { list = e.Result.ToList(); } DtGrid.ItemsSource = list; dataPager.PageCount = e.pageCount; ; } ToolBar.btnRefresh.IsEnabled = true; loadbar.Stop(); }