OATest/Flow/FlowStep.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 NS_DBOP;
public partial class Flow_FlowStep : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
Bind();
}
}
public void Bind()
{
DataSet ds = new DBoperate().ExecuteQuery("select * from FlowStep where FlowID="+Convert.ToInt32(Request.QueryString["id"]), 0, 0, "table1");
this.GridView1.DataSource = ds.Tables[0];
this.GridView1.DataBind();
}
protected void btnStep_Click(object sender, EventArgs e)
{
Response.Write("<script language=javascript>window.location.href='NewStep.aspx?flid="+Request.QueryString["id"]+"'</script>");
}
protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
{
string strid = this.GridView1.DataKeys[e.RowIndex].Values.ToString();
int delPerson = new DBoperate().ExecuteUpdate("delete from FlowStepPerson where StepID=" + strid);
int result = new DBoperate().ExecuteUpdate("delete from FlowStep where ID=" + strid);
if (result > 0)
{
Response.Write("<script language=javascrip>alert('删除成功!')</script>");
}
else
{
Response.Write("<script language=javascrip>alert('删除失败!')</script>");
}
}
public string getAction(string id)
{
string action = new DBoperate().ExecuteScalar("select Name from FlowAction where ID=" + id).ToString();
return action;
}
public string getPerson(string id)
{
string person = null;
string strSql = "select Name from Employee where Employeeid in (select UserID from FlowStepPerson where StepID=" +Convert.ToInt32(id) + ")";
DataSet ds = new DBoperate().ExecuteQuery(strSql, 0, 0, "per");
foreach (DataRow dr in ds.Tables[0].Rows)
后面还有 7 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
