//weirui void client_GetEmployeeBasicInfoPagingViewCompleted(object sender, GetEmployeeBasicInfoPagingViewCompletedEventArgs e) { // List<SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE> list = new List<SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE>(); 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 = e.Result; dataPager.PageCount = e.pageCount; } ToolBar.btnRefresh.IsEnabled = true; loadbar.Stop(); }
//weirui void client_GetEmployeeBasicInfoPagingViewCompleted(object sender, GetEmployeeBasicInfoPagingViewCompletedEventArgs e) { // List<SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE> list = new List<SMT.Saas.Tools.PersonnelWS.T_HR_EMPLOYEE>(); 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 = e.Result; dataPager.PageCount = e.pageCount; } ToolBar.btnRefresh.IsEnabled = true; loadbar.Stop(); }