Examples/eFormA.aspx.cs
(开头部分) 3KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Text;
using EKETEAM.Data;
using EKETEAM.FrameWork;
using EKETEAM.UserControl;
namespace eFrameWork.Examples
{
public partial class _eFormA : System.Web.UI.Page
{
public eAction action;
public eList elist;
public eForm eform;
protected void Page_Load(object sender, EventArgs e)
{
action = new eAction();
action.Actioning += action_Actioning;
action.Listen();
}
private void List()
{
elist = new eList("Demo_Persons");
elist.Where.Add("delTag=0");
elist.OrderBy.Add("addTime desc");
elist.Bind(eDataTable, ePageControl1);
}
protected void action_Actioning(string Action)
{
eform = new eForm("Demo_Persons");
eform.ModelID = "2";
//eform.AutoRedirect = false;//关闭自动跳转
//eform.onChange += eform_onChange;
if (Action.Length == 0)
{
List();
}
else
{
eform.AddControl(eFormControlGroup);//一次添加
eform.Handle();
}
}
protected void eform_onChange(object sender, eFormTableEventArgs e)
{
switch (e.eventType)
{
case eFormTableEventType.Inserting:
litScript.Text += "添加前事件已调用<br>";
break;
case eFormTableEventType.Inserted:
litScript.Text += "添加成功,ID为:" + e.ID + "<br>5秒后返回<br><script>setTimeout(function(){document.location='" + eform.FromURL + "';},5000);</script>";
break;
case eFormTableEventType.Updating:
litScript.Text += "更新前事件已调用,即将修改数据的ID为:" + e.ID + "<br>";
break;
后面还有 22 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
