You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
62 lines
1.8 KiB
C#
62 lines
1.8 KiB
C#
using System;
|
|
using System.Collections;
|
|
using System.Configuration;
|
|
using System.Data;
|
|
using System.Web;
|
|
using System.Web.Security;
|
|
using System.Web.UI;
|
|
using System.Web.UI.HtmlControls;
|
|
using System.Web.UI.WebControls;
|
|
using System.Web.UI.WebControls.WebParts;
|
|
using DSWeb.Models;
|
|
using DSWeb.EntityDA;
|
|
|
|
namespace DSWeb.WorkFlow
|
|
{
|
|
public partial class UserTree : System.Web.UI.Page
|
|
{
|
|
private string strStepID;//工作流步骤GID
|
|
private string strUserID;//登录人GID
|
|
|
|
protected void Page_Load(object sender, EventArgs e)
|
|
{
|
|
if (Session["USERID"] != null)
|
|
{
|
|
strUserID = Session["USERID"].ToString();
|
|
}
|
|
if (Request.QueryString["stepid"] != null)
|
|
{
|
|
strStepID = Request.QueryString["stepid"].ToString();
|
|
}
|
|
|
|
if (strStepID != null)
|
|
{
|
|
h_step.Value = strStepID;
|
|
GetAuditor(strStepID);
|
|
}
|
|
}
|
|
|
|
private void GetAuditor(string tempWorkFlowStepID)
|
|
{
|
|
WorkFlowStepDA workFlowStepDA = new WorkFlowStepDA();
|
|
|
|
WorkFlowStepEntity workFlowStepEntity = workFlowStepDA.GetSimpleWorkFlowStepByID(tempWorkFlowStepID);
|
|
|
|
if (workFlowStepEntity != null)
|
|
{
|
|
if (workFlowStepEntity.GID != null)
|
|
{
|
|
h_workflow.Value = workFlowStepEntity.WorkFlowID;
|
|
|
|
if (workFlowStepEntity.Auditor.Trim() != "")
|
|
{
|
|
UserEntity userEntity = new UserDA().GetUserSignByID(workFlowStepEntity.Auditor);
|
|
this.sel_auditor.Items.Add(new ListItem(userEntity.ShowName, userEntity.Gid));
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
}
|
|
}
|