QiHaiFengProgram/WorkFlow/WorkFlowNode.aspx.cs
(完整代码) 2KBusing System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using SuLinClass;
using System.Data;
using System.Data.SqlClient;
using ProgramLib;
namespace QiHaiFengProgram.WorkFlow
{
public partial class WorkFlowNode : System.Web.UI.Page
{
Pub list = new Pub();
protected void Page_Load(object sender, EventArgs e)
{
if (Request.Cookies["user"].Values["respon"].Trim() == null)
{
this.Response.Write("<script language=javascript>alert('登陆超时!');window.parent.location = '../Error.aspx'</script>");
return;
}
if (!IsPostBack)
{
//ViewState["type"] = Request.QueryString["type"].ToString();//类型 是添加 还是修改
//ViewState["wfnid"] = Request.QueryString["wfnid"].ToString();//发文工作流名称 编号
//生成流程自动编号
//Random g = new Random();
//string rad = g.Next(10000).ToString();
//this.txt_SDN_NodeNum.Text = "" + System.DateTime.Now.Year.ToString() + "" + System.DateTime.Now.Month.ToString() + "" + System.DateTime.Now.Day.ToString() + "" + System.DateTime.Now.Hour.ToString() + "" + System.DateTime.Now.Minute.ToString() + "" + System.DateTime.Now.Second.ToString() + "" + System.DateTime.Now.Millisecond.ToString() + "" + rad + "";
SqlDataReader sdr = PublicFunctions.GetDataRows("where WFN_ID=" + Request.QueryString["wfnid"].ToString(), "", " T_WorkFlowName");
sdr.Read();
this.hidWFN_ID.Value = sdr["WFN_ID"].ToString();
this.hidWFN_FlowID.Value = sdr["WFN_FlowID"].ToString();
this.hidWFN_FlowName.Value = sdr["WFN_FlowName"].ToString();
Label1.Text = "(" + hidWFN_FlowName.Value + ")";
sdr.Close();
sdr.Dispose();
//插入日志
list.InsertLog("设定审批流程(" + hidWFN_FlowName.Value + ")", "审批流转 >> 审批流程", Server.UrlDecode(Request.Cookies["user"].Values["name"]), Page.Request.UserHostAddress, DateTime.Now.ToString());
}
}
}
}
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
