void client_EmployeeBalancePostDeleteCompleted(object sender, EmployeeBalancePostDeleteCompletedEventArgs e) { if (e.Error != null) { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } else { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), "删除成功", Utility.GetResourceStr("CONFIRM"), MessageIcon.Information); LoadData(); } }
void client_EmployeeBalancePostDeleteCompleted(object sender, EmployeeBalancePostDeleteCompletedEventArgs e) { RefreshUI(RefreshedTypes.HideProgressBar); if (e.Error != null) { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } else { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), "删除成功", Utility.GetResourceStr("CONFIRM"), MessageIcon.Information); if (EmployeeAddBalancePost != null) { EmployeeAddBalancePost.CHECKSTATE = "1"; } FormType = FormTypes.Browse; RefreshUI(RefreshedTypes.All); try { EntityBrowser entBrowser = this.FindParentByType<EntityBrowser>(); entBrowser.Close(); } catch (Exception ex) { } } }