protected override void OnSaving()
{
if (Session.ObjectLayer is DevExpress.ExpressApp.Security.ClientServer.SecuredSessionObjectLayer)
{
// Client
}
else
{
if (状态 != null && 借款人 != null)
updateState();
// Server
}
base.OnSaving();
}
XAF 避免OnSaving OnSaved 执行两次需要加判断
最新推荐文章于 2022-05-11 14:10:55 发布
本文探讨了在DevExpress ExpressApp框架中,OnSaving方法如何根据不同条件(客户端或服务器端)进行特定操作。当会话对象层为客户端安全会话时,代码将执行客户端相关逻辑;在服务器端,则更新状态信息。
19万+

被折叠的 条评论
为什么被折叠?



