com.eshop.www.Web/manager/product_attribute.aspx.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
//
// QQ:
//
// QQ:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using com.eshop.www.Model;
using System.Data;
using com.eshop.www.BLL;
using com.eshop.www.Tools;
public partial class back_stage_product_attribute : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
attributeList_load();
}
}
private void attributeList_load()
{
int productId = int.Parse(Request.QueryString["productId"]);
ProductDetail productDetail = new ProductDetailBusiness().GetEntity(productId);
DataRecordTable table = new CategoryAttributeBusiness().GetList("attribute,attribute_id,values_list,is_multiple,category_id","category_id",false,1,100,"category_id="+productDetail.CategoryId+" and state=1");
attributeList.DataSource = table.Table;
attributeList.DataBind();
}
protected void attributeList_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
int productId = int.Parse(Request.QueryString["productId"]);
int attributeId = int.Parse((e.Item.FindControl("hiddenAttributeId") as HiddenField).Value);
string valuesList = (e.Item.FindControl("hiddenValuesList") as HiddenField).Value;
string isMultiple = (e.Item.FindControl("hiddenIsMultiple") as HiddenField).Value;
CheckBoxList chkValues = e.Item.FindControl("chkValues") as CheckBoxList;
DropDownList ddlValues = e.Item.FindControl("ddlValues") as DropDownList;
TextBox txtValues = e.Item.FindControl("txtValues") as TextBox;
ProductAttributeValueBusiness productAttributeValueBusiness = new ProductAttributeValueBusiness();
后面还有 91 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
