超级用户管理功能

This commit is contained in:
wule committed 2025-07-07 15:45:43 +08:00
1 parent 2b21ecf62a
commit 0646f19990
13 files changed
+610 -333

No files matched your search

+8 -3
View File
@@ -9,6 +9,7 @@ using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;
using TemuKJD.KJDForms.AccountForms;
namespace TemuKJD.KJDForms.ShopForms
{
@@ -19,6 +20,7 @@ namespace TemuKJD.KJDForms.ShopForms
public Lazy<FreightTemplateAddForm> freightForm = new Lazy<FreightTemplateAddForm>();
public Lazy<FreightTemplateForm> freightTemplateForm = new Lazy<FreightTemplateForm>();
public Lazy<MaterialManageForm> materialManageForm = new Lazy<MaterialManageForm>();
public Lazy<MainAccountForm> mainAccountForm = new Lazy<MainAccountForm>();
public ShopForm()
{
@@ -29,12 +31,12 @@ namespace TemuKJD.KJDForms.ShopForms
tv.SelectedNode = tv.Nodes[0].Nodes[0];
tv.ExpandGroup(tv.Nodes[0].Name);
List<string> hideName = new List<string>() { "高级运费模板", "运费模板", "素材库管理" };
List<string> hideName = new List<string>() { "高级运费模板", "运费模板", "素材库管理", "超级用户管理" };
if (BaseClass.GroupId != 3)
{
hideName.Add("用户管理");
}
if (BaseClass.GroupId == 3 && (BaseClass.UserName == "18888888888" || BaseClass.UserName == "15266666666"))
hideName.Remove("超级用户管理");
foreach (var item in hideName)
{
@@ -74,6 +76,9 @@ namespace TemuKJD.KJDForms.ShopForms
case "素材库管理":
SetForm(materialManageForm.Value);
break;
case "超级用户管理":
SetForm(mainAccountForm.Value);
break;
}
}));
}).Start();