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; }
2、UI清除异常提示
this._strongPart.Model.ClearErrorMessage();