Admin/jiaoyiUpdate.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 System.Data;
public partial class jiaoyiUpdate : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string sql = "select * from Project";
DataSet result = new DataSet();
result = new Class1().hsggetdata(sql);
if (result != null)
{
for (int i = 0; i < result.Tables[0].Rows.Count; i++)
{
this.DropDownList1.Items.Add(result.Tables[0].Rows[i]["Name"].ToString());
}
}
getdate();
}
}
private void getdate()
{
string sql;
sql = "select * from jiaoyi where id=" + Request.QueryString["id"].ToString().Trim();
DataSet result = new DataSet();
result = new Class1().hsggetdata(sql);
if (result != null)
{
this.bianhao.Text = result.Tables[0].Rows[0]["Number"].ToString();
this.Number.Text = result.Tables[0].Rows[0]["shenfenzheng"].ToString();
this.Name.Text = result.Tables[0].Rows[0]["ClientName"].ToString();
this.DropDownList1.Text = result.Tables[0].Rows[0]["ProjectName"].ToString();
this.qici.Text = result.Tables[0].Rows[0]["qici"].ToString();
this.jiiner.Text = result.Tables[0].Rows[0]["jiner"].ToString();
this.Times1.Text = result.Tables[0].Rows[0]["Times1"].ToString();
this.Times2.Text = result.Tables[0].Rows[0]["Times2"].ToString();
this.Times3.Text = result.Tables[0].Rows[0]["Times3"].ToString();
this.shouyi.Text = result.Tables[0].Rows[0]["shouyi"].ToString();
}
}
protected void Number_TextChanged(object sender, EventArgs e)
{
string Number = this.Number.Text;
string sql = "select * from Client where Number='" + Number + "'";
DataSet result = new DataSet();
result = new Class1().hsggetdata(sql);
if (result != null)
{
if (result.Tables[0].Rows.Count > 0)
{
this.Name.Text = result.Tables[0].Rows[0]["Name"].ToString();
}
后面还有 28 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
