Web/Admin/Product_Manage/Product_Update.aspx.cs
(开头部分) 8KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using JY.Model;
using JY.BLL;
using Maticsoft.DBUtility;
using System.Text;
public partial class Product_Update : PasePage
{
JY.BLL.Product bll = new JY.BLL.Product();
JY.Model.Product model = new JY.Model.Product();
JY.BLL.ComDataList combll = new ComDataList();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.txtSort.Attributes["number_type"] = "int";
bing_dd_type();
bindddlBrand();
initProduct();
}
}
/// <summary>
/// 一级菜单下拉框
/// </summary>
protected void bing_dd_type()
{
try
{
ddlProductType.Items.Clear();
DataTable dt = new DataTable();
if (Request.QueryString["TypeId"] == null || Request.QueryString["TypeId"] == "" || Request.QueryString["TypeId"] == "0")
{
//ddlAdType.Items.Add(new ListItem("一级父类", "0,-1"));
dt = combll.GetComList(0, " id,TypeName,Depth ", " ProductType ", " isdelete=0 and depth=0 and Fid=0 ", " Sort asc,id desc ");
}
else
{
dt = combll.GetComList(0, " id,TypeName,Depth ", " ProductType ", " isdelete=0 and id=" + Request.QueryString["TypeId"], " Sort asc,id desc ");
}
if (dt != null && dt.Rows.Count > 0)
{
for (int i = 0; i < dt.Rows.Count; i++)
{
ListItem li = new ListItem();
li.Text = "╋" + dt.Rows[i]["TypeName"].ToString();
li.Value = dt.Rows[i]["id"].ToString() + "," + dt.Rows[i]["Depth"].ToString();
ddlProductType.Items.Add(li);
BindChild(dt.Rows[i]["id"].ToString(), Convert.ToInt32(dt.Rows[i]["Depth"].ToString()) + 1);
}
}
}
catch (Exception ex)
{
后面还有 187 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读 AI
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
