Message/Edit.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using LTP.Common;
using System.Collections.Generic;
public partial class Message_Edit : PageBase
{
Maticsoft.Model.db_Vehicle model = new Maticsoft.Model.db_Vehicle();
Maticsoft.BLL.db_Vehicle db = new Maticsoft.BLL.db_Vehicle();
Maticsoft.BLL.db_Pilot db1 = new Maticsoft.BLL.db_Pilot();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
this.txtFXRQ.Value = ext_date1(DateTime.Now,"yyyy-MM-dd");
string id = Request.QueryString["ID"];
List<Maticsoft.Model.db_Pilot> list = new List<Maticsoft.Model.db_Pilot>();
list = db1.GetModelList("");
foreach (Maticsoft.Model.db_Pilot mode in list)
{
this.ddlist.Items.Add(new ListItem(mode.Name+"("+mode.Levels+")", mode.ID.ToString()));
}
this.ddlist.Items.Insert(0, new ListItem("-请选择-", ""));
if (id != null)
{
getInfo(id);
}
}
}
public void getInfo(string ID)
{
model = db.GetModel(ID);
this.txtName.Value = model.CarName;
this.Text2.Value = model.CarModel;
this.Text1.Value = model.CarBrand;
this.Text3.Value = model.CarColor;
try
{
this.ddlist.Items.FindByValue(model.CarPilot).Selected = true;
}
catch
{
}
this.txtFXRQ.Value = ext_date1(model.AddTome, "yyyy-MM-dd");
this.txtdesc.Value = model.CarNote;
this.hid.Value = model.ID;
}
protected void button_Click(object sender, EventArgs e)
{
后面还有 28 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。