From 61148aa5ceca69f5588bd3803aac83b2b9e5cfc6 Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期五, 17 一月 2025 17:10:58 +0800 Subject: [PATCH] 优化界面 --- WinFrmUI/HStation.WinFrmUI.Core/00-UICore/01-用户登陆类/GlobalParas.cs | 40 +++++++++++++++++++++++++++++++++++++++- 1 files changed, 39 insertions(+), 1 deletions(-) diff --git "a/WinFrmUI/HStation.WinFrmUI.Core/00-UICore/01-\347\224\250\346\210\267\347\231\273\351\231\206\347\261\273/GlobalParas.cs" "b/WinFrmUI/HStation.WinFrmUI.Core/00-UICore/01-\347\224\250\346\210\267\347\231\273\351\231\206\347\261\273/GlobalParas.cs" index 4238978..3c9591a 100644 --- "a/WinFrmUI/HStation.WinFrmUI.Core/00-UICore/01-\347\224\250\346\210\267\347\231\273\351\231\206\347\261\273/GlobalParas.cs" +++ "b/WinFrmUI/HStation.WinFrmUI.Core/00-UICore/01-\347\224\250\346\210\267\347\231\273\351\231\206\347\261\273/GlobalParas.cs" @@ -1,4 +1,5 @@ -锘縰sing Yw.Dto; +锘縰sing Yw.Auth; +using Yw.Dto; namespace HStation { @@ -23,6 +24,23 @@ _GlobalParas.ProductID = rhs.Software.Project.Product.ID; _GlobalParas.UserID = rhs.User.ID; _GlobalParas.SoftwareID = rhs.Software.ID; + switch (rhs.User.AdminType) + { + case Yw.Model.eAdminType.Admin: + _GlobalParas.AdminType = "绠$悊鐢ㄦ埛"; + break; + + case Yw.Model.eAdminType.Normal: + _GlobalParas.AdminType = "甯歌鐢ㄦ埛"; + break; + + case Yw.Model.eAdminType.System: + _GlobalParas.AdminType = "绯荤粺鐢ㄦ埛"; + break; + } + _GlobalParas.AccountName = rhs.User.LoginAccount.Identifier; + _GlobalParas.LoginType = rhs.User.LoginAccount.LoginType.Name; + _GlobalParas.LoginID = rhs.User.LoginAccount.ID; } public long SoftwareID { get; set; } @@ -53,6 +71,26 @@ public long CreateUserID { get; set; } /// <summary> + /// 璐︽埛鍚� + /// </summary> + public string AccountName { get; set; } + + /// <summary> + /// 绠$悊绫诲瀷 + /// </summary> + public string AdminType { get; set; } + + /// <summary> + /// 璐︽埛绫诲瀷 + /// </summary> + public string LoginType { get; set; } + + /// <summary> + /// 璐︽埛绫诲瀷 + /// </summary> + public long LoginID { get; set; } + + /// <summary> /// 鍏崇郴绫诲瀷 /// </summary> public string RelatedType { get; set; } -- Gitblit v1.9.3