| | |
| | | using Dao; |
| | | using Model; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.Data; |
| | | using System.Text; |
| | | using System.Web; |
| | |
| | | |
| | | 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() |
| | |
| | | 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; |
| | | } |
| | | } |