Hidistro.UI.Web/Admin/AdminNew.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace Hidistro.UI.Web.Admin
{
using Hidistro.ControlPanel.Store;
using Hidistro.Core;
using Hidistro.Core.Entities;
using Hidistro.Entities.Store;
using Hidistro.UI.Common.Controls;
using Hidistro.UI.ControlPanel.Utility;
using System;
using System.Web.UI;
using System.Web.UI.WebControls;
using Hidistro.Entities.Members;
using Hidistro.SaleSystem.Vshop;
public class AdminNew : MasterPage
{
protected ContentPlaceHolder ContentPlaceHolder1;
protected int CurrentUserId;
protected ContentPlaceHolder head;
protected Literal leftMenu;
protected Literal litSitename;
protected Literal litUsername;
protected PageTitle PageTitle1;
protected Literal topMenu;
protected void Page_Load(object sender, EventArgs e)
{
if (!this.Page.IsPostBack)
{
AdminPage page = this.Page as AdminPage;
Navigation navigation = Navigation.GetNavigation(true);
this.topMenu.Text = navigation.RenderTopMenu(page.ModuleId);
this.leftMenu.Text = navigation.RenderLeftMenu(page.ModuleId, page.PageId);
SiteSettings masterSettings = SettingsManager.GetMasterSettings(true);
this.litSitename.Text = masterSettings.SiteName;
try
{
ManagerInfo currentManager = ManagerHelper.GetCurrentManager();
if (currentManager!=null)
{
DistributorsInfo distributorInfo = DistributorsBrower.GetDistributorInfo_byMangeUserId(currentManager.UserId);
if (distributorInfo != null)
{
this.litUsername.Text = "实体店:" + distributorInfo.StoreName + "";
PageTitle1.Page.Title = this.litUsername.Text;
}
else
{
PageTitle1.Page.Title = this.litSitename.Text;
this.litUsername.Text = currentManager.UserName + "";
}
CurrentUserId = currentManager.UserId;
}
}
catch
{
Response.Redirect("/admin/login.aspx");
后面还有 7 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
