stock/stocklist.aspx.cs
(完整代码) 1KBusing 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;
public partial class stock_stocklist : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
}
protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
GridView1.PageIndex = e.NewPageIndex;
}
protected void Button1_Click(object sender, EventArgs e)
{
string riqi = this.riqi.Text;
if (riqi.Length == 0)
{
this.SqlDataSource1.SelectCommand = "SELECT a.*,b.companyname,c.commodityName FROM stock a,company b ,commodity c where a.companyid=b.cp_id and a.commodityid=c.c_id ";
}
else {
this.SqlDataSource1.SelectCommand = "SELECT a.*,b.companyname,c.commodityName FROM stock a,company b ,commodity c where a.companyid=b.cp_id and a.commodityid=c.c_id and a.stockdate like'%" + riqi + "%'";
}
}
protected void Button2_Click(object sender, EventArgs e)
{
this.riqi.Text = "";
this.SqlDataSource1.SelectCommand = "SELECT a.*,b.companyname,c.commodityName FROM stock a,company b ,commodity c where a.companyid=b.cp_id and a.commodityid=c.c_id ";
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。