ad88/BsPg/BsProducts.aspx.cs
(开头部分) 19KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using CSA.Control;
using CSA.DAL;
using CSA.IO;
using CSA.HC;
public partial class admin_BsPg_BsProducts : AdminPage
{
private string TblName = "BS_Products";
private string PKField = "pkid";
private string PKType = "string";
protected void Page_Load(object sender, EventArgs e)
{
try
{
checkUserGoLogin();
if (!IsPostBack)
{
initCtrl();
bindData();
}
}
catch (Exception ex)
{
ShowMsg(ex.Message);
}
}
#region 个性化功能
#endregion
#region 数据绑定
/// <summary>
/// 初始化控件
/// </summary>
private void initCtrl()
{
setControlRole();
string pcode=Request.QueryString["pcode"];
setViewState("pcode", pcode);
setViewState("type", Request.QueryString["type"]); //设置操作权限
string xcode = Request["xcode"];
this.gvList.DataKeyNames = new string[] { PKField };
//Search_Keyword1
DataTable dt = DBAccess.getRS("select name,code from bs_prokind where code like '"+xcode+"%' order by code");
foreach (DataRow dr in dt.Rows)
{
dr["name"] = "".PadLeft(dr["code"].ToString().Length - 2, '-') + dr["name"].ToString();
后面还有 522 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
