Web/linshidengjiAdd.aspx.cs
(完整代码) 1KBusing 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 linshidengjiAdd : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
BLL.cheweixinxi danwei = new Maticsoft.BLL.cheweixinxi();
DataSet ds2 = danwei.GetList(" Flag='空'");
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.linshidengji model = new Maticsoft.Model.linshidengji();
model.chepai = this.TextBox0.Text.ToString();
model.chexing = this.TextBox1.Text.ToString();
model.yanse = this.TextBox2.Text;
model.ruqushijian = this.Gdate.Value.ToString();
model.ruqushiyou = this.TextBox3.Text.ToString();
model.beizhu = this.DropDownList2.SelectedItem.Text; ;
BLL.linshidengji bll = new Maticsoft.BLL.linshidengji();
int n = bll.Add(model);
if (n > 0)
{
Response.Write("<script>javascript:alert('添加成功');</script>");
}
else
{
Response.Write("<script>javascript:alert('系统错误,请检查数据库设置问题');</script>");
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。