Plan/Edit.aspx.cs
(开头部分) 1KB这里只显示每个文件的开头 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;
public partial class Plan_Edit : PageBase
{
Maticsoft.BLL.db_Plan db = new Maticsoft.BLL.db_Plan();
Maticsoft.Model.db_Plan model = new Maticsoft.Model.db_Plan();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
string id = this.ext_string(Request.QueryString["ID"]);
string hicid = this.ext_string(Request.QueryString["cid"]);
if (id != "")
{
getInfo(id);
}
else
{
this.cid.Value = hicid;
}
}
}
public void getInfo(string id)
{
model = db.GetModel(id);
this.txtName.Value = model.Title;
this.txtFXRQ.Value = this.ext_date1(model.AddTime, "yyyy-MM-dd");
this.txtdesc.Value = model.Content;
this.hid.Value = model.ID;
this.cid.Value = model.Category;
}
protected void button_Click(object sender, EventArgs e)
{
bool ruala=false;
model.Title = this.txtName.Value;
model.AddTime = this.ext_date(this.txtFXRQ.Value);
model.Content = this.txtdesc.Value;
model.Category = this.cid.Value;
if (this.hid.Value != "")
{
model.ID = this.hid.Value;
ruala=db.Update(model);
}
else
{
model.ID = this.NewGUID;
后面还有 12 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。