admin/zulinQuery.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 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;
public partial class admin_zulinQuery : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string sql;
sql = "select a.bianhao,mingcheng,a.xuehao,xingming,a.zulinshijian,a.tuizushijian,a.shichang,a.zongfeiyong FROM dbo.zulin a left join diandongche b on a.bianhao=b.bianhao left join xuesheng c on a.xuehao=c.xuehao where tuizushijian is not null";
getdata(sql);
}
}
private void getdata(string sql)
{
DataSet result = new DataSet();
sqlConn conn = new sqlConn();
result = conn.hsggetdata(sql);
if (result != null)
{
if (result.Tables[0].Rows.Count > 0)
{
DataGrid1.DataSource = result.Tables[0];
DataGrid1.DataBind();
Label1.Text = "以上数据中共" + result.Tables[0].Rows.Count + "条";
}
else
{
DataGrid1.DataSource = null;
DataGrid1.DataBind();
Label1.Text = "以上数据中共0条";
}
}
}
protected void Button1_Click(object sender, EventArgs e)
{
string sql;
sql = "select a.bianhao,mingcheng,a.xuehao,xingming,a.zulinshijian,a.tuizushijian,a.shichang,a.zongfeiyong FROM dbo.zulin a left join diandongche b on a.bianhao=b.bianhao left join xuesheng c on a.xuehao=c.xuehao where tuizushijian is not null";
if (this.msg.Text != "")
{
sql += " and a.bianhao like'%" + msg.Text + "%' or a.xuehao like '%" + msg.Text + "%'";
}
getdata(sql);
}
protected void DataGrid1_PageIndexChanged(object source, DataGridPageChangedEventArgs e)
{
DataGrid1.CurrentPageIndex = e.NewPageIndex;
string sql;
sql = "select a.bianhao,mingcheng,a.xuehao,xingming,a.zulinshijian,a.tuizushijian,a.shichang,a.zongfeiyong FROM dbo.zulin a left join diandongche b on a.bianhao=b.bianhao left join xuesheng c on a.xuehao=c.xuehao where tuizushijian is not null";
getdata(sql);
}
后面还有 2 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。