wzp
2022-07-12 705909e14fe4e9f2fc261ee4eb40a8b41fa2f6d4
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;
    }
}