Files
SMANAGE/_toast.ps1
T
TermiNexus 04cd1de3af chore(ehrm): Chndos 改名 Chindows(账号 + 档案昵称)
- 系统账号 UserName:Chndos -> Chindows(唯一登录名,后续须用 Chindows 登录)
- 该员工档案(b2f7e978-90db-4d33-8ea4-74a897bd34b8)的网络常用昵称同步改为 Chindows
- 导入脚本 ROW_USER 的第19行映射同步改为 Chindows(否则问卷行19 解析不到账号)
2026-10-02 16:05:27 +08:00

11 lines
935 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('Chndos 已改名为 Chindows')) | Out-Null
$n.Item(1).AppendChild($t.CreateTextNode('系统账号登录名 Chndos → Chindows,档案「网络常用昵称」同步改;导入脚本映射已同步;该账号后续请用 Chindows 登录')) | Out-Null
$toast = [Windows.UI.Notifications.ToastNotification]::new($t)
[Windows.UI.Notifications.ToastNotificationManager]::CreateToastNotifier('TraeCode Agent').Show($toast)
Write-Output 'toast-ok'