UI异常提示

1、BE异常提示

throw new Exception("异常提示信息!");

2、UI异常提示

方式1、
if (this._strongPart.Model.SupplyParam.FocusedRecord.Org== null)
{

UFIDA.U9.UI.PDHelper.PDFormMessage.ShowAlertDialog(this._strongPart, "组织不允许为空!");
return;
}
方式2、
IUIModel model = this._strongPart.Model; if (this._strongPart.Model.SupplyParam.FocusedRecord.Org == null) { this._strongPart.Model.ErrorMessage.SetErrorMessage(ref model, "组织不允许为空!"); return; }
 方式3:任务栏异常提示
DLL引用:UFSoft.UBF.UI.IView.dll
this._strongPart.Action.CurrentPart.ShowWindowStatus("数据异常,请检查!", true , true); return;

3、UI清除异常提示

this._strongPart.Model.ClearErrorMessage();
posted @ 2020-07-31 15:01  既来之.则安之  阅读(340)  评论(0编辑  收藏  举报