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();
简单粗暴的记录,便于后续翻阅,转载请注明出处。