static void client_GetEntityPermissionByUserCompleted(object sender, GetEntityPermissionByUserCompletedEventArgs e) { if (e.Error == null) { if (e.Result != null) { SavePermissionByLocal(e.Result); } }else { MessageBox.Show("获取员工模块权限失败!"); if (OnGetUserMenuPermissionCompleted != null) { OnGetUserMenuPermissionCompleted(null, EventArgs.Empty); } } }
static void client_GetEntityPermissionByUserCompleted(object sender, GetEntityPermissionByUserCompletedEventArgs e) { if (e.Error == null) { if (e.Result != null) { SavePermissionByLocal(e.Result); } } else { MessageBox.Show("获取员工模块权限失败!"); if (OnGetUserMenuPermissionCompleted != null) { OnGetUserMenuPermissionCompleted(null, EventArgs.Empty); } } }