JCK.Web/customer/cus_goods_list.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using JCK.Common;
using System.Data;
namespace JCK.Web.customer
{
public partial class cus_goods_list : Web.UI.ManagePage
{
protected Model.Info info;
protected string keywords;
int pageSize = 10;
protected void Page_Load(object sender, EventArgs e)
{
info = GetInfo();
if (!IsPostBack)
{
ChkAdminLevel("cus_goods", CEnums.ActionEnum.View.ToString()); //检查权限
rptBind();
}
}
#region 数据绑定=================================
private void rptBind()
{
Model.Online_User on_u = GetUserInfo();
string where = "1=1 ";
this.keywords = txtKeywords.Text;
if (keywords != "")
{
int n;
if (int.TryParse(keywords, out n))
{
//为数字
where += " and (P_NO='" + keywords + "' or C_code_t='" + keywords + "')";
}
else
{
//非数字
where += " and P_name like '%" + keywords + "%' ";
}
}
if(info.isadmin=="0")
where += " and ParentNo = '" + on_u .BH+ "'";
DAL.DAL_Enterprise_Product bll = new DAL.DAL_Enterprise_Product();
DataTable dt = bll.GetList(where).Tables[0];
pager_rpt.PageSize = pageSize;
PagedDataSource pds = new PagedDataSource();
后面还有 44 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
