com.huiyou.Web/admin/user_view.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using com.huiyou.Web.tools;
using com.huiyou.Bll;
using System.Data;
namespace com.huiyou.Web.admin
{
public partial class user_view : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!AdminLoginHelper.AdminEnter()) return;
if (!Page.IsPostBack)
{
BindData();
}
}
private void BindData()
{
string id = Request["id"];
var user = UserService.GetById(Convert.ToInt32(id));
if (user == null) return;
txtPhone.Text = user.Phone;
txtNickName.Text = user.NickName;
txtSex.Text = user.Sex;
if (user.Birthday != Convert.ToDateTime("1900-01-01"))
txtBirthday.Text = user.Birthday.ToString("yyyy-MM-dd");
txtStatus.Text = (user.CurStatus == 0 ? "正常" : "冻结");
txtCompanyName.Text = user.CompanyName;
//txtCompanyAddress.Text = user.CompanyAddress;
txtLegalPerson.Text = user.LegalPerson;
txtLegalPersonPhone.Text = user.LegalPersonPhone;
//txtIDCardNo.Text = user.IDCardNo;
txtAuth.Text = HtmlHelper.FormatUserAuth(user.IsAuth);
if (user.BusinessLicence != "")
{
imgPic1.ImageUrl = user.BusinessLicence;
}
else
{
imgPic1.Visible = false;
}
if (user.IDCardPhoto != "")
{
后面还有 29 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
