Web/cheliangUpdate.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
namespace Maticsoft.Web
{
public partial class cheliangUpdate : System.Web.UI.Page
{
BLL.cheliangxinxi bll = new Maticsoft.BLL.cheliangxinxi();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Info();
DataSet ds = bll.GetList(" ID=" + Request["id"].ToString().Trim() + "");
this.TextBox0.Text = ds.Tables[0].Rows[0]["chepai"].ToString();
this.TextBox1.Text = ds.Tables[0].Rows[0]["chexing"].ToString();
this.TextBox2.Text = ds.Tables[0].Rows[0]["yanse"].ToString();
this.DropDownList1.Text = ds.Tables[0].Rows[0]["huzhu"].ToString();
this.TextBox3.Text = ds.Tables[0].Rows[0]["xingming"].ToString();
this.DropDownList2.SelectedValue = ds.Tables[0].Rows[0]["chewei"].ToString();
this.TextBox4.Text = ds.Tables[0].Rows[0]["beizhu"].ToString();
}
}
protected void Info()
{
BLL.zhuhuxinxi type = new Maticsoft.BLL.zhuhuxinxi();
DataSet ds1 = type.GetList("");
this.DropDownList1.DataTextField = "bianhao";
this.DropDownList1.DataValueField = "ID";
this.DropDownList1.DataSource = ds1.Tables[0];
this.DropDownList1.DataBind();
BLL.cheweixinxi danwei = new Maticsoft.BLL.cheweixinxi();
DataSet ds2 = danwei.GetList("");
this.DropDownList2.DataTextField = "chewei";
this.DropDownList2.DataValueField = "ID";
this.DropDownList2.DataSource = ds2.Tables[0];
this.DropDownList2.DataBind();
}
protected void Button1_Click(object sender, EventArgs e)
{
Model.cheliangxinxi model = new Maticsoft.Model.cheliangxinxi();
model.ID = int.Parse(Request["id"].ToString().Trim());
model.chepai = this.TextBox0.Text.ToString();
model.chexing = this.TextBox1.Text.ToString();
model.yanse = this.TextBox2.Text;
model.huzhu = this.DropDownList1.SelectedItem.Text;
model.xingming = this.TextBox3.Text.ToString();
model.chewei = this.DropDownList2.SelectedItem.Text;
model.beizhu = this.TextBox4.Text.ToString();
后面还有 25 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。