XTCX/HFCX.aspx.cs

(开头部分) 5KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using Club.Model;

public partial class XTCX_HFCX :PageBase
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {

            BindResult();
        }
    }

    #region 数据绑定
    /// <summary>
    ///绑定列表
    /// </summary>
    private void BindResult()
    {

        //组合查询条件
        string strSqlWhere = string.Empty;
        
            if (this.txtCXNR.Text != "")
            {
                strSqlWhere += " and   STBMC  like '%" + this.txtCXNR.Text.Trim() + "%'";
            }

            if (this.txtDY.Text != "")
            {
                strSqlWhere += " and   STF  > " + this.txtDY.Text.Trim() +"";
            }
            if (this.txtXY.Text != "")
            {
                strSqlWhere += " and   STF  <= " + this.txtXY.Text.Trim() + "";
            }
        
        T_STB modelList = new T_STB();
        DataTable dt = modelList.GetListINFO(strSqlWhere).Tables[0];
        if (dt != null)
        {
            this.gvData.DataKeyNames = new string[] { "STBID" };
            this.gvData.DataSource = dt;
            this.gvData.DataBind();
            ShowStats(dt.Rows.Count.ToString());
        }
    }

后面还有 117 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明

AI 解读 AI

登录后可用,每次 10 积分,解读结果公开显示在下面。

还没有人解读过这个文件。