void salaryClient_ImportEmployeeAddSumFromExcelForShowCompleted(object sender, ImportEmployeeAddSumFromExcelForShowCompletedEventArgs e) { RefreshUI(RefreshedTypes.HideProgressBar); if (e.Error == null) { if (!string.IsNullOrEmpty(e.strMsg)) { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), e.strMsg, Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); return; } if (e.Result != null) { ListPensions = e.Result; this.LoadData(ListPensions.ToList()); } else { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), "没有导入的数据", Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); return; } } else { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), "导入员工员工加扣款记录失败", Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); return; } }
void salaryClient_ImportEmployeeAddSumFromExcelForShowCompleted(object sender, ImportEmployeeAddSumFromExcelForShowCompletedEventArgs e) { RefreshUI(RefreshedTypes.HideProgressBar); if (e.Error == null) { if (!string.IsNullOrEmpty(e.strMsg)) { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), e.strMsg, Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); return; } if (e.Result != null) { ListPensions = e.Result; this.LoadData(ListPensions.ToList()); } else { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), "没有导入的数据", Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); return; } } else { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("CAUTION"), "导入员工员工加扣款记录失败", Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); return; } }