11 lines
911 B
PowerShell
11 lines
911 B
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('用户详情页「点击填写/编辑」按本页员工自动填充,GERP 已部署(bf94cec)')) | Out-Null
|
||
$toast = [Windows.UI.Notifications.ToastNotification]::new($t)
|
||
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier('TraeCode Agent').Show($toast)
|
||
Write-Output 'toast-ok'
|