Web/User/Product/ProductImport.aspx.cs
(开头部分) 14KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.IO;
using Common;
using System.Data;
using Maticsoft.DAL;
using Maticsoft.Model;
using System.Text;
using BLL;
namespace WeiMaiShop.User.Product
{
public partial class ProductImport : UserPage
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
BindParentInfoClassist();
}
}
//资讯类别选择
private void BindParentInfoClassist()
{
ddProductClass.Items.Clear();
DataSet ds = GetList();
BindSubParentInfoList(ds, 0, 0);
}
//子资讯类别
private void BindSubParentInfoList(DataSet ds, int ParentInfoClassID, int n)
{
DataRow[] arr_row = ds.Tables[0].Select("iParentId=" + ParentInfoClassID.ToString());
string str_null = "";
for (int i = 0; i < n; i++)
{
str_null += HttpContext.Current.Server.HtmlDecode(" ");
}
n++;
for (int i = 0; i < arr_row.Length; i++)
{
ListItem item = new ListItem();
item.Value = arr_row[i]["ProductClassID"].ToString();
item.Text = str_null + "├" + arr_row[i]["Name"].ToString();
ddProductClass.Items.Add(item);
BindSubParentInfoList(ds, Convert.ToInt32(arr_row[i]["ProductClassID"].ToString()), n);
}
后面还有 304 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
