void Travelmanagement_DeleteTravelReimbursementByBusinesstripIdCompleted(object sender, DeleteTravelReimbursementByBusinesstripIdCompletedEventArgs e) { try { loadbar.Stop(); if (e.Error != null) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message); return; } else { if (!e.Result) //返回值为假 { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("DALETEFAILED")); return; } if (!e.FBControl) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("DALETEFAILED")); return; } LoadData(); } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString()); } loadbar.Stop();//读取完数据后,停止动画,隐藏 }
void Travelmanagement_DeleteTravelReimbursementByBusinesstripIdCompleted(object sender, DeleteTravelReimbursementByBusinesstripIdCompletedEventArgs e) { try { if (e.Error != null) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message); return; } else { if (!e.Result) //返回值为假 { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("DALETEFAILED")); return; } else { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("删除成功!"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); this.formType = FormTypes.Browse; } } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString()); } finally { this.RefreshUI(RefreshedTypes.HideProgressBar); //读取完数据后,停止动画,隐藏 this.RefreshUI(RefreshedTypes.All); //重新加载数据 this.RefreshUI(RefreshedTypes.Close); } }
void Travelmanagement_DeleteTravelReimbursementByBusinesstripIdCompleted(object sender, DeleteTravelReimbursementByBusinesstripIdCompletedEventArgs e) { try { if (e.Error != null) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), e.Error.Message); return; } else { if (!e.Result) //返回值为假 { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("DALETEFAILED")); return; } else { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("TIPS"), Utility.GetResourceStr("删除成功!"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); this.formType = FormTypes.Browse; } } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.ToString()); } finally { this.RefreshUI(RefreshedTypes.HideProgressBar);//读取完数据后,停止动画,隐藏 this.RefreshUI(RefreshedTypes.All);//重新加载数据 this.RefreshUI(RefreshedTypes.Close); } }