Files
SMANAGE/_toast.ps1
T

11 lines
1.1 KiB
PowerShell

$ErrorActionPreference = 'SilentlyContinue'
[Windows.UI.Notifications.ToastNotificationManager, Windows.UI.Notifications, ContentType = WindowsRuntime] | Out-Null
[Windows.Data.Xml.Dom.XmlDocument, Windows.Data.Xml.Dom.XmlDocument, ContentType = WindowsRuntime] | Out-Null
$t = [Windows.UI.Notifications.ToastNotificationManager]::GetTemplateContent([Windows.UI.Notifications.ToastTemplateType]::ToastText02)
$n = $t.GetElementsByTagName('text')
$n.Item(0).AppendChild($t.CreateTextNode('订阅:提供者与消费者可为同一家公司')) | Out-Null
$n.Item(1).AppendChild($t.CreateTextNode('后端去掉两方交集校验(唯一键按 PartyType 区分,同一公司可落两行),前端订阅组弹窗与应用订阅方卡片都取消互斥禁用。已实测保存与落库成功、构建部署通过(108 assets)。SMANAGE a6475082 / GERP 43998fe,请 Ctrl+F5')) | Out-Null
$toast = [Windows.UI.Notifications.ToastNotification]::new($t)
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier('TraeCode Agent').Show($toast)
Write-Output 'toast-ok'