private void wssc_GetWelfarePaymentDetailsInfosCompleted(object sender, GetWelfarePaymentDetailsInfosCompletedEventArgs e) { try { if (e.Result != null) { if (e.Result.Count == 0) { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("DIDNOTFINDRELEVANT", "WELFAREPAYMENTDETAILS")); } BindDataGrid(e.Result.ToList(), e.pageCount); } else { BindDataGrid(null, 0); Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("DIDNOTFINDRELEVANT", "WELFAREPAYMENTDETAILS")); } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString()); } loadbar.Stop();//读取完数据后,停止动画,隐藏 }
private void wssc_GetWelfarePaymentDetailsInfosCompleted(object sender, GetWelfarePaymentDetailsInfosCompletedEventArgs e) { try { if (e.Result != null) { if (e.Result.Count == 0) { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("DIDNOTFINDRELEVANT", "WELFAREPAYMENTDETAILS")); } BindDataGrid(e.Result.ToList(), e.pageCount); } else { BindDataGrid(null, 0); Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("DIDNOTFINDRELEVANT", "WELFAREPAYMENTDETAILS")); } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString()); } loadbar.Stop();//读取完数据后,停止动画,隐藏 }