From 2f74eb23c0d2d4a246bc612c5c34bdfa8dea5603 Mon Sep 17 00:00:00 2001
From: wzp <2040239371@qq.com>
Date: 星期五, 11 十一月 2022 09:25:02 +0800
Subject: [PATCH] 修改账号产品关联的bug 修改产品不显示的bug
---
web/web/Welcome.aspx.cs | 21 ++++++++++++++++++++-
1 files changed, 20 insertions(+), 1 deletions(-)
diff --git a/web/web/Welcome.aspx.cs b/web/web/Welcome.aspx.cs
index 953ac7c..20b832a 100644
--- a/web/web/Welcome.aspx.cs
+++ b/web/web/Welcome.aspx.cs
@@ -3,6 +3,7 @@
using Dao;
using Model;
using System;
+using System.Collections.Generic;
using System.Data;
using System.Text;
using System.Web;
@@ -11,10 +12,13 @@
public partial class Welcome : PageBase<SysUser>, IRequiresSessionState
{
-
+ protected List<GwClient> GwClientList;
+
protected void Page_Load(object sender, EventArgs e)
{
+ using (GwClientDao gwClientDao = new GwClientDao())
+ this.GwClientList = gwClientDao.Clientlist();
}
public string RenderTableSpaceTable()
@@ -37,4 +41,19 @@
return stringBuilder.ToString();
}
}
+ //瀹㈡埛ID杞崲鍚嶇О
+ public string ClientIdToName(string clientId)
+ {
+ if (this.GwClientList.Count == 0)
+ return clientId;
+ foreach (GwClient bean in this.GwClientList)
+ {
+ if (clientId.Equals(bean.ClientID))
+ return bean.Company;
+ else
+ continue;
+ }
+
+ return clientId;
+ }
}
--
Gitblit v1.9.1