myBook.Web/webAdmin/bookType/addBookType.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 myBook.BLL;
using myBook.Model;
using System.Data;
public partial class webAdmin_addBookType : System.Web.UI.Page
{
bookTypeBLL btBll = new bookTypeBLL();
bookTypeModel bookType = new bookTypeModel();
protected void Page_Load(object sender, EventArgs e)
{
common.checkLogin("Login.aspx");
if (!IsPostBack)
{
this.BindType();
if (Request.QueryString["id"] != null)
{
this.hfID.Value = Request.QueryString["id"].ToString();
}
this.BindTypeById();
}
}
/// <summary>
/// 传有值过来
/// </summary>
private void BindTypeById()
{
if (this.hfID.Value != "")
{
bookType = btBll.GetModel(int.Parse(this.hfID.Value));
if (bookType.pid != 0)
{
this.ddlPname.SelectedValue = bookType.pid.ToString();
}
this.txtName.Text = bookType.name;
}
}
/// <summary>
/// 绑定书类型
/// </summary>
private void BindType()
{
common.BindBookPName(ddlPname,true);
}
后面还有 77 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
